body {
  margin: 0;
  background: #0b0b10;
  color: #fff;
  font-family: Arial, sans-serif;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 230px;
  height: 100vh;
  background: #12121a;
  border-right: 1px solid #272735;
  padding: 24px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #28144f;
  color: #fff;
}

.sidebar-account {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 22px;
}

.sidebar-account strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.sidebar-account span {
  color: #22c55e;
  font-size: 12px;
}

.content {
  margin-left: 280px;
  padding: 40px;
}

.card,
.panel {
  background: #171720;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 25px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card h2 {
  font-size: 36px;
  margin: 0;
}

.card span,
p {
  color: #9ca3af;
}

.panel {
  margin-top: 25px;
  min-height: 180px;
}

textarea,
input {
  width: 100%;
  box-sizing: border-box;
  background: #101017;
  border: 1px solid #272735;
  color: white;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.btn {
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.small-btn {
  padding: 10px 14px;
  font-size: 13px;
}

/* Upload individual */

.scheduler-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 30px;
}

.upload-box,
.single-upload,
.bulk-upload {
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 42px;
  text-align: center;
  border: 2px dashed #3b3b4f;
  border-radius: 18px;
  background: #101017;
  color: #9ca3af;
  cursor: pointer;
}

.single-upload p {
  margin: 0;
}

.single-upload span,
.bulk-upload span {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
}

.preview {
  min-height: 500px;
}

.phone-preview {
  width: 260px;
  height: 460px;
  border: 1px solid #272735;
  border-radius: 28px;
  background: #0b0b10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  margin: 20px auto;
}

/* Agendamento em massa */

.bulk-panel {
  padding: 28px;
}

.bulk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  margin-bottom: 18px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.video-card,
.video-row {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 14px;
}

.video-row {
  padding: 18px;
  margin-bottom: 16px;
}

.video-card video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #000;
  border-radius: 14px;
  cursor: pointer;
}

.video-card strong,
.video-row strong {
  display: block;
  margin: 12px 0;
  color: white;
  font-size: 14px;
}

.video-card textarea {
  min-height: 80px;
  resize: vertical;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.modal-content {
  position: relative;
  width: 70%;
  max-width: 900px;
  background: #171720;
  border: 1px solid #272735;
  border-radius: 20px;
  padding: 20px;
}

.modal-content video {
  width: 100%;
  max-height: 75vh;
  border-radius: 14px;
  background: #000;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 22px;
}

/* Contas */

.account-item {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.account-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-item summary::-webkit-details-marker {
  display: none;
}

.account-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar,
.account-avatar-img {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}

.account-avatar {
  background: linear-gradient(135deg, #7c3aed, #f97316);
  font-weight: bold;
  color: white;
}

.account-left strong {
  display: block;
  color: white;
}

.account-left p {
  margin: 4px 0 0;
  font-size: 13px;
}

.account-arrow {
  color: #9ca3af;
  font-size: 22px;
}

.active-badge {
  display: inline-block;
  margin-top: 8px;
  color: #22c55e;
  font-size: 13px;
  font-weight: bold;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.social-links.clean {
  padding: 0 18px 18px;
}

.social-box {
  background: #171720;
  border: 1px solid #272735;
  border-radius: 16px;
  padding: 18px;
}

.social-box strong {
  display: block;
  margin-bottom: 10px;
}

.social-box span {
  display: block;
  color: #9ca3af;
  margin-bottom: 14px;
}

.social-select {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.social-select label {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 12px;
  padding: 12px 16px;
  color: #cbd5e1;
  cursor: pointer;
}

/* Dashboard conta ativa */

.active-account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.active-account-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
}

.change-account-btn {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.network-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.network-status-card {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 14px;
  padding: 14px;
}

.network-status-card strong {
  display: block;
  margin-bottom: 8px;
}

.connected {
  color: #22c55e;
  font-weight: bold;
}

.disconnected {
  color: #ef4444;
  font-weight: bold;
}

/* Posts */

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 25px;
}

.post-card {
  background: #171720;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.status {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.status.pending {
  background: #3b2f0b;
  color: #facc15;
}

.status.success {
  background: #052e16;
  color: #22c55e;
}

.status.error {
  background: #3f0a0a;
  color: #ef4444;
}

.status.processing {
  background: #0b2545;
  color: #60a5fa;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.filter-btn {
  background: #101017;
  border: 1px solid #272735;
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}

.filter-btn:hover {
  background: #28144f;
  color: #fff;
}

/* Calendário */

.calendar-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.calendar-card {
  background: #171720;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.calendar-card-date {
  min-width: 95px;
  background: #101017;
  border: 1px solid #272735;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.calendar-card-date strong {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-size: 14px;
}

.calendar-card-date span {
  color: #8b5cf6;
  font-weight: bold;
}

.calendar-card-content h3 {
  margin-top: 0;
  font-size: 15px;
}

.calendar-card-content p {
  margin: 6px 0;
}

.calendar-list {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}

.calendar-day {
  background: #171720;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
}

.calendar-date {
  background: #101017;
  border-radius: 14px;
  padding: 16px;
}

.calendar-date strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.calendar-date span {
  color: #8b5cf6;
  font-weight: bold;
}

.calendar-post h3 {
  margin-top: 0;
}

.instagram-user {
    margin-top: 4px;
    color: #c4b5fd;
    font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

.status-green {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,.6);
}

.status-red {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,.6);
}

.connected,
.disconnected,
.active-badge,
.active-account {
  display: flex;
  align-items: center;
  gap: 6px;
}

.connected {
  color: #22c55e;
  font-weight: bold;
}

.disconnected {
  color: #ef4444;
  font-weight: bold;
}

.active-badge {
  color: #22c55e;
  font-size: 13px;
  margin-top: 4px;
}

.dashboard-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #272735;
  flex-shrink: 0;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  vertical-align: middle;
}

.instagram-icon {
  background-image: url('/static/icons/instagram.svg');
}

.tiktok-icon {
  background-image: url('/static/icons/tiktok.svg');
}

.facebook-icon {
  background-image: url('/static/icons/facebook.svg');
}

.post-main {
  flex: 1;
}

.post-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.secondary-btn {
  background: #272735;
}

.danger-btn {
  background: #dc2626;
}

.error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
}

.edit-post-panel {
  max-width: 900px;
}

.edit-file-box {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 24px;
}

.edit-file-box strong {
  display: block;
  color: white;
  margin-bottom: 8px;
}

.edit-file-box p {
  margin: 0 0 6px;
}

.edit-file-box span {
  color: #8b5cf6;
  font-size: 13px;
}

.social-icon{
    width:18px;
    height:18px;
    display:inline-block;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    margin-right:8px;
    vertical-align:middle;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.notification-bell{
    position:relative;
    width:48px;
    height:48px;
    border-radius:14px;
    background:#11131d;
    border:1px solid #23263d;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.notification-bell:hover{
    background:#171a29;
}

.bell-icon{
    font-size:22px;
}

.bell-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:22px;
    height:22px;
    border-radius:50%;
    background:#ff4545;
    color:white;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.notification-wrapper {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #11131d;
  border: 1px solid #23263d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 60px;
  width: 330px;
  background: #171720;
  border: 1px solid #272735;
  border-radius: 18px;
  padding: 16px;
  z-index: 50;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown h3 {
  margin: 0 0 12px;
}

.notification-item {
  background: #101017;
  border: 1px solid #272735;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.notification-item strong {
  display: block;
  color: white;
  margin-bottom: 6px;
}

.notification-item p {
  margin: 0 0 6px;
  font-size: 13px;
}

.notification-item span {
  color: #8b5cf6;
  font-size: 12px;
}

.notification-empty {
  color: #9ca3af;
  font-size: 14px;
  padding: 12px;
}

.loading-btn {
  opacity: 0.7;
  cursor: not-allowed;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-btn {
  border: none;
  background: #25283a;
  color: white;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.mini-btn:hover {
  background: #333750;
}

.danger-mini {
  background: #ef4444;
}

.danger-mini:hover {
  background: #dc2626;
}

.post-thumb {
  width: 150px;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2a2d3d;
  background: #080911;
  margin-bottom: 14px;
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.mini-btn {
  border: none;
  background: #25283a;
  color: white;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.danger-mini {
  background: #ef4444;
}

.loading-btn,
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.app-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

.app-popup-overlay.show {
  opacity: 1;
}

.app-popup-card {
  width: 360px;
  min-height: 210px;
  background: linear-gradient(145deg, #171824, #10111a);
  border: 1px solid #33364a;
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(900px) rotateX(12deg) scale(0.85);
  transition: 0.35s ease;
  padding: 32px;
  text-align: center;
}

.app-popup-overlay.show .app-popup-card {
  transform: perspective(900px) rotateX(0deg) scale(1);
}

.popup-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.45);
}

.app-popup-card h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 22px;
}

.app-popup-card p {
  margin: 0;
  color: #b5c6e0;
  font-size: 15px;
}

.loading-btn {
  position: relative;
  opacity: 0.8;
  cursor: wait;
}

.loading-btn::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.calendar-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-card-media {
  flex-shrink: 0;
}

.calendar-thumb {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2b2e3f;
  background: #080911;
}

.calendar-link {
  margin-top: 10px;
  display: inline-flex;
}

.file-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 12px;
  font-weight: bold;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.bulk-video-card {
  background: #101017;
  border: 1px solid #2a2d3d;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}

.bulk-video-card video,
.bulk-video-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  background: #05060c;
  display: block;
  margin-bottom: 10px;
}

.bulk-video-card textarea,
.bulk-video-card input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.inactive-badge {
  color: #ff4d4d;
}

.post-ids {
  margin-top: 10px;
  font-size: 12px;
  color: #8f9bb3;
  line-height: 1.4;
}

.post-ids p {
  margin: 2px 0;
}

.popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.popup-actions .btn {
  min-width: 120px;
}

.app-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 12, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: all;
}

.app-popup-overlay.bloqueado {
  pointer-events: all;
}

.app-popup-card {
  position: relative;
  z-index: 1000000;
  pointer-events: all;
}

.popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.popup-actions .btn {
  min-width: 120px;
  cursor: pointer;
  pointer-events: all;
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  background: #11131c;
}

.log-left strong {
  color: #ffffff;
  font-size: 15px;
}

.log-left p {
  margin: 6px 0;
  color: #cbd5e1;
}

.log-left span {
  font-size: 12px;
  color: #8f9bb3;
}

.log-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 150px;
  color: #9ca3af;
  font-size: 13px;
}

.log-rede {
  color: #a855f7;
  font-weight: 700;
}

.log-right small {
  color: #64748b;
}

.bulk-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.bulk-tools input {
  max-width: 180px;
}

.bulk-progress-wrapper {
  margin: 12px 0 22px;
  padding: 14px;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  background: #11131c;
}

.bulk-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 13px;
}

.bulk-progress-bar {
  width: 100%;
  height: 10px;
  background: #1f2430;
  border-radius: 999px;
  overflow: hidden;
}

#bulkProgressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #22c55e);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.bulk-video-card {
  position: relative;
}

.bulk-video-card video,
.bulk-video-card img {
  max-height: 150px;
  object-fit: cover;
}

.bulk-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  cursor: pointer;
  font-weight: 800;
  z-index: 3;
}

.bulk-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.bulk-status.ready {
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
}

.bulk-status.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.publication-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}

.publication-type-card {
  min-height: 120px;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  background: #11131c;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.publication-type-card span {
  font-size: 26px;
  color: #8b5cf6;
}

.publication-type-card strong {
  color: #ffffff;
}

.publication-type-card small {
  color: #94a3b8;
}

.publication-type-card.active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px #7c3aed, 0 0 24px rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.12);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.bulk-video-card.compact-card {
  position: relative;
  padding: 12px;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  background: #11131c;
  overflow: hidden;
}

.bulk-preview-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #070811;
  margin-bottom: 10px;
}

.bulk-preview-box video,
.bulk-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-edit-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #7c3aed;
  color: white;
  cursor: pointer;
  font-weight: 800;
  z-index: 5;
}

.bulk-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  cursor: pointer;
  font-weight: 800;
  z-index: 5;
}

.bulk-card-info strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

.bulk-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.file-type-badge,
.publication-badge,
.bulk-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.file-type-badge {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.publication-badge {
  background: rgba(168, 85, 247, 0.16);
  color: #a855f7;
}

.bulk-status.ready {
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
}

.bulk-status.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.bulk-card-info textarea {
  min-height: 76px;
  resize: vertical;
}

.bulk-card-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.cover-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 12, 0.78);
  backdrop-filter: blur(10px);
}

.cover-modal.show {
  display: flex;
}

.cover-modal-card {
  position: relative;
  width: min(680px, 92vw);
  padding: 26px;
  border-radius: 24px;
  border: 1px solid #303548;
  background: #11131c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.cover-modal-card h2 {
  margin-bottom: 8px;
}

.cover-modal-card p {
  color: #94a3b8;
  margin-bottom: 18px;
}

#coverVideoPreview,
#coverImagePreview {
  width: 100%;
  max-height: 360px;
  border-radius: 18px;
  background: #070811;
  object-fit: contain;
  margin-bottom: 16px;
}

#coverTimeline {
  width: 100%;
  margin: 10px 0 18px;
}

.cover-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.single-editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.single-preview-card {
  position: relative;
  width: 320px;
}

.single-preview-box {
  width: 320px;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #070811;
  border: 1px solid #2a2d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.single-preview-box video,
.single-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-cover-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-form-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.single-form-area textarea {
  min-height: 160px;
  resize: vertical;
}

.single-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.single-badges {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .single-editor-layout {
    grid-template-columns: 1fr;
  }

  .single-preview-card,
  .single-preview-box {
    width: 100%;
  }
}

.single-editor-layout {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  gap: 24px !important;
  align-items: start !important;
  margin-top: 24px !important;
}

.single-preview-card {
  position: relative !important;
  width: 320px !important;
  max-width: 320px !important;
}

.single-preview-box {
  width: 320px !important;
  height: 420px !important;
  max-width: 320px !important;
  max-height: 420px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #070811 !important;
  border: 1px solid #2a2d3a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
}

.single-preview-box video,
.single-preview-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 22px !important;
}

.single-cover-btn {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  width: 38px !important;
  height: 38px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #7c3aed !important;
  color: white !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  z-index: 20 !important;
}

.single-form-area {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.single-form-area textarea {
  min-height: 160px !important;
  resize: vertical !important;
}

.single-date-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.single-badges {
  margin-top: 12px !important;
}

#singleCoverModal.cover-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 4, 12, 0.78) !important;
  backdrop-filter: blur(10px) !important;
}

#singleCoverModal.cover-modal.show {
  display: flex !important;
}

#singleCoverModal .cover-modal-card {
  position: relative !important;
  width: min(680px, 92vw) !important;
  padding: 26px !important;
  border-radius: 24px !important;
  border: 1px solid #303548 !important;
  background: #11131c !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45) !important;
}

#singleCoverVideoPreview,
#singleCoverImagePreview {
  width: 100% !important;
  max-height: 360px !important;
  border-radius: 18px !important;
  background: #070811 !important;
  object-fit: contain !important;
  margin-bottom: 16px !important;
}

#singleCoverTimeline {
  width: 100% !important;
  margin: 10px 0 18px !important;
}

