﻿/* DarkToons — style.css (COMPLETO / PADRÃO FINAL) */

:root {
  /* Cores Padrão */
  --bg: #141414;
  --text: #ffffff;
  --muted: #888888;
  --stroke: rgba(255, 255, 255, 0.08);

  /* Pills do capítulo */
  --pill-bg: #262627;
  --pill-h: 28px; 
  --pill-radius: 8px; 

  --novo-bg: #22c565;
  --novo-text: #ffffff;

  /* Layout */
  --wrap-max: 700px;
  --gap: 5px;

  /* Card ratio (Proporção 2:3) */
  --card-r: 12px;
  --card-aspect-w: 2;
  --card-aspect-h: 3;
}

*{box-sizing:border-box}
html,body{min-height:100vh;}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

a{color:inherit;text-decoration:none}

/* =========================
   BASE, VARIÁVEIS E RESET (Cores globais, fontes, espaçamentos padrão e reset do HTML/Body)
========================= */
.dt-page{padding:18px 0 90px}

.dt-section-title{
  max-width:var(--wrap-max);
  margin:18px auto 10px;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dt-section-title h2{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.dt-section-title .dt-sub{
  font-size:12px;
  color:var(--muted);
}

.dt-section{
  max-width:var(--wrap-max);
  margin:0 auto;
  padding:0 10px;
}

/* =========================
   Grid 3
========================= */
.dt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: var(--gap);
}

/* =========================
   [01] CARD PADRÃO DE OBRAS (Cards de mangás proporção 2:3, capas, tags de status, pílulas de capítulos e carrossel)
========================= */
.dt-card{
  position:relative;
  display:block;
  border-radius:var(--card-r);
  background:transparent;
}

.dt-media{
  position:relative;
  width:100%;
  aspect-ratio: calc(var(--card-aspect-w) / var(--card-aspect-h));
  border-radius:var(--card-r);
  overflow:hidden;
  background:#0f0f0f;
  border:1px solid var(--stroke);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.dt-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
  object-position: center;
}

/* =========================
   Badge (Tags de Status)
========================= */
.dt-badges {
  position: absolute;
  top: 6px; 
  left: 6px;
  z-index: 3;
  display: flex;
  gap: 6px;
  max-width: calc(100% - 12px);
}

.dt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px; 
  border-radius: 4px; 
  background: rgba(0, 0, 0, 0.65); 
  backdrop-filter: blur(8px); 
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800; 
  font-size: 8px; 
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.dt-status-updating { background: rgba(34, 197, 101, 0.15); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.dt-status-hiatus { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.dt-status-finished { background: rgba(133, 32, 210, 0.20); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.4); }
.dt-status-canceled { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

/* =========================
   Card atualizado
========================= */
.dt-card-updated{display:flex;flex-direction:column;gap:8px}

.dt-chapters-row{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dt-chapter-pill {
  height: var(--pill-h);
  border-radius: var(--pill-radius);
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px; 
  border: 1px solid rgba(255,255,255,.06);
  gap: 4px;
}

.dt-chapter-left {
  font-weight: 900;
  letter-spacing: 0;
  font-size: 10px; 
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-chip-new {
  width: auto; 
  height: 18px; 
  border-radius: 4px;
  background: var(--novo-bg);
  color: var(--novo-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: 8px; 
  padding: 0 5px;
}

/* =========================
   Carousel
========================= */
.dt-carousel{ position:relative; width:100%; }

.dt-track{
  display:flex;
  gap:var(--gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:0;
  scrollbar-width:none;
}
.dt-track::-webkit-scrollbar{display:none}

.dt-track > .dt-card{
  flex:0 0 calc((100% - (var(--gap) * 2)) / 3);
  scroll-snap-align:start;
}

.dt-arrow{
  position:absolute;
  top:calc(var(--card-r) + 70px);
  transform:translateY(-50%);
  z-index:10;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(10px);
}
.dt-prev{left:6px}
.dt-next{right:6px}
.dt-arrow:hover{background:rgba(0,0,0,.50)}

/* ==========================================================================
   [02] NAVEGAÇÃO GERAL (Menu Topo PC, Menu Inferior Mobile e Sidebar)
   ========================================================================== */

@media (min-width: 769px) {
  .dt-topbar-mobile { display: none !important; }
  .dt-bottom-nav { display: none !important; }
}
@media (max-width: 768px) {
  .dt-topbar-desktop { display: none !important; }
}

/* --- 1. TOPBAR MOBILE --- */
.dt-topbar-mobile {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); background: rgba(20,20,20,.72);
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center; 
  padding: 10px 16px;
}
.dt-mobile-logo { height: 46px; object-fit: contain; }

/* --- 2. TOPBAR DESKTOP (FIXADO NO TOPO) --- */
.dt-topbar-desktop {
  position: fixed; /* Fixed não deixa nenhum espaço vazar! */
  top: 0; left: 0; width: 100%; z-index: 1000; 
  background: #0a0a0f; 
  border-bottom: 1px solid var(--stroke);
  height: 64px; 
}
body {
  padding-top: 64px; /* Empurra o site pra baixo pra compensar o menu fixo */
}
.dt-desk-inner {
  max-width: var(--wrap-max); 
  margin: 0 auto;
  padding: 0 10px;
  height: 100%; 
  display: flex; align-items: center; justify-content: space-between;
}
.dt-desk-left {
  display: flex; align-items: center;
  margin-right: 40px; 
}
.dt-desk-logo { height: 52px; object-fit: contain; }
.dt-desk-center { display: flex; gap: 28px; align-items: center; height: 100%; }
.dt-desk-link {
  position: relative;
  color: var(--muted); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: color 0.3s;
  text-decoration: none; height: 100%; 
}

/* Animação da Linha Branca na Base */
.dt-desk-link::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 3px; background: #ffffff; 
  transform: scaleX(0); transition: transform 0.3s ease;
  border-radius: 3px 3px 0 0;
}
.dt-desk-link:hover { color: #ffffff; }
.dt-desk-link:hover::after, .dt-desk-link.active::after { transform: scaleX(1); }
.dt-desk-link.active { color: #ffffff; } 

.dt-desk-right { display: flex; align-items: center; }
.dt-user-trigger {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; padding: 6px 12px; border-radius: 30px;
  transition: background 0.3s;
}
.dt-user-trigger:hover { background: rgba(255,255,255,0.05); }
.dt-desk-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dt-desk-name { font-size: 14px; font-weight: 700; color: #fff; }
.dt-desk-level { 
  background: #2a2a35; color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 8px;
}
.dt-desk-bell-box { position: relative; margin-left: 10px; }
.dt-desk-bell { font-size: 20px; color: var(--muted); }

/* Bolinha de Notificação Branca */
.dt-desk-notif-dot {
  position: absolute; top: 0; right: 0;
  width: 8px; height: 8px; background: #ffffff; 
  border-radius: 50%; border: 2px solid #0a0a0f;
}

/* --- 3. BOTTOM NAV MOBILE --- */
.dt-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #1a1a1a; border-top: 1px solid var(--stroke);
  border-radius: 24px 24px 0 0; 
  padding-bottom: env(safe-area-inset-bottom);
}
.dt-bottom-inner {
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: 10px 5px 15px 5px;
}
.dt-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 11px; text-decoration: none;
  background: none; border: none; cursor: pointer; flex: 1;
}
.dt-nav-item i { font-size: 22px; transition: transform 0.2s; }
.dt-nav-item:hover i { transform: translateY(-3px); }
.dt-nav-item.active { color: #ffffff; } 

/* O Botão Flutuante (Mais) */
.dt-nav-floating { transform: translateY(-12px); } /* Ajuste fino da altura */
.dt-floating-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff; color: #000000; /* Fundo branco e ícone preto, igual ao print */
  border: none; /* Tiramos a borda */
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* --- 4. SIDEBAR --- */
.dt-sidebar-overlay { 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); 
  z-index: 998; opacity: 0; visibility: hidden; 
  transition: all 0.3s ease;
  pointer-events: none; /* Ignora cliques quando escondido */
}
.dt-sidebar-overlay.active { 
  opacity: 1; visibility: visible; 
  pointer-events: auto; /* Reativa os cliques quando aparece */
  cursor: pointer; 
}
.dt-sidebar { position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: #1e1e24; z-index: 999; box-shadow: -5px 0 25px rgba(0,0,0,0.5); transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; overflow-x: hidden; }
.dt-sidebar.active { right: 0; }
.dt-sidebar-content { padding: 30px 20px; display: flex; flex-direction: column; min-height: 100%; }
.dt-sidebar-profile { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.dt-sidebar-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #8520D2; margin-bottom: 12px; }
.dt-sidebar-name { color: #fff; font-size: 22px; font-weight: 900; margin: 0 0 4px 0; }
.dt-sidebar-tag { color: #ffb800; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.dt-sidebar-menu { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px;}
.dt-side-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #2a2a35; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.dt-side-btn.ghost { background: transparent; color: var(--muted); }
.dt-side-btn i { font-size: 18px; }
.dt-side-btn:hover { background: #353542; color: #fff; }
.dt-sidebar-notifications { flex: 1; }
.dt-notif-header { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 15px;}
.dt-notif-dot-green { width: 8px; height: 8px; background: #22c565; border-radius: 50%; }
.dt-notif-card { display: flex; gap: 12px; background: #2a2a35; padding: 10px; border-radius: 12px; margin-bottom: 10px; }
.dt-notif-card img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.dt-notif-info { display: flex; flex-direction: column; justify-content: center; }
.dt-notif-info strong { color: #fff; font-size: 11px; text-transform: uppercase; margin-bottom: 4px; line-height: 1.2;}
.dt-notif-info .green-text { color: #22c565; font-size: 10px; font-weight: 800; }
.dt-notif-alert { background: #353542; color: #fff; font-size: 11px; font-weight: 600; padding: 12px; border-radius: 12px; text-align: center; margin-top: 10px; }
.dt-sidebar-footer { margin-top: 30px; text-align: center; }
.dt-sidebar-logo { max-width: 140px; filter: drop-shadow(0 0 10px rgba(133, 32, 210, 0.5)); }
/* Botão Fechar Sidebar */
.dt-close-btn {
  position: absolute; 
  top: 16px; 
  right: 16px;
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); 
  width: 32px; 
  height: 32px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer; 
  font-size: 14px; 
  transition: all 0.2s ease; 
  z-index: 10;
}
.dt-close-btn:hover { 
  background: #ef4444; /* Fica vermelho suave ao passar o mouse */
  color: #fff; 
  border-color: #ef4444; 
}

/* ====================================================
   [12] ANIMAÇÕES E GAMIFICAÇÃO (Efeitos visuais de RPG, como a animação do XP dourado flutuando e subindo na tela)
   ==================================================== */
@keyframes xpFloatUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -40px) scale(1.2); } /* Pula e cresce */
  50% { opacity: 1; transform: translate(-50%, -60px) scale(1); }   /* Estabiliza */
  100% { opacity: 0; transform: translate(-50%, -120px) scale(0.8); } /* Flutua alto e some */
}

.dt-xp-animated {
  position: fixed;
  bottom: 100px; /* Nasce logo acima da ilha */
  left: 50%;
  color: #ffb800; /* Dourado Premium */
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.8), 0 4px 5px rgba(0,0,0,1); /* Brilho neon */
  pointer-events: none;
  z-index: 9999;
  animation: xpFloatUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-xp-animated i { 
  font-size: 28px; 
  color: #fff; 
  text-shadow: 0 0 15px rgba(255, 184, 0, 1);
}

/* ==========================================================================
   [04] CARDS COMPACTOS HORIZONTAIS (Continue Lendo & Favoritas Atualizadas)
   ========================================================================== */

/* Trilha do Carrossel (Substitui o antigo Grid) */
.dt-compact-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Truque para o carrossel encostar na borda do celular, mas manter o respiro */
  margin: 0 -10px; 
  padding: 0 10px 15px 10px; 
}
.dt-compact-track::-webkit-scrollbar { display: none; }

/* O Card Horizontal */
.dt-card-horizontal {
  display: flex;
  background: #1e1e24;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 90px;
  text-decoration: none;
  /* Tamanho no Celular (Deixa um pedaço do próximo aparecendo) */
  flex: 0 0 85%; 
  scroll-snap-align: start;
}
.dt-card-horizontal:hover {
  transform: translateY(-3px);
  border-color: #8520D2;
}

/* Ajustes para Telas Maiores (Tablet e PC) */
@media (min-width: 600px) {
  .dt-compact-track { gap: 16px; margin: 0; padding: 0 0 10px 0; }
  .dt-card-horizontal { flex: 0 0 calc(50% - 8px); } /* 2 cards */
}
@media (min-width: 900px) {
  .dt-card-horizontal { flex: 0 0 calc(33.333% - 11px); } /* 3 cards cravados */
}

/* Capa Compacta */
.dt-ch-cover-wrapper {
  width: 65px;
  flex-shrink: 0;
  position: relative;
  background: #0f0f0f;
}
.dt-ch-cover { width: 100%; height: 100%; object-fit: cover; }

/* Área de Texto */
.dt-ch-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

/* Títulos e Textos */
.dt-ch-title {
  color: #fff; font-size: 14px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0 0 2px 0;
}
.dt-ch-meta {
  font-size: 11px; color: var(--muted); margin: 0; font-weight: 600;
}

/* Ação: Continue Lendo (Agora com cara de botão de verdade!) */
.dt-ch-action-resume {
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  background: #8520D2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  width: max-content;
  transition: background 0.2s;
}
.dt-card-horizontal:hover .dt-ch-action-resume {
  background: #9d3bf0; /* Dá um brilho quando passa o mouse */
}

/* Ação: Favoritas Atualizadas (Tag estilo botão) */
.dt-ch-lib-tag {
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  align-self: flex-start;
  letter-spacing: 0.5px;
  width: max-content;
}
/* ==========================================================================
   [06] PAGINAÇÃO (Estilo para os botões de páginas 1, 2, 3...)
   ========================================================================== */
.dt-pagination {
  display: flex; justify-content: center; gap: 8px; 
  margin-top: 36px; padding-bottom: 20px;
}
.dt-page-btn {
  width: 38px; height: 38px; 
  display: flex; align-items: center; justify-content: center; 
  background: #1e1e24; border-radius: 8px; 
  color: #fff; font-size: 14px; font-weight: 800; 
  transition: all 0.2s ease; 
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.dt-page-btn:hover { background: #353542; color: #fff; }
.dt-page-btn.active { background: #8520D2; border-color: #8520D2; color: #fff; }
.dt-page-dots {
  color: var(--muted); display: flex; align-items: flex-end; 
  padding-bottom: 8px; font-weight: 800;
}
/* ==========================================================================
   [07] TOP LEITORES (Definitivo, fluido e responsivo)
   ========================================================================== */
.dt-ranking-row {
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza todo o bloco na tela */
  gap: 12px; /* Um respiro seguro para o mobile */
  width: 100%; /* Pega a tela toda, sem travas */
  margin: 0;
  padding-bottom: 10px;
}

/* O container do Avatar */
.dt-rank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: #fff;
  flex-shrink: 1; /* Permite diminuir de leve se a tela do celular for muito pequena */
}

/* A imagem redondinha no Mobile */
.dt-rank-avatar {
  width: 50px; 
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* A pílula com o número */
.dt-rank-num {
  font-size: 11px;
  background: #1e1e24;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-10px);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.05);
}

/* A coroa */
.dt-rank-crown {
  font-size: 20px;
  position: absolute;
  top: -15px;
  z-index: 2;
}

/* ==============================
   MÁGICA PARA O DESKTOP (Telas Maiores)
============================== */
@media (min-width: 600px) {
  .dt-ranking-row { 
    gap: 30px; /* Bem mais espaço no PC, afinal, tela não falta! */
  } 
  .dt-rank-avatar { 
    width: 65px; 
    height: 65px; /* Cresce e fica bonitão no PC */
  } 
  .dt-rank-num { 
    font-size: 12px; 
    transform: translateY(-12px); 
  }
  .dt-rank-crown { 
    font-size: 22px; 
    top: -18px; 
  }
}
/* ==========================================
   BADGE DE NOTIFICAÇÃO E PERFIL MOBILE
   ========================================== */
.dt-center-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bolinha de Notificação Vermelha */
.dt-nav-badge {
  position: absolute; top: -4px; right: -8px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 900;
  padding: 2px 6px; border-radius: 10px; border: 2px solid #1e1e24; z-index: 2;
}

/* Esconde o texto do Perfil no Mobile */
.dt-nav-item.profile-nav { justify-content: center; }
.dt-nav-item.profile-nav span { display: none; }
.dt-nav-avatar-box {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); overflow: hidden; margin-top: 4px;
}
.dt-nav-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.dt-nav-item.profile-nav.active .dt-nav-avatar-box { border-color: #8520d2; }

/* ==========================================
   NOVO MENU MODAL (BOTTOM SHEET & NOTIFICAÇÕES)
   ========================================== */
.dt-bottom-sheet-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  z-index: 3000; display: flex; justify-content: center; align-items: flex-end; 
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.dt-bottom-sheet-overlay.active { opacity: 1; visibility: visible; }

.dt-bottom-sheet {
  background: #1e1e24; width: 100%; max-width: 700px; 
  border-radius: 24px 24px 0 0; padding: 16px 24px 40px 24px;
  transform: translateY(100%); transition: transform 0.3s ease;
  border-top: 1px solid rgba(133, 32, 210, 0.3); box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}
.dt-bottom-sheet-overlay.active .dt-bottom-sheet { transform: translateY(0); }

.dt-sheet-drag-handle {
  width: 40px; height: 5px; background: rgba(255,255,255,0.2);
  border-radius: 5px; margin: 0 auto 24px auto;
}

/* 1. Grid de 3 Botões */
.dt-sheet-quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px;
}
.dt-quick-btn {
  background: #121215; border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 10px; gap: 8px; text-decoration: none; color: #fff;
  transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.dt-quick-btn i { font-size: 28px; color: #fff; }
.dt-quick-btn span { font-size: 13px; font-weight: 600; }
.dt-quick-btn:hover { background: #1a1a1f; border-color: rgba(255,255,255,0.1); }

/* 2. Cabeçalho das Notificações */
.dt-sheet-notif-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dt-notif-title { font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.dt-notif-title i { font-size: 20px; }
.dt-notif-actions { display: flex; gap: 16px; }
.dt-notif-actions button {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 22px; cursor: pointer; padding: 0; transition: 0.2s;
}
.dt-notif-actions button:hover { color: #fff; }

/* 3. Lista de Notificações e Rolagem */
.dt-sheet-notif-list {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 350px; /* Limita o tamanho e ativa a rolagem */
  overflow-y: auto; padding-right: 5px; 
}
/* Barra de rolagem customizada */
.dt-sheet-notif-list::-webkit-scrollbar { width: 4px; }
.dt-sheet-notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* O Card da Notificação */
.dt-notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: transparent; border: 1px solid rgba(133, 32, 210, 0.4); 
  border-radius: 12px; padding: 14px 16px;
}
.dt-notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.dt-notif-dot.purple { background: #8520d2; box-shadow: 0 0 10px rgba(133, 32, 210, 0.6); }

.dt-notif-text { display: flex; flex-direction: column; gap: 4px; }
.dt-notif-text strong { color: #fff; font-size: 14px; font-weight: 700; }
.dt-notif-text p { margin: 0; color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.4; }

/* ==========================================
   CORREÇÃO DO ESPAÇO NO TOPO (MOBILE)
   ========================================== */
@media (max-width: 768px) {
  body { 
    padding-top: 0 !important; 
  }
  .dt-page { 
    padding-top: 5px; /* Mude de 15px para 5px (ou 0px se quiser encostar 100%) */
  }
}

/* ==========================================
   RODAPÉ PRINCIPAL (FOOTER)
   ========================================== */
.dt-main-footer {
  background: var(--bg); /* <-- A mágica da cor igual ao site está aqui! */
  border-top: 1px solid var(--stroke);
  padding: 60px 20px 30px 20px;
  margin-top: 60px;
  color: rgba(255,255,255,0.6);
}
.dt-footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Colunas alinhadas perfeitamente! */
  gap: 40px;
}

.dt-footer-col h4 {
  color: #fff; font-size: 15px; font-weight: 800;
  margin: 0 0 20px 0; text-transform: uppercase; letter-spacing: 0.5px;
}

.dt-footer-col p { font-size: 13px; line-height: 1.6; margin: 0 0 16px 0; }

.dt-footer-links { display: flex; flex-direction: column; gap: 12px; }

.dt-footer-links a {
  color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none;
  transition: color 0.2s; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.dt-footer-links a:hover, .dt-trigger-modal:hover { color: #8520d2 !important; }

/* Parte Inferior do Rodapé (CENTRALIZADO) */
.dt-footer-bottom {
  max-width: 1000px; margin: 40px auto 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: center;
  align-items: center; text-align: center;
  font-size: 12px;
}

.dt-copyright { color: rgba(255,255,255,0.4); font-weight: 600; }

/* Barra de rolagem interna customizada para textos longos no Modal */
.dt-modal-text-content::-webkit-scrollbar { width: 4px; }
.dt-modal-text-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Responsividade do Rodapé */
@media (max-width: 992px) {
  .dt-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dt-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  /* No celular, dá um empurrãozão no fundo para o rodapé não ficar escondido pela navbar! */
  .dt-main-footer { padding-bottom: 120px; } 
}

/* ==========================================
   AJUSTES DA LOGO E TÍTULOS DO RODAPÉ
   ========================================== */
/* Logo da Primeira Coluna (Reduzida em 30%) */
.dt-footer-logo {
  max-width: 126px; 
  margin-bottom: 16px;
  display: block;
}

/* Logo dentro do Modal (Reduzida em 30%) */
.dt-modal-logo {
  max-width: 98px; 
  margin: 0 auto 20px auto;
  display: block;
}

/* Efeito do Título Clicável "Nossa Missão" */
.dt-clickable-title {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}
.dt-clickable-title:hover {
  color: #8520d2 !important; /* Brilha no roxo da marca */
}

/* ==========================================
   MODAIS GLOBAIS (Como o "Nossa Missão")
   ========================================== */
.dt-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  z-index: 4000; /* Bem alto para ficar por cima do rodapé e do menu */
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px;
}
.dt-modal-overlay.active { opacity: 1; visibility: visible; }

.dt-modal-premium-v2 {
  background: #1e1e24; width: 100%; max-width: 500px; border-radius: 16px;
  padding: 30px 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  transform: translateY(20px); transition: transform 0.3s ease; position: relative;
}
.dt-modal-overlay.active .dt-modal-premium-v2 { transform: translateY(0); }

.dt-close-modal {
  position: absolute; top: 12px; right: 16px; background: transparent;
  border: none; color: rgba(255,255,255,0.3); font-size: 26px;
  cursor: pointer; transition: 0.2s; padding: 0;
}
.dt-close-modal:hover { color: #fff; }

.dt-modal-top { text-align: center; margin-bottom: 24px; }
.dt-modal-title { font-size: 20px; font-weight: 900; color: #fff; margin: 0; }

/* ==========================================
   FORÇAR LOGO E TEXTO LADO A LADO (RODAPÉ)
   ========================================== */
.dt-brand-box {
  display: flex !important;
  flex-direction: row !important; /* Força ficar um do lado do outro */
  align-items: center !important; /* Centraliza a altura do texto com a logo */
  gap: 16px !important; /* Espaçamento entre a logo e o texto */
}

.dt-footer-logo {
  width: 110px !important; /* Reduzimos um pouco mais a logo para dar espaço */
  height: auto !important;
  margin: 0 !important; /* Tira qualquer margem que esteja empurrando o texto para baixo */
  flex-shrink: 0 !important; /* Impede a logo de ser espremida */
}

.dt-brand-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.dt-brand-details p {
  margin: 0 !important;
  font-size: 12px !important; /* Letra um pouquinho menor para caber bonito */
  line-height: 1.5 !important;
  /* Limita o texto em exatas 3 linhas */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* No celular, MANTÉM lado a lado, mas ajusta os tamanhos para caber perfeito */
@media (max-width: 480px) {
  .dt-brand-box {
    flex-direction: row !important; /* Mantém um do lado do outro */
    align-items: center !important;
    gap: 12px !important;
  }
  .dt-footer-logo {
    width: 85px !important; /* Diminui a logo só no celular para dar espaço ao texto */
  }
  .dt-brand-details p {
    font-size: 11px !important; /* Diminui levemente a fonte para não espremer */
  }
}