
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    margin: 0;


  }

  .dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
  }

  .dashboard-h2 {
    color: #0055aa;
  }

  .dashboard-perfil-link {
    display: inline-block;
    margin: 10px 0 30px 0;
    color: #0055aa;
    text-decoration: none;
    font-weight: bold;
  }

  .dashboard-perfil-link:hover {
    text-decoration: underline;
  }




  

  .dashboard-card:hover {
    transform: translateY(-4px);
  }

  .dashboard-card.assinado {
    border: 2px solid #0055aa;
    background-color: #e6f2ff;
  }

  .dashboard-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
  }

  .dashboard-card p {
    margin: 0;
    font-size: 14px;
    color: #777;
  }

  .dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
        margin-top: 16px;
  }
  

.dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 18px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
        cursor: pointer;
    
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    border-color: #4f46e5;
}

.dashboard-card.assinado {
    border-color: #4f46e5;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18);
}

.dashboard-card-status {
    font-size: 0.8rem;
    margin-top: 12px;

    margin-bottom: 12px;
    color: #6b7280;
}

.dashboard-card.assinado .dashboard-card-status {
    color: #16a34a;
    font-weight: 500;
}

.dashboard-card-desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 4px;
}

.dashboard-card-desc {
    margin-top: 6px;
    margin-bottom: 10px;
}

.dashboard-card-preco {
    margin-top: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}
.dashboard-subtitle {
  display: block;
  margin-top: 4px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #6b7280;
}
/* ===== Header (título à esquerda / switch à direita) ===== */
.dashboard-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.dashboard-header__text h2{
  margin:0;
  font-size:1.4rem;
  line-height:1.2;
}

.dashboard-header__text small{
  display:block;
  margin-top:6px;
  color:#6b7280;
  font-size:.9rem;
}

.dashboard-header__action{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

/* ===== Switch ===== */
.dash-switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
}

.dash-switch__label{
  font-weight:700;
  font-size:0.85rem;
  color:#6b7280;
  transition: color .2s ease, opacity .2s ease;
}

.dash-switch__label:not(.is-active){
  opacity:.55;
}

.dash-switch__label.is-active{
  color:#111827;
  opacity:1;
}

.dash-switch__btn{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.dash-switch__track{
  position:relative;
  display:inline-block;
  width:46px;
  height:26px;
  border-radius:999px;
  background:#e5e7eb;
  border:1px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dash-switch__thumb{
  position:absolute;
  top:50%;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#fff;
  transform: translate(0, -50%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.15);
}

/* ON (mine) */
.dash-switch.is-mine .dash-switch__track{
  background:#111827;
  border-color:#111827;
}

.dash-switch.is-mine .dash-switch__thumb{
  transform: translate(20px, -50%);
}

/* Hint opcional (filtro) */
.dash-switch__hint{
  font-size:0.75rem;
  color:#9ca3af;
  line-height:1.1;
}

/* Mobile: título em cima / switch abaixo alinhado à esquerda */
@media (max-width: 680px){
  .dashboard-header{
    flex-direction:column;
    align-items:stretch;
  }
  .dashboard-header__action{
    align-items:flex-start;
  }
}

  .dashboard-success-message {
    background-color: #e0ffe0;
    color: #0a0;
    text-align: center;
    padding: 12px;
    margin: 0 auto 20px;
    border-radius: 8px;
    
  }

  .dashboard-error-message {
    background-color: #ffe0e0;
    color: #c00;
    text-align: center;
    padding: 12px;
    margin: 0 auto 20px;
    border-radius: 8px;
    
  }
  
  /* garante que o form n찾o "encolha" e que tudo tenha a mesma largura */
.dashboard-card-actions form{
  width:100%;
  margin:0;
}

/* padroniza <a> e <button> com a mesma classe */
.btn-card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  width:100%;
  min-height:44px;              /* altura consistente */
  padding:10px 12px;

  border-radius:8px;
  font-weight:700;
  text-decoration:none;

  border:1px solid transparent;
  cursor:pointer;

  /* remove estilo nativo do button */
  background:inherit;
  font:inherit;
  appearance:none;
  -webkit-appearance:none;
}

/* s처 pra <button> n찾o herdar coisas estranhas */
button.btn-card{
  line-height:1.2;
}
/* Responsivo: quebra 4->3->2->1 conforme a tela */
@media (max-width: 1100px){
  .dashboard-cards{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .dashboard-cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .dashboard-cards{
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .dashboard-card{ max-width: none; }
}
