/* ==============================================================
   AUPHA PET SHOP — V28
   Controle de consumo dos planos + barra clara da proprietária
   ============================================================== */

/* Barra lateral da proprietária no tom turquesa do logotipo. */
body .portal.aupha-v28-owner-light .sidebar,
body .portal.mimi-v33-owner-stable.aupha-v28-owner-light .sidebar {
  background: linear-gradient(180deg, #00a8b5 0%, #00929e 58%, #007f89 100%) !important;
  border-right: 1px solid rgba(0, 93, 101, .18) !important;
  box-shadow: 12px 0 34px rgba(0, 93, 101, .13) !important;
}
body .portal.aupha-v28-owner-light .sidebar .role-chip {
  background: rgba(255, 255, 255, .18) !important;
  border: 1px solid rgba(255, 255, 255, .30) !important;
  color: #ffffff !important;
}
body .portal.aupha-v28-owner-light .sidebar nav > button {
  color: rgba(255, 255, 255, .94) !important;
}
body .portal.aupha-v28-owner-light .sidebar nav > button:hover {
  background: rgba(255, 255, 255, .15) !important;
  color: #ffffff !important;
}
body .portal.aupha-v28-owner-light .sidebar nav > button.active,
body .portal.aupha-v28-owner-light .sidebar nav > button[aria-current="page"] {
  background: #e8fcff !important;
  color: #005b63 !important;
  box-shadow: 0 8px 22px rgba(0, 83, 91, .16) !important;
}
body .portal.aupha-v28-owner-light .sidebar .side-help {
  background: rgba(0, 78, 86, .18) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  color: #ffffff !important;
}
body .portal.aupha-v28-owner-light .sidebar .side-help a,
body .portal.aupha-v28-owner-light .sidebar .exit-button {
  color: #ffffff !important;
}
body .portal.aupha-v28-owner-light .portal-top {
  border-bottom-color: rgba(0, 168, 181, .20) !important;
  box-shadow: 0 5px 18px rgba(0, 122, 132, .06) !important;
}
body .portal.aupha-v28-owner-light .portal-top .user-avatar,
body .portal.aupha-v28-owner-light .portal-top .top-actions > button {
  background: #dff9fc !important;
  color: #006c75 !important;
  border-color: rgba(0, 168, 181, .24) !important;
}

/* Resumo na visão geral da proprietária. */
.aupha-v28-owner-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 14px 0 20px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 168, 181, .22);
  border-radius: 20px;
  background: linear-gradient(135deg, #effdff 0%, #ffffff 64%, #fff8d8 100%);
  box-shadow: 0 12px 34px rgba(0, 112, 121, .08);
}
.aupha-v28-summary-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #00a8b5, #007f89);
  color: #fff;
  font: 800 24px/1 "Manrope", sans-serif;
  box-shadow: 0 10px 22px rgba(0, 132, 143, .22);
}
.aupha-v28-owner-summary small,
.aupha-v28-panel-head small,
.aupha-v28-client-head small {
  display: block;
  color: #007780;
  font: 800 11px/1.35 "Manrope", sans-serif;
  letter-spacing: .10em;
}
.aupha-v28-owner-summary h3 {
  margin: 4px 0 3px;
  color: #063b40;
  font: 800 19px/1.25 "Manrope", sans-serif;
}
.aupha-v28-owner-summary p {
  margin: 0;
  color: #527176;
  font: 500 13px/1.5 "Work Sans", sans-serif;
}
.aupha-v28-owner-summary button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #00a8b5;
  color: #fff;
  font: 800 12px/1 "Manrope", sans-serif;
  cursor: pointer;
}