#editarCoverModal.cover-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 4, 12, 0.78) !important;
  backdrop-filter: blur(10px) !important;
}

#editarCoverModal.cover-modal.show {
  display: flex !important;
}

#editarCoverModal .cover-modal-card {
  position: relative !important;
  width: min(680px, 92vw) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 26px !important;
  border-radius: 24px !important;
  border: 1px solid #303548 !important;
  background: #11131c !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45) !important;
}

#editarCoverVideoPreview,
#editarCoverImagePreview {
  width: 100% !important;
  height: auto !important;
  max-height: 360px !important;
  border-radius: 18px !important;
  background: #070811 !important;
  object-fit: contain !important;
  margin-bottom: 16px !important;
}

#editarCoverTimeline {
  width: 100% !important;
  margin: 10px 0 18px !important;
}

#editarCoverModal .cover-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}
#editarCoverModal.cover-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.78) !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  backdrop-filter: blur(8px) !important;
}

#editarCoverModal.cover-modal.show {
  display: flex !important;
}

#editarCoverModal .cover-modal-card {
  width: 680px !important;
  max-width: 92vw !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: #11131c !important;
  border: 1px solid #303548 !important;
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55) !important;
}

#editarCoverModal video#editarCoverVideoPreview,
#editarCoverModal img#editarCoverImagePreview {
  width: 100% !important;
  height: auto !important;
  max-height: 360px !important;
  object-fit: contain !important;
  border-radius: 18px !important;
  background: #070811 !important;
  display: block;
}

#editarCoverModal #editarCoverTimeline {
  width: 100% !important;
  margin: 14px 0 18px !important;
}

#editarCoverModal .cover-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}

.post-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 6px 18px;
  margin: 10px 0 14px;
}

.post-meta-grid p {
  margin: 0;
  color: #cbd5e1;
}

.post-meta-grid strong {
  color: #ffffff;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.media-library-card {
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
}

.media-library-preview {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #070811;
  margin-bottom: 12px;
}

.media-library-preview video,
.media-library-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-library-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.media-library-info strong {
  font-size: 14px;
  word-break: break-all;
}

.biblioteca-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 24px !important;
}

.biblioteca-card {
  background: #151722 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 18px !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.biblioteca-preview {
  width: 100% !important;
  height: 260px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #070811 !important;
  margin-bottom: 12px !important;
}

.biblioteca-preview video,
.biblioteca-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.biblioteca-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}

.biblioteca-info strong {
  font-size: 14px !important;
  word-break: break-all !important;
}

.calendar-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-nav strong {
  color: #ffffff;
  min-width: 160px;
  text-align: center;
}

.calendar-month {
  background: #11131c;
  border: 1px solid #2a2d3a;
  border-radius: 22px;
  padding: 18px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 700;
  color: #94a3b8;
  font-size: 13px;
}

.calendar-grid-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  min-height: 150px;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  background: #0b0d14;
  padding: 10px;
  overflow: hidden;
}

.calendar-day.empty {
  opacity: 0.25;
  background: #080910;
}

.calendar-day-number {
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  border-radius: 10px;
  padding: 7px;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #cbd5e1;
}

.calendar-event span {
  font-weight: 700;
  color: #ffffff;
}

.calendar-event strong {
  color: #ffffff;
}

.calendar-event small {
  color: #94a3b8;
}

