/* ============================================================================
   BEÁGA EVENTOS — ABA COMPLETA MINHA CONTA & MEUS INGRESSOS
   Design Institucional: Fundo branco puro, linhas finas, cantos 8px,
   Montserrat nos títulos, Inter no texto, sem degradês ou marcas d'água.
   ============================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body.account-page {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: #0F172A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ----------------------------------------------------------------------------
   1. CABEÇALHO INSTITUCIONAL COM LOGO RIGOROSAMENTE CENTRALIZADA
   ---------------------------------------------------------------------------- */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  z-index: 2;
}

.header-nav-link {
  color: #64748B;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav-link:hover {
  color: #0073E6;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 1;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

/* ----------------------------------------------------------------------------
   2. MENU DE 3 PONTOS
   ---------------------------------------------------------------------------- */
.header-dots-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-dots-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.header-dots-btn:hover,
.header-dots-btn[aria-expanded="true"] {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.header-dots-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 250;
  display: flex;
  flex-direction: column;
}

.dots-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.dots-user-avatar {
  width: 34px;
  height: 34px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.dots-user-info {
  overflow: hidden;
}

.dots-user-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dots-user-email {
  display: block;
  font-size: 11px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[hidden],
.header-dots-dropdown[hidden],
.dots-menu-item[hidden],
.dots-user-header[hidden],
.dots-menu-divider[hidden] {
  display: none !important;
}

.dots-menu-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 6px 0;
}

.dots-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s ease;
}

.dots-menu-item svg {
  color: #64748B;
  flex-shrink: 0;
}

.dots-menu-item:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.dots-menu-item:hover svg {
  color: #0073E6;
}

.dots-item-logout {
  color: #DC2626;
}

.dots-item-logout:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

.dots-item-logout svg {
  color: #DC2626;
}

/* ----------------------------------------------------------------------------
   3. ABA COMPLETA: MINHA CONTA & MEUS INGRESSOS
   ---------------------------------------------------------------------------- */
.account-full-view {
  width: 100%;
  min-height: calc(100vh - 64px);
  background: #FFFFFF;
  padding: 32px 20px 80px 20px;
  box-sizing: border-box;
}

.account-full-container {
  max-width: 980px;
  margin: 0 auto;
}

.account-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.btn-back-to-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-to-main:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.account-section-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0369A1;
  background: #E0F2FE;
  padding: 4px 10px;
  border-radius: 12px;
}

.account-header-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 20px;
}

.account-welcome-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.account-welcome-subtitle {
  font-size: 14px;
  color: #64748B;
  margin: 0;
}

.btn-logout-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout-account:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FCA5A5;
}

/* CARDS DA ABA COMPLETA */
.account-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

.account-card-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  font-size: 22px;
}

.account-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.account-card-subtitle {
  font-size: 12.5px;
  color: #64748B;
  margin: 2px 0 0 0;
}

.account-status-badge {
  background: #ECFDF5;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.tickets-count-badge {
  background: #EFF6FF;
  color: #0073E6;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Grid de dados cadastrais */
.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.profile-field {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  padding: 12px 14px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 4px;
}

.field-val {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  word-break: break-word;
}

/* LISTA DE INGRESSOS COMPRADOS */
.account-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-purchase-card {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 18px;
  transition: border-color 0.15s ease;
}

.ticket-purchase-card:hover {
  border-color: #CBD5E1;
}

.ticket-purchase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticket-event-media {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-event-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #F1F5F9;
}

.ticket-event-badge {
  display: inline-block;
  background: #E0F2FE;
  color: #0369A1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.ticket-event-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px 0;
}

.ticket-event-meta {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

.ticket-status-col {
  text-align: right;
  flex-shrink: 0;
}

.order-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.status-pago {
  background: #DCFCE7;
  color: #15803D;
}

.status-analise {
  background: #FEF3C7;
  color: #B45309;
}

.order-id-label {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  font-family: monospace;
}

.ticket-items-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 14px 0;
}

.ticket-items-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  padding: 12px 14px;
}

.ticket-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.ticket-item-sub {
  display: block;
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.btn-view-story-access {
  background: #0073E6;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn-view-story-access:hover {
  background: #005bb5;
}

/* Card não-autenticado na aba completa */
.account-unauth-card {
  max-width: 440px;
  margin: 40px auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 32px 28px;
  background: #FFFFFF;
}

.account-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.account-desc {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 20px 0;
}

.account-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.account-tab-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
}

.account-tab-btn.is-active {
  background: #FFFFFF;
  color: #0073E6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  height: 42px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  color: #0F172A;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #0073E6;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.12);
}

.btn-account-submit {
  width: 100%;
  background: #0073E6;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}

.btn-account-submit:hover {
  background: #005bb5;
}

.account-error-banner {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .header-left {
    display: none;
  }
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }
  .brand-logo img {
    height: 26px;
  }
  .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .account-profile-grid {
    grid-template-columns: 1fr;
  }
  .account-header-welcome {
    flex-direction: column;
    align-items: stretch;
  }
  .ticket-purchase-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .ticket-status-col {
    text-align: left;
  }
  .ticket-item-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-view-story-access {
    width: 100%;
    text-align: center;
  }
}