/* Painel completo da proprietária. */
.aupha-v28-owner-panel {
  margin-top: 18px !important;
  overflow: hidden;
}
.aupha-v28-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(0, 168, 181, .16);
  background: linear-gradient(135deg, #effdff 0%, #fff 72%);
}
.aupha-v28-panel-head h3 {
  margin: 5px 0 4px;
  color: #063b40;
  font: 800 22px/1.25 "Manrope", sans-serif;
}
.aupha-v28-panel-head p {
  margin: 0;
  color: #5a7478;
  font: 500 13px/1.5 "Work Sans", sans-serif;
}
.aupha-v28-cycle-badge {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: #dff9fc;
  color: #006c75;
  font: 800 12px/1 "Manrope", sans-serif;
}
.aupha-v28-message {
  margin: 16px 20px 0;
  padding: 11px 14px;
  border-radius: 12px;
  font: 700 13px/1.4 "Work Sans", sans-serif;
}
.aupha-v28-message.success {
  background: #e9fbf1;
  border: 1px solid #bdebcf;
  color: #14643a;
}
.aupha-v28-message.error {
  background: #fff0ed;
  border: 1px solid #f4c4bb;
  color: #96392d;
}
.aupha-v28-subscription-list {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.aupha-v28-subscription {
  overflow: hidden;
  border: 1px solid #dcebed;
  border-radius: 17px;
  background: #fff;
}
.aupha-v28-subscription > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #f8fcfc;
  border-bottom: 1px solid #e5eff0;
}
.aupha-v28-subscription h4 {
  margin: 5px 0 2px;
  color: #143e42;
  font: 800 17px/1.25 "Manrope", sans-serif;
}
.aupha-v28-subscription p {
  margin: 0;
  color: #667d80;
  font: 500 13px/1.4 "Work Sans", sans-serif;
}
.aupha-v28-subscription > header > strong {
  flex: none;
  color: #007780;
  font: 800 13px/1.2 "Manrope", sans-serif;
}
.aupha-v28-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e6f8ec;
  color: #247044;
  font: 800 10px/1 "Manrope", sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.aupha-v28-status.paused { background: #fff3cf; color: #8b6200; }
.aupha-v28-owner-benefits {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.aupha-v28-owner-benefit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 15px;
  border: 1px solid #e4edef;
  border-radius: 14px;
  background: #fff;
}
.aupha-v28-benefit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.aupha-v28-benefit-head strong {
  display: block;
  color: #153f43;
  font: 800 14px/1.35 "Manrope", sans-serif;
}
.aupha-v28-benefit-head span {
  display: block;
  margin-top: 2px;
  color: #718487;
  font: 500 12px/1.35 "Work Sans", sans-serif;
}
.aupha-v28-benefit-head b {
  flex: none;
  color: #007780;
  font: 800 12px/1.3 "Manrope", sans-serif;
}
.aupha-v28-progress {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f0f1;
}
.aupha-v28-progress i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a8b5, #fecb1a);
  transition: width .25s ease;
}
.aupha-v28-benefit.is-complete .aupha-v28-progress i {
  background: linear-gradient(90deg, #00a8b5, #007f89);
}
.aupha-v28-benefit > small {
  display: block;
  margin-top: 8px;
  color: #6a8184;
  font: 500 11.5px/1.4 "Work Sans", sans-serif;
}
.aupha-v28-usage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aupha-v28-usage-actions button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font: 800 11.5px/1 "Manrope", sans-serif;
  cursor: pointer;
}
.aupha-v28-correct {
  background: #fff;
  border: 1px solid #cbdcde;
  color: #5e7477;
}
.aupha-v28-register {
  background: #00a8b5;
  border: 1px solid #00a8b5;
  color: #fff;
}
.aupha-v28-usage-actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
}
.aupha-v28-empty,
.aupha-v28-empty-benefit {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #bfd4d7;
  border-radius: 14px;
  background: #f9fcfc;
  color: #5b7478;
}
.aupha-v28-empty strong,
.aupha-v28-empty-benefit strong { color: #254d51; }
.aupha-v28-empty span,
.aupha-v28-empty-benefit span { font-size: 13px; line-height: 1.45; }

/* Cartão da área do cliente. */
.aupha-v28-client-panel {
  margin: 15px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 181, .22);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 13px 36px rgba(0, 108, 117, .08);
}
.aupha-v28-client-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ecfcfe 0%, #fff8d7 100%);
  border-bottom: 1px solid rgba(0, 168, 181, .13);
}
.aupha-v28-client-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #00a8b5;
  color: #fecb1a;
  font-size: 22px;
}
.aupha-v28-client-head h3 {
  margin: 4px 0 2px;
  color: #073d42;
  font: 800 20px/1.25 "Manrope", sans-serif;
}
.aupha-v28-client-head p {
  margin: 0;
  color: #667f82;
  font: 500 12.5px/1.4 "Work Sans", sans-serif;
}
.aupha-v28-client-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
  padding: 18px 20px;
}
.aupha-v28-client-benefits .aupha-v28-benefit {
  padding: 14px;
  border: 1px solid #dfebed;
  border-radius: 14px;
  background: #fbfdfd;
}
.aupha-v28-client-panel > footer {
  padding: 11px 20px 14px;
  color: #718487;
  font: 500 11.5px/1.4 "Work Sans", sans-serif;
  border-top: 1px solid #edf2f3;
}
.aupha-v28-empty-benefit.client { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .aupha-v28-owner-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .aupha-v28-owner-summary button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .aupha-v28-owner-benefit {
    grid-template-columns: 1fr;
  }
  .aupha-v28-usage-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  body .portal.aupha-v28-owner-light .sidebar,
  body .portal.mimi-v33-owner-stable.aupha-v28-owner-light .sidebar {
    background: linear-gradient(180deg, #00a8b5 0%, #008894 100%) !important;
    border-right-color: rgba(255,255,255,.24) !important;
  }
  .aupha-v28-panel-head,
  .aupha-v28-subscription > header,
  .aupha-v28-benefit-head {
    align-items: flex-start;
  }
  .aupha-v28-panel-head,
  .aupha-v28-subscription > header {
    flex-direction: column;
  }
  .aupha-v28-subscription > header > strong {
    align-self: flex-start;
  }
  .aupha-v28-subscription-list { padding: 13px; }
  .aupha-v28-owner-benefits { padding: 12px; }
  .aupha-v28-usage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .aupha-v28-usage-actions button { width: 100%; }
  .aupha-v28-client-head {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px;
  }
  .aupha-v28-client-head .aupha-v28-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .aupha-v28-client-benefits { grid-template-columns: 1fr; padding: 13px; }
}