.calendar-event.status-publicado {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.calendar-event.status-erro {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.calendar-event.status-processando {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.calendar-event.status-agendado {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.calendar-profile-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.calendar-profile-form label {
  font-weight: 700;
  color: #ffffff;
}

.calendar-profile-form select {
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #2a2d3a;
  background: #0b0d14;
  color: #ffffff;
}

.calendar-day-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-day-number span {
  font-size: 11px;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 999px;
  padding: 3px 7px;
}

.calendar-event strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more {
  display: block;
  text-align: center;
  padding: 7px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.38);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.calendar-day-detail {
  background: #11131c;
  border: 1px solid #2a2d3a;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 22px;
}

.calendar-day-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.calendar-day-detail-header h2 {
  margin: 0;
}

.calendar-day-detail-header p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.calendar-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-day-list-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  text-decoration: none;
  padding: 14px;
  border-radius: 16px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #ffffff;
}

.calendar-day-list-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-day-list-time strong {
  color: #ffffff;
}

.calendar-day-list-time span {
  color: #a78bfa;
  font-size: 12px;
}

.calendar-day-list-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-day-list-content span {
  color: #cbd5e1;
}

.calendar-day-list-content small {
  color: #94a3b8;
}

.calendar-day {
  min-height: 170px !important;
  padding: 8px !important;
}

.calendar-events {
  gap: 5px !important;
}

.calendar-event-mini {
  display: grid !important;
  grid-template-columns: 34px 1fr !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px !important;
  min-height: 42px !important;
}

.calendar-event-thumb {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #050611 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.calendar-event-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.calendar-event-video-dot {
  font-size: 13px !important;
  color: #ffffff !important;
}

.calendar-event-text {
  min-width: 0 !important;
}

.calendar-event-text span {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.calendar-event-text strong {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.calendar-more {
  padding: 5px !important;
  font-size: 11px !important;
}

.calendar-day-list-item {
  grid-template-columns: 86px 90px 1fr !important;
  align-items: center !important;
}

.calendar-day-list-thumb {
  width: 76px !important;
  height: 76px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #050611 !important;
}

.calendar-day-list-thumb img,
.calendar-day-list-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.calendar-events{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    margin-top:12px;
}

.calendar-event-mini{
    width:90%;
    margin:0 auto;
}

.calendar-more{
    width:auto;
    margin:4px auto 0 auto;
}

.calendar-day{
    display:flex;
    flex-direction:column;
}

.calendar-day-number{
    margin-bottom:10px;
}

.calendar-day-number {
  justify-content: center !important;
  position: relative !important;
}

.calendar-day-number > strong {
  position: absolute !important;
  left: 0 !important;
}

.calendar-day-number > span {
  margin: 0 auto !important;
}

.calendar-event-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.calendar-event-thumb {
  background: transparent !important;
}

.dashboard-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:24px;
}

.next-post-box{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dashboard-library{
  display:flex;
  justify-content:space-between;
  margin-bottom:16px;
}

.dashboard-library div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.dashboard-library strong{
  font-size:24px;
  color:#fff;
}

.dashboard-library span{
  color:#94a3b8;
}

.posts-filter-panel {
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}

.posts-filter-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.posts-filter-row select,
.posts-filter-row input {
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
}

.posts-filter-row input {
  grid-column: span 4;
}

.posts-filter-row button {
  width: 100%;
}

.posts-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.summary-mini-card {
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  padding: 16px;
}

.summary-mini-card strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

.summary-mini-card span {
  color: #94a3b8;
}

form.posts-filter-panel {
  background: #151722 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin: 18px 0 22px 0 !important;
}

form.posts-filter-panel .posts-filter-row {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

form.posts-filter-panel select,
form.posts-filter-panel input {
  width: 100% !important;
  background: #0b0d14 !important;
  border: 1px solid #2a2d3a !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  height: 46px !important;
  box-sizing: border-box !important;
}

form.posts-filter-panel input[name="busca"] {
  grid-column: span 4 !important;
}

form.posts-filter-panel button {
  height: 46px !important;
  width: 100% !important;
}

.posts-summary-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin: 0 0 24px 0 !important;
}

.summary-mini-card {
  background: #151722 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 16px !important;
  padding: 16px !important;
}

.summary-mini-card strong {
  display: block !important;
  font-size: 24px !important;
  color: #fff !important;
}

.summary-mini-card span {
  color: #94a3b8 !important;
}

.sidebar-account {
  position: relative;
}

.sidebar-account-toggle {
  cursor: pointer;
}

.sidebar-arrow {
  margin-left: auto;
  color: #94a3b8;
}

.sidebar-profile-dropdown {
  display: none;
  margin-top: 10px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 8px;
}

.sidebar-profile-dropdown.show {
  display: block;
}

.sidebar-profile-dropdown form {
  margin: 0;
}

.sidebar-profile-dropdown button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.sidebar-profile-dropdown button:hover {
  background: rgba(124, 58, 237, 0.2);
}

.perfil-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.perfil-last-post {
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.perfil-last-post strong {
  color: #fff;
}

.account-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.logs-filter-panel {
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0 22px;
}

.logs-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr auto;
  gap: 12px;
  align-items: center;
}

.logs-filter-row select,
.logs-filter-row input {
  width: 100%;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  height: 46px;
  box-sizing: border-box;
}

.logs-filter-row button {
  height: 46px;
}

.logs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.log-item {
  border-left: 4px solid transparent;
}

.log-success {
  border-left-color: #22c55e;
}

.log-error {
  border-left-color: #ef4444;
}

.log-danger {
  border-left-color: #f97316;
}

.posts-bulk-actions {
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.posts-bulk-actions input {
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.post-card {
  position: relative;
}

.post-select-box {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  padding: 6px;
}

.post-select-box input {
  width: 18px;
  height: 18px;
}

.bulk-tools-2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #151722;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
}

.bulk-tools-2 textarea {
  width: 100%;
  min-height: 90px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.bulk-tools-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bulk-tools-row input,
.bulk-tools-row select {
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
}

.bulk-redes-todos {
  margin: 0;
}

.social-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.social-badge.instagram {
  background: rgba(255,0,120,.15);
  color: #ff5fa2;
}

.social-badge.tiktok {
  background: rgba(0,255,255,.12);
  color: #7df9ff;
}

.social-badge.facebook {
  background: rgba(24,119,242,.15);
  color: #63a4ff;
}

.logs-actions {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}

.copiar-log-btn {
  margin-left: 12px;
  align-self: center;
  white-space: nowrap;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.log-left {
  flex: 1;
}

.log-right {
  min-width: 160px;
}

.log-draft {
  border-left-color: #a855f7;
}

/* LOGO 2.0 */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 28px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}

/* SIDEBAR MAIS LIMPA */

.sidebar {
  width: 220px;
  padding: 26px 20px;
}

.content {
  margin-left: 220px;
}

.sidebar a {
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 12px;
}

.sidebar-account {
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.sidebar-account strong {
  font-size: 14px;
}

.sidebar-account span {
  font-size: 12px;
}

/* SIDEBAR 2.1 */

.sidebar {
  width: 200px;
  padding: 28px 16px;
}

.content {
  margin-left: 200px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 12px 13px;
}

/* VISUAL 2.0 - SIDEBAR COMPACTA */

.sidebar {
  width: 180px;
  padding: 24px 14px;
}

.content {
  margin-left: 180px;
}

.logo {
  gap: 10px;
  font-size: 15px;
  margin-bottom: 22px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}

.sidebar-account {
  padding: 12px;
  margin-bottom: 20px;
}

.sidebar-account strong {
  font-size: 13px;
}

.sidebar-account span {
  font-size: 11px;
}

.sidebar a {
  font-size: 13px;
  padding: 11px 12px;
  border-radius: 10px;
  gap: 8px;
}

/* VISUAL 2.0 - DASHBOARD COMPACTO */

.content {
  padding: 36px 34px;
}

.dashboard-header {
  margin-bottom: 26px;
}

.dashboard-header h1,
.content h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.dashboard-header p,
.content > p {
  font-size: 15px;
  margin-bottom: 20px;
}

.cards {
  gap: 14px;
  margin-bottom: 20px;
}

.card {
  min-height: 82px;
  padding: 22px 24px;
  border-radius: 16px;
}

.card h2 {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.card span {
  font-size: 14px;
}

.panel {
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.panel h2,
.panel h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.dashboard-grid,
.dashboard-main-grid {
  gap: 20px;
}

.active-account-box {
  padding: 18px;
}

.network-status-grid {
  gap: 12px;
}

.network-status-card {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 14px;
}

.video-row {
  padding: 14px 0;
}

/* FORÇAR DASHBOARD COMPACTO */

.cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.cards .card {
  min-height: unset !important;
  height: 74px !important;
  padding: 18px 22px !important;
  border-radius: 15px !important;
}

.cards .card h2 {
  font-size: 26px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1 !important;
}

.cards .card span {
  font-size: 13px !important;
}

.panel {
  min-height: unset !important;
  padding: 22px 24px !important;
  border-radius: 16px !important;
  margin-bottom: 18px !important;
}

.dashboard-two-columns,
.dashboard-grid,
.dashboard-main-grid {
  gap: 18px !important;
}

.dashboard-two-columns .panel,
.dashboard-grid .panel,
.dashboard-main-grid .panel {
  min-height: 150px !important;
}

.card,
.summary-card,
.stat-card {
    min-height: 65px !important;
    height: 65px !important;
    padding: 14px 18px !important;
}

.content h1{
    margin-bottom:6px !important;
}

.content p{
    margin-bottom:18px !important;
}

.cards{
    gap:12px !important;
}

.dashboard-row .panel{
    min-height:180px !important;
}

.panel h2{
    font-size:18px !important;
}

/* DASHBOARD LIMPO 2.1 */

.dashboard-clean-cards {
  grid-template-columns: repeat(4, 1fr) !important;
  margin-bottom: 18px !important;
}

.dashboard-clean-cards .card {
  height: 64px !important;
  padding: 14px 18px !important;
}

.dashboard-account-panel {
  padding: 18px 20px !important;
}

.dashboard-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-account-header h2 {
  margin: 0 !important;
  font-size: 20px !important;
}

.dashboard-account-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.compact-avatar {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 12px !important;
}

.dashboard-account-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.dashboard-account-info p {
  margin: 0 0 8px;
  font-size: 13px;
}

.compact-network-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.compact-network-grid .network-status-card {
  min-height: unset !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}

.instagram-pill {
  background: rgba(255, 0, 120, 0.14);
  color: #ff5fa2;
}

.facebook-pill {
  background: rgba(24, 119, 242, 0.15);
  color: #63a4ff;
}

.tiktok-pill {
  background: rgba(0, 255, 255, 0.12);
  color: #7df9ff;
}

.dashboard-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-recent-post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 13px 15px;
}

.recent-post-main strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.recent-post-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.recent-post-main small {
  color: #94a3b8;
  font-size: 12px;
}

.recent-post-actions {
  margin-left: 14px;
}

/* STATUS DOT PADRÃO */

.status-dot,
.status-green {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  display: inline-block !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45) !important;
}

.sidebar-account .active-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* TROCA DE PERFIL NA SIDEBAR */

.sidebar-account-switch {
  position: relative;
}

.sidebar-account-button {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.sidebar-account-button b {
  position: absolute;
  right: 12px;
  top: 18px;
  color: #94a3b8;
}

.sidebar-profile-menu {
  display: none;
  margin-top: 10px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 8px;
}

.sidebar-profile-menu.show {
  display: block;
}

.sidebar-profile-menu form {
  margin: 0;
}

.sidebar-profile-menu button {
  width: 100%;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  padding: 9px 8px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-profile-menu button:hover {
  background: #1f1538;
  color: #fff;
}

/* INPUTS DATA/HORA */

input[type="date"],
input[type="time"] {
  cursor: pointer !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2) !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* LABEL/CARD DE DATA/HORA */

.datetime-card {
  display: block !important;
  width: 100% !important;
  cursor: pointer !important;
}

.datetime-card input[type="date"],
.datetime-card input[type="time"] {
  width: 100% !important;
  height: 46px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* DATA/HORA GLOBAL DO AGENDAMENTO EM MASSA */

.bulk-tools-row .datetime-card {
  width: 140px !important;
  height: 46px !important;
}

.bulk-tools-row .datetime-card input[type="date"],
.bulk-tools-row .datetime-card input[type="time"] {
  height: 46px !important;
}

/* AGENDAMENTO EM MASSA - FORMATO EQUILIBRADO */

#videoGrid.bulk-grid.compact-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

#videoGrid .bulk-video-card.compact-card {
  width: 100% !important;
  max-width: 320px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: unset !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  justify-self: start !important;
}

#videoGrid .bulk-preview-box {
  width: 100% !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  aspect-ratio: unset !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #070811 !important;
  margin-bottom: 10px !important;
}

/* AGENDAMENTO EM MASSA - CARDS */

#videoGrid .bulk-preview-box img,
#videoGrid .bulk-preview-box video {
  width: 100% !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

#videoGrid .bulk-card-info strong {
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

#videoGrid .bulk-card-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 6px 0 10px !important;
}

#videoGrid .bulk-card-info textarea,
#videoGrid .bulk-legenda {
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  resize: none !important;
}

#videoGrid .bulk-card-inputs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

#videoGrid .bulk-card-inputs input {
  height: 38px !important;
  font-size: 12px !important;
}

/* BIBLIOTECA 2.0 */

.page-header-clean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-header-clean h1 {
  margin-bottom: 6px;
}

.page-header-clean p {
  margin: 0;
  color: #9ca3af;
}

.library-filter-panel {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
}

.library-filter-form {
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  gap: 12px;
  align-items: center;
}

.library-filter-form input,
.library-filter-form select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #2a2d3a;
  background: #0b0d14;
  color: #fff;
  padding: 0 14px;
}

.library-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.library-stat-card {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  padding: 16px 18px;
}

.library-stat-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 7px;
}

.library-stat-card span {
  color: #9ca3af;
  font-size: 13px;
}

.library-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.library-actions-bar div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.library-actions-bar span {
  color: #9ca3af;
  font-size: 13px;
}

.library-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.library-card-2 {
  position: relative;
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 12px;
  overflow: hidden;
}

.library-preview-2 {
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: #070811;
  margin-bottom: 11px;
}

.library-preview-2 img,
.library-preview-2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-preview-2 video,
.library-preview-2 img {
  pointer-events: none !important;
}

.library-check-2 {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.library-check-2 input[type="checkbox"] {
  appearance: none;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #ffffff !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 101;
}

.library-check-2 input[type="checkbox"]:checked {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
}

.library-check-2 input[type="checkbox"]:disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
}

.library-info-2 strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-meta-2 {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.library-meta-2 span:last-child {
  color: #9ca3af;
  font-size: 12px;
}

.library-card-actions-2 {
  margin-top: 12px;
}

.empty-state-clean {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  color: #9ca3af;
}

.empty-state-clean strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state-clean p {
  margin: 0;
}

/* MEUS POSTS 2.1 */

.posts-filter-compact {
  padding: 14px !important;
  margin: 18px 0 16px !important;
}

.posts-filter-compact .posts-filter-row {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
}

.posts-filter-compact select,
.posts-filter-compact input {
  height: 42px !important;
  border-radius: 12px !important;
}

.posts-filter-compact input[name="busca"] {
  grid-column: span 4 !important;
}

.posts-filter-compact button {
  height: 42px !important;
}

.posts-summary-compact {
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.posts-summary-compact .summary-mini-card {
  padding: 13px 16px !important;
  border-radius: 14px !important;
}

.posts-summary-compact .summary-mini-card strong {
  font-size: 22px !important;
}

.posts-bulk-actions,
.posts-bulk-compact {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  background: #171821 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  margin-bottom: 18px !important;
}

.posts-bulk-actions .bulk-title,
.posts-bulk-compact .bulk-title {
  margin: 0 8px 0 0 !important;
  white-space: nowrap !important;
  font-weight: 800 !important;
  min-width: auto !important;
}

.posts-bulk-actions .bulk-date-row {
  display: contents !important;
}

.posts-bulk-actions .datetime-card,
.posts-bulk-compact .datetime-card {
  width: 140px !important;
  flex: 0 0 140px !important;
  margin: 0 !important;
}

.posts-bulk-actions .datetime-card input,
.posts-bulk-compact .datetime-card input {
  height: 38px !important;
}

.posts-bulk-actions .btn,
.posts-bulk-compact .btn {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.posts-table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-row-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 26px 64px 1.6fr 150px 110px 250px !important;
  gap: 12px !important;
  align-items: center;
  min-height: 78px !important;
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  padding: 10px 14px !important;
}

.post-row-check input {
  width: 14px !important;
  height: 14px !important;
  accent-color: #8b5cf6;
}

.post-row-thumb {
  width: 60px !important;
  height: 60px !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #070811;
}

.post-row-thumb img,
.post-row-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-row-main strong {
  display: block;
  font-size: 13px !important;
  margin-bottom: 5px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-row-main small {
  color: #94a3b8;
  font-size: 11px !important;
}

.post-row-tags {
  display: flex;
  gap: 4px !important;
  flex-wrap: wrap;
  margin-bottom: 4px !important;
}

.post-row-date,
.post-row-time {
  display: none !important;
}

.post-row-schedule span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 3px;
}

.post-row-schedule strong {
  display: block;
  font-size: 12px;
}

.post-row-schedule small {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 2px;
}

.post-row-status {
  justify-self: start !important;
}

.post-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.post-row-actions form {
  margin: 0 !important;
}

.post-row-actions .mini-btn,
.post-row-actions .btn {
  width: 58px !important;
  min-width: 58px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  font-size: 11px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.post-error-line {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

/* CONTAS 2.0 */

.accounts-create-panel,
.accounts-list-panel {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}

.accounts-create-form {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
  align-items: center;
}

.accounts-create-form input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #2a2d3a;
  background: #0b0d14;
  color: #fff;
  padding: 0 14px;
}

.accounts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.accounts-section-header h2 {
  margin: 0;
  font-size: 18px;
}

.accounts-section-header span {
  color: #94a3b8;
  font-size: 13px;
}

.account-card-2 {
  background: #0f111a;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.account-card-2 summary {
  list-style: none;
}

.account-card-2 summary::-webkit-details-marker {
  display: none;
}

.account-summary-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}

.account-main-2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar-2 {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 13px !important;
  object-fit: cover;
}

.account-info-2 strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.account-info-2 small {
  color: #94a3b8;
  font-size: 12px;
}

.account-pills-2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.account-summary-stats-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.account-summary-stats-2 div {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 9px 10px;
}

.account-summary-stats-2 strong {
  display: block;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 4px;
}

.account-summary-stats-2 span {
  color: #94a3b8;
  font-size: 11px;
}

.account-arrow {
  color: #94a3b8;
  justify-self: end;
}

.account-expanded-2 {
  border-top: 1px solid #2a2d3a;
  padding: 14px 16px 16px;
}

.compact-last-post {
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.social-links-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-box-2 {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 13px;
}

.social-box-head-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.social-box-head-2 strong {
  font-size: 14px;
}

.social-box-2 small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 12px;
}

.social-actions-2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-actions-2 form {
  margin: 0;
}

.account-actions-2 {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.account-actions-2 .btn {
  width: auto !important;
  min-width: 130px !important;
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}

/* CONTAS - AJUSTE FINO */

.account-actions-2 .btn {
  min-width: 92px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  border-radius: 9px !important;
}

.account-pills-2 .network-pill {
  height: 24px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
}

.account-pills-2 .status {
  height: 24px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
}

/* BADGES ALINHADAS */

.account-pills-2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-pills-2 .status,
.account-pills-2 .network-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 24px !important;
    line-height: 24px !important;

    padding: 0 10px !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    margin: 0 !important;
    vertical-align: middle !important;
}

/* BOTÃO CRIAR CONTA MAIS COMPACTO */

.create-account-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.create-account-form input {
    flex: 1;
}

.create-account-form .btn {
    height: 42px !important;
    min-width: 130px !important;

    padding: 0 18px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    border-radius: 12px !important;
}

.create-account-form .btn {
    position: relative;
    top: -10px;
}

/* AGENDAMENTO EM MASSA 2.0 - LIMPO */

.bulk-panel {
  padding: 18px !important;
}

.bulk-panel h3 {
  font-size: 18px !important;
  margin: 18px 0 12px !important;
}

.bulk-panel .upload-box {
  min-height: 82px !important;
  border-radius: 16px !important;
  padding: 18px !important;
}

.social-select {
  gap: 10px !important;
}

.social-select label {
  min-width: 110px !important;
  height: 58px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.publication-type-grid {
  gap: 12px !important;
}

.publication-type-card {
  min-height: 86px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}

.publication-type-card span {
  font-size: 19px !important;
  margin-bottom: 6px !important;
}

.publication-type-card strong {
  font-size: 14px !important;
}

.publication-type-card small {
  font-size: 11px !important;
}

/* BLOCO CONTEÚDOS ADICIONADOS */

.bulk-tools-2 {
  padding: 14px !important;
  border-radius: 16px !important;
}

.bulk-tools-2 textarea {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  border-radius: 12px !important;
}

.bulk-tools-row {
  gap: 10px !important;
  margin-top: 12px !important;
}

.bulk-tools-row input,
.bulk-tools-row select {
  height: 40px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

.bulk-redes-todos label {
  height: 54px !important;
  min-width: 105px !important;
  font-size: 13px !important;
}

.bulk-tools-row .btn {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

/* PROGRESSO MAIS CLEAN */

.bulk-progress-wrapper {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  margin: 14px 0 !important;
}

.bulk-progress-info {
  font-size: 12px !important;
}

/* BOTÃO SALVAR */

#salvarMassa {
  width: auto !important;
  min-width: 160px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

/* QUANDO TIVER CONTEÚDOS */

#videoGrid.bulk-grid.compact-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

#videoGrid .bulk-video-card.compact-card {
  padding: 10px !important;
  border-radius: 14px !important;
}

#videoGrid .bulk-preview-box {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  border-radius: 12px !important;
}

#videoGrid .bulk-preview-box img,
#videoGrid .bulk-preview-box video {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  border-radius: 12px !important;
}

#videoGrid .bulk-card-info strong {
  font-size: 13px !important;
}

#videoGrid .bulk-legenda {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  border-radius: 10px !important;
}

#videoGrid .bulk-card-inputs input {
  height: 36px !important;
  font-size: 12px !important;
}

/* AGENDAMENTO EM MASSA 2.1 */

.bulk-panel-clean {
  padding: 18px !important;
}

.massa-round-networks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.massa-round-networks label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: auto !important;
  min-width: unset !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  cursor: pointer;
}

.massa-round-networks input {
  display: none;
}

.massa-round-networks span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #6b7280;
  background: transparent;
  display: inline-block;
}

.massa-round-networks input:checked + span {
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

.massa-publication-grid .publication-type-card {
  min-height: 78px !important;
}

.massa-publication-grid .content-icon {
  font-size: 22px !important;
  color: #8b5cf6;
}

.massa-progress-top {
  margin: 18px 0 20px !important;
}

.massa-tools-clean {
  padding: 14px !important;
  border-radius: 16px !important;
}

.massa-tools-clean textarea {
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  text-align: left;
}

.massa-controls-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.massa-controls-center .datetime-card {
  width: 145px !important;
  flex: 0 0 145px !important;
}

.massa-controls-center input,
.massa-controls-center select {
  height: 38px !important;
  border-radius: 11px !important;
}

.massa-controls-center select {
  width: 130px;
}

.massa-round-networks-center {
  justify-content: center;
  margin-top: 18px;
}

.massa-apply-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.massa-apply-buttons .btn {
  height: 34px !important;
  padding: 0 15px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

#salvarMassa {
  margin-top: 14px;
}

/* MASSA - REDES NA ALTURA DOS CAMPOS */

.massa-tools-clean {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.massa-controls-center,
.massa-round-networks-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

.massa-round-networks-center {
  transform: translateY(-2px);
}

.massa-round-networks-center label {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.massa-round-networks-center span {
  width: 16px !important;
  height: 16px !important;
}

/* MASSA - AJUSTE FINAL DO BLOCO CONTEÚDOS */

.massa-tools-clean {
  position: relative !important;
  min-height: 250px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* joga a legenda para baixo de tudo */
.massa-tools-clean textarea#legendaTodos {
  order: 4 !important;
  margin-top: 20px !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
}

/* primeira linha: data, hora e tipo */
.massa-controls-center {
  order: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 6px !important;
  margin-bottom: 14px !important;
}

/* segunda linha: redes, mais alta e com mesma cor dos cards */
.massa-round-networks-center {
  order: 2 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  transform: translateY(-4px) !important;
}

.massa-round-networks-center label {
  height: 38px !important;
  min-width: 112px !important;
  padding: 0 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  background: #0b0d14 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 11px !important;

  color: #fff !important;
  font-size: 13px !important;
}

/* bolinha redonda das redes */
.massa-round-networks-center label span {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  border-radius: 999px !important;
  border: 2px solid #64748b !important;
  background: transparent !important;
}

.massa-round-networks-center input:checked + span {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18) !important;
}

/* terceira linha: botões */
.massa-apply-buttons {
  order: 3 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* select escuro igual aos outros inputs */
.massa-controls-center select,
#tipoTodos {
  background: #0b0d14 !important;
  color: #fff !important;
  border: 1px solid #2a2d3a !important;
  height: 38px !important;
  border-radius: 11px !important;
}

/* botão salvar mais próximo do card */
#salvarMassa {
  margin-top: 10px !important;
}

/* TIPO IGUAL DATA E HORA */

#tipoTodos,
.massa-controls-center select {
    width: 160px !important;
    min-width: 160px !important;
    height: 42px !important;

    background: #0b0d14 !important;
    border: 1px solid #2a2d3a !important;
    border-radius: 11px !important;

    color: #fff !important;
    font-size: 13px !important;

    position: relative !important;
    top: -8px !important;
}

/* AGENDAR POST - REDES REDONDAS */

.single-round-networks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.single-round-networks label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  cursor: pointer;
}

.single-round-networks input {
  display: none;
}

.single-round-networks span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #64748b;
  background: transparent;
  display: inline-block;
}

