:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-dark: #0f172a;
  --color-text-main: #334155;
  --color-text-muted: #64748b;
  --color-primary: #1e293b;      /* Roxo muito escuro / Slate Dark para Premium  */
  --color-primary-hover: #0f172a;
  --color-accent: #4f46e5;       /* Azul índigo discreto para glow ou pontos ínfimos */
  --color-border: rgba(0, 0, 0, 0.05);
  --color-whatsapp: #25D366;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.06);

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* =================================
   DASHBOARD LAYOUT
==================================== */
.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-logo {
  margin-bottom: 48px;
}
.sidebar-logo img {
  height: 48px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--color-dark);
}

.nav-item.active {
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--color-dark);
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.dashboard-main {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

.tab-content {
  display: none;
  padding: 64px 80px 100px; /* Mais espaçamento superior e lateral */
  animation: fadeIn 0.4s ease forwards;
  max-width: 1400px;
  margin: 0 auto;
}
.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================
   TYPOGRAPHY & HIERARCHY
==================================== */
.tab-header {
  margin-bottom: 64px;
}
.tab-title {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.tab-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.subsection-title {
  font-size: 2rem;
  margin-top: 80px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =================================
   COMPONENTS
==================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.content-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.card-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-price.premium { color: var(--color-dark); }

.card-price span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.btn-primary { 
  background: var(--color-dark); 
  color: #fff; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.06); 
}
.btn-primary:hover { 
  background: #000; 
  transform: translateY(-2px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.btn-outline { 
  background: transparent; 
  color: var(--color-dark); 
  border: 1px solid var(--color-border); 
}
.btn-outline:hover { 
  background: var(--color-surface); 
  border-color: var(--color-dark); 
  color: var(--color-dark); 
}

.badge-free {
  display: inline-block;
  background: #f1f5f9;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-paid {
  display: inline-block;
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audio-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.audio-item:hover { 
  border-color: rgba(0,0,0,0.1);
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
}
.audio-icon { 
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  background: var(--color-surface); 
  border: 1px solid var(--color-border);
  color: var(--color-dark); 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

/* RESPONSIVE */
.mobile-nav-toggle { display: none; }

@media (max-width: 900px) {
  .dashboard-layout { flex-direction: column; overflow: auto; }
  .sidebar { width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; padding: 24px; align-items: center; justify-content: space-between; border-right: none; border-bottom: 1px solid var(--color-border); }
  .sidebar-logo { margin-bottom: 0; }
  .sidebar-nav { display: none; width: 100%; flex-direction: column; margin-top: 24px; }
  .sidebar-nav.show { display: flex; }
  .mobile-nav-toggle { display: block; border: none; background: transparent; font-size: 1.5rem; cursor: pointer; }
  .sidebar-footer { display: none; }
  .dashboard-main { overflow: visible; padding: 0; }
  .tab-content { padding: 40px 24px; }
  .tab-title { font-size: 2.2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
