/* === ESTILOS DO CONFIGURADOR & DASHBOARD ZYO === */
:root {
  --admin-bg: #0b0f14;
  --admin-card: #151b23;
  --admin-card-border: #262f3d;
  --admin-accent: #a855f7;
  --admin-accent-hover: #9333ea;
  --admin-text: #f0f6fc;
  --admin-text-muted: #8b949e;
  --input-bg: #0d1117;
  --input-border: #30363d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sora', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--admin-accent);
}

body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header do Painel */
.admin-navbar {
  height: 68px;
  background: rgba(21, 27, 35, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: default;
  user-select: none;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--admin-accent);
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.7rem;
  background: rgba(168, 85, 247, 0.15);
  color: var(--admin-accent);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--admin-text);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #21262d;
  border-color: #8b949e;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--admin-accent), #6366f1);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

/* Upload Widgets Modernos (Sem URLs Feias) */
.upload-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--input-bg);
  border: 1px dashed #30363d;
  padding: 16px;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.upload-widget:hover {
  border-color: var(--admin-accent);
}

.btn-upload-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-upload-primary:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(99, 102, 241, 0.3));
  border-color: var(--admin-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

.btn-upload-primary i {
  font-size: 1.3rem;
  color: var(--admin-accent);
}

.media-preview-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  border: 1px solid #21262d;
  padding: 10px 14px;
  border-radius: 10px;
  gap: 12px;
}

.media-preview-bar.active {
  display: flex;
}

.preview-thumb {
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar-thumb {
  width: 48px;
  border-radius: 50%;
}

.banner-thumb {
  width: 120px;
}

.bg-thumb {
  width: 90px;
}

.btn-remove-media {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: #f85149;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-remove-media:hover {
  background: rgba(248, 81, 73, 0.25);
  border-color: #f85149;
}

/* Modal de Login Opcional (Para fidelidade com zyo.se/login) */
#loginModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-accent);
  font-size: 1.4rem;
}

/* Layout Split: Configurações + Live Preview */
.app-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
  padding: 28px;
  gap: 28px;
  transition: grid-template-columns 0.2s ease;
}

.app-container.admin-mode {
  grid-template-columns: 1fr;
  max-width: 1600px;
}

.app-container.admin-mode .preview-panel {
  display: none !important;
}

/* Painel de Abas e Formulários */
.editor-panel {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tabs-header {
  display: flex;
  background: #0d1117;
  border-bottom: 1px solid var(--admin-card-border);
  padding: 6px 12px 0;
  gap: 6px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--admin-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--admin-text);
}

.tab-btn.active {
  color: var(--admin-accent);
  border-bottom-color: var(--admin-accent);
  background: rgba(168, 85, 247, 0.05);
}

/* Aba Exclusiva de Admin */
.tab-btn-admin {
  position: relative;
  color: #f87171 !important;
}