.single-round-networks input:checked + span {
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

/* CALENDÁRIO 2.0 */

.calendar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-profile-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.calendar-profile-form select {
  height: 38px;
  border-radius: 10px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #fff;
  padding: 0 12px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-nav strong {
  min-width: 150px;
  text-align: center;
}

.calendar-month {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-weekdays span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.calendar-grid-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  min-height: 118px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
}

.calendar-day.empty {
  opacity: 0.25;
}

.calendar-day-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-day-number strong {
  font-size: 14px;
}

.calendar-day-number span {
  font-size: 11px;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  padding: 3px 7px;
  border-radius: 999px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-event-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #11131c;
  border: 1px solid #2a2d3a;
  border-radius: 10px;
  padding: 6px;
  text-decoration: none;
  color: #fff;
}

.calendar-event-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #070811;
  flex-shrink: 0;
}

.calendar-event-thumb img,
.calendar-event-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-event-text span {
  display: block;
  font-size: 11px;
  color: #a78bfa;
}

.calendar-event-text strong {
  display: block;
  font-size: 11px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-text small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

.calendar-more {
  font-size: 11px;
  color: #a78bfa;
  text-decoration: none;
  margin-top: 2px;
}

/* DETALHE DO DIA */

.calendar-day-detail {
  background: #171821;
  border: 1px solid #2a2d3a;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}

.calendar-day-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-day-detail-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.calendar-day-detail-header p {
  margin: 0;
  color: #94a3b8;
}

.calendar-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-day-list-item {
  display: grid;
  grid-template-columns: 60px 80px 1fr;
  align-items: center;
  gap: 12px;
  background: #0b0d14;
  border: 1px solid #2a2d3a;
  border-radius: 14px;
  padding: 10px;
  color: #fff;
  text-decoration: none;
}

.calendar-day-list-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #070811;
}

.calendar-day-list-thumb img,
.calendar-day-list-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-day-list-time strong {
  display: block;
  font-size: 14px;
}

.calendar-day-list-time span {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 4px 8px;
  border-radius: 999px;
}

.calendar-day-list-content strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.calendar-day-list-content span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 3px;
}

.calendar-day-list-content small {
  color: #94a3b8;
  font-size: 12px;
}

.single-round-networks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.single-round-networks label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  cursor: pointer;
}

.single-round-networks input {
  display: none;
}

.single-round-networks span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #64748b;
  background: transparent;
  display: inline-block;
}

.single-round-networks input:checked + span {
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}


/* =========================================================
   PACOTE VISUAL 4.0 — SIDEBAR, LOGOUT E CARDS DE POSTS
   ========================================================= */

.sidebar {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: visible !important;
  padding-bottom: 18px !important;
}

.sidebar-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  min-height: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #272735;
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 8px 10px;
  overflow: hidden;
}

.sidebar-user-label {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-user strong {
  color: #e5e7eb;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-form {
  margin: 0;
}

.sidebar-logout-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, .22);
  border-radius: 14px;
  background: rgba(239, 68, 68, .06);
  color: #f87171;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sidebar-logout-button:hover {
  transform: translateY(-1px);
  background: rgba(239, 68, 68, .13);
  border-color: rgba(248, 113, 113, .45);
}

.sidebar-logout-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(239, 68, 68, .12);
  font-size: 20px;
  font-weight: 800;
}

.sidebar-logout-button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-logout-button strong {
  color: #f87171;
  font-size: 13px;
}

.sidebar-logout-button small {
  color: #94a3b8;
  font-size: 10px;
}

.dashboard-recent-post {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px !important;
}

.dashboard-recent-media {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2a2d3a;
  background: #070811;
}

.dashboard-recent-media img,
.dashboard-recent-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
}

.recent-post-main {
  min-width: 0;
}

.recent-post-main > strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.publication-type-pill {
  background: rgba(139, 92, 246, .16);
  color: #c4b5fd;
}

.recent-post-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recent-post-details small strong {
  color: #cbd5e1;
  font-weight: 700;
}

.post-row-destination {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 5px;
  font-size: 11px;
  color: #94a3b8;
}

.post-row-destination strong {
  margin: 0 !important;
  color: #cbd5e1;
  font-size: 11px !important;
  white-space: normal !important;
}

@media (max-height: 720px) {
  .sidebar a {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }

  .sidebar-account {
    margin-bottom: 12px;
  }

  .sidebar-user {
    display: none;
  }

  .sidebar-logout-button {
    min-height: 50px;
    padding: 9px 11px;
  }
}

@media (max-width: 1050px) {
  .dashboard-recent-post {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }

  .recent-post-actions {
    grid-column: 2;
    margin-left: 0 !important;
  }
}


/* =========================================================
   AUTOPOSTE V3.3 - CORREÇÕES VISUAIS SEGURAS
========================================================= */

.modern-chevron {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: transform .18s ease, color .18s ease;
}

.modern-chevron svg,
.sidebar-user-menu-icon svg,
.delete-account-close svg,
.dashboard-card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-account-button[aria-expanded="true"] .modern-chevron,
.sidebar-user-button[aria-expanded="true"] .modern-chevron {
  transform: rotate(180deg);
  color: #c4b5fd;
}

.sidebar-footer {
  position: relative;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #272735;
}

.sidebar-user-menu-wrap {
  position: relative;
}

.sidebar-user-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: #fff;
  border: 1px solid #3f2a70;
  border-radius: 14px;
  background: #11131c;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sidebar-user-button:hover {
  background: #171522;
  border-color: #7c3aed;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 800;
}

.sidebar-user-avatar.large {
  width: 42px;
  height: 42px;
}

.sidebar-user-summary {
  min-width: 0;
}

.sidebar-user-summary small,
.sidebar-user-summary strong,
.sidebar-user-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-summary small {
  color: #7f8798;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sidebar-user-summary strong {
  margin-top: 2px;
  font-size: 12px;
}

.sidebar-user-summary span {
  display: none;
  margin-top: 2px;
  color: #8f96a8;
  font-size: 9px;
}

.sidebar-user-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 272px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #303345;
  border-radius: 17px;
  background: #151720;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transform-origin: bottom left;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 500;
}

.sidebar-user-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sidebar-user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
}

.sidebar-user-menu-header strong,
.sidebar-user-menu-header small {
  display: block;
}

.sidebar-user-menu-header small {
  margin-top: 3px;
  color: #8f96a8;
  font-size: 10px;
}

.sidebar-user-menu-divider {
  height: 1px;
  margin: 8px 4px;
  background: #2a2d3a;
}

.sidebar-user-menu-item {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px !important;
  padding: 8px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #dbe0eb !important;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.sidebar-user-menu-item:not(.disabled):hover {
  transform: translateX(2px);
  background: rgba(124,58,237,.11) !important;
  border-color: rgba(124,58,237,.2) !important;
}

.sidebar-user-menu-item.disabled {
  opacity: .72;
  cursor: default;
}

.sidebar-user-menu-item.danger {
  color: #fb7185 !important;
}

.sidebar-user-menu-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.sidebar-user-menu-copy strong,
.sidebar-user-menu-copy small {
  display: block;
}

.sidebar-user-menu-copy strong {
  font-size: 12px;
}

.sidebar-user-menu-copy small {
  margin-top: 2px;
  color: #7f8798;
  font-size: 9px;
}

.sidebar-soon-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(124,58,237,.18);
  color: #d8c6ff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-user-logout-form {
  margin: 0;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  box-sizing: border-box;
}

.dashboard-card-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(139,92,246,.33);
  border-radius: 14px;
  color: #a855f7;
  background: rgba(124,58,237,.12);
  box-shadow: 0 0 24px rgba(124,58,237,.12);
}

.dashboard-card-copy h2 {
  margin: 0 0 3px;
}

.dashboard-card-copy span {
  font-size: 12px;
}

.delete-account-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,4,12,.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .18s ease;
}

.delete-account-modal[hidden] {
  display: none;
}

.delete-account-modal.show {
  opacity: 1;
}

.delete-account-dialog {
  position: relative;
  width: min(540px, 94vw);
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid #dc2626;
  border-radius: 22px;
  background: #151720;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}

.delete-account-modal.show .delete-account-dialog {
  transform: translateY(0) scale(1);
}

.delete-account-dialog h2 {
  margin: 0 0 12px;
}

.delete-account-dialog > p {
  margin: 0 0 24px;
}

.delete-account-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.delete-account-check {
  width: fit-content;
  margin: 4px auto 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-size: 13px;
}

.delete-account-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.delete-account-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.delete-account-actions .btn {
  min-width: 150px;
}

.tiktok-settings-panel {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #303345;
  border-radius: 18px;
  background: #151720;
}

.tiktok-settings-panel[hidden] {
  display: none;
}

.tiktok-settings-heading,
.tiktok-settings-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tiktok-settings-heading h3 {
  margin: 0 0 6px;
}

.tiktok-settings-heading p,
.tiktok-settings-topline small {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}

.tiktok-settings-heading > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #3b1c69;
  color: #e9ddff;
  font-size: 10px;
}

.tiktok-settings-inner {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #303345;
  border-radius: 15px;
  background: #11131c;
}

.tiktok-creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #303345;
  border-radius: 13px;
  background: #0d0f16;
}

.tiktok-avatar-placeholder,
.tiktok-creator-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.tiktok-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7c3aed;
  color: white;
  font-weight: 800;
}

.tiktok-creator-card strong,
.tiktok-creator-card small {
  display: block;
}

.tiktok-creator-card small {
  margin-top: 3px;
  color: #aeb5c4;
}

.tiktok-privacy-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.tiktok-privacy-field select {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #303345;
  border-radius: 11px;
  background: #0d0f16;
  color: white;
  padding: 0 12px;
}

.tiktok-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 16px 0;
}

.tiktok-options-grid label,
.tiktok-rights-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #e5e7eb;
  font-size: 12px;
}

.tiktok-options-grid .wide {
  grid-column: 1 / -1;
}

.tiktok-options-grid input,
.tiktok-rights-confirmation input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.tiktok-rights-confirmation {
  padding: 13px;
  border: 1px solid #664910;
  border-radius: 12px;
  background: #281c0b;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .delete-account-actions {
    flex-direction: column;
  }

  .delete-account-actions .btn {
    width: 100%;
  }

  .tiktok-options-grid {
    grid-template-columns: 1fr;
  }

  .tiktok-options-grid .wide {
    grid-column: auto;
  }
}


/* =========================================================
   AUTOPOSTE V3.3.1 - HOTFIX VISUAL SEM ALTERAR BACKEND
========================================================= */

/* Login e cadastro */
.auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 15%, rgba(124,58,237,.18), transparent 34%),
    radial-gradient(circle at 80% 85%, rgba(168,85,247,.10), transparent 32%),
    #090a10;
  color: #f8fafc;
}

.auth-page-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.auth-card {
  width: min(440px, 100%);
  box-sizing: border-box;
  padding: 34px;
  border: 1px solid #2d3040;
  border-radius: 22px;
  background: rgba(20,22,31,.94);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.auth-card-signup {
  width: min(520px, 100%);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.auth-logo span:first-child {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  box-shadow: 0 0 24px rgba(124,58,237,.3);
}

.auth-card h1 {
  margin: 0 0 9px;
  font-size: 29px;
  line-height: 1.15;
}

.auth-description {
  margin: 0 0 24px;
  color: #aeb5c4;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-form label {
  margin-top: 6px;
  color: #d8dce6;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #343747;
  border-radius: 12px;
  outline: none;
  background: #0d0f16;
  color: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.auth-submit {
  min-height: 47px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#7c3aed,#8b5cf6);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(124,58,237,.24);
  transition: transform .16s ease, filter .16s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.auth-account-link {
  margin-top: 20px;
  color: #aeb5c4;
  text-align: center;
  font-size: 13px;
}

.auth-account-link a,
.auth-legal-footer a {
  color: #c4b5fd;
  text-decoration: none;
}

.auth-account-link a:hover,
.auth-legal-footer a:hover {
  color: #fff;
}

.auth-error {
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 11px;
  background: rgba(239,68,68,.10);
  color: #fca5a5;
  font-size: 13px;
}

.auth-legal-footer {
  min-height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 20px;
  border-top: 1px solid #252836;
  background: rgba(10,11,17,.88);
  color: #7f8798;
  font-size: 11px;
}

/* Modal de aceite do cadastro */
.signup-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,4,12,.76);
  backdrop-filter: blur(8px);
}

.signup-terms-modal[hidden] {
  display: none;
}

.signup-terms-card {
  width: min(560px, 94vw);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #36394a;
  border-radius: 20px;
  background: #151720;
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
}

.signup-terms-card h2 {
  margin: 10px 0;
}

.signup-terms-card p {
  color: #aeb5c4;
  line-height: 1.55;
}

.signup-terms-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(124,58,237,.18);
  color: #c4b5fd;
  font-size: 22px;
  font-weight: 800;
}

.signup-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: #e5e7eb;
}

.signup-consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.signup-terms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Rodapé interno */
.app-legal-footer {
  width: calc(100% - 190px);
  box-sizing: border-box;
  margin-left: 190px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 24px;
  border-top: 1px solid #252836;
  background: #0b0c12;
  color: #7f8798;
  font-size: 11px;
}

.app-legal-footer a {
  color: #969db0;
  text-decoration: none;
  transition: color .16s ease;
}

.app-legal-footer a:hover {
  color: #c4b5fd;
}

/* Páginas institucionais */
.legal-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(124,58,237,.14), transparent 35%),
    #090a10;
  color: #f8fafc;
}

.legal-shell {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #c4b5fd;
  text-decoration: none;
}

.legal-card {
  padding: 34px;
  border: 1px solid #2d3040;
  border-radius: 22px;
  background: #151720;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.legal-card h1 {
  margin-top: 0;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 17px;
}

.legal-card p {
  color: #b7bdca;
  line-height: 1.7;
}

.legal-updated {
  color: #7f8798 !important;
  font-size: 12px;
}

/* Corrige os botões que escapavam para a esquerda em Meus Posts */
.post-row-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 58px minmax(220px,1fr) minmax(115px,.35fr) minmax(105px,.25fr) minmax(190px,.5fr);
  align-items: center;
  gap: 14px;
  min-height: 106px;
  box-sizing: border-box;
  padding: 15px 16px;
}

