/* Acabamento premium: painel de notificações (aluno e gestão) e telas internas do aluno,
   na mesma linguagem da tela inicial (preto, rótulos em caixa alta, verde-limão). */
:root { --p-lima: #caff00; --p-cartao: #0b0b0c; --p-cartao-2: #121214; --p-linha: #232427; --p-linha-forte: #303236; --p-suave: #a7abb0; --p-sutil: #6e7277; }

/* ---------- Painel de notificações: menu flutuante compacto (padrão Growio) ---------- */
.notification-panel, .manage-ui .notification-panel {
  position: fixed !important; top: 74px !important; bottom: auto !important; left: auto !important;
  right: max(12px, calc((100vw - 560px) / 2 + 12px)) !important;
  display: flex; flex-direction: column; width: min(370px, calc(100vw - 24px)) !important; max-width: none !important;
  max-height: min(540px, calc(100dvh - 96px)); padding: 0 !important; overflow: hidden; z-index: 1100;
  border: 1px solid #2a2c30 !important; border-radius: 16px !important; background: #111214 !important; color: #f2f3f4;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4) !important;
}
.manage-ui .notification-panel { top: 78px !important; right: 32px !important; }
.notification-panel[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .notification-panel:not([hidden]) { animation: p-painel .16s cubic-bezier(.2, .8, .2, 1) !important; transform-origin: top right; } }
@keyframes p-painel { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.notice-panel-heading { display: flex; align-items: center !important; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 16px !important; border-bottom: 1px solid #1f2124; }
.notice-eyebrow { display: none !important; }
.notice-panel-heading h2 { margin: 0 !important; font-size: 14.5px !important; font-weight: 650 !important; letter-spacing: 0 !important; color: #f2f3f4; }
.notice-panel-heading .icon-button { width: 28px !important; height: 28px !important; border: 0 !important; border-radius: 8px; background: none !important; color: #7d8187; display: grid; place-items: center; }
.notice-panel-heading .icon-button:hover { background: #1b1c1f !important; color: #f2f3f4; }
.notice-panel-heading .ui-icon { width: 15px !important; height: 15px !important; }
.notice-panel-actions { order: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px !important; border-top: 1px solid #1f2124; font-size: 11.5px !important; color: #7d8187 !important; }
.notice-panel-actions > button { border: 0; background: none !important; padding: 0 !important; font-size: 12px !important; font-weight: 600; color: var(--p-lima) !important; cursor: pointer; }
.notice-panel-actions > button:hover { text-decoration: underline; }
.notice-panel-list { order: 2; flex: 1; max-height: none !important; overflow-y: auto; padding: 6px !important; scrollbar-width: thin; scrollbar-color: #2c2f33 transparent; }
.notice-panel-footer { order: 4; display: flex; align-items: center; justify-content: space-between !important; padding: 11px 16px !important; border-top: 1px solid #1f2124 !important; font-size: 12px !important; font-weight: 600; color: #d6d8db !important; text-decoration: none; }
.notice-panel-footer:hover { color: #fff !important; background: #16171a; }
.notice-panel-footer .ui-icon { width: 14px !important; height: 14px !important; }

.notice-item { position: relative; display: flex; align-items: flex-start; gap: 11px !important; width: 100%; padding: 11px 12px 11px 10px !important;
  border: 0 !important; border-radius: 10px; background: none !important; color: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.notice-item + .notice-item { margin-top: 1px; }
.notice-item:hover, .notice-item:focus-visible { background: #1a1b1e !important; outline: none; }
.notice-item-icon { width: 32px !important; height: 32px !important; flex: none; border: 0 !important; border-radius: 9px !important; background: #1c1d20 !important; color: #8d9298 !important; }
.notice-item-icon .ui-icon { width: 16px !important; height: 16px !important; }
.notice-item.is-unread .notice-item-icon { background: rgba(202, 255, 0, .1) !important; color: var(--p-lima) !important; }
.notice-item.is-unread::after { content: ""; position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--p-lima); }
.notice-item-copy { display: flex; flex-direction: column; gap: 2px !important; min-width: 0; flex: 1; padding-right: 14px; }
.notice-item-copy strong { font-size: 12.8px !important; font-weight: 600 !important; line-height: 1.35 !important; color: #f2f3f4; }
.notice-item:not(.is-unread) .notice-item-copy strong { font-weight: 500 !important; color: #b9bdc2; }
.notice-item-copy > span { font-size: 11.8px !important; line-height: 1.4 !important; color: #8d9298 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-item-copy small { margin-top: 2px; font-size: 10.8px !important; color: #686d73 !important; }
.notice-empty { display: flex; flex-direction: column; align-items: center; gap: 6px !important; padding: 34px 24px 30px !important; text-align: center; color: #7d8187; }
.notice-empty .ui-icon { width: 28px !important; height: 28px !important; color: #4a4e53; margin-bottom: 4px; }
.notice-empty > p { margin: 0; font-size: 13px; font-weight: 600; color: #b9bdc2; }
@media (max-width: 640px) {
  .notification-panel, .manage-ui .notification-panel { left: 8px !important; right: 8px !important; width: auto !important; top: 70px !important; max-height: calc(100dvh - 160px); }
}

/* Sino */
.product-header .notification-count { background: var(--p-lima) !important; color: #0d1206 !important; border-color: #000 !important; font-weight: 800; }
.product-header .notification[aria-expanded="true"] { background: #1c1d20 !important; border-color: #3a3d41 !important; }

/* ---------- Telas internas do aluno ---------- */
.student-ui .page-content { gap: 14px; }
.student-ui .card { position: relative; border: 1px solid var(--p-linha) !important; border-radius: 18px !important; padding: 20px !important;
  background: linear-gradient(180deg, #101012 0%, var(--p-cartao) 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.student-ui .card h2 { font-size: 21px; font-weight: 650; letter-spacing: -.5px; line-height: 1.2; color: #fff; margin: 6px 0 8px; }
.student-ui .card > p, .student-ui .muted { color: var(--p-suave); line-height: 1.55; }
.student-ui .eyebrow, .student-ui .section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--p-suave); }
.student-ui .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p-lima); flex: none; }
.student-ui .section-label .glyph { color: var(--p-lima); }

/* Botões e campos */
.student-ui .primary-btn { min-height: 50px; border-radius: 14px !important; background: var(--p-lima) !important; color: #0d1206 !important; font-weight: 750; font-size: 15px; border: 0; box-shadow: 0 10px 30px rgba(202, 255, 0, .14); transition: transform .1s, filter .15s; }
.student-ui .primary-btn:hover { filter: brightness(1.06); }
.student-ui .primary-btn:active, .student-ui .ghost-btn:active { transform: scale(.98); }
.student-ui .ghost-btn, .student-ui .subtle-button { min-height: 46px; border-radius: 14px !important; background: var(--p-cartao-2) !important; border: 1px solid var(--p-linha-forte) !important; color: #f2f3f4 !important; font-weight: 600; }
.student-ui .subtle-button { min-height: 34px; padding: 0 12px; border-radius: 10px !important; font-size: 12.5px; color: var(--p-lima) !important; }
.student-ui .text-action, .student-ui .mini-link, .student-ui .library-text-link { color: var(--p-lima); font-weight: 600; }
.student-ui .stack-form { gap: 14px; }
.student-ui .stack-form label { font-size: 12.5px; font-weight: 500; color: var(--p-suave); gap: 8px; }
.student-ui input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .student-ui select, .student-ui textarea {
  min-height: 50px; border-radius: 13px !important; background: #050505 !important; border: 1px solid var(--p-linha-forte) !important; color: #fff !important; font-size: 15px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.student-ui input:focus, .student-ui select:focus, .student-ui textarea:focus { outline: none; border-color: var(--p-lima) !important; box-shadow: 0 0 0 4px rgba(202, 255, 0, .1); }

/* Linhas de dados */
.student-ui .admin-item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--p-linha); font-size: 14px; }
.student-ui .admin-item b { color: var(--p-suave); font-weight: 500; }
.student-ui .admin-item span { color: #fff; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.student-ui .status-mini { border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; }
.student-ui .status-mini.positive { background: rgba(202, 255, 0, .1); color: var(--p-lima); }
.student-ui .status-mini.negative { background: rgba(255, 120, 110, .1); color: #ff8f86; }

/* Comunicados */
.student-ui .announcement-card .surface-heading { display: flex; align-items: center; justify-content: space-between; }
.student-ui .announcement-card:has(.new-notice-label) { border-color: rgba(202, 255, 0, .28) !important; }
.student-ui .announcement-card:has(.new-notice-label)::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p-lima); }
.student-ui .new-notice-label { padding: 4px 10px; border-radius: 999px; background: rgba(202, 255, 0, .1) !important; color: var(--p-lima) !important; font-size: 11px; font-weight: 700; }
.student-ui .announcement-card .notice-content { font-size: 14.5px; line-height: 1.7; color: #c9ccd0; margin: 0; }
.student-ui .announcement-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--p-linha); }
.student-ui .announcement-card footer small { color: var(--p-sutil); font-size: 12px; }

/* Perfil */
.student-ui .profile-identity { position: relative; padding: 26px 20px 22px; border: 1px solid var(--p-linha); border-radius: 22px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(202, 255, 0, .10), transparent 60%), var(--p-cartao); }
.student-ui .profile-monogram { width: 76px; height: 76px; font-size: 30px; font-weight: 700; color: #0d1206 !important; background: var(--p-lima) !important; border: 0 !important;
  box-shadow: 0 0 0 5px #0b0b0c, 0 0 0 6px rgba(202, 255, 0, .35), 0 14px 40px rgba(202, 255, 0, .2); }
.student-ui .profile-identity h2 { font-size: 22px; letter-spacing: -.5px; margin: 16px 0 2px; }
.student-ui .profile-identity p { color: var(--p-suave); margin: 0; }
.student-ui .member-caption { display: inline-flex; margin-top: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--p-linha-forte); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--p-suave); }
.student-ui .profile-links { border: 1px solid var(--p-linha); border-radius: 18px; background: var(--p-cartao); overflow: hidden; }
.student-ui .profile-links > a { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 0 !important; color: #fff; text-decoration: none; transition: background .15s; }
.student-ui .profile-links > a + a { border-top: 1px solid var(--p-linha) !important; }
.student-ui .profile-links > a:hover { background: var(--p-cartao-2); }
.student-ui .profile-links > a > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.student-ui .profile-links small { color: var(--p-sutil); }
.student-ui .profile-link-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(202, 255, 0, .08); color: var(--p-lima); border: 1px solid rgba(202, 255, 0, .18); flex: none; }
.student-ui .logout-form button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; border: 1px solid rgba(255, 120, 110, .25); background: rgba(255, 120, 110, .05); color: #ff8f86; font: inherit; font-weight: 600; cursor: pointer; }
.student-ui .staff-entry { border-radius: 14px; }

/* Plano e pagamentos */
.student-ui .membership-card { background: radial-gradient(120% 100% at 100% 0%, rgba(202, 255, 0, .12), transparent 55%), var(--p-cartao) !important; }
.student-ui .membership-card h2 { font-size: 28px; }
.student-ui .booking-status, .student-ui .plan-clear { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(202, 255, 0, .08); color: var(--p-lima); font-size: 13px; font-weight: 600; }
.student-ui .invoice-amount { display: block; font-size: 38px; font-weight: 750; letter-spacing: -1.2px; margin: 8px 0 4px; }
.student-ui .secondary-services { border: 1px solid var(--p-linha); border-radius: 18px; background: var(--p-cartao); overflow: hidden; }
.student-ui .secondary-services > summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; list-style: none; cursor: pointer; font-weight: 600; }
.student-ui .secondary-services > summary::-webkit-details-marker { display: none; }
.student-ui .secondary-services > summary .ui-icon { transition: transform .2s; color: var(--p-sutil); }
.student-ui .secondary-services[open] > summary .ui-icon { transform: rotate(90deg); color: var(--p-lima); }
.student-ui .secondary-services > div { padding: 0 18px 14px; }
.student-ui .invoice-history-row, .student-ui .bill-row, .student-ui .product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--p-linha); }
.student-ui .invoice-history-row span { display: grid; gap: 2px; }
.student-ui .invoice-history-row small { color: var(--p-sutil); }

/* Treino */
.student-ui .workout-sheet { border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; }
.student-ui .workout-step { border: 1px solid var(--p-linha) !important; border-radius: 16px; background: var(--p-cartao); margin: 0 0 8px; overflow: hidden; }
.student-ui .workout-step > summary { padding: 17px 18px; font-weight: 650; font-size: 16px; }
.student-ui .workout-step[open] > summary { color: var(--p-lima); }
.student-ui .workout-step > :not(summary) { padding-left: 18px; padding-right: 18px; }

/* Turmas e check-in */
.student-ui .session-card { border: 1px solid var(--p-linha) !important; border-radius: 18px !important; background: var(--p-cartao) !important; }
.student-ui .class-time { color: var(--p-lima); }

/* Vazio */
.student-ui .calm-empty { padding: 40px 22px; border: 1px dashed var(--p-linha-forte); border-radius: 20px; text-align: center; }
.student-ui .empty-symbol { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(202, 255, 0, .08); color: var(--p-lima); }

/* Navegação inferior: indicador mais suave */
.student-ui .bottom-nav { background: rgba(0, 0, 0, .9) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--p-linha) !important; }
.student-ui .secondary-services > summary { min-height: 0 !important; height: auto !important; }
.student-ui .secondary-services:not([open]) { padding: 0 !important; }
.student-ui .membership-card .text-action { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.student-ui .membership-card .booking-status { margin-top: 4px; }

.student-ui .membership-card { display: flex !important; flex-direction: column; align-items: flex-start; gap: 0; }
.student-ui .membership-card h2 { margin: 8px 0 14px; }
.student-ui .membership-card .booking-status { margin: 0; float: none; }
.student-ui .membership-card .text-action { float: none !important; position: static !important; margin: 16px 0 0 !important; padding-top: 14px; width: 100%; justify-content: space-between; border-top: 1px solid var(--p-linha); font-size: 14px; }

/* Sóbrio: sem brilhos, bolinhas e gradientes decorativos */
.student-ui .eyebrow::before { display: none; }
.student-ui .eyebrow { color: var(--p-sutil); letter-spacing: 1.2px; }
.student-ui .card { background: var(--p-cartao) !important; box-shadow: none; }
.student-ui .membership-card, .student-ui .profile-identity { background: var(--p-cartao) !important; }
.student-ui .announcement-card:has(.new-notice-label)::before { display: none; }
.student-ui .announcement-card:has(.new-notice-label) { border-color: var(--p-linha-forte) !important; }
.student-ui .profile-monogram { background: #17181a !important; color: #fff !important; border: 1px solid var(--p-linha-forte) !important; box-shadow: none; font-weight: 600; }
.student-ui .primary-btn { box-shadow: none; }
.student-ui .profile-link-icon { background: #17181a; border-color: var(--p-linha); color: #d6d8db; }
.student-ui .booking-status, .student-ui .plan-clear { background: none; padding: 0; color: var(--p-lima); }
.student-ui .plan-clear { padding: 14px 16px; border: 1px solid var(--p-linha); border-radius: 14px; background: var(--p-cartao); color: #d6d8db; width: 100%; box-sizing: border-box; }
.student-ui .plan-clear .ui-icon { color: var(--p-lima); }
.notice-panel-actions > button { white-space: nowrap; flex: none; } .notice-panel-actions > span { min-width: 0; }

/* Painel enxuto: título + marcar lidas no topo; avisos só com título e tempo. */
.notice-panel-heading .icon-button, .notice-panel-footer, .notice-panel-actions > span, .notice-item-copy > span { display: none !important; }
.notice-panel-heading { padding: 15px 16px 13px !important; }
.notice-panel-actions { position: absolute; top: 0; right: 0; height: 49px; padding: 0 16px !important; border: 0 !important; background: none; }
.notice-panel-actions > button { font-size: 12px !important; font-weight: 500 !important; color: #8d9298 !important; }
.notice-panel-actions > button:hover { color: var(--p-lima) !important; text-decoration: none; }
.notice-item { align-items: center; padding: 10px 12px 10px 10px !important; }
.notice-item.is-unread::after { top: 50%; margin-top: -3.5px; }
.notice-item-copy { gap: 1px !important; }
.notice-item-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item-copy small { margin-top: 0; }