.tab-btn-admin:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.tab-btn-admin.active {
  color: #ef4444 !important;
  border-bottom-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

/* Botão Admin no Top Header (ao lado do Resetar e do Perfil) */
.btn-header-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-header-admin i {
  font-size: 1.12rem;
  color: #ef4444;
}

.btn-header-admin:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-header-admin.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26), rgba(185, 28, 28, 0.38));
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.admin-badge-mini,
.btn-header-admin .admin-badge-mini,
.tab-btn-admin .admin-badge-mini {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.tabs-content {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.tab-pane.active {
  display: flex;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input, .form-textarea, .form-select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--admin-text);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Presets de Cor Neon */
.color-presets {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  align-items: center;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #fff;
  transform: scale(1.1);
}

/* Lista de Links Customizados no Editor */
.links-editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-editor-item {
  background: #0d1117;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.link-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-num-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--admin-accent);
  background: rgba(168, 85, 247, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-remove-link {
  background: none;
  border: none;
  color: #f85149;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 4px;
}

.btn-remove-link:hover {
  background: rgba(248, 81, 73, 0.15);
}

/* Painel de Live Preview */
.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 96px;
  height: fit-content;
}

.preview-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-mockup-frame {
  width: 100%;
  max-width: 440px;
  height: 780px;
  background: #000;
  border: 8px solid #1c2128;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.2);
  position: relative;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Alerta Toast de Sucesso */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #238636;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsividade */
@media (max-width: 1080px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    margin-top: 30px;
  }
}

/* ========================================================
   SELETOR DE BOXICONS & QUICK PICKER
   ======================================================== */
.icon-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.icon-live-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--admin-accent);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-input-wrap .form-input {
  flex: 1;
}

.btn-open-icon-picker {
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--admin-card-border);
  color: var(--admin-text);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-open-icon-picker.full-width {
  flex: 1;
  justify-content: center;
  height: 42px;
  font-size: 0.85rem;
  background: rgba(22, 27, 34, 0.95);
  border: 1px dashed var(--admin-card-border);
}

.btn-open-icon-picker:hover {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.btn-open-icon-picker.full-width:hover {
  border-style: solid;
}

/* Status Badge Emoji Picker */
.status-badge-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.btn-status-emoji-picker {
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--admin-card-border);
  color: #fff;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-status-emoji-picker:hover {
  border-color: var(--admin-accent);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.btn-status-emoji-picker i {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.status-emoji-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-height: 250px;
  overflow-y: auto;
  background: #11161d;
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(168, 85, 247, 0.2);
  padding: 10px;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  z-index: 100;
}

.status-emoji-dropdown.open {
  display: grid;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.emoji-grid-item,
.emoji-opt {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  background: #161b22;
  border: 1px solid rgba(48, 54, 61, 0.5);
  transition: all 0.15s ease;
  user-select: none;
}

.emoji-grid-item:hover,
.emoji-opt:hover {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  transform: scale(1.15);
}

.emoji-grid-item.active {
  border-color: var(--admin-accent);
  background: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.icon-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quick-icon-chip {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-icon-chip i {
  font-size: 0.95rem;
  color: var(--admin-accent);
}

.quick-icon-chip:hover, .quick-icon-chip.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--admin-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Modal do Seletor de Boxicons */
.icon-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.icon-picker-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.icon-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.icon-picker-card {
  position: relative;
  width: 90%;
  max-width: 680px;
  max-height: 82vh;
  background: #11161d;
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(168, 85, 247, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.icon-picker-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-card-border);
}

.icon-picker-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.icon-picker-title i {
  color: var(--admin-accent);
  font-size: 1.3rem;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.icon-picker-search-wrap {
  position: relative;
  padding: 14px 24px;
  background: #0d1117;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
}

.icon-picker-search-wrap i {
  position: absolute;
  left: 38px;
  font-size: 1.2rem;
  color: var(--admin-text-muted);
}

.icon-picker-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  background: #161b22;
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.icon-picker-search-wrap input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.icon-category-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  background: #11161d;
  border-bottom: 1px solid var(--admin-card-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.icon-category-tabs::-webkit-scrollbar {
  display: none;
}

.icon-cat-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid var(--admin-card-border);
  color: var(--admin-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.icon-cat-btn:hover, .icon-cat-btn.active {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
}

.icon-picker-grid {
  padding: 18px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
  max-height: 420px;
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: #161b22;
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  gap: 6px;
}

.icon-grid-item i {
  font-size: 1.6rem;
  color: #e5e7eb;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-grid-item span {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
}

.icon-grid-item:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--admin-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.icon-grid-item:hover i {
  color: var(--admin-accent);
  transform: scale(1.15);
}

.icon-grid-item:hover span {
  color: #fff;
}

.icon-grid-item.selected {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
}

.icon-grid-item.selected i, .icon-grid-item.selected span {
  color: #fff;
}

/* ========================================================
   SISTEMA DE CARGOS & PAINEL ADMINISTRATIVO (CONFIGURATOR)
   ======================================================== */

/* Badges de Cargos */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: default;
  user-select: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.role-badge i {
  font-size: 0.85rem;
  line-height: 1;
}

.role-badge-owner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(226, 232, 240, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.role-badge-owner i { color: #ffffff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)); }

.role-badge-admin {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(153, 27, 27, 0.3));
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}
.role-badge-admin i { color: #ef4444; }

.role-badge-premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.32));
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}
.role-badge-premium i { color: #fbbf24; }

.role-badge-verificado {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #bae6fd;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}
.role-badge-verificado i { color: #38bdf8; }

.role-badge-beta {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #e9d5ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}
.role-badge-beta i { color: #c084fc; }

.role-badge-parceiro {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}
.role-badge-parceiro i {
  color: #34d399;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.8));
}

.role-badge-bughunter,
.role-badge-bug_hunter {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.3));
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: #ffedd5;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}
.role-badge-bughunter i,
.role-badge-bug_hunter i { color: #fb923c; }

.role-badge-membro {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(71, 85, 105, 0.22));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.2);
}
.role-badge-membro i { color: #94a3b8; }

/* Box Overview de Cargos */
.roles-overview-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.roles-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.roles-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roles-title-group i {
  font-size: 1.8rem;
  color: var(--admin-accent);
}

.roles-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.roles-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.user-roles-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Grid de Cards de Cargos */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.role-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.25s ease;
  position: relative;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.role-card-owner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.role-card-owner:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.role-card-admin {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.role-card-admin:hover {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

.role-card-parceiro:hover {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.role-card-bughunter:hover {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.role-status-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
}

.role-status-chip.active {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

.role-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f3f4f6;
}

.role-card p {
  margin: 0;
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.45;
}

/* Painel Administrativo de Cargos */
.admin-roles-panel {
  background: rgba(168, 85, 247, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
}

.admin-panel-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(168, 85, 247, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
}

.admin-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-bar-title i {
  color: #ef4444;
  font-size: 1.15rem;
}

.admin-tag-indicator {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.admin-panel-body {
  padding: 20px;
}

.admin-panel-intro {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

/* Dashboard de Estatísticas do Admin */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-stat-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(22, 27, 34, 0.85);
  transform: translateY(-2px);
}

.admin-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.stat-icon-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.stat-icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.stat-icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 0.72rem;
  color: #8b949e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}

.admin-user-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-input-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 0 12px;
  gap: 8px;
}

.admin-search-input-wrap i {
  color: #8b949e;
  font-size: 1.05rem;
}

.admin-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  color: #fff;
  font-size: 0.82rem;
}

/* Tabela de Usuários */
.admin-users-table-wrap {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #30363d;
  background: #0d1117;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.admin-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  text-align: left;
}

.admin-users-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-users-table th {
  background: #161b22 !important; /* Totalmente sólido para nunca sobrepor texto */
  padding: 12px 14px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #30363d;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.admin-users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  vertical-align: middle;
  background: #0d1117;
}

.admin-users-table tr:hover td {
  background: #141922;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-cell img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  background: #1e293b;
}

.admin-slug-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  color: var(--admin-accent);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.admin-slug-link:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--admin-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Badge de Visualizações na Tabela Admin */
.admin-views-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  transition: all 0.2s ease;
}

.admin-views-badge:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.admin-views-badge i {
  font-size: 0.92rem;
  color: #38bdf8;
}

/* Botões de Ação na Tabela Admin */
.admin-actions-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-action-edit,
.btn-action-reset,
.btn-action-delete {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  user-select: none;
}

.btn-action-edit {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

.btn-action-edit:hover {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.btn-action-reset {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.btn-action-reset:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-action-delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.admin-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-edit-danger-actions,
.admin-edit-main-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card de Edição de Cargos */
.admin-edit-roles-card {
  margin-top: 18px;
  background: #11141a;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-edit-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-edit-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--admin-accent);
}

.admin-edit-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.admin-edit-slug {
  font-size: 0.78rem;
  font-family: monospace;
  color: #8b949e;
}

.btn-close-edit {
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 1.25rem;
  cursor: pointer;
}

.btn-close-edit:hover {
  color: #fff;
}

.admin-roles-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-role-toggle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-role-toggle-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-role-toggle-item.is-locked {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  filter: grayscale(0.2);
}

.admin-role-toggle-item.is-locked:hover {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.admin-role-toggle-item input[type="checkbox"] {
  display: none;
}

/* Switch Toggle para Exibir/Ocultar Cargos */
.roles-visibility-toggle-btn:hover {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  transform: translateY(-1px);
}

.roles-visibility-toggle-btn:active {
  transform: translateY(0);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #8b949e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-role-toggle-item input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
}

.admin-role-toggle-item input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✔";
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.role-desc-mini {
  margin-left: auto;
  font-size: 0.72rem;
  color: #8b949e;
}

.admin-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Timeline do Áudio */
.audio-timeline-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: background 0.04s linear;
}
.audio-timeline-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--admin-accent, #a855f7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 2px #fff;
  cursor: grab;
  border: 2px solid #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.audio-timeline-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
  box-shadow: 0 0 16px rgba(168, 85, 247, 1), 0 0 4px #ffffff;
}
.audio-timeline-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--admin-accent, #a855f7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  cursor: grab;
  border: 2px solid #ffffff;
}

/* ========================================================
   MODAL DE ESCOLHA DE RESET (CONTA TODA vs APENAS LINK)
   ======================================================== */
.reset-choice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: resetFadeIn 0.2s ease-out;
}

@keyframes resetFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.reset-choice-modal-box {
  background: #0f141c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reset-choice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.reset-choice-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reset-choice-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 1.5rem;
}

.reset-choice-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.reset-choice-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

.reset-choice-options {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reset-card-btn {
  background: #151b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.reset-card-btn:hover {
  transform: translateY(-2px);
  background: #1c2433;
}

.reset-card-link:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

.reset-card-all:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.18);
}

.reset-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.reset-card-icon.icon-blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.reset-card-icon.icon-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.reset-card-content {
  flex: 1;
}

.reset-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reset-card-title-row h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.reset-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reset-chip.chip-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.reset-chip.chip-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reset-card-content p {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.reset-card-arrow {
  font-size: 1.3rem;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.reset-card-btn:hover .reset-card-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

.reset-choice-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.01);
}

/* ========================================================
   MODAL DE EXCLUSÃO DE CONTA (DANGER THEME)
   ======================================================== */
.delete-modal-box {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.2);
}

.delete-modal-header {
  border-bottom-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}

.delete-icon-box {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}

.delete-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delete-target-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

.delete-target-user-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: #0d1117;
}

.delete-target-user-meta {
  flex: 1;
  min-width: 0;
}

.delete-warning-box {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
}

.delete-warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.delete-consequences-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delete-consequences-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.delete-consequences-list li i {
  color: #ef4444;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.delete-consequences-list li span {
  flex: 1;
  display: block;
  word-break: normal;
  text-align: left;
}

.delete-consequences-list li strong {
  color: #fca5a5;
  font-weight: 700;
}

.delete-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
}

.btn-danger-confirm {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-confirm:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-danger-confirm:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ========================================================
   MODAL DE VISUALIZAÇÕES (EXCLUSIVO OWNER)
   ======================================================== */
.btn-owner-op {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-owner-op:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-owner-op.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.btn-owner-quick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-owner-quick:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.btn-owner-quick-zero {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-owner-quick-zero:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
}

.btn-admin-edit-views {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.btn-admin-edit-views:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
  color: #fff;
  transform: scale(1.08);
}

.btn-action-views {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-views:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}