.post-row-actions {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.post-row-actions form {
  margin: 0;
}

.post-row-actions .btn,
.post-row-actions button {
  min-width: 0;
  margin: 0 !important;
  white-space: nowrap;
}

.posts-table-list {
  display: grid;
  gap: 10px;
}

/* Mantém o menu acima do conteúdo e evita o card branco antigo */
.sidebar-user-button {
  background: #11131c !important;
  color: #fff !important;
}

.sidebar-user-menu {
  display: block;
}

.sidebar-user-menu:not(.show) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar-user-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Botões consistentes */
.btn,
button.btn,
a.btn {
  box-sizing: border-box;
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .app-legal-footer {
    width: 100%;
    margin-left: 0;
  }

  .post-row-card {
    grid-template-columns: 24px 58px minmax(0,1fr);
  }

  .post-row-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .auth-card {
    padding: 25px 20px;
  }

  .auth-legal-footer {
    flex-direction: column;
  }

  .signup-terms-actions {
    flex-direction: column;
  }
}



/* =========================================================
   AUTOPOSTE V3.3.2 - AJUSTES FINAIS
========================================================= */

/* Cadastro: popup premium e botões consistentes */
.signup-terms-card {
  padding: 30px !important;
  border-color: rgba(139,92,246,.32) !important;
  background: linear-gradient(180deg,#181a25,#13151e) !important;
}

.signup-terms-card a {
  color: #c4b5fd;
  font-weight: 750;
  text-decoration: none;
}

.signup-terms-card a:hover {
  color: #fff;
  text-decoration: underline;
}

.signup-consent-check {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background .18s ease, border-color .18s ease;
}

.signup-consent-check:hover {
  border-color: #303446;
  background: #11131b;
}

.signup-terms-actions button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
}

.signup-terms-actions button:first-child {
  background: #272a38;
  color: #e5e7eb;
}

.signup-terms-actions button:last-child {
  background: linear-gradient(135deg,#7c3aed,#8b5cf6);
  color: #fff;
}

.signup-terms-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

/* Menu do usuário: legibilidade */
.sidebar-user-summary small {
  color: #aeb5c4 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}

.sidebar-user-summary strong {
  font-size: 13px !important;
}

.sidebar-user-summary > span {
  color: #9da5b6 !important;
  font-size: 9.5px !important;
}

.sidebar-user-menu-header small,
.sidebar-user-menu-copy small {
  color: #9da5b6 !important;
  font-size: 10.5px !important;
  line-height: 1.35;
}

/* Rodapé realmente no fim da tela sem subir sobre o conteúdo */
body:not(.auth-page):not(.legal-page) {
  padding-bottom: 66px;
}

.app-legal-footer {
  position: fixed !important;
  left: 168px !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 900;
  min-height: 54px;
  background: rgba(10,11,17,.96) !important;
  backdrop-filter: blur(12px);
}

/* TikTok individual */
.single-tiktok-settings {
  margin: 18px 0 22px;
}

/* Massa: ferramentas sem a segunda seleção de redes */
.massa-tools-clean {
  grid-template-columns: 1fr !important;
}

.massa-controls-center {
  margin-inline: auto;
}

.massa-apply-buttons {
  justify-content: center;
}

/* Posts: progresso pequeno e ações abaixo dele, dentro do card */
.post-row-card {
  grid-template-columns: 24px 58px minmax(230px,1fr) 125px 105px minmax(210px,.55fr) !important;
  grid-template-areas:
    "check thumb main schedule status progress"
    "check thumb main schedule status actions";
  align-items: center !important;
}

.post-row-check { grid-area: check; }
.post-row-thumb { grid-area: thumb; }
.post-row-main { grid-area: main; }
.post-row-schedule { grid-area: schedule; }
.post-row-status { grid-area: status; }

.post-progress-text {
  grid-area: progress;
  max-width: 250px;
  color: #9aa3b5 !important;
  font-size: 11px !important;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.post-row-actions {
  grid-area: actions;
  justify-content: flex-start !important;
  align-self: end;
}

.post-row-actions .btn,
.post-row-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* Logs: sidebar e conteúdo nivelados */
.logs-filter-panel,
.logs-actions,
.logs-summary-grid,
.logs-list-panel {
  position: relative;
  z-index: 1;
}

.logs-filter-row {
  align-items: center;
}

.log-card {
  border: 1px solid #292d3b;
  border-radius: 14px;
  background: #12141d;
}

/* Diagnóstico: restaura cards e grids */
.diagnostic-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.diagnostic-card {
  min-height: 94px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 17px;
  border: 1px solid #2c3040;
  border-radius: 15px;
  background: #161822;
}

.diagnostic-card strong {
  color: #fff;
  font-size: 13px;
}

.diagnostic-card span {
  font-size: 12px;
}

.diagnostic-card.success {
  border-color: rgba(34,197,94,.24);
}

.diagnostic-card.warning {
  border-color: rgba(245,158,11,.26);
}

.diagnostic-card.error {
  border-color: rgba(239,68,68,.28);
}

.diagnostic-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}

.diagnostic-summary-grid > div {
  min-height: 82px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px;
  border: 1px solid #2b2f3e;
  border-radius: 13px;
  background: #0f1119;
}

.diagnostic-summary-grid strong {
  font-size: 20px;
  color: #fff;
}

.diagnostic-summary-grid span {
  color: #99a2b5;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .diagnostic-grid,
  .diagnostic-summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .post-row-card {
    grid-template-columns: 24px 58px minmax(0,1fr) 110px !important;
    grid-template-areas:
      "check thumb main status"
      "check thumb schedule progress"
      "check thumb actions actions";
  }
}

@media (max-width: 700px) {
  .app-legal-footer {
    left: 0 !important;
  }

  .diagnostic-grid,
  .diagnostic-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   AUTOPOSTE V3.3.3 - HOTFIX TIKTOK, MENU E POPUP
========================================================= */

.single-tiktok-settings:not([hidden]) {
  display: block !important;
  margin: 18px 0 22px;
}

.single-tiktok-settings[hidden] {
  display: none !important;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar > .sidebar-footer {
  margin-top: auto;
}

.delete-account-modal {
  z-index: 1000005 !important;
}

.delete-account-dialog {
  width: min(510px, calc(100vw - 32px));
}

.delete-account-check {
  align-items: center !important;
}

.delete-account-actions {
  justify-content: center !important;
}

body.modal-open {
  overflow: hidden;
}



/* =========================================================
   AUTOPOSTE V3.3.4 - POSTS, RODAPÉ E EXCLUSÃO
========================================================= */

/* Rodapé no final real da página; não acompanha a rolagem */
body:not(.auth-page):not(.legal-page) {
  min-height: 100vh;
  padding-bottom: 0 !important;
}

.content {
  min-height: calc(100vh - 58px);
  box-sizing: border-box;
  padding-bottom: 28px;
}

.app-legal-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: calc(100% - 168px) !important;
  margin: 0 0 0 168px !important;
  z-index: 20 !important;
}

/* Posts: mídia maior, clicável e bloco da direita mais afastado */
.post-row-card {
  grid-template-columns:
    24px
    86px
    minmax(260px, 1fr)
    128px
    110px
    minmax(245px, .62fr) !important;
  column-gap: 18px !important;
  min-height: 128px !important;
  padding: 16px 18px !important;
}

.post-row-thumb {
  width: 86px !important;
  height: 86px !important;
  border-radius: 13px !important;
  overflow: hidden;
}

.post-row-thumb-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #303445;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.post-row-thumb-link:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: #8b5cf6;
  box-shadow: 0 12px 26px rgba(124,58,237,.20);
}

.post-row-thumb img,
.post-row-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.post-row-schedule {
  justify-self: end;
  min-width: 118px;
}

.post-row-status {
  justify-self: center;
}

.post-progress-text,
.post-row-actions {
  margin-left: 12px;
}

.post-progress-text {
  justify-self: end;
  width: 100%;
  max-width: 270px;
}

.post-row-actions {
  justify-self: end;
  width: 100%;
  max-width: 270px;
}

/* Confirmação obrigatória sempre no fim do painel TikTok */
.tiktok-settings-inner {
  display: flex;
  flex-direction: column;
}

.tiktok-rights-confirmation {
  order: 99;
  margin-top: 14px !important;
}

/* Modal de exclusão com clique garantido */
.sidebar-user-menu-item[data-open-delete-account] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.delete-account-modal:not([hidden]) {
  display: grid !important;
}

.delete-account-modal[hidden] {
  display: none !important;
}

@media (max-width: 1150px) {
  .post-row-card {
    grid-template-columns:
      24px
      76px
      minmax(0,1fr)
      112px !important;
  }

  .post-row-thumb {
    width: 76px !important;
    height: 76px !important;
  }

  .post-progress-text,
  .post-row-actions {
    margin-left: 0;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .app-legal-footer {
    width: 100% !important;
    margin-left: 0 !important;
  }
}


/* =========================================================
   AUTOPOSTE V3.3.5 - ALINHAMENTO E QUINA DO RODAPÉ
========================================================= */

/* Une perfeitamente a borda do rodapé à lateral. */
.app-legal-footer {
  width: calc(100% - 167px) !important;
  margin-left: 167px !important;
  border-left: 1px solid #252836 !important;
}

/* Desloca o bloco operacional para a direita sem alterar o conteúdo. */
.post-row-card {
  grid-template-columns:
    24px
    86px
    minmax(360px, 1fr)
    132px
    112px
    minmax(270px, .58fr) !important;
}

.post-row-schedule,
.post-row-status,
.post-progress-text,
.post-row-actions {
  transform: translateX(34px);
}

.post-row-card:has(video) {
  cursor: default;
}

.post-row-card:has(video)::after {
  content: "Duplo clique para abrir";
  position: absolute;
  left: 126px;
  bottom: 8px;
  color: #70798c;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.post-row-card:has(video):hover::after {
  opacity: 1;
}

@media (max-width: 1250px) {
  .post-row-schedule,
  .post-row-status,
  .post-progress-text,
  .post-row-actions {
    transform: none;
  }
}

@media (max-width: 700px) {
  .app-legal-footer {
    width: 100% !important;
    margin-left: 0 !important;
    border-left: 0 !important;
  }
}


/* =========================================================
   AUTOPOSTE V3.3.6 - DASHBOARD, DOCUMENTOS E RODAPÉ
========================================================= */

/* A sidebar possui largura final de 180px. O rodapé começa exatamente
   depois dela, eliminando a quina e a faixa vazia entre os dois blocos. */
.app-legal-footer {
  width: calc(100% - 180px) !important;
  margin-left: 180px !important;
  border-left: 1px solid #272735 !important;
}

/* Cabeçalho da área de posts recentes */
.dashboard-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dashboard-recent-header h2 {
  margin: 0 0 5px;
}

.dashboard-recent-header p {
  margin: 0;
  font-size: 12px;
}

.dashboard-recent-header form {
  margin: 0;
  flex-shrink: 0;
}

.dashboard-clear-recent-btn {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #343748;
  background: #232633;
  color: #d9deea;
}

.dashboard-clear-recent-btn:hover {
  background: #2e3242;
  border-color: #494e65;
  transform: translateY(-1px);
}

/* Nome do conteúdo e botão de acesso ao registro completo */
.recent-post-main > strong {
  display: block;
  color: #ffffff;
  font-size: 14px !important;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-post-actions .btn {
  white-space: nowrap;
}

/* Destaca o post acessado pelo Dashboard */
.post-row-card:target {
  border-color: #8b5cf6 !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, .7),
    0 0 28px rgba(124, 58, 237, .22);
  animation: autoposteTargetPulse 1.1s ease;
}

@keyframes autoposteTargetPulse {
  0% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Documentos legais mais confortáveis para leitura */
.legal-card {
  line-height: 1.7;
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 9px;
}

.legal-card p {
  margin: 8px 0 12px;
}

.legal-card ul {
  margin: 10px 0 16px;
  padding-left: 24px;
  color: #b8c0d1;
}

.legal-card li {
  margin: 7px 0;
}

.legal-card a {
  color: #a78bfa;
}

@media (max-width: 700px) {
  .app-legal-footer {
    width: 100% !important;
    margin-left: 0 !important;
    border-left: 0 !important;
  }

  .dashboard-recent-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-recent-header form,
  .dashboard-clear-recent-btn {
    width: 100%;
  }
}


/* =========================================================
   AUTOPOSTE V3.3.7 - MENU SOBREPOSTO E LINKS DAS REDES
========================================================= */

/* O menu do usuário deve ficar acima do preview, vídeos e formulários. */
.sidebar {
  z-index: 1000000 !important;
  overflow: visible !important;
  isolation: auto !important;
}

.sidebar-main,
.sidebar-footer,
.sidebar-user-menu-wrap {
  overflow: visible !important;
}

.sidebar-user-menu {
  z-index: 1000500 !important;
}

.sidebar-user-menu.show {
  z-index: 1000500 !important;
}

/* Garante que os previews não criem uma camada acima da sidebar. */
.single-panel,
.single-editor-layout,
.single-preview-card,
.single-preview-box,
.phone-preview,
video,
img {
  position: relative;
  z-index: auto;
}

/* Seletor de rede para publicações feitas em mais de uma plataforma. */
.recent-network-modal[hidden] {
  display: none !important;
}

.recent-network-modal {
  position: fixed;
  inset: 0;
  z-index: 1200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 6, 13, .76);
  backdrop-filter: blur(9px);
}

.recent-network-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid #34384b;
  border-radius: 22px;
  background: #171923;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
}

.recent-network-dialog h2 {
  margin: 0 38px 7px 0;
}

.recent-network-dialog p {
  margin: 0 0 20px;
  font-size: 13px;
}

.recent-network-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #242735;
  color: #fff;
  cursor: pointer;
  font-size: 23px;
}

.recent-network-options {
  display: grid;
  gap: 10px;
}

.recent-network-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #34384b;
  border-radius: 13px;
  background: #0d0f17;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.recent-network-option:hover {
  transform: translateY(-1px);
  border-color: #7c3aed;
  background: #171329;
}

.recent-network-option.instagram::before,
.recent-network-option.facebook::before,
.recent-network-option.tiktok::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 999px;
}

.recent-network-option.instagram::before {
  background: #ec4899;
}

.recent-network-option.facebook::before {
  background: #3b82f6;
}

.recent-network-option.tiktok::before {
  background: #22d3ee;
}

.recent-network-picker-button {
  white-space: nowrap;
}

/* =========================================================
   CARROSSEL — AGENDAR POST
========================================================= */

#singleUploadBox.drag-active {
  border-color: #8b5cf6;
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.carousel-workspace {
  margin: 18px 0 28px;
  padding: 18px;
  border: 1px solid #2d3040;
  border-radius: 20px;
  background: linear-gradient(145deg, #12131d, #0f1018);
}

.carousel-workspace[hidden] {
  display: none !important;
}

.carousel-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.carousel-workspace-head strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.carousel-workspace-head small {
  color: #94a3b8;
}

.carousel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
}

.carousel-timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #5b21b6 #151722;
}

.carousel-empty {
  width: 100%;
  padding: 22px;
  border: 1px dashed #343749;
  border-radius: 16px;
  color: #94a3b8;
  text-align: center;
  background: #0c0d14;
}

.carousel-timeline-item {
  width: 142px;
  min-width: 142px;
  padding: 8px;
  border: 1px solid #2a2d3a;
  border-radius: 16px;
  background: #11131c;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.carousel-timeline-item:hover {
  transform: translateY(-2px);
  border-color: #4c3c71;
}

.carousel-timeline-item.active {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, .18), 0 12px 30px rgba(0, 0, 0, .24);
}

.carousel-timeline-item.dragging {
  opacity: .45;
  transform: scale(.97);
}

.carousel-timeline-item.drag-over {
  border-color: #a78bfa;
  box-shadow: inset 0 0 0 2px rgba(167, 139, 250, .35);
}

.carousel-thumb-main {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #06070c;
  cursor: pointer;
}

.carousel-thumb-main img,
.carousel-thumb-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-order,
.carousel-cover-badge {
  position: absolute;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.carousel-order {
  left: 8px;
  width: 25px;
  height: 25px;
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(255, 255, 255, .15);
}

.carousel-cover-badge {
  right: 8px;
  padding: 6px 8px;
  background: rgba(124, 58, 237, .88);
}

.carousel-thumb-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.carousel-thumb-actions button,
.carousel-preview-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #303344;
  border-radius: 10px;
  background: #191b27;
  color: #fff;
  cursor: pointer;
  transition: .2s ease;
}

.carousel-thumb-actions button {
  height: 32px;
}

.carousel-thumb-actions button:hover:not(:disabled),
.carousel-preview-controls button:hover:not(:disabled) {
  border-color: #7c3aed;
  background: #28144f;
}

.carousel-thumb-actions button.remove:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, .18);
}

.carousel-thumb-actions button:disabled {
  opacity: .35;
}

.carousel-thumb-actions svg,
.carousel-preview-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-preview-controls {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(7, 8, 17, .82);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.carousel-preview-controls[hidden] {
  display: none !important;
}

.carousel-preview-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.carousel-preview-controls span {
  min-width: 48px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.single-round-networks label.network-disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.5);
}

.single-round-networks label.network-disabled::after {
  content: "Indisponível para carrossel";
  margin-left: 8px;
  color: #94a3b8;
  font-size: 10px;
}

