/* =========================================================
   ÁREA DE ALUNOS (Aulas) — estilo streaming premium
   ========================================================= */
#page-aulas { padding-bottom: 40px; }

/* Banner */
.al-banner {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
  padding: 36px; margin-bottom: 30px; color: #fff;
  background: linear-gradient(120deg, #1a1235, #3a2680 60%, #4a2fe0);
  box-shadow: 0 26px 60px -24px rgba(76, 47, 229, .55);
}
.al-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.al-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,8,28,.88) 0%, rgba(12,8,28,.45) 55%, rgba(12,8,28,.15) 100%); }
.al-banner-content { position: relative; z-index: 2; max-width: 620px; }
.al-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; backdrop-filter: blur(6px); }
.al-banner h1 { font-size: 2.1rem; line-height: 1.08; margin: 0 0 10px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.al-banner p { font-size: 1.02rem; color: #e9e4ff; margin: 0 0 18px; max-width: 520px; }
.al-banner .btn-primary { color: #1a1235; }
.al-admin-chip { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(255,255,255,.92); color: #4a2fe0; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.al-admin-chip:hover { background: #fff; }

/* Barra admin */
.al-admin-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.al-admin-tag { font-size: .8rem; font-weight: 700; color: #4a2fe0; background: var(--ice-100); padding: 6px 12px; border-radius: 999px; }
.btn-sm { padding: 9px 16px; font-size: .86rem; border-radius: 10px; }

/* Fileiras */
.al-row { margin-bottom: 32px; }
.al-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.al-row-head h3 { font-size: 1.25rem; margin: 0; color: var(--text-hi); }
.al-row-head .al-row-desc { font-size: .82rem; color: var(--text-dim); }
.al-row-tools { display: flex; gap: 6px; margin-left: auto; }
.al-mini { background: var(--bg-3); border: 1px solid var(--stroke); color: var(--text-dim); border-radius: 8px; padding: 5px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.al-mini:hover { color: #4a2fe0; border-color: var(--stroke-hi); }
.al-mini.danger:hover { color: #d33; border-color: #f3c9c2; }

.al-track { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.al-track::-webkit-scrollbar { height: 8px; }
.al-track::-webkit-scrollbar-thumb { background: var(--stroke-hi); border-radius: 10px; }

/* Capa vertical (poster) */
.al-poster {
  position: relative; flex: 0 0 auto; width: 168px; height: 252px;
  border-radius: 14px; overflow: hidden; cursor: pointer; scroll-snap-align: start;
  background: linear-gradient(160deg, #2a1d5e, #4a2fe0); color: #fff;
  box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid var(--stroke);
}
.al-poster:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 20px 40px -16px rgba(76,47,229,.5); z-index: 3; }
.al-poster-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.al-poster-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,7,24,.85) 100%); }
.al-poster-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; font-weight: 700; font-size: .92rem; line-height: 1.2; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.al-poster-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 2rem; opacity: 0; transition: opacity .2s; z-index: 2; }
.al-poster:hover .al-poster-play { opacity: .95; }
.al-poster-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; opacity: .5; }
.al-poster-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; z-index: 4; opacity: 0; transition: opacity .18s; }
.al-poster:hover .al-poster-tools { opacity: 1; }
.al-ptool { background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 7px; width: 28px; height: 28px; cursor: pointer; font-size: .8rem; }
.al-ptool:hover { background: #4a2fe0; }

/* Poster "adicionar" (admin) */
.al-add-poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 168px; height: 252px; flex: 0 0 auto; border: 2px dashed var(--stroke-hi); border-radius: 14px; background: var(--bg-1); color: var(--text-dim); cursor: pointer; font-weight: 600; font-size: .86rem; }
.al-add-poster:hover { color: #4a2fe0; border-color: #4a2fe0; background: var(--ice-100); }
.al-add-poster .plus { font-size: 1.8rem; }

/* Vazio */
.al-empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.al-empty-ico { font-size: 3rem; margin-bottom: 10px; }

/* Modais da área */
.al-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(12,8,28,.66); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.al-modal[hidden] { display: none; }
.al-close { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(0,0,0,.5); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.al-close:hover { background: #4a2fe0; }

.al-lesson-card { position: relative; width: 100%; max-width: 620px; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.al-lesson-cover { height: 230px; background-size: cover; background-position: center; background-color: #2a1d5e; }
.al-lesson-body { padding: 24px; }
.al-lesson-body h2 { margin: 0 0 10px; color: var(--text-hi); font-size: 1.5rem; }
.al-lesson-desc { color: var(--text); line-height: 1.6; white-space: pre-wrap; margin: 0 0 18px; }

.al-form-card { position: relative; width: 100%; max-width: 480px; border-radius: 18px; background: var(--bg-2); padding: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); max-height: 90vh; overflow-y: auto; }
.al-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.al-form-head h3 { margin: 0; color: var(--text-hi); }
.al-form-head .al-close { position: static; background: var(--bg-3); color: var(--text-dim); }
.al-field { margin-bottom: 14px; }
.al-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.al-field input[type=text], .al-field input[type=url], .al-field textarea, .al-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 10px; font-size: .92rem; font-family: inherit; background: var(--bg-1); color: var(--text-hi); box-sizing: border-box; }
.al-field textarea { min-height: 90px; resize: vertical; }
.al-field input:focus, .al-field textarea:focus, .al-field select:focus { outline: 2px solid var(--ice-400); outline-offset: 1px; }
.al-uploader { display: flex; align-items: center; gap: 12px; }
.al-upload-prev { width: 64px; height: 96px; border-radius: 8px; background: var(--bg-3) center/cover; border: 1px solid var(--stroke); flex: 0 0 auto; }
.al-upload-btn { background: var(--ice-100); color: #4a2fe0; border: 1px solid var(--stroke-hi); border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: .84rem; cursor: pointer; }
.al-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.al-form-msg { font-size: .85rem; margin-top: 10px; min-height: 18px; }
.al-form-msg.err { color: #d33; }
.al-form-msg.ok { color: #16a34a; }

@media (max-width: 640px) {
  .al-banner { min-height: 240px; padding: 24px; }
  .al-banner h1 { font-size: 1.5rem; }
  .al-poster, .al-add-poster { width: 132px; height: 198px; }
  .al-lesson-cover { height: 170px; }
}

/* ===== Widgets da sidebar (Área de membros + Suporte) ===== */
.side-widgets { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.sidebar .sw-card { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 13px; padding: 11px 12px; text-decoration: none; cursor: pointer; font-family: inherit; text-align: left; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.sidebar .sw-members { background: linear-gradient(135deg, #6c4cf5, #4a2fe0); color: #fff; box-shadow: 0 8px 20px -10px rgba(76,47,229,.55); }
.sidebar .sw-members:hover { transform: translateY(-2px); box-shadow: 0 13px 28px -10px rgba(76,47,229,.72); }
.sidebar .sw-support { background: var(--bg-2); border-color: var(--stroke); color: var(--text-hi); }
.sidebar .sw-support:hover { border-color: var(--stroke-hi); transform: translateY(-1px); }
.sw-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto; }
.sw-members .sw-icon { background: rgba(255,255,255,.18); }
.sw-support .sw-icon { background: var(--ice-100); }
.sw-body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sw-title { font-weight: 700; font-size: .9rem; }
.sw-desc { font-size: .76rem; opacity: .88; }
.sw-support .sw-desc { color: var(--text-dim); opacity: 1; }
.sw-arrow { margin-left: auto; font-weight: 700; font-size: 1.05rem; opacity: .9; }
.sw-note { font-size: .71rem; color: var(--text-faint); line-height: 1.4; margin: 3px 2px 0; }

/* ===== Modal de suporte ===== */
.sup-card { position: relative; width: 100%; max-width: 400px; border-radius: 20px; background: var(--bg-2); padding: 28px 26px; text-align: center; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.sup-ico { font-size: 2.4rem; }
.sup-card h2 { margin: 8px 0 6px; color: var(--text-hi); font-size: 1.4rem; }
.sup-lead { color: var(--text); font-size: .92rem; margin: 0 0 14px; }
.sup-email { display: inline-block; font-weight: 800; color: #4a2fe0; text-decoration: none; font-size: 1.05rem; margin-bottom: 16px; }
.sup-email:hover { text-decoration: underline; }
.sup-info { text-align: left; background: var(--bg-1); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.sup-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-dim); padding: 5px 0; }
.sup-row b { color: var(--text-hi); }