@media (max-width: 760px) {
  .carousel-workspace {
    padding: 14px;
  }

  .carousel-workspace-head {
    align-items: flex-start;
  }

  .carousel-timeline-item {
    width: 126px;
    min-width: 126px;
  }

  .carousel-thumb-main {
    height: 136px;
  }
}


/* =========================
   CARROSSEL EM MASSA — 3 TIMELINES
========================= */

.bulk-carousel-workspace[hidden],
#bulkStandardWorkspace[hidden],
#bulkStandardUploadBox[hidden] {
  display: none !important;
}

.bulk-carousel-workspace {
  margin: 22px 0;
}

.bulk-carousel-notice {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: 14px;
  background: rgba(124, 58, 237, .09);
  color: #b9c5dc;
  font-size: 13px;
  line-height: 1.55;
}

.bulk-carousel-notice strong {
  color: #c4b5fd;
}

.bulk-carousel-rows {
  display: grid;
  gap: 18px;
}

.bulk-carousel-row {
  padding: 18px;
  border: 1px solid #2d3142;
  border-radius: 20px;
  background: #11131c;
}

.bulk-carousel-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bulk-carousel-row-head strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.bulk-carousel-row-head small {
  display: block;
  margin-top: 4px;
  color: #8f9bb3;
}

.bulk-carousel-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, .16);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
}

.bulk-carousel-dropzone {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #4b5167;
  border-radius: 15px;
  background: #0b0c13;
  color: #cbd5e1;
  cursor: pointer;
  transition: .2s ease;
}

.bulk-carousel-dropzone:hover,
.bulk-carousel-dropzone.dragging {
  border-color: #8b5cf6;
  background: rgba(124, 58, 237, .1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.bulk-carousel-dropzone small {
  color: #77839a;
}

.bulk-carousel-timeline {
  display: flex;
  gap: 12px;
  min-height: 168px;
  margin-top: 14px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid #252a3a;
  border-radius: 16px;
  background: #090a10;
}

.bulk-carousel-empty {
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f7b91;
  font-size: 13px;
}

.bulk-carousel-item {
  position: relative;
  width: 132px;
  min-width: 132px;
  padding: 8px;
  border: 1px solid #303549;
  border-radius: 14px;
  background: #151722;
  cursor: grab;
  transition: .2s ease;
}

.bulk-carousel-item.dragging {
  opacity: .45;
  transform: scale(.97);
}

.bulk-carousel-media {
  width: 100%;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: #05060b;
}

.bulk-carousel-media img,
.bulk-carousel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bulk-carousel-order,
.bulk-carousel-cover {
  position: absolute;
  top: 13px;
  z-index: 3;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.bulk-carousel-order {
  left: 13px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #7c3aed;
  color: #fff;
}

.bulk-carousel-cover {
  right: 13px;
  padding: 4px 7px;
  background: rgba(15, 23, 42, .88);
  color: #c4b5fd;
}

.bulk-carousel-item-name {
  margin: 7px 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-carousel-item-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.bulk-carousel-item-actions button {
  height: 28px;
  border: 1px solid #34394e;
  border-radius: 8px;
  background: #202335;
  color: #fff;
  cursor: pointer;
}

.bulk-carousel-item-actions button:hover:not(:disabled) {
  background: #34215e;
  border-color: #7c3aed;
}

.bulk-carousel-item-actions button.danger {
  background: rgba(239, 68, 68, .15);
  color: #f87171;
}

.bulk-carousel-item-actions button:disabled {
  opacity: .35;
}

.bulk-carousel-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px;
  gap: 10px;
  margin-top: 14px;
  align-items: start;
}

.bulk-carousel-fields textarea {
  min-height: 70px;
  margin: 0;
  resize: vertical;
}

.bulk-carousel-fields input {
  margin: 0;
}

.massa-round-networks label.network-disabled {
  opacity: .42;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .bulk-carousel-fields {
    grid-template-columns: 1fr;
  }

  .bulk-carousel-row-head {
    align-items: flex-start;
  }
}

/* =========================================================
   CONTAS PREMIUM + SAÚDE DAS CONEXÕES
========================================================= */
.premium-account-switch {
  position: relative;
  padding: 0;
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 246, .18), transparent 42%),
    linear-gradient(145deg, rgba(24, 24, 36, .98), rgba(12, 12, 20, .98));
  box-shadow: 0 14px 35px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: visible;
}

.premium-account-button {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.premium-account-button:hover {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, .09);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .16);
}

.premium-account-avatar-wrap,
.premium-profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.premium-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .34);
}

.premium-account-fallback {
  background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #ec4899);
  color: #fff;
  font-weight: 800;
}

.premium-account-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #15151f;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12), 0 0 12px rgba(34, 197, 94, .8);
  animation: premiumOnlinePulse 2.4s ease-in-out infinite;
}

@keyframes premiumOnlinePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.84); opacity: .76; }
}

.premium-account-copy,
.premium-profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.premium-account-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.premium-account-topline strong,
.premium-profile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
  font-size: 13px;
}

.premium-account-copy small,
.premium-profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8f9bb3;
  font-size: 10px;
  line-height: 1.3;
}

.premium-active-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #86efac !important;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .22);
  font-size: 9px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.premium-chevron {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd !important;
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(139, 92, 246, .2);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.premium-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-account-button:hover .premium-chevron {
  color: #fff !important;
  background: rgba(124, 58, 237, .28);
}

.premium-account-button[aria-expanded="true"] .premium-chevron {
  transform: rotate(180deg);
  color: #fff !important;
  background: #6d28d9;
}

.premium-profile-menu {
  width: 310px;
  left: 0;
  top: calc(100% + 10px);
  padding: 10px;
  border-radius: 18px;
  background: rgba(18, 18, 28, .98);
  border: 1px solid rgba(139, 92, 246, .25);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px);
  transform-origin: top left;
}

.premium-profile-menu.show {
  animation: premiumMenuIn .2s ease both;
}

@keyframes premiumMenuIn {
  from { opacity: 0; transform: translateY(-7px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.premium-profile-menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 10px;
  color: #e2e8f0;
}

.premium-profile-menu-title span { font-size: 12px; font-weight: 800; }
.premium-profile-menu-title small { color: #64748b; font-size: 10px; }

.premium-profile-list {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 5px;
}

.premium-profile-menu form { margin: 0; }

.premium-profile-option {
  width: 100%;
  min-height: 58px;
  padding: 8px;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  border-radius: 13px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #fff !important;
  text-align: left !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.premium-profile-option:hover {
  transform: translateX(2px);
  background: rgba(124, 58, 237, .1) !important;
  border-color: rgba(139, 92, 246, .18) !important;
}

.premium-profile-option.is-active {
  background: linear-gradient(90deg, rgba(124, 58, 237, .19), rgba(124, 58, 237, .04)) !important;
  border-color: rgba(139, 92, 246, .3) !important;
}

.premium-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.premium-profile-check,
.premium-profile-arrow {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.premium-profile-check {
  color: #fff !important;
  background: #7c3aed;
  box-shadow: 0 5px 14px rgba(124, 58, 237, .35);
}

.premium-profile-arrow { color: #64748b !important; font-size: 19px !important; }

.premium-create-account {
  margin: 9px 0 0 !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  border-radius: 13px !important;
  border: 1px dashed rgba(139, 92, 246, .32);
  background: rgba(124, 58, 237, .06);
  color: #ddd6fe !important;
}

.premium-create-account > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, .18);
  font-size: 18px;
}

.premium-create-account > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.premium-create-account strong { font-size: 11px; }
.premium-create-account small { color: #7c89a2; font-size: 9px; }

.connection-security-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(245, 158, 11, .12), rgba(124, 58, 237, .05));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.connection-security-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: #d97706;
  font-weight: 900;
}

.connection-security-copy { display: flex; flex-direction: column; gap: 3px; }
.connection-security-copy strong { color: #f8fafc; font-size: 13px; }
.connection-security-copy small { color: #aab5c8; font-size: 11px; }
.connection-security-alert a {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, .16);
  color: #fde68a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

/* Chevron moderno dos cards de conta na tela Contas */
.account-item summary .account-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(139, 92, 246, .2);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.account-item[open] summary .account-arrow {
  transform: rotate(180deg);
  color: #fff;
  background: #6d28d9;
}

.account-item summary:hover .account-arrow {
  color: #fff;
  background: rgba(124, 58, 237, .26);
}

@media (max-width: 760px) {
  .premium-profile-menu { width: min(310px, calc(100vw - 28px)); }
  .connection-security-alert { grid-template-columns: 38px 1fr; }
  .connection-security-alert a { grid-column: 1 / -1; text-align: center; }
}


/* =========================================================
   CORREÇÃO 24H + SIDEBAR AMPLA + PERFIL DO USUÁRIO
========================================================= */
:root { --autoposte-sidebar-width: 205px; }

.sidebar {
  width: var(--autoposte-sidebar-width) !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.content { margin-left: var(--autoposte-sidebar-width) !important; }
.app-legal-footer {
  width: calc(100% - var(--autoposte-sidebar-width)) !important;
  margin-left: var(--autoposte-sidebar-width) !important;
}
.sidebar a {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .005em;
}
.logo { font-weight: 800 !important; }

.premium-profile-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
}
.premium-profile-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.premium-profile-option,
.premium-profile-menu form { min-width: 0 !important; max-width: 100% !important; }
.premium-profile-menu { overflow: hidden !important; }
.premium-profile-copy { overflow: hidden; }

.sidebar-user-menu-wrap {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25,25,39,.98), rgba(13,13,22,.98));
  border: 1px solid rgba(139,92,246,.3);
  box-shadow: 0 14px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.sidebar-user-button {
  border: 0 !important;
  background: transparent !important;
  border-radius: 17px !important;
}
.sidebar-user-button:hover { background: rgba(124,58,237,.09) !important; }
.sidebar-user-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.sidebar-user-avatar.large.editable {
  position: relative; cursor: pointer; overflow: hidden;
  box-shadow: 0 8px 22px rgba(124,58,237,.28);
}
.sidebar-avatar-upload-form { margin: 0; flex: 0 0 auto; }
.avatar-edit-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,16,.68); color: #fff; font-size: 18px; opacity: 0;
  transition: opacity .18s ease;
}
.sidebar-user-avatar.large.editable:hover .avatar-edit-overlay { opacity: 1; }

@media (max-width: 900px) {
  :root { --autoposte-sidebar-width: 0px; }
}


/* RECONEXÃO INTELIGENTE POR CONTA */
.account-card-2.account-needs-reconnect {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .10), 0 18px 42px rgba(0, 0, 0, .22);
}
.account-card-2.account-needs-reconnect > summary {
  background: linear-gradient(135deg, rgba(245, 158, 11, .07), transparent 42%);
}
.reconnect-pill {
  background: rgba(245, 158, 11, .14) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, .30);
}
.social-box-2.social-box-reconnect {
  border-color: rgba(245, 158, 11, .55);
  background: linear-gradient(145deg, rgba(245, 158, 11, .08), rgba(16, 16, 23, .96));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .06);
}
.social-box-2.social-box-reconnect .social-box-head-2 strong::after {
  content: " • atenção";
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
}


/* PACK PREMIUM UI V3 — identidade visual e editor de avatar */
.sidebar-user-menu-wrap {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,58,237,.16), transparent 38%),
    linear-gradient(145deg, rgba(24,24,38,.98), rgba(12,12,21,.99)) !important;
  border: 1px solid rgba(139,92,246,.42) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.055) !important;
}
.sidebar-user-button {
  min-height: 64px !important;
  padding: 10px 11px !important;
  gap: 10px !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
}
.sidebar-user-button:hover { transform: translateY(-1px); background: rgba(124,58,237,.11) !important; }
.sidebar-user-button .modern-chevron {
  width: 30px; height: 30px; min-width: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #d8c8ff !important; background: rgba(124,58,237,.18);
  border: 1px solid rgba(139,92,246,.28); transition: .2s ease;
}
.sidebar-user-button .modern-chevron svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-user-button[aria-expanded="true"] .modern-chevron { transform: rotate(180deg); background: #7c3aed; color: #fff !important; box-shadow: 0 8px 20px rgba(124,58,237,.34); }
.sidebar-user-summary { min-width: 0; }
.sidebar-user-summary strong, .sidebar-user-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.premium-profile-menu, .premium-profile-list { overflow-x: hidden !important; }
.premium-profile-menu * { box-sizing: border-box; }

body.avatar-editor-open { overflow: hidden; }
.avatar-crop-overlay {
  position: fixed; inset: 0; z-index: 1000005; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(3,3,10,.82); backdrop-filter: blur(14px);
}
.avatar-crop-overlay[hidden] { display: none !important; }
.avatar-crop-card {
  width: min(900px, 96vw); max-height: 94vh; overflow-y: auto;
  border: 1px solid rgba(139,92,246,.38); border-radius: 26px; padding: 24px;
  background: linear-gradient(145deg, #191925, #0e0e17); box-shadow: 0 34px 100px rgba(0,0,0,.66);
}
.avatar-crop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.avatar-crop-kicker { color: #a78bfa; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.avatar-crop-header h2 { margin: 6px 0 8px; font-size: 25px; }
.avatar-crop-header p { margin: 0; font-size: 13px; }
.avatar-crop-close { width: 38px; height: 38px; border-radius: 12px; border: 1px solid #343449; background: #151520; color: #fff; font-size: 25px; cursor: pointer; }
.avatar-crop-body { display: grid; grid-template-columns: minmax(300px, 1fr) 250px; gap: 24px; align-items: center; }
.avatar-crop-stage { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 24px; overflow: hidden; cursor: grab; touch-action: none; background: #090910; border: 1px solid #343449; }
.avatar-crop-stage:active { cursor: grabbing; }
.avatar-crop-stage canvas { width: 100%; height: 100%; display: block; }
.avatar-crop-guide { position: absolute; inset: 8%; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 0 0 999px rgba(4,4,10,.42); pointer-events: none; }
.avatar-crop-drag-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 11px; border-radius: 999px; background: rgba(7,7,14,.74); color: #fff; font-size: 11px; pointer-events: none; white-space: nowrap; }
.avatar-crop-controls { display: grid; gap: 18px; }
.avatar-crop-controls label span { display: block; margin-bottom: 8px; font-weight: 700; color: #e8e5f5; }
.avatar-crop-controls input[type="range"] { width: 100%; accent-color: #7c3aed; }
.avatar-crop-actions-mini { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
.avatar-crop-actions-mini button { min-height: 42px; border-radius: 12px; border: 1px solid #343449; color: #fff; background: #14141f; cursor: pointer; font-weight: 700; }
.avatar-crop-actions-mini button:hover { border-color: #7c3aed; background: rgba(124,58,237,.13); }
.avatar-preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avatar-preview-pair > div { text-align: center; color: #a7a7bb; font-size: 11px; }
.avatar-preview-pair canvas { width: 96px; height: 96px; max-width: 100%; display: block; margin: 7px auto 0; border-radius: 18px; border: 1px solid #343449; }
.avatar-preview-pair canvas.round { border-radius: 50%; }
.avatar-crop-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
@media (max-width: 760px) {
  .avatar-crop-body { grid-template-columns: 1fr; }
  .avatar-crop-controls { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* =========================
   BLOCO 1 — CONTA E E-MAIL
========================= */
.auth-password-wrap{position:relative}.auth-password-wrap input{padding-right:52px}.auth-password-toggle{position:absolute;right:8px;top:8px;width:38px;height:38px;border:0;border-radius:10px;background:#242433;color:#c9c9d7;cursor:pointer}.auth-password-toggle:hover,.auth-password-toggle.is-visible{background:#37205f;color:#fff}.auth-forgot{text-align:right;margin:-4px 0 16px}.auth-forgot a{color:#a78bfa;text-decoration:none;font-size:13px}.auth-success{border:1px solid rgba(34,197,94,.35);background:rgba(34,197,94,.1);color:#86efac;border-radius:12px;padding:13px 14px;margin:14px 0}.password-requirements{display:flex;flex-wrap:wrap;gap:7px;margin:-5px 0 14px}.password-requirements span{font-size:11px;padding:6px 8px;border-radius:999px;background:#242433;color:#85859a}.password-requirements span.ok{background:rgba(34,197,94,.14);color:#4ade80}.password-match{font-size:12px;margin:-5px 0 14px;min-height:15px}.password-match.ok{color:#4ade80}.password-match.error{color:#f87171}.email-verification-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,rgba(124,58,237,.22),rgba(88,28,135,.12));border:1px solid rgba(139,92,246,.45);border-radius:16px;padding:18px 20px;margin-bottom:22px}.email-verification-banner strong{font-size:16px}.email-verification-banner p{margin:5px 0 0}.email-action-icon{width:58px;height:58px;display:grid;place-items:center;margin:10px auto 20px;border-radius:18px;background:rgba(124,58,237,.16);border:1px solid rgba(139,92,246,.4);font-size:28px}.email-action-icon.success{color:#4ade80;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.35)}.email-action-icon.error{color:#f87171;background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.35)}.action-result-card{text-align:center}.action-link{display:block;text-decoration:none;text-align:center;margin-top:22px}.danger-auth-submit{background:linear-gradient(135deg,#dc2626,#ef4444)}.deletion-confirm-card{text-align:center}.delete-account-password-label{display:block;margin:14px 0 7px;color:#d8d8e5;font-size:13px}.delete-account-dialog #deleteAccountPassword{margin-bottom:14px}
@media(max-width:720px){.email-verification-banner{align-items:flex-start;flex-direction:column}.email-verification-banner .btn{width:100%;text-align:center;box-sizing:border-box}}

/* POLIMENTO BLOCO 1 */
.auth-password-wrap{display:flex;align-items:center;position:relative}.auth-password-wrap input{margin-bottom:14px;padding-right:54px!important}.auth-password-toggle{top:50%!important;right:8px!important;transform:translateY(calc(-50% - 7px));display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important}.auth-eye-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.auth-submit,.auth-modal-primary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px;text-align:center!important;line-height:1.2}.auth-submit.is-processing{cursor:wait;opacity:.92}.auth-submit-spinner{width:16px;height:16px;flex:0 0 16px;border:2px solid rgba(255,255,255,.38);border-top-color:#fff;border-radius:50%;animation:authSpin .75s linear infinite}@keyframes authSpin{to{transform:rotate(360deg)}}.email-verification-card{max-width:440px}.email-verification-card .email-action-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.email-resend-hint{margin:14px 0 18px;color:#aaa8bb;font-size:12px;line-height:1.55}.verification-actions{display:grid;grid-template-columns:1fr;gap:11px;margin-top:22px}.verification-actions .action-link{margin:0;width:100%;box-sizing:border-box}.verification-resend-form{margin:0}.auth-secondary-action{width:100%;min-height:48px;border:1px solid rgba(139,92,246,.42);border-radius:12px;background:rgba(124,58,237,.10);color:#d9caff;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}.auth-secondary-action:hover:not(:disabled){background:rgba(124,58,237,.20);border-color:rgba(167,139,250,.65)}.auth-secondary-action:disabled{cursor:not-allowed;opacity:.52}.resend-countdown{font-variant-numeric:tabular-nums}.action-result-card .action-link{min-height:48px;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding-top:0!important;padding-bottom:0!important}.sidebar-user-summary-clean{flex:1;min-width:0;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}.sidebar-user-summary-clean strong{width:100%;margin:0!important;line-height:1.25!important;text-align:center!important;font-size:14px!important}


/* BLOCO 2 FIX 1 */
.sidebar-user-menu-wrap { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden !important; }
.sidebar-user-button { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; padding-right: 8px !important; }
.sidebar-user-summary { flex: 1 1 auto !important; min-width: 0 !important; text-align: left; }
.sidebar-user-button .modern-chevron { flex: 0 0 28px !important; width: 28px !important; min-width: 28px !important; height: 28px !important; margin-left: auto !important; transform: translateX(-1px); }
.sidebar-user-button[aria-expanded="true"] .modern-chevron { transform: translateX(-1px) rotate(180deg) !important; }
.account-email-popup-overlay { position: fixed; inset: 0; z-index: 1000010; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(3,3,10,.82); backdrop-filter:blur(12px); }
.account-email-popup { position:relative; width:min(460px,94vw); padding:32px; text-align:center; border-radius:24px; border:1px solid rgba(139,92,246,.42); background:linear-gradient(145deg,#191925,#0e0e17); box-shadow:0 34px 100px rgba(0,0,0,.65); }
.account-email-popup-close { position:absolute; top:13px; right:15px; border:0; background:transparent; color:#9ca3af; font-size:25px; cursor:pointer; }
.account-email-popup-icon { width:62px; height:62px; margin:0 auto 20px; display:flex; align-items:center; justify-content:center; border-radius:18px; background:rgba(124,58,237,.18); border:1px solid rgba(139,92,246,.45); font-size:27px; }
.account-email-popup h2 { margin:0 0 12px; font-size:27px; }
.account-email-popup p { margin:0 0 12px; line-height:1.6; }
.account-email-popup small { display:block; margin:0 0 22px; color:#a9a9bb; }
.account-email-popup form { margin:0; }
.account-email-resend, .account-email-back { width:100%; margin-top:10px; text-align:center; justify-content:center; }
.account-email-resend:disabled { opacity:.58; cursor:not-allowed; }
.infra-monitor-panel { margin-top:24px; padding:24px; border-radius:20px; border:1px solid #2b2b3a; background:#171720; }
.infra-monitor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.infra-monitor-head h2 { margin:0 0 6px; }.infra-monitor-head p{margin:0}.infra-live-badge{padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.12);color:#86efac;font-size:11px;font-weight:800;border:1px solid rgba(34,197,94,.25)}
.infra-monitor-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.infra-monitor-grid article{padding:16px;border-radius:15px;background:#101017;border:1px solid #2b2b3a}.infra-monitor-grid span,.infra-monitor-grid small{display:block;color:#9ca3af;font-size:12px}.infra-monitor-grid strong{display:block;margin:8px 0 5px;font-size:20px;color:#fff}.infra-alert-list{display:grid;gap:9px;margin-top:16px}.infra-alert{display:flex;justify-content:space-between;gap:16px;padding:13px 15px;border-radius:13px;background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.25)}.infra-alert.critico{background:rgba(239,68,68,.09);border-color:rgba(239,68,68,.3)}.infra-alert span{color:#cbd5e1}.infra-all-good{margin-top:16px;padding:14px;border-radius:13px;background:rgba(34,197,94,.09);border:1px solid rgba(34,197,94,.24);color:#86efac}@media(max-width:1100px){.infra-monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.infra-monitor-grid{grid-template-columns:1fr}.infra-monitor-head{flex-direction:column}}

/* ===== MENU INFERIOR DO USUÁRIO — FIX DEFINITIVO ===== */

.sidebar {
  overflow: visible !important;
  z-index: 1000 !important;
}

.sidebar-main,
.sidebar-footer,
.sidebar-user-menu-wrap {
  overflow: visible !important;
}

.sidebar-footer {
  position: relative !important;
  z-index: 1005 !important;
}

.sidebar-user-menu-wrap {
  position: relative !important;
  width: 100% !important;
  z-index: 1010 !important;
}

.sidebar-user-button {
  position: relative !important;
  z-index: 1012 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.sidebar-user-menu {
  position: absolute !important;
  left: 0 !important;
  bottom: calc(100% + 12px) !important;
  width: min(320px, calc(100vw - 32px)) !important;
  z-index: 999999 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  transform: translateY(10px) scale(.98) !important;
  transition:
    opacity .2s ease,
    visibility .2s ease,
    transform .2s ease !important;
}

.sidebar-user-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.sidebar-user-button[aria-expanded="true"] .modern-chevron {
  transform: rotate(180deg) !important;
}

.modern-chevron {
  transition: transform .2s ease !important;
  flex: 0 0 auto !important;
}

.content {
  position: relative !important;
  z-index: 1 !important;
}

/* ===== FIM MENU INFERIOR ===== */
\n\n/* =========================================================\n   AUTOPOSTE RC1 - CORREÇÕES DE POSTS E EDITAR/REAGENDAR\n========================================================= */\n.single-form-actions {\n  display: grid;\n  gap: 12px;\n  margin-top: 12px;\n}\n.single-form-actions form { margin: 0; }\n.single-form-actions .btn { width: 100%; box-sizing: border-box; }\n\n.post-row-card {\n  grid-template-columns: 24px 92px minmax(330px, 1fr) 148px 126px minmax(305px, .66fr) !important;\n  column-gap: 20px !important;\n  min-height: 132px !important;\n}\n.post-row-schedule,\n.post-row-status,\n.post-progress-text,\n.post-row-actions {\n  transform: translateX(44px) !important;\n}\n.post-row-schedule span,\n.post-row-destination,\n.post-row-main small,\n.post-progress-text {\n  font-size: 12px !important;\n  line-height: 1.4 !important;\n}\n.post-row-schedule strong { font-size: 14px !important; }\n.post-row-schedule small { font-size: 13px !important; }\n.post-progress-text {\n  min-height: 18px;\n  max-width: 305px !important;\n  text-align: right;\n  align-self: center;\n}\n.post-row-actions {\n  max-width: 305px !important;\n  display: grid !important;\n  grid-template-columns: repeat(4, minmax(64px, 1fr));\n  gap: 9px !important;\n  align-items: center;\n}\n.post-row-actions form { width: 100%; margin: 0; }\n.post-row-actions .btn,\n.post-row-actions button {\n  width: 100% !important;\n  min-width: 64px !important;\n  min-height: 38px !important;\n  padding: 10px 12px !important;\n  font-size: 12px !important;\n  display: inline-flex !important;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  white-space: nowrap;\n}\n@media (max-width: 1400px) {\n  .post-row-card {\n    grid-template-columns: 24px 82px minmax(260px,1fr) 128px 112px minmax(270px,.66fr) !important;\n  }\n  .post-row-schedule, .post-row-status, .post-progress-text, .post-row-actions {\n    transform: translateX(18px) !important;\n  }\n}\n@media (max-width: 1250px) {\n  .post-row-schedule, .post-row-status, .post-progress-text, .post-row-actions { transform: none !important; }\n  .post-row-actions { grid-template-columns: repeat(2,minmax(92px,1fr)); }\n}\n
/* =========================================================
   AUTOPOSTE RC1.1 - ALINHAMENTO FINAL DOS CARDS "MEUS POSTS"
========================================================= */
.post-row-card {
  grid-template-columns: 24px 92px minmax(330px, 1fr) 150px 138px minmax(360px, .78fr) !important;
  column-gap: 22px !important;
  min-height: 132px !important;
  align-items: center !important;
}

.post-row-schedule,
.post-row-status,
.post-progress-text,
.post-row-actions {
  align-self: center !important;
  transform: translateX(72px) !important;
}

.post-row-schedule {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 52px !important;
}

.post-row-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
}

.post-row-status .status {
  min-width: 106px !important;
  min-height: 38px !important;
  padding: 9px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.post-progress-text {
  min-height: 20px !important;
  max-width: 360px !important;
  text-align: right !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.post-row-actions {
  width: 100% !important;
  max-width: 360px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(78px, 1fr)) !important;
  gap: 10px !important;
  align-items: center !important;
}

.post-row-actions form {
  width: 100% !important;
  margin: 0 !important;
}

.post-row-actions .btn,
.post-row-actions button {
  width: 100% !important;
  min-width: 78px !important;
  min-height: 42px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

@media (max-width: 1500px) {
  .post-row-card {
    grid-template-columns: 24px 86px minmax(280px, 1fr) 136px 120px minmax(330px, .74fr) !important;
  }

  .post-row-schedule,
  .post-row-status,
  .post-progress-text,
  .post-row-actions {
    transform: translateX(36px) !important;
  }

  .post-row-actions {
    grid-template-columns: repeat(4, minmax(72px, 1fr)) !important;
  }
}

@media (max-width: 1280px) {
  .post-row-schedule,
  .post-row-status,
  .post-progress-text,
  .post-row-actions {
    transform: none !important;
  }

  .post-row-actions {
    grid-template-columns: repeat(2, minmax(100px, 1fr)) !important;
    max-width: 300px !important;
  }
}

/* =========================================================
   AUTOPOSTE RC1.2 - CARDS: AÇÕES COMPACTAS E PROGRESSO LEGÍVEL
========================================================= */
.post-row-card {
  display: grid !important;
  grid-template-columns: 24px 92px minmax(320px, 1fr) 148px 126px minmax(320px, 390px) !important;
  grid-template-rows: minmax(24px, auto) minmax(42px, auto) !important;
  grid-template-areas:
    "check thumb main schedule status progress"
    "check thumb main schedule status actions" !important;
  column-gap: 20px !important;
  row-gap: 8px !important;
  min-height: 128px !important;
  align-items: center !important;
}

.post-row-check { grid-area: check !important; }
.post-row-thumb { grid-area: thumb !important; }
.post-row-main { grid-area: main !important; }
.post-row-schedule { grid-area: schedule !important; }
.post-row-status { grid-area: status !important; }
.post-progress-text { grid-area: progress !important; }
.post-row-actions { grid-area: actions !important; }

.post-row-schedule,
.post-row-status,
.post-progress-text,
.post-row-actions {
  transform: none !important;
  align-self: center !important;
}

.post-row-schedule,
.post-row-status {
  min-height: 54px !important;
  display: flex !important;
  justify-content: center !important;
}

.post-row-schedule {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.post-row-status {
  align-items: center !important;
}

.post-row-status .status {
  min-width: 104px !important;
  min-height: 36px !important;
  padding: 8px 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.post-progress-text {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 24px !important;
  padding: 0 2px !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  text-align: left !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #b9d7ff !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.post-progress-text:empty {
  visibility: hidden !important;
}

.post-row-actions {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 9px !important;
}

.post-row-actions form {
  width: auto !important;
  margin: 0 !important;
}

.post-row-actions .btn,
.post-row-actions button {
  width: auto !important;
  min-width: 72px !important;
  min-height: 38px !important;
  padding: 9px 13px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

@media (max-width: 1500px) {
  .post-row-card {
    grid-template-columns: 24px 86px minmax(260px, 1fr) 132px 116px minmax(300px, 350px) !important;
    column-gap: 16px !important;
  }

  .post-row-actions {
    gap: 7px !important;
  }

  .post-row-actions .btn,
  .post-row-actions button {
    min-width: 68px !important;
    padding-inline: 11px !important;
  }
}

@media (max-width: 1250px) {
  .post-row-card {
    grid-template-columns: 24px 82px minmax(230px, 1fr) 124px 108px minmax(270px, 320px) !important;
  }

  .post-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(92px, 1fr)) !important;
  }

  .post-row-actions form,
  .post-row-actions .btn,
  .post-row-actions button {
    width: 100% !important;
  }
}

/* Autoposte Security 2.0 */
.auth-card-2fa { max-width: 510px; }
.security-badge { display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border:1px solid rgba(167,139,250,.35);border-radius:999px;background:rgba(124,58,237,.14);color:#c4b5fd;font-size:12px;font-weight:800;letter-spacing:.02em;margin-bottom:14px; }
.two-factor-code { text-align:center!important;font-size:30px!important;font-weight:800!important;letter-spacing:.32em!important;padding-left:.32em!important;font-variant-numeric:tabular-nums; }
.trusted-device-check { display:flex!important;gap:11px!important;align-items:flex-start!important;padding:14px!important;border:1px solid #303041;border-radius:12px;background:#12121a;cursor:pointer; }
.trusted-device-check input { width:18px!important;height:18px!important;margin-top:2px!important;flex:0 0 auto; }
.trusted-device-check span { display:flex;flex-direction:column;gap:4px;color:#e7e7ef; }
.trusted-device-check small { color:#9292a5;font-size:12px;line-height:1.45; }
.two-factor-resend { margin-top:14px;text-align:center; }
.two-factor-resend button { border:0;background:transparent;color:#b99cff;font-weight:700;cursor:pointer;padding:8px 12px; }
.settings-success { border:1px solid rgba(34,197,94,.38);background:rgba(34,197,94,.10);color:#bbf7d0;padding:13px 16px;border-radius:12px;margin-bottom:18px; }
.security-settings-card { margin-top:18px; }
.settings-section-heading { display:flex;justify-content:space-between;gap:20px;align-items:flex-start; }
.settings-section-heading h2 { margin:0 0 8px; }
.security-status { display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap; }
.security-status.active { color:#bbf7d0;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.32); }
.security-info-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0; }
.security-info-grid article { display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #2d2d3b;border-radius:14px;background:#121219; }
.security-info-grid article strong { color:#fff; }
.security-info-grid article span { color:#9d9daf;font-size:13px;line-height:1.5; }
.trusted-devices-panel { border-top:1px solid #2d2d3b;padding-top:20px; }
.trusted-device-list { display:flex;flex-direction:column;gap:10px;margin:14px 0; }
.trusted-device-row { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px;border:1px solid #2d2d3b;border-radius:12px;background:#111118; }
.trusted-device-row div { display:flex;flex-direction:column;gap:5px; }
.trusted-device-row span:not(.security-status), .empty-security-state { color:#9292a5;font-size:12px; }
@media(max-width:760px){.security-info-grid{grid-template-columns:1fr}.settings-section-heading,.trusted-device-row{flex-direction:column;align-items:flex-start}}

/* Autoposte Email Reliability v2 */
.delivery-status{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;margin:16px 0;border:1px solid #313145;border-radius:12px;background:#111119;color:#e8e8f2}
.delivery-status .delivery-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:#a78bfa;box-shadow:0 0 0 5px rgba(167,139,250,.10);flex:0 0 auto}
.delivery-status div{display:flex;flex-direction:column;gap:4px}.delivery-status small{color:#a7a7ba;line-height:1.45}
.delivery-status.entregue{border-color:rgba(34,197,94,.38);background:rgba(34,197,94,.08)}.delivery-status.entregue .delivery-dot{background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12)}
.delivery-status.diferido{border-color:rgba(245,158,11,.42);background:rgba(245,158,11,.08)}.delivery-status.diferido .delivery-dot{background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.12)}
.delivery-status.rejeitado,.delivery-status.expirado{border-color:rgba(239,68,68,.42);background:rgba(239,68,68,.08)}.delivery-status.rejeitado .delivery-dot,.delivery-status.expirado .delivery-dot{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.12)}
.two-factor-resend button:disabled{opacity:.5;cursor:not-allowed}.two-factor-help{color:#8f8fa3;font-size:12px;line-height:1.55;text-align:center;margin:10px 0 0}

.connection-health-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin:0 0 18px;border:1px solid rgba(139,92,246,.25);border-radius:16px;background:rgba(24,18,45,.72)}
.connection-health-toolbar div{display:flex;flex-direction:column;gap:4px}.connection-health-toolbar small{color:#a8a3b8}.account-needs-reconnect{border-color:#f59e0b!important;box-shadow:0 0 0 1px rgba(245,158,11,.2),0 12px 35px rgba(245,158,11,.08)}.social-box-reconnect{border-color:#f59e0b!important;background:rgba(245,158,11,.06)!important}.reconnect-pill{background:rgba(245,158,11,.14)!important;color:#fbbf24!important;border:1px solid rgba(245,158,11,.3)!important}

/* Monitor de conexões — layout v2 */
.connection-health-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 18px;margin:0 0 18px;border:1px solid rgba(139,92,246,.25);border-radius:16px;background:rgba(24,18,45,.72)}
.connection-health-toolbar-top .connection-health-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.connection-health-toolbar-top .connection-health-copy strong{font-size:15px;line-height:1.25;color:#f4f1ff}
.connection-health-toolbar-top .connection-health-copy small{display:block;color:#aaa4bd;line-height:1.4}
.connection-health-toolbar-top .connection-health-form{flex:0 0 auto;margin:0}
.connection-health-toolbar-top .connection-health-form .btn{white-space:nowrap}
.connection-health-result{position:relative;z-index:1;margin:0 0 12px}
.connection-security-alert{position:relative;z-index:2;margin-bottom:12px}
@media (max-width:760px){.connection-health-toolbar-top{align-items:stretch;flex-direction:column;gap:14px}.connection-health-toolbar-top .connection-health-form,.connection-health-toolbar-top .connection-health-form .btn{width:100%}}


/* Alertas fecháveis e sino moderno — M3 */
.dismissible-ui-card{position:relative;transition:opacity .18s ease,transform .18s ease,max-height .2s ease,margin .2s ease}
.dismissible-ui-card.is-dismissing{opacity:0;transform:translateY(-4px);pointer-events:none}
.ui-card-close{position:absolute;top:9px;right:10px;z-index:4;width:30px;height:30px;border:0;border-radius:10px;background:transparent;color:#b8b3c7;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.ui-card-close:hover{background:rgba(255,255,255,.08);color:#fff;transform:scale(1.04)}
.ui-card-close:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}
.connection-security-alert.dismissible-ui-card{padding-right:58px}
.connection-health-result.dismissible-ui-card{padding-right:52px;display:flex;align-items:center;min-height:46px}
.connection-security-alert .ui-card-close{color:#f5ad35}
.connection-security-alert .ui-card-close:hover{background:rgba(245,158,11,.14);color:#ffd48a}
.connection-health-result .ui-card-close{color:#61e99d}
.connection-health-result .ui-card-close:hover{background:rgba(16,185,129,.14);color:#a7f3d0}
.modern-notification-bell{overflow:visible;background:linear-gradient(145deg,#171927,#10121b);border-color:#2d3149;box-shadow:0 10px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,background .17s ease}
.modern-notification-bell:hover{transform:translateY(-1px);border-color:rgba(139,92,246,.62);background:linear-gradient(145deg,#1d2031,#141622);box-shadow:0 12px 30px rgba(0,0,0,.3),0 0 0 3px rgba(139,92,246,.08)}
.modern-notification-bell:active{transform:translateY(0) scale(.97)}
.modern-notification-bell:focus-visible{outline:2px solid #8b5cf6;outline-offset:3px}
.modern-bell-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:#f4f1ff}
.modern-bell-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 8px rgba(139,92,246,.24))}
.modern-notification-bell:hover .modern-bell-icon{color:#cbb8ff}
.modern-notification-bell:hover .modern-bell-icon svg{animation:autoposte-bell-ring .5s ease}
@keyframes autoposte-bell-ring{0%,100%{transform:rotate(0)}25%{transform:rotate(7deg)}55%{transform:rotate(-6deg)}75%{transform:rotate(3deg)}}
.modern-notification-bell .bell-badge{top:-5px;right:-5px;border:2px solid #0d0f17;box-shadow:0 4px 12px rgba(239,68,68,.38)}
@media (prefers-reduced-motion:reduce){.dismissible-ui-card,.modern-notification-bell{transition:none}.modern-notification-bell:hover .modern-bell-icon svg{animation:none}}


/* Alertas persistentes sem espaço residual — M4 */
.dismissible-ui-card{will-change:opacity,transform,max-height,margin,padding}
.dismissible-ui-card.is-dismissing{opacity:0;transform:translateY(-5px);pointer-events:none}
.connection-security-alert,.connection-health-result{transition:opacity .18s ease,transform .18s ease,max-height .22s ease,margin .22s ease,padding .22s ease,border-width .22s ease}

.plan-limit-banner{position:relative;z-index:20;margin:18px 28px 0;padding:14px 18px;border:1px solid #9a6b10;border-radius:12px;background:#2b210c;color:#ffd978;font-weight:700}.plan-limit-banner a{color:#fff;text-decoration:underline;margin-left:6px}


/* === AUTOPOSTE RC4 POLIMENTO CONSOLIDADO === */
.rc4-page{padding:34px 34px 80px;max-width:1480px;margin-left:var(--sidebar-width,176px);min-height:100vh}
.rc4-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid #332a43;border-radius:20px;background:linear-gradient(135deg,#22152e,#15131d);margin-bottom:18px}
.rc4-hero span,.rc4-card-head span{font-size:11px;font-weight:800;letter-spacing:.14em;color:#b478ff}.rc4-hero h1{font-size:32px;margin:7px 0}.rc4-hero p{color:#bdb4cf;margin:0;max-width:720px}
.rc4-btn{border:1px solid #4b3b62;background:#211a2c;color:#fff;border-radius:11px;padding:11px 16px;font-weight:800;cursor:pointer}.rc4-btn.primary{background:linear-gradient(135deg,#7c2ff1,#9747ff);border-color:transparent}.rc4-btn.small{padding:8px 11px;font-size:12px}.rc4-btn.full{width:100%;margin-top:8px}
.rc4-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:0 0 18px}.rc4-summary article{padding:18px;border:1px solid #322b3e;border-radius:16px;background:#17141f}.rc4-summary span,.rc4-summary small{display:block;color:#aaa0ba;font-size:12px}.rc4-summary strong{display:block;font-size:28px;margin:6px 0;color:#fff}
.rc4-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,.8fr);gap:16px}.rc4-card{border:1px solid #332b40;border-radius:18px;background:#17141f;padding:20px}.rc4-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.rc4-card-head h2{margin:5px 0 0;font-size:22px}
.rc4-notifications{display:grid;gap:10px}.rc4-notifications article{display:flex;align-items:flex-start;gap:13px;padding:15px;border:1px solid #30283c;border-radius:14px;background:#121018}.rc4-notifications article.unread{border-color:#8241d1;background:#1e1329}.rc4-notification-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#35204b;color:#c897ff;font-weight:900;flex:0 0 auto}.rc4-notifications p{margin:5px 0;color:#b9b0c8}.rc4-notifications small{color:#81768f}.rc4-text-link{display:inline-block;margin-top:7px;color:#bf8cff}.rc4-empty{text-align:center;padding:44px 20px;color:#a99db8}.rc4-empty span{display:grid;width:42px;height:42px;place-items:center;margin:0 auto 12px;border-radius:50%;background:#213927;color:#74e694}.rc4-empty strong{display:block;color:#fff}.rc4-empty p{margin:6px 0}
.rc4-preferences{display:grid;gap:8px}.rc4-preferences label{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px;border:1px solid #30283c;border-radius:12px;background:#121018}.rc4-preferences label span{display:grid}.rc4-preferences label small{color:#91869e;margin-top:3px}.rc4-preferences input{width:20px;height:20px;accent-color:#8b3df2}.rc4-preferences label.disabled{opacity:.55}.rc4-preferences hr{border:0;border-top:1px solid #342b40;width:100%}.rc4-notice{padding:12px 15px;border:1px solid #6c4a20;background:#2a2114;border-radius:12px;margin-bottom:14px}
.rc4-subscription,.rc4-affiliate-full{margin-left:var(--sidebar-width,176px)!important;max-width:none!important;padding-left:34px!important;padding-right:34px!important}.rc4-settings{margin-left:var(--sidebar-width,176px);max-width:none;padding:24px 30px 80px}.security-status.paused{color:#ffc857;background:#302512;border:1px solid #6a4f16;padding:7px 10px;border-radius:999px;font-weight:800}
.sidebar-user-menu{max-height:min(74vh,680px)!important;overflow:auto!important}.sidebar-user-menu-item{min-height:52px}.sidebar-user-menu-copy small{line-height:1.3}.m4-smart-banner{pointer-events:auto}
@media(max-width:900px){.rc4-page,.rc4-subscription,.rc4-affiliate-full,.rc4-settings{margin-left:0!important;padding:20px!important}.rc4-grid{grid-template-columns:1fr}.rc4-hero{flex-direction:column}.rc4-hero h1{font-size:27px}}

/* =========================================================
   AUTOPOSTE RC4.1 — MENU E CARD DE PLANO UNIFICADOS
========================================================= */
.sidebar-footer {
  margin-top: auto !important;
  padding: 0 !important;
  border-top: 0 !important;
}
.sidebar-user-menu-wrap {
  width: 100% !important;
  overflow: visible !important;
  border: 1px solid rgba(139,92,246,.34) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg,rgba(25,23,36,.98),rgba(13,13,22,.98)) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.sidebar-user-button {
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 15px 15px 0 0 !important;
  background: transparent !important;
}
.sidebar-user-summary span {
  display: block !important;
  margin-top: 3px !important;
  color: #8f88a0 !important;
  font-size: 9px !important;
}
.m4-smart-banner {
  display: none;
}
.m4-smart-banner.show.inline-card {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-height: 48px;
  margin: 0 8px 8px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(139,92,246,.18) !important;
  border-radius: 11px !important;
  background: rgba(124,58,237,.07) !important;
  box-shadow: none !important;
  cursor: pointer;
  box-sizing: border-box;
}
.m4-smart-banner.show.inline-card:hover {
  background: rgba(124,58,237,.14) !important;
  border-color: rgba(167,139,250,.38) !important;
}
.m4-plan-inline-main,
.m4-plan-inline-usage {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.m4-plan-inline-label {
  color: #b784ff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.m4-plan-inline-main strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}
.m4-plan-inline-usage {
  text-align: right;
  color: #aaa2b6;
  font-size: 8px;
  line-height: 1.35;
}
.m4-plan-inline-arrow {
  color: #b784ff;
  font-size: 21px;
  line-height: 1;
}
.sidebar-user-menu {
  width: 300px !important;
  max-height: min(76vh,700px) !important;
  padding: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.sidebar-user-menu-header {
  min-height: 48px;
  box-sizing: border-box;
}
.sidebar-user-menu-item {
  min-height: 50px !important;
  grid-template-columns: 22px minmax(0,1fr) !important;
}
.sidebar-user-menu-copy {
  min-width: 0;
}
.sidebar-user-menu-copy strong,
.sidebar-user-menu-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
@media (max-width: 900px) {
  .sidebar-user-menu {
    width: min(310px,calc(100vw - 28px)) !important;
  }
}
