/* ============================================================
   UniLegal · Design System Premium Dark
   Inspiração: Apple · Linear · Arc · Stripe · Educação 2026
   ============================================================ */

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ========== HOME · GLASS EXPERIENCE ========== */
.home-experience { overflow: hidden; padding-bottom: 84px; }
.home-hero { min-height:min(93.125vw,1788px); margin-top:0; position:relative; display:grid; align-items:start; isolation:isolate; background-image:none; overflow:hidden; }
.home-hero::before { content:""; position:absolute; inset:-18px; z-index:-2; background-image:var(--home-cover); background-repeat:no-repeat; background-size:100% 100%; background-position:top center; filter:blur(5px); transform:scale(1.018); }
.home-hero__shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(4,7,11,.03) 0%,transparent 44%,rgba(4,7,11,.70) 100%); }
.home-hero__content { width:100%; padding-top:76px !important; }
.home-hero__glass { width:min(72vw,1010px); min-height:clamp(620px,49vw,900px); margin:0 auto; padding:clamp(42px,7vw,120px) 8% clamp(190px,16vw,310px); display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.44); border-radius:clamp(36px,5vw,76px); background:linear-gradient(180deg,rgba(255,255,255,.76) 0%,rgba(255,255,255,.62) 57%,rgba(255,255,255,0) 100%); box-shadow:0 28px 80px rgba(0,0,0,.18); backdrop-filter:blur(72px) saturate(125%); -webkit-backdrop-filter:blur(72px) saturate(125%); -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 57%,transparent 88%); mask-image:linear-gradient(to bottom,#000 0%,#000 57%,transparent 88%); }
.home-hero-logo { width:min(48%,390px); height:auto; margin-bottom:clamp(46px,6vw,100px); object-fit:contain; transform:translateY(-34px); }
.home-hero__eyebrow,.home-kicker { display:block; margin-bottom:12px; color:#c5ffb4; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.home-hero h1 { font-size:clamp(38px,5vw,64px); max-width:580px; font-weight:750; line-height:1.03; letter-spacing:-.055em; }
.home-hero p { max-width:520px; margin:18px 0 28px; color:rgba(255,255,255,.78); font-size:17px; line-height:1.55; }
.home-search { width:min(100%,650px); min-height:68px; display:flex; align-items:center; gap:12px; padding:7px 9px 7px 22px; border:1.5px solid rgba(22,28,36,.68); border-radius:999px; background:rgba(255,255,255,.92); box-shadow:0 12px 34px rgba(0,0,0,.10); transform:translateY(-34px); }
.home-search > svg { width:21px; height:21px; stroke:#323943; stroke-width:2.3; fill:none; flex:none; }
.home-search input { min-width:0; flex:1; border:0; outline:0; color:#1f2630; background:transparent; font:500 clamp(17px,2vw,26px) inherit; }
.home-search input::placeholder { color:#737b86; }
.home-search button { display:grid; width:52px; height:52px; place-items:center; padding:0; border:0; border-radius:999px; color:#202630; background:transparent; cursor:pointer; transition:transform var(--motion-fast) var(--ease-standard),background var(--motion-fast); }.home-search button svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2.5; }
.home-search button:hover { transform:scale(1.06); background:rgba(0,69,255,.08); box-shadow:none; }
.home-courses-wrap { position:relative; z-index:2; isolation:isolate; margin-top:clamp(-1080px,-70vw,-560px); }
.home-courses-wrap::before { content:""; position:absolute; z-index:-1; left:0; right:0; top:-180px; bottom:-180px; pointer-events:none; background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.08) 34%,rgba(0,0,0,.52) 100%); }
.home-courses-panel { position:relative; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.home-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.home-section-heading .home-kicker { color:rgba(255,255,255,.68); margin-bottom:5px; }
.home-section-heading h2,.home-access h2 { color:#fff; font-size:clamp(25px,3vw,34px); line-height:1.08; letter-spacing:-.04em; }
.home-section-heading a { display:flex; align-items:center; gap:5px; color:rgba(255,255,255,.82); font-size:14px; font-weight:650; text-decoration:none; }
.home-section-heading a svg,.home-course-card__action svg,.home-arrow { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2.2; }
.home-course-rail { --rail-fade-stop:86%; display:grid; grid-auto-columns:minmax(250px,22%); grid-auto-flow:column; gap:16px; overflow-x:auto; padding:14px 8px 16px; scrollbar-width:thin; mask-image:linear-gradient(to right,#000 0%,#000 var(--rail-fade-stop),transparent 100%); -webkit-mask-image:linear-gradient(to right,#000 0%,#000 var(--rail-fade-stop),transparent 100%); }
@keyframes home-course-rail-enter { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
.unilegal-page:not(.is-ready) .home-course-rail { opacity:0; }
.unilegal-page.is-ready .home-course-rail { animation:home-course-rail-enter 1000ms cubic-bezier(.22,1,.36,1) 260ms both; }
.home-course-card { min-width:220px; overflow:hidden; border:0; border-radius:26px; background:#fff; color:#161b22; text-decoration:none; box-shadow:0 18px 42px rgba(0,0,0,.28); transition:transform var(--motion-normal) var(--ease-spring),box-shadow var(--motion-normal) var(--ease-spring),filter var(--motion-normal) var(--ease-spring); }
.home-course-card:hover { transform:scale(1.025); box-shadow:0 24px 54px rgba(0,0,0,.40),0 0 26px rgba(0,69,255,.28),0 0 54px rgba(57,196,9,.14); filter:saturate(1.08) brightness(1.025); }
.home-course-card__image { position:relative; height:244px; overflow:hidden; background:#eaf0f8; }
.home-course-card__image img { width:100%; height:100%; object-fit:cover; transition:transform var(--motion-slow) var(--ease-standard); }
.home-course-card__soon { position:absolute; top:12px; right:12px; padding:6px 10px; border-radius:999px; color:#fff; background:rgba(9,15,27,.8); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(10px); font-size:10px; font-weight:800; letter-spacing:.045em; text-transform:uppercase; box-shadow:0 6px 16px rgba(0,0,0,.18); }
.home-course-card:hover img { transform:scale(1.045); }
.home-course-card__placeholder { height:100%; display:grid; place-items:center; background:radial-gradient(circle at 70% 18%,rgba(57,196,9,.85),transparent 24%),linear-gradient(135deg,#073ae8,#186aff 60%,#002ca4); }
.home-course-card__placeholder svg { width:55px; height:55px; stroke:white; stroke-width:1.5; fill:none; opacity:.9; }
.home-course-card.request .home-course-card__image { background:radial-gradient(circle at 50% 35%,rgba(57,196,9,.30),transparent 34%),linear-gradient(135deg,#0c1730,#0646d9); }
.home-course-card__request-icon { width:62px; height:62px; display:grid; place-items:center; border-radius:22px; color:#fff; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); box-shadow:0 14px 28px rgba(0,0,0,.18); }
.home-course-card__request-icon svg { width:30px; height:30px; stroke:currentColor; fill:none; stroke-width:2.4; stroke-linecap:round; }
.home-course-card.request .home-course-card__image { display:grid; place-items:center; }
.home-course-card__body { padding:16px 17px 17px; }
.home-course-card__body > span { color:#617184; font-size:10px; font-weight:750; letter-spacing:.07em; text-transform:uppercase; }
.home-course-card__free { position:absolute; right:12px; bottom:12px; padding:6px 10px; border-radius:999px; color:#075b35; background:#b8f5d4; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; box-shadow:0 6px 16px rgba(0,0,0,.16); }
.home-course-card h3 { min-height:45px; margin:5px 0 15px; font-size:18px; line-height:1.2; letter-spacing:-.025em; }
.home-course-card__action { display:flex; align-items:center; gap:5px; color:var(--blue); font-size:13px; font-weight:700; }
.home-access { display:grid; grid-template-columns:minmax(260px,.9fr) 1.1fr; gap:48px; align-items:center; padding-top:92px; }
.home-access h2 { max-width:460px; color:var(--text); }
.home-access__links { display:grid; gap:12px; }
.home-access__links a { display:flex; align-items:center; gap:14px; padding:17px; border:1px solid var(--border); border-radius:18px; color:var(--text); background:var(--surface); text-decoration:none; transition:background var(--motion-fast),transform var(--motion-fast); }
.home-access__links a:hover { background:var(--surface-hover); transform:translateX(3px); }
.institutional-page { min-height:70vh; }.institutional-hero { padding:132px 0 86px; background:radial-gradient(circle at 75% 20%,rgba(0,69,255,.26),transparent 34%),radial-gradient(circle at 18% 74%,rgba(57,196,9,.14),transparent 28%); }.institutional-hero h1 { max-width:760px; font-size:clamp(42px,6vw,76px); line-height:1.02; letter-spacing:-.055em; }.institutional-hero p { max-width:650px; margin:22px 0 30px; color:var(--text-secondary); font-size:18px; line-height:1.65; }
.home-access__links strong,.home-access__links small { display:block; }.home-access__links strong { font-size:15px; }.home-access__links small { margin-top:2px; color:var(--text-muted); font-size:12px; }.home-arrow { margin-left:auto; color:var(--text-muted); }
.home-solid-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; color:white; background:var(--blue); box-shadow:0 6px 14px rgba(0,69,255,.27); }.home-solid-icon.green { background:var(--green); box-shadow:0 6px 14px rgba(57,196,9,.22); }.home-solid-icon svg { width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:2; }
.cmd-item-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:720px) { .home-hero{min-height:0;margin-top:0;aspect-ratio:1920/1788;background-position:top center}.home-hero__content{padding-top:42px !important}.home-hero__glass{width:80vw;min-height:78vw;padding:8vw 7vw 23vw;border-radius:28px}.home-hero-logo{width:54%;margin-bottom:8vw}.home-search{min-height:46px;padding:5px 7px 5px 13px}.home-search > svg{width:16px;height:16px}.home-search input{font-size:14px}.home-search button{width:34px;height:34px}.home-search button svg{width:18px;height:18px}.home-courses-wrap{margin-top:-72vw}.home-courses-panel{padding:0;border-radius:0}.home-section-heading{align-items:center}.home-section-heading a{font-size:13px;white-space:nowrap}.home-course-rail{grid-auto-columns:78%;}.home-course-card__image{height:190px}.home-access{grid-template-columns:1fr;gap:28px;padding:64px 0 0}.home-access__links a{padding:14px}.home-kicker{font-size:10px;} }

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Black.ttf') format('truetype');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-UltraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-RegularItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-HeavyItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-BlackItalic.ttf') format('truetype');
    font-weight: 950;
    font-style: italic;
    font-display: swap;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 240ms cubic-bezier(.2,.8,.2,1) both fade-out;
}

::view-transition-new(root) {
  animation: 400ms cubic-bezier(.16,1,.3,1) both fade-in;
}

/* ========== 1. TOKENS ========== */

:root {
  --bg: #070809;
  --bg-deep: #040506;
  --bg-elevated: #0d0f12;

  --surface: rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.075);
  --surface-strong: rgba(255,255,255,.095);

  --blue: #0045ff;
  --blue-2: #165dff;
  --blue-3: #0037cf;
  --blue-4: #062a8f;
  --green: #39c409;
  --green-2: #207d06;
  --green-glow: rgba(57,196,9,.55);
  --danger: #ef4444;
  --warning: #f59e0b;

  --text: #f7f8fa;
  --text-secondary: rgba(255,255,255,.68);
  --text-muted: rgba(255,255,255,.42);
  --text-faint: rgba(255,255,255,.22);

  --border: rgba(255,255,255,.08);
  --border-highlight: rgba(255,255,255,.14);
  --border-strong: rgba(255,255,255,.20);

  --blue-border: rgba(0,69,255,.35);
  --green-border: rgba(57,196,9,.36);

  --blue-glass: rgba(0,69,255,.14);
  --green-glass: rgba(57,196,9,.12);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 42px;
  --radius-full: 999px;

  --motion-fast: 160ms;
  --motion-normal: 280ms;
  --motion-slow: 520ms;
  --motion-xslow: 820ms;

  --ease-standard: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --shadow-soft: 0 8px 28px rgba(0,0,0,.22);
  --shadow-md: 0 18px 50px rgba(0,0,0,.32);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.42);
  --shadow-blue: 0 14px 40px rgba(0,69,255,.22);
  --shadow-green: 0 14px 40px rgba(57,196,9,.18);

  --grid-m: 24px;
  --grid-s: 16px;
}

/* ========== 2. RESET ========== */

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

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

body {
  position: relative;
  isolation: isolate;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  letter-spacing: -0.008em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

small {
  letter-spacing: 0;
}

/* ========== 3. LUZES AMBIENTAIS ========== */

.ambient-blue,
.ambient-green {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
}

.ambient-blue {
  top: -260px;
  left: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(0,69,255,.18), rgba(0,69,255,0) 62%);
  filter: blur(140px);
  border-radius: 50%;
  opacity: .85;
  animation: ambientFloat 22s ease-in-out infinite;
}

.ambient-green {
  bottom: -220px;
  right: -160px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(57,196,9,.10), rgba(57,196,9,0) 65%);
  filter: blur(150px);
  border-radius: 50%;
  opacity: .9;
  animation: ambientFloat 28s ease-in-out infinite reverse;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* ========== 4. GRADIENTES ========== */

.gradient-primary {
  background:
    linear-gradient(
      135deg,
      var(--blue-3) 0%,
      var(--blue) 42%,
      var(--green) 142%
    );
}

.gradient-text {
  background:
    linear-gradient(
      100deg,
      #ffffff 0%,
      #8aa7ff 42%,
      var(--green) 130%
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ========== 5. GLASS ========== */

.glass {
  background: rgba(18,20,24,.62);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 12px 40px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.glass-strong {
  background: rgba(14,16,20,.82);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
}

.glass-modal {
  background: rgba(18,18,21,.86);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ========== 6. MOTION BASE / REVEAL ========== */

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes scale-in {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}
@keyframes slide-in-left {
  from { transform: translateX(-38px); opacity: 0; filter: blur(4px); }
  to   { transform: translateX(0);     opacity: 1; filter: blur(0); }
}

.reveal {
  animation: reveal var(--motion-xslow) var(--ease-spring) both;
}

.reveal:nth-child(1){ animation-delay: 40ms; }
.reveal:nth-child(2){ animation-delay: 80ms; }
.reveal:nth-child(3){ animation-delay: 120ms; }
.reveal:nth-child(4){ animation-delay: 160ms; }
.reveal:nth-child(5){ animation-delay: 200ms; }
.reveal:nth-child(6){ animation-delay: 240ms; }
.reveal:nth-child(7){ animation-delay: 280ms; }
.reveal:nth-child(8){ animation-delay: 320ms; }
.reveal:nth-child(9){ animation-delay: 360ms; }
.reveal:nth-child(10){ animation-delay: 400ms; }

/* ========== 7. TIPOGRAFIA HELPERS ========== */

.headline {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.display {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.heading-xl {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.heading-lg {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.heading-md {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-blue      { color: var(--blue); }
.text-green     { color: var(--green); }

.font-display { letter-spacing: -.025em; font-weight: 500; }

/* ========== 8. CONTAINER / LAYOUT HELPERS ========== */

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ========== 9. BOTÕES ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--text);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    transform 200ms var(--ease-spring),
    background-color 220ms var(--ease-standard),
    border-color 220ms var(--ease-standard),
    color 200ms var(--ease-standard),
    filter 250ms var(--ease-standard),
    box-shadow 280ms var(--ease-standard);
  position: relative;
  overflow: hidden;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.02);
}

.btn:hover::after { opacity: 1; }

.btn:active {
  transform: scale(.97) translateY(0);
  filter: brightness(.98);
  transition-duration: 80ms;
}

.btn-primary {
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 55%, var(--green) 150%);
  color: #ffffff;
  box-shadow:
    0 10px 28px rgba(0,69,255,.28),
    inset 0 1px 0 rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.10);
}

.btn-primary:hover {
  box-shadow:
    0 16px 40px rgba(0,69,255,.38),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.btn-success {
  background:
    linear-gradient(135deg, var(--green-2) 0%, var(--green) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-green);
  border: 1px solid rgba(255,255,255,.10);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-highlight);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline-blue {
  background: rgba(0,69,255,.08);
  color: #9ab4ff;
  border: 1px solid var(--blue-border);
}

.btn-outline-green {
  background: var(--green-glass);
  color: #a0ef7a;
  border: 1px solid var(--green-border);
}

.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13px; border-radius: 999px; }
.btn-lg { padding: 15px 28px; min-height: 52px; font-size: 15px; }
.btn-block { width: 100%; }

/* ========== 10. CARDS ========== */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 450ms var(--ease-spring),
    border-color 350ms var(--ease-standard),
    background-color 350ms var(--ease-standard),
    box-shadow 450ms var(--ease-standard);
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255,255,255,.06),
      transparent 40%
    );
  opacity: 0;
  transition: opacity 280ms var(--ease-standard);
  pointer-events: none;
  z-index: 0;
}

.card > * { position: relative; z-index: 1; }

.card:hover {
  transform: none;
  border-color: var(--border-highlight);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 1; }

.card-spotlight[data-spotlight="true"]::before {
  opacity: 1;
}

.card-body   { padding: 24px; }
.card-header { padding: 22px 24px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content: space-between; gap: 12px; }

/* ----- Cards premium coloridos (Dashboard) ----- */

.dashboard-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  color: #ffffff;
  box-shadow:
    0 20px 60px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.10);
  min-height: 180px;
  transition:
    transform 420ms var(--ease-spring),
    box-shadow 420ms var(--ease-spring);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.dashboard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .6;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.dashboard-card-blue {
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.20), transparent 32%),
    linear-gradient(135deg, var(--blue-3), var(--blue) 55%, var(--blue-4));
}

.dashboard-card-green {
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.20), transparent 35%),
    linear-gradient(135deg, var(--green-2), var(--green));
}

.dashboard-card-ink {
  background:
    radial-gradient(circle at 10% 100%, rgba(0,69,255,.55), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(57,196,9,.28), transparent 38%),
    linear-gradient(135deg, #0a0c10 0%, #14181f 100%);
}

.dashboard-card-inner {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

/* ========== 11. BADGES ========== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-blue {
  background: var(--blue-glass);
  color: #9ab4ff;
  border-color: rgba(0,69,255,.34);
}

.badge-green {
  background: var(--green-glass);
  color: #a0ef7a;
  border-color: var(--green-border);
}

.badge-gray {
  background: rgba(255,255,255,.04);
  color: var(--text-secondary);
  border-color: var(--border);
}

.badge-warning {
  background: rgba(245,158,11,.10);
  color: #fbbf24;
  border-color: rgba(245,158,11,.30);
}

.badge-danger {
  background: rgba(239,68,68,.10);
  color: #fca5a5;
  border-color: rgba(239,68,68,.30);
}

/* Etiquetas sobre capas: contraste reforçado para leitura em qualquer imagem. */
.course-card-thumb > div[style*="position"] { z-index: 3; }
.course-card-thumb .badge { min-height: 28px; padding: 6px 13px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: 0 5px 16px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.course-card-thumb .badge-gray { background: rgba(8,15,29,.9); color: #f1f5ff; border-color: rgba(255,255,255,.24); }
.course-card-thumb .badge-green { background: rgba(8,76,45,.94); color: #b9ffd8; border-color: rgba(91,235,157,.72); }
.course-card-thumb .badge-free { background: #0b8f55; color: #ecfff5; border-color: #6af0ad; }
.course-card__badges { position:absolute; top:12px; right:12px; z-index:3; display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; max-width:calc(100% - 24px); }
.course-card__badges .badge { flex:0 0 auto; }
.course-card__category { margin:0 0 6px; color:#8fb8ff !important; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; text-shadow:0 1px 8px rgba(72,128,255,.24); }

/* ========== 12. INPUTS ========== */

.input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  min-height: 46px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition:
    border-color 200ms var(--ease-standard),
    background-color 200ms var(--ease-standard),
    box-shadow 220ms var(--ease-standard);
}

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0,69,255,.65);
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 0 4px rgba(0,69,255,.12);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ========== 13. GRID / BENTO ========== */

.grid {
  display: grid;
  gap: var(--grid-m);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
  gap: 20px;
}

.bento > * { min-width: 0; }

.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }
.bento-col-2 { grid-column: span 2; }
.bento-col-1 { grid-column: span 1; }
.bento-row-2 { grid-row: span 2; }

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-col-4,
  .bento-col-3,
  .bento-col-2,
  .bento-col-1 { grid-column: span 2; }
  .bento-row-2 { grid-row: span 1; }
}

/* ========== 14. PROGRESSO ========== */

.progress {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background:
    linear-gradient(90deg,
      var(--blue) 0%,
      var(--blue-2) 55%,
      var(--green) 130%
    );
  border-radius: var(--radius-full);
  width: 0;
  transition: width 820ms var(--ease-spring);
  position: relative;
  box-shadow: 0 0 18px rgba(0,69,255,.30);
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0));
}

/* ----- Progress Ring SVG ----- */

.progress-ring {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.progress-ring .ring-bg {
  stroke: rgba(255,255,255,.07);
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-ring .ring-fg {
  stroke: url(#unilegalRingGradient);
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 900ms var(--ease-spring);
  filter: drop-shadow(0 0 8px rgba(0,69,255,.35));
}

.progress-ring.green .ring-fg {
  stroke: var(--green);
  filter: drop-shadow(0 0 8px var(--green-glow));
}

.progress-ring .ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ========== 15. SKELETON ========== */

.skeleton,
.skeleton-block {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.09),
    rgba(255,255,255,.04)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.09),
    rgba(255,255,255,.04)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-text:last-child { width: 60%; margin-bottom: 0; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== 16. LOADER PROPRIETÁRIO UNILEGAL (MINIMAL) — NAVEGAÇÃO ========== */

.unilegal-loader-nav {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(57, 196, 9, 0.045),
            transparent 30%
        ),
        rgba(5, 6, 7, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 420ms cubic-bezier(.16, 1, .3, 1),
        visibility 420ms;
}

.unilegal-loader-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.unilegal-loader-nav__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(6px) scale(.97);
    opacity: 0;
    transition:
        transform 600ms cubic-bezier(.16, 1, .3, 1),
        opacity 500ms ease;
}

.unilegal-loader-nav.is-active .unilegal-loader-nav__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.unilegal-loader-nav__symbol {
    width: 150px;
    height: auto;
    overflow: visible;
    filter:
        drop-shadow(0 0 4px rgba(57, 196, 9, .14));
}

/* Loader de navegação — SEM trilha fantasma. Apenas beam percorrendo. */
.unilegal-loader-nav__beam {
    fill: none;
    stroke: #39c409;
    stroke-width: 11;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 15 85;
    stroke-dashoffset: 0;
    filter:
        drop-shadow(0 0 2px rgba(57, 196, 9, .75))
        drop-shadow(0 0 7px rgba(57, 196, 9, .28))
        drop-shadow(0 0 15px rgba(57, 196, 9, .09));
    animation:
        unilegal-nav-path 1.85s linear infinite,
        unilegal-nav-light 1.85s ease-in-out infinite;
}

@keyframes unilegal-nav-path {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -100; }
}

@keyframes unilegal-nav-light {
    0%, 100% { opacity: .55; }
    20%      { opacity: .82; }
    50%      { opacity: 1; }
    80%      { opacity: .82; }
}

.unilegal-loader-nav__text {
    margin-top: 23px;
    color: rgba(255, 255, 255, .42);
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .02em;
}

.unilegal-loader-nav__text::after {
    content: "";
    display: inline-block;
    width: 18px;
    text-align: left;
    animation: unilegal-nav-dots 1.6s infinite;
}

@keyframes unilegal-nav-dots {
    0%       { content: ""; }
    25%      { content: "."; }
    50%      { content: ".."; }
    75%, 100%{ content: "..."; }
}

/* Loader inline (pequeno) — preservado para uso em botões/cards */
.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
  filter: drop-shadow(0 0 4px rgba(57,196,9,.35));
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 17. EMPTY STATES ========== */

.empty-state {
  position: relative;
  text-align: center;
  padding: 72px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px dashed var(--border);
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%2339c409' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'><path d='M100 28 L162 64 V136 L100 172 L38 136 V64 Z'/><path d='M80 80 V116 a20 20 0 0 0 40 0 V80'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 220px 220px;
  opacity: 1;
  pointer-events: none;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.empty-state-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.empty-state-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ========== 18. TOASTS ========== */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  background: rgba(16,18,22,.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 14px;
  color: var(--text);
  animation: toast-in 420ms var(--ease-spring) both;
  will-change: transform, opacity;
}

.toast.leaving {
  animation: toast-out 280ms var(--ease-standard) both;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.toast.success { border-color: var(--green-border); }
.toast.success .toast-icon { background: var(--green-glass); color: var(--green); }

.toast.info { border-color: var(--blue-border); }
.toast.info .toast-icon { background: var(--blue-glass); color: #8aa7ff; }

.toast.error { border-color: rgba(239,68,68,.30); }
.toast.error .toast-icon { background: rgba(239,68,68,.10); color: #fca5a5; }

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.toast-msg { font-size: 13px; color: var(--text-secondary); }

@keyframes toast-in {
  from { transform: translateX(110%); opacity: 0; filter: blur(6px); }
  to   { transform: translateX(0);     opacity: 1; filter: blur(0);   }
}
@keyframes toast-out {
  to { transform: translateX(30px); opacity: 0; filter: blur(6px); }
}

/* ========== 19. MODAIS ========== */

.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fade-in 240ms var(--ease-standard) both;
}

.modal {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scale-in 360ms var(--ease-spring) both;
  background: rgba(18,18,21,.86);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}

.modal-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  letter-spacing: -.02em;
}

.modal-body { padding: 26px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-header, .modal-footer { flex-shrink: 0; }
.modal-footer {
  padding: 20px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-close,
.icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-spring),
    border-color 180ms var(--ease-standard);
}

.modal-close:hover,
.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.icon-btn:active,
.modal-close:active { transform: scale(.95); }

.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ========== 20. COMMAND PALETTE (⌘K) ========== */

.command-palette {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1010;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: fade-in 200ms var(--ease-standard) both;
}
.command-palette.open { display: flex; }

.command-palette-inner {
  width: 100%;
  max-width: 720px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(16,18,22,.92);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  animation: cmd-in 320ms var(--ease-spring) both;
  transform-origin: top center;
}

@keyframes cmd-in {
  from { opacity: 0; transform: translateY(-12px) scale(.98); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0);   }
}

.cmd-search {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.cmd-search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; stroke-width: 1.8; stroke: currentColor; fill: none; }

.cmd-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -.01em;
  padding: 0;
  min-height: 28px;
  box-shadow: none !important;
  outline: none;
}

.cmd-search input::placeholder { color: var(--text-muted); }

.cmd-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

.cmd-groups {
  max-height: 56vh;
  overflow-y: auto;
  padding: 10px;
}

.cmd-group { padding: 6px; }
.cmd-group-title {
  padding: 10px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  transition: background 160ms var(--ease-standard), color 160ms var(--ease-standard);
  cursor: pointer;
}

.cmd-item:hover,
.cmd-item.active {
  background: var(--surface-hover);
  color: var(--text);
}

.cmd-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cmd-item-icon svg { width: 16px; height: 16px; stroke-width: 1.8; stroke: currentColor; fill: none; }

.cmd-item-body { flex: 1; min-width: 0; }
.cmd-item-title { font-size: 14px; font-weight: 500; color: inherit; }
.cmd-item-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.cmd-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.cmd-footer .keys { display: inline-flex; gap: 8px; }
.cmd-footer .keys kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== 21. APP SHELL / SIDEBAR ========== */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  display: none;
  opacity: 0;
  transition: opacity 220ms var(--ease-standard);
}
.mobile-overlay.open { display: block; opacity: 1; }

.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: transparent;
  border-right: 1px solid var(--border);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 80;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

.sidebar.closed { width: 84px; padding: 18px 10px; }
.sidebar.closed .nav-text,
.sidebar.closed .brand-text,
.sidebar.closed .nav-group-title,
.sidebar.closed .user-box > div { display: none; }
.sidebar.closed .user-box { justify-content: center; padding-inline: 8px; }
.sidebar.closed .brand { justify-content: center; padding-inline: 6px; }
.sidebar.closed .nav-btn,
.sidebar.closed .nav-item { justify-content: center; padding-inline: 12px; }

.brand {
  padding: 8px 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  color: var(--text);
}

.brand img {
  height: 32px;
  border-radius: 8px;
}
.brand-logo { text-decoration:none; overflow:visible; }
.brand-logo img { width:auto; max-width:172px; height:36px; border-radius:0; object-fit:contain; }
.sidebar.closed .brand-logo img { width:38px; height:38px; object-fit:cover; object-position:left; }

.brand-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  display: block;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-group { margin: 10px 0; }
.nav-group-title {
  padding: 10px 12px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 200ms var(--ease-standard);
}

.nav-ico svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn,
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard),
    transform 180ms var(--ease-spring);
  text-align: left;
  position: relative;
  border: 1px solid transparent;
  margin-bottom: 2px;
}

.nav-btn:hover,
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: translateX(1px);
}

.nav-btn:hover .nav-ico,
.nav-item:hover .nav-ico { color: var(--text); }

.nav-btn.active,
.nav-item.active {
  background: rgba(255,255,255,.075);
  color: var(--text);
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.nav-btn.active .nav-ico,
.nav-item.active .nav-ico {
  color: var(--text);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 10px 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.user-box > div { flex: 1; min-width: 0; }
.user-box small { display: block; font-size: 11px; color: var(--text-muted); }
.user-box .user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}
.user-box .user-role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--text);
  font-size: 14px;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; border-radius: 50%; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 84px; height: 84px; font-size: 28px; border-radius: 28px; }

/* ========== 22. HEADER APP ========== */

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header-app {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,8,9,.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left  { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.menu-toggle,
.header-action {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-spring),
    border-color 180ms var(--ease-standard);
  position: relative;
}

.menu-toggle:hover,
.header-action:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.menu-toggle:active,
.header-action:active { transform: scale(.96); }

.menu-toggle svg,
.header-action svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action .dot {
  position: absolute;
  top: 9px; right: 9px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 8px var(--green-glow);
}

.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(16,18,22,.95);
  border: 1px solid var(--border-highlight);
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease-standard),
    transform 180ms var(--ease-spring),
    visibility 180ms;
  pointer-events: none;
  z-index: 20;
  box-shadow: var(--shadow-soft);
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 560px;
  min-width: 0;
  cursor: pointer;
}

.search-box input {
  padding-left: 44px;
  padding-right: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.search-box:hover input {
  background: var(--surface-hover);
  border-color: var(--border-highlight);
  color: var(--text);
}

.search-box .search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-box .search-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}

.search-kbd kbd {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    background-color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    transform 180ms var(--ease-spring);
  min-height: 42px;
}

.user-menu-trigger:hover {
  background: var(--surface-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.user-menu-info small { display: block; font-size: 11px; color: var(--text-muted); }
.user-menu-info .uname {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.01em;
}

.chevron {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.user-menu-wrap { position:relative; }
.user-menu-trigger { color:inherit; cursor:pointer; font:inherit; }
.user-popover, .notification-popover {
  position:absolute; right:0; top:calc(100% + 12px); z-index:80; width:290px;
  padding:14px; border:1px solid var(--border-highlight); border-radius:18px;
  background:rgba(18,20,25,.96); box-shadow:0 22px 60px rgba(0,0,0,.4);
  backdrop-filter:blur(22px); animation:popover-in 180ms var(--ease-spring) both;
}
.notification-popover { right:58px; width:310px; }
.user-popover[hidden], .notification-popover[hidden] { display:none; }
.user-popover__identity { display:flex; gap:10px; align-items:center; padding:4px 4px 14px; border-bottom:1px solid var(--border); }
.user-popover__identity strong, .user-popover__identity span { display:block; }
.user-popover__identity strong { font-size:13px; color:var(--text); }
.user-popover__identity span { font-size:11px; color:var(--text-muted); margin-top:3px; overflow:hidden; text-overflow:ellipsis; max-width:190px; }
.user-popover__links { display:grid; gap:4px; padding-top:10px; }
.user-popover__links a, .user-popover__links button { display:flex; align-items:center; gap:10px; width:100%; padding:10px; border:0; border-radius:10px; background:transparent; color:var(--text-secondary); text-decoration:none; text-align:left; font:inherit; font-size:13px; cursor:pointer; }
.user-popover__links a:hover, .user-popover__links button:hover { background:var(--surface-hover); color:var(--text); }
.user-popover__links svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.user-popover__links .user-popover__logout { color:#f78b96; border-top:1px solid var(--border); margin-top:5px; padding-top:13px; border-radius:0; }
.notification-popover__head { display:flex; align-items:center; justify-content:space-between; padding:2px 3px 12px; border-bottom:1px solid var(--border); color:var(--text); font-size:14px; }
.notification-popover__head button { border:0; background:transparent; color:var(--text-muted); font-size:22px; line-height:1; cursor:pointer; }
.notification-empty { min-height:150px; display:grid; place-items:center; align-content:center; gap:7px; text-align:center; color:var(--text-muted); font-size:12px; }
.notification-empty strong { color:var(--text); font-size:13px; }
.notification-empty__icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:var(--blue); background:var(--blue-light); }
.notification-list { max-height:330px; overflow:auto; padding-top:4px; }
.notification-item { display:flex; gap:9px; padding:11px 4px; border-bottom:1px solid var(--border); }
.notification-item:last-child { border-bottom:0; }
.notification-item__dot { width:7px; height:7px; flex:0 0 7px; margin-top:5px; border-radius:50%; background:var(--blue); box-shadow:0 0 10px rgba(0,69,255,.7); }
.notification-item strong, .notification-item span, .notification-item small { display:block; }
.notification-item strong { font-size:12px; color:var(--text); }
.notification-item span { margin-top:3px; color:var(--text-secondary); font-size:11px; line-height:1.4; }
.notification-item small { margin-top:5px; color:var(--text-muted); font-size:10px; }
.profile-edit-card { background:linear-gradient(145deg, rgba(255,255,255,.045), rgba(0,69,255,.045)); }
.profile-header { display:flex; align-items:flex-start; gap:18px; max-width:980px; padding:8px 0 0; }
.profile-header > div:nth-child(2) { padding-top:2px; }
.profile-avatar { width:72px; height:72px; flex:0 0 72px; border-radius:22px; overflow:hidden; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#0045ff,#39c409); font-size:25px; font-weight:800; box-shadow:0 12px 30px rgba(0,69,255,.22); }
.profile-avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.profile-header h2 { font-size:28px !important; letter-spacing:-.035em; margin:0; }
.profile-email { color:var(--text-secondary); font-size:14px; margin-top:5px; }
.profile-header .badge { font-size:11px; }
.profile-header .profile-stats { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; margin-top:20px; }
.profile-header .profile-stats .stat { min-width:0; padding:13px 15px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.035); }
.profile-header .profile-stats small { display:block; color:var(--text-muted); font-size:10px; line-height:1.25; text-transform:uppercase; letter-spacing:.045em; }
.profile-header .profile-stats strong { display:block; margin-top:5px; color:var(--text); font-size:22px; line-height:1; font-weight:750; }
.profile-edit-card input { display:block; width:100%; min-height:46px; padding:12px 16px; box-sizing:border-box; color:var(--text) !important; background:rgba(255,255,255,.045) !important; border:1px solid var(--border) !important; border-radius:14px !important; }
.profile-edit-card input:focus { border-color:var(--blue) !important; box-shadow:0 0 0 3px rgba(0,69,255,.14); }
.profile-edit-card .section-card-head { display:flex; justify-content:space-between; margin-bottom:20px; }
.profile-edit-card h3 { margin:0; font-size:18px; }
.profile-edit-card .section-card-head p { margin:5px 0 0; color:var(--text-muted); font-size:13px; }
.profile-edit-grid { display:grid; grid-template-columns:180px 1fr; gap:28px; }
.profile-photo-field { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.profile-avatar--edit { width:112px; height:112px; font-size:38px; border-radius:26px; background:linear-gradient(145deg,#0045ff 0%,#0b75ff 45%,#39c409 100%); border:0; box-shadow:0 14px 34px rgba(0,69,255,.25); }
.profile-avatar--edit img { border-radius:22px; margin:4px; width:calc(100% - 8px); height:calc(100% - 8px); }
.profile-avatar--edit span { display:grid; place-items:center; width:100%; height:100%; }
.profile-photo-field small { color:var(--text-muted); font-size:10px; line-height:1.4; }
.profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.profile-fields label { display:flex; flex-direction:column; gap:7px; color:var(--text-secondary); font-size:12px; font-weight:600; }
.profile-fields input { width:100%; }
.profile-password-row { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.profile-edit-actions { display:flex; justify-content:flex-end; margin-top:24px; padding-top:18px; border-top:1px solid var(--border); }
.profile-flash { padding:11px 14px; border-radius:10px; margin-bottom:18px; font-size:13px; }
.profile-flash--success { color:#9be477; background:rgba(57,196,9,.1); border:1px solid rgba(57,196,9,.25); }
.profile-flash--error { color:#ff9ca5; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.25); }
.my-courses-hero { min-height:210px; display:flex; align-items:center; justify-content:space-between; gap:28px; padding:34px 38px; border-radius:24px; background:radial-gradient(circle at 88% 15%, rgba(57,196,9,.23), transparent 25%), linear-gradient(120deg,#073cdd 0%,#0642ef 48%,#102b78 100%); box-shadow:0 18px 46px rgba(0,53,205,.17); overflow:hidden; position:relative; }
.my-courses-hero::after { content:''; position:absolute; inset:auto -45px -90px auto; width:250px; height:250px; border:24px solid rgba(255,255,255,.1); border-radius:50%; }
.my-courses-hero > * { position:relative; z-index:1; }
.my-courses-kicker { color:rgba(255,255,255,.72); letter-spacing:.08em; font-weight:700; font-size:10px; }
.my-courses-hero h1 { margin:10px 0 7px; color:#fff; font-size:32px; font-weight:700; letter-spacing:-.04em; }
.my-courses-hero p { margin:0; color:rgba(255,255,255,.78); font-size:14px; }
.my-courses-hero .btn { flex:0 0 auto; background:#fff; color:#0640de; border:0; }
.my-courses-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:20px 0 26px; }
.my-courses-overview > div { padding:18px 20px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.my-courses-overview small, .my-courses-overview span { display:block; color:var(--text-muted); font-size:10px; letter-spacing:.05em; }
.my-courses-overview strong { display:block; margin:7px 0 5px; color:var(--text); font-size:26px; line-height:1; }
.my-courses-overview span { letter-spacing:0; font-size:12px; }
.my-courses-tabs { display:flex; gap:8px; border-bottom:1px solid var(--border); margin-bottom:24px; }
.my-courses-tabs a { padding:11px 5px; margin-right:18px; color:var(--text-muted); font-size:14px; text-decoration:none; border-bottom:2px solid transparent; }
.my-courses-tabs a.active { color:var(--text); border-color:var(--blue); }
.my-courses-tabs b { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; border-radius:7px; color:var(--text-secondary); background:rgba(255,255,255,.07); font-size:10px; }
.my-courses-empty { border-style:dashed; background:linear-gradient(145deg,rgba(0,69,255,.08),rgba(57,196,9,.04)); }
.course-page{max-width:1180px;margin:0 auto}.course-hero{min-height:280px;display:flex;align-items:end;position:relative;overflow:hidden;border-radius:24px;padding:36px;color:#fff;background:#0b1830}.course-hero__cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42}.course-hero__shade{position:absolute!important;inset:0;z-index:0!important;max-width:none!important;background:linear-gradient(90deg,rgba(2,8,18,.91),rgba(2,8,18,.28))}.course-hero__content{position:relative;z-index:1;max-width:700px}.course-hero__eyebrow,.course-builder__eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;color:#65e3d0}.course-hero h1{font-size:34px;margin:9px 0}.course-hero p{font-size:17px;margin:0}.course-builder,.course-curriculum,.course-overview{margin-top:22px;padding:26px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.course-builder__header,.course-builder__section-title,.course-curriculum__heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-start}.course-builder__header h2,.course-curriculum h2,.course-overview h2{margin:6px 0;font-size:22px}.course-builder__header p,.course-builder__section-title p{color:var(--text-muted);margin:0}.course-builder__section{padding:25px 0;border-top:1px solid var(--border)}.course-builder__section:first-of-type{border-top:0}.course-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.course-fields label,.course-builder__section>label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--text-secondary)}.course-fields input,.course-builder textarea{width:100%;box-sizing:border-box}.course-builder textarea{min-height:100px}.builder-upload{display:flex;flex-direction:column;gap:7px;margin-top:16px;font-size:12px;color:var(--text-secondary)}.builder-upload small{font-size:11px;color:var(--text-muted)}.builder-module{padding:18px;border:1px solid var(--border);border-radius:16px;margin:14px 0;background:rgba(255,255,255,.025)}.builder-module__top,.builder-lesson__heading{display:flex;gap:12px;align-items:end;justify-content:space-between}.builder-module__top label{flex:1;display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--text-secondary)}.builder-lesson{padding:16px;border-radius:12px;background:rgba(0,69,255,.06);margin:12px 0}.builder-lesson__heading{align-items:center}.builder-file-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.builder-file-grid .builder-upload{padding:12px;margin:0;border-radius:10px;background:rgba(255,255,255,.035)}.builder-remove{background:transparent;border:0;color:var(--text-muted);cursor:pointer}.course-empty{padding:36px;text-align:center;color:var(--text-muted);border:1px dashed var(--border);border-radius:14px}.curriculum-module{padding:18px 0;border-bottom:1px solid var(--border)}.curriculum-module header>span,.curriculum-lesson span{font-size:10px;color:#65e3d0;font-weight:800;letter-spacing:.08em}.curriculum-module h3{font-size:16px;margin:5px 0}.curriculum-lesson{display:flex;gap:14px;align-items:center;padding:12px;margin-top:9px;border-radius:12px;background:rgba(255,255,255,.03)}.curriculum-lesson img{width:88px;height:58px;object-fit:cover;border-radius:9px}.curriculum-lesson h4{margin:4px 0;font-size:14px}.curriculum-lesson p{margin:0;color:var(--text-muted);font-size:13px}.curriculum-lesson__links{display:flex;gap:14px;margin-top:8px}.curriculum-lesson__links a{font-size:12px;color:var(--blue);font-weight:700}.course-flash{padding:12px 16px;border-radius:12px;margin:0 0 16px}.course-flash--success{background:rgba(57,196,9,.1);color:#9be477}.course-flash--error{background:rgba(239,68,68,.1);color:#ff9ca5}@media(max-width:700px){.course-fields,.builder-file-grid{grid-template-columns:1fr}.course-hero{padding:26px}.course-hero h1{font-size:28px}.course-builder__header,.course-builder__section-title,.course-curriculum__heading{flex-direction:column}.builder-module__top{align-items:stretch;flex-direction:column}}
@media (max-width:700px) { .my-courses-hero { padding:28px; align-items:flex-start; flex-direction:column; } .my-courses-overview { grid-template-columns:1fr; } }
@media (max-width: 700px) { .profile-header { flex-direction:column; } .profile-header .profile-stats { grid-template-columns:1fr 1fr; width:100%; } .profile-edit-grid, .profile-fields, .profile-password-row { grid-template-columns:1fr; } .profile-photo-field { align-items:flex-start; text-align:left; } }
@keyframes popover-in { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:none; } }
.chevron svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  padding: 32px;
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* ========== 23. PAGE HEADERS ========== */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 6px;
  color: var(--text);
}

.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.page-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ========== 24. COURSE CARDS ========== */

.course-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  color: inherit;
  transition:
    transform 450ms var(--ease-spring),
    border-color 320ms var(--ease-standard),
    background-color 320ms var(--ease-standard),
    box-shadow 420ms var(--ease-standard);
  will-change: transform;
}

.course-card:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: var(--border-highlight);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.course-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.06), transparent 45%),
    linear-gradient(135deg, #14181f 0%, #0a0c10 100%);
  border-bottom: 1px solid var(--border);
}

.course-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
  z-index: 1;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease-spring);
}

.course-card:hover .course-card-thumb img { transform: scale(1.035); }

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.thumb-placeholder svg { width: 38px; height: 38px; stroke-width: 1.5; }

.course-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.course-card-top {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-card h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--text);
}

.course-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.course-card-progress { margin-top: auto; }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 220ms var(--ease-standard),
    transform 220ms var(--ease-spring),
    color 180ms var(--ease-standard),
    background-color 180ms var(--ease-standard);
}
.course-card:hover .fav-btn,
.book-card:hover .fav-btn {
  opacity: 1;
  transform: translateY(0);
}

.fav-btn.is-fav { color: var(--green); opacity: 1; transform: translateY(0); }

/* ========== 25. BIBLIOTECA / BOOK CARDS (Apple Books-like) ========== */

.books-row-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin: 28px 0 16px;
  gap: 16px;
}

.books-row-title h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.015em;
}

.books-row-title a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 180ms var(--ease-standard);
}
.books-row-title a:hover { color: var(--text); }

.bookshelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) { .bookshelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .bookshelf { grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.bookshelf .book-card { scroll-snap-align: start; } }

.book-card {
  display: block;
  color: inherit;
  transition:
    transform 480ms var(--ease-spring),
    box-shadow 480ms var(--ease-spring);
}

.book-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #14181f 0%, #0a0c10 100%);
  box-shadow:
    0 6px 20px rgba(0,0,0,.32),
    inset -2px 0 0 rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow 480ms var(--ease-spring);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.book-card:hover .book-cover {
  box-shadow:
    0 24px 60px rgba(0,0,0,.48),
    inset -2px 0 0 rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.book-cover-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.book-cover-text h5 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.book-cover-text p { font-size: 12px; color: rgba(255,255,255,.78); }

.book-open-action {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  right: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms var(--ease-standard),
    transform 260ms var(--ease-spring);
}
.book-card:hover .book-open-action {
  opacity: 1;
  transform: translateY(0);
}

.book-meta {
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.book-meta h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.3;
}

.book-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== 26. CURSO HERO CINEMATOGRÁFICO ========== */

.course-hero {
  position: relative;
  margin: -32px -32px 32px;
  padding: 56px 32px 72px;
  overflow: hidden;
  isolation: isolate;
}

.course-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to bottom, black 28%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, black 28%, transparent 96%);
  opacity: .55;
}

.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,8,9,.3), rgba(7,8,9,.75) 65%, rgba(7,8,9,.98) 100%);
}

.course-hero::after {
  content: '';
  position: absolute;
  left: -80px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,69,255,.20), rgba(0,69,255,0) 62%);
  filter: blur(120px);
  z-index: -1;
}

.course-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.course-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.course-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 14px;
}

.course-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 28px;
}

.course-stats {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  flex-wrap: wrap;
}

.course-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.course-progress-inline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 220px;
}

.course-progress-inline .progress {
  flex: 1;
  height: 6px;
}

.course-progress-inline strong {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ========== 27. LESSON PLAYER ========== */

.player-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

.player-wrap iframe,
.player-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player-controls {
  padding: 20px 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.lesson-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.lesson-path {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.lesson-path svg { width: 14px; height: 14px; stroke-width: 1.8; }

/* ========== 28. SEARCH OVERLAY ========== */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4,5,6,.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: fade-in 220ms var(--ease-standard) both;
}
.search-overlay.open { display: flex; }

.search-box-large {
  width: 100%;
  max-width: 760px;
  margin: 0 24px;
  animation: scale-in 360ms var(--ease-spring) both;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(16,18,22,.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-muted); stroke-width: 1.8; stroke: currentColor; fill: none; }

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 17px;
  padding: 0;
  min-height: 28px;
  box-shadow: none !important;
  outline: none;
  letter-spacing: -.01em;
}

.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-results {
  max-height: 56vh;
  overflow-y: auto;
  border-radius: 22px;
  background: rgba(16,18,22,.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.10);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.search-section { padding: 6px; }
.search-section-label {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-spring);
  cursor: pointer;
}

.search-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: translateX(2px);
}

.search-item-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 600;
  font-family: inherit;
}

.search-item-body { flex: 1; min-width: 0; }
.search-item-title { font-size: 14px; font-weight: 500; color: inherit; letter-spacing: -.01em; }
.search-item-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ========== 29. HEADER PUBLIC / HOME ========== */

.header-public {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,9,.74);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--text);
}

.logo img { height: 34px; width:auto; max-width:none; border-radius:0; object-fit:contain; overflow:visible; }
.header-public .logo { overflow:visible; flex-shrink:0; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -.005em;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-spring);
}

.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; }

.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -140px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0,69,255,.18), rgba(0,69,255,0) 65%);
  filter: blur(140px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  right: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(57,196,9,.10), rgba(57,196,9,0) 65%);
  filter: blur(150px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue-glass);
  color: #9ab4ff;
  border: 1px solid var(--blue-border);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  margin-top: 68px;
  padding: 36px;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  background:
    radial-gradient(circle at 90% 0%, rgba(57,196,9,.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(0,69,255,.18), transparent 42%),
    rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow:
    0 24px 60px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--green-glass);
  border: 1px solid var(--green-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.hero-card-icon svg { width: 30px; height: 30px; stroke-width: 1.7; stroke: currentColor; fill: none; }

.hero-card-info { flex: 1; min-width: 0; }
.hero-card-info h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-card-info p { color: var(--text-secondary); line-height: 1.6; font-size: 14px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 64px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.stat-item h4 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-item p { color: var(--text-secondary); font-size: 13px; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 420ms var(--ease-spring),
    border-color 320ms var(--ease-standard),
    background-color 320ms var(--ease-standard),
    box-shadow 420ms var(--ease-standard);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-glass);
  border: 1px solid var(--blue-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ab4ff;
}

.feature-card.green .feature-icon {
  background: var(--green-glass);
  border-color: var(--green-border);
  color: var(--green);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== 30. FOOTER PUBLIC ========== */

.footer-public {
  background:
    radial-gradient(circle at 0% 0%, rgba(0,69,255,.08), transparent 45%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 72px 0 30px;
  margin-top: 80px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 360px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 180ms var(--ease-standard), transform 180ms var(--ease-spring);
}
.footer-col a:hover { color: var(--text); transform: translateX(2px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links { display: inline-flex; gap: 12px; }
.social-link {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)) border-box;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    transform 200ms var(--ease-spring);
}
.social-link:hover {
  background: linear-gradient(var(--surface-hover), var(--surface-hover)) padding-box,
    linear-gradient(145deg, #feda75, #d62976 48%, #4f5bd5) border-box;
  color: var(--text);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(214,41,118,.18), 0 0 0 4px rgba(214,41,118,.08);
}
.social-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.social-link img { width:27px; height:27px; object-fit:contain; display:block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.28)); }

/* ========== 31. TABELAS ADMIN ========== */

.table-wrap {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }

.table tbody tr {
  transition: background-color 180ms var(--ease-standard);
}
.table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

.table td.title-col {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.01em;
}

.table-actions {
  display: inline-flex;
  gap: 6px;
}

.row-menu {
  position: relative;
}

/* ========== 32. TABS ========== */

.tabs {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    background-color 200ms var(--ease-standard),
    color 200ms var(--ease-standard);
  min-height: 32px;
}

.tabs button:hover { color: var(--text); }

.tabs button.active {
  background: rgba(255,255,255,.085);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 1px 2px rgba(0,0,0,.20);
}

/* ========== 33. WELCOME / CONTINUE CARD (Dashboard) ========== */

.welcome-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 44px 48px;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  min-height: 220px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 88% 0%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, var(--blue-3), var(--blue) 52%, var(--blue-4));
  box-shadow:
    0 20px 60px rgba(0,69,255,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.welcome-card::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(57,196,9,.30), rgba(57,196,9,0) 60%);
  filter: blur(80px);
  z-index: -1;
}

.welcome-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .030 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: .7;
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.welcome-copy {
  flex: 1;
  min-width: 320px;
}

.welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.welcome-text {
  font-size: 15px;
  color: rgba(255,255,255,.80);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.welcome-progress {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  min-width: 260px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.welcome-progress strong {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.welcome-progress .progress {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.14);
}
.welcome-progress .progress-bar {
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    transform 420ms var(--ease-spring),
    border-color 320ms var(--ease-standard),
    background-color 320ms var(--ease-standard),
    box-shadow 420ms var(--ease-standard);
  min-height: 120px;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--surface-hover);
  box-shadow: var(--shadow-soft);
}

.stat-card .stat-num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: .01em;
}

.stat-card .stat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-secondary);
}
.stat-card .stat-ico svg { width: 22px; height: 22px; stroke-width: 1.8; stroke: currentColor; fill: none; }
.stat-card.blue .stat-ico  { background: var(--blue-glass);  color: #8aa7ff; border-color: var(--blue-border);  }
.stat-card.green .stat-ico { background: var(--green-glass); color: var(--green); border-color: var(--green-border); }

/* ========== 34. CONCLUSION SCREEN / CELEBRATION ========== */

.celebration {
  position: fixed;
  inset: 0;
  z-index: 1020;
  background: rgba(4,5,6,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 320ms var(--ease-standard) both;
}
.celebration.open { display: flex; }

.celebration-inner {
  width: 100%;
  max-width: 520px;
  padding: 48px 36px;
  border-radius: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: scale-in 520ms var(--ease-spring) both;
}

.celebration-inner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(57,196,9,.20), rgba(57,196,9,0) 55%);
  filter: blur(100px);
  pointer-events: none;
}

.celebration-logo {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: var(--green-glass);
  border: 1px solid var(--green-border);
  position: relative;
  box-shadow:
    0 0 0 8px rgba(57,196,9,.06),
    0 20px 40px rgba(57,196,9,.18);
  color: var(--green);
}

.celebration-logo svg { width: 46px; height: 46px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.celebration h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 10px;
  position: relative;
}

.celebration p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 28px;
  position: relative;
}

.celebration-actions {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ========== 35. COUNT UP ========== */

.count-up {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ========== 36. DRAWER ========== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  display: none;
  animation: fade-in 200ms var(--ease-standard) both;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(460px, 92vw);
  z-index: 901;
  background: rgba(14,16,20,.94);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-left: 1px solid var(--border-highlight);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 420ms var(--ease-spring);
  box-shadow: -30px 0 80px rgba(0,0,0,.50);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== 37. LESSONS LIST ========== */

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--text-secondary);
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-spring);
  cursor: pointer;
  border: 1px solid transparent;
}

.lesson-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
  transform: translateX(2px);
}

.lesson-item.active {
  background: rgba(0,69,255,.10);
  color: #c5d4ff;
  border-color: var(--blue-border);
}

.lesson-item.done {
  color: var(--green);
}

.lesson-item-num {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lesson-item.active .lesson-item-num {
  background: var(--blue-glass);
  color: #9ab4ff;
  border-color: var(--blue-border);
}

.lesson-item.done .lesson-item-num {
  background: var(--green-glass);
  color: var(--green);
  border-color: var(--green-border);
}

.lesson-item-body { flex: 1; min-width: 0; }
.lesson-item-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: inherit;
  line-height: 1.3;
}
.lesson-item-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.lesson-item-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: .8;
  flex-shrink: 0;
}
.lesson-item-check svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ========== 38. MAGNETIC BUTTON ========== */

[data-magnetic="true"] {
  will-change: transform;
}

/* ========== 39. ACESSIBILIDADE ========== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .ambient-blue,
  .ambient-green { display: none; }
  .unilegal-loader__beam {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .unilegal-loader__content {
    transition: none !important;
  }
  .unilegal-loader__text::after {
    animation: none !important;
    content: "..." !important;
  }
  .course-card:hover,
  .card:hover,
  .stat-card:hover,
  .dashboard-card:hover,
  .btn:hover,
  .book-card:hover { transform: none !important; }
  .course-card:hover .course-card-thumb img { transform: none !important; }
  @view-transition { navigation: none; }
}

/* Course studio and student experience */
.course-page{max-width:1240px;padding:34px 34px 72px}.course-showcase{display:grid;grid-template-columns:300px minmax(0,1fr);gap:48px;align-items:center;min-height:470px;padding:34px 44px;border:1px solid rgba(113,147,255,.18);border-radius:30px;background:radial-gradient(circle at 76% 12%,rgba(0,96,255,.20),transparent 34%),linear-gradient(120deg,#0b1224 0%,#070b15 58%,#0a1020 100%);overflow:hidden;position:relative}.course-showcase:after{content:'';position:absolute;width:450px;height:450px;right:-170px;bottom:-240px;border-radius:50%;background:radial-gradient(circle,rgba(48,211,189,.16),transparent 67%);pointer-events:none}.course-poster{width:278px;aspect-ratio:1122/1402;border-radius:24px;overflow:hidden;position:relative;isolation:isolate;box-shadow:0 30px 65px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.12);transform:rotate(-2deg);transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .4s}.course-poster:hover{transform:rotate(0) translateY(-6px);box-shadow:0 40px 72px rgba(0,0,0,.63),0 0 0 1px rgba(255,255,255,.2)}.course-poster img{width:100%;height:100%;display:block;object-fit:cover}.course-poster__glow{position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(transparent,rgba(0,0,0,.43));z-index:1}.course-showcase__body{position:relative;z-index:1;max-width:720px}.course-showcase__topline{display:flex;align-items:center;gap:12px;margin-bottom:17px}.course-status{font-size:11px;font-weight:700;color:#b7d7ff;padding:7px 10px;border-radius:999px;background:rgba(120,165,255,.12);border:1px solid rgba(130,168,255,.16)}.course-showcase h1{max-width:650px;font-size:clamp(36px,4.1vw,60px);line-height:1.02;margin:0;color:#fff;letter-spacing:-.045em}.course-showcase__subtitle{font-size:19px;color:#aebbd0;margin:15px 0 0}.course-showcase__description{max-width:630px;color:#8794aa;font-size:15px;line-height:1.65;margin:22px 0}.course-showcase__stats{display:flex;gap:23px;flex-wrap:wrap;margin:22px 0 30px}.course-showcase__stats span{color:#9eabc0;font-size:13px}.course-showcase__stats b{color:#fff;font-size:16px;margin-right:3px}.course-action{display:inline-flex!important;align-items:center;gap:12px;padding:13px 18px!important;border-radius:13px!important;border:1px solid rgba(118,186,255,.3)!important;background:linear-gradient(135deg,#125cff,#2daece)!important;color:#fff!important;font-size:13px;font-weight:800;text-decoration:none!important;box-shadow:0 12px 28px rgba(20,87,255,.25);cursor:pointer;transition:transform .2s ease,filter .2s ease,box-shadow .2s ease}.course-action:hover{transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 16px 34px rgba(20,87,255,.35)}.course-action span{font-size:17px;line-height:1}.course-action--ghost{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.14)!important;box-shadow:none}.course-builder{padding:0;overflow:hidden;border-color:rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(17,22,35,.96),rgba(8,12,21,.96))}.course-builder__header{padding:30px 32px;background:linear-gradient(100deg,rgba(30,82,198,.2),transparent 55%);align-items:center}.course-builder__section{padding:30px 32px}.course-builder__section h3{margin:0 0 7px;font-size:18px}.course-fields input,.course-builder textarea{border:1px solid rgba(255,255,255,.12)!important;background:rgba(2,7,15,.52)!important;border-radius:10px!important;color:#eff5ff!important;padding:12px 13px!important;min-height:45px}.course-builder textarea{line-height:1.55}.course-fields input:focus,.course-builder textarea:focus{border-color:rgba(55,159,255,.72)!important;box-shadow:0 0 0 3px rgba(18,102,255,.13)}.builder-upload{padding:14px 15px;border:1px dashed rgba(117,168,255,.3);border-radius:12px;background:rgba(28,74,157,.08)}.builder-upload input{max-width:100%;font-size:12px}.builder-module{padding:20px;background:linear-gradient(140deg,rgba(21,29,45,.83),rgba(10,15,25,.83));border-color:rgba(255,255,255,.1)}.builder-module__top{align-items:end}.builder-remove{padding:9px 11px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.035);font-size:12px}.builder-lesson{border:1px solid rgba(68,131,255,.18);background:rgba(16,61,145,.11)}.builder-file-grid{margin-top:5px}.builder-file-grid .builder-upload{background:rgba(0,0,0,.17)}.course-overview{display:grid;grid-template-columns:.7fr 1fr;gap:50px;align-items:start;padding:42px;background:linear-gradient(125deg,rgba(17,35,70,.82),rgba(10,13,22,.95));border-color:rgba(96,152,255,.17)}.course-overview h2{font-size:29px;line-height:1.14}.course-overview p{margin:3px 0;color:#9dabbe;line-height:1.75}.course-curriculum{padding:32px;background:rgba(11,15,25,.86);border-color:rgba(255,255,255,.09)}.course-curriculum__heading{align-items:end;margin-bottom:12px}.course-curriculum__heading>span{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.05);font-size:11px;color:#91a0b5}.curriculum-module{padding:20px 0}.curriculum-module header{display:flex;align-items:center;justify-content:space-between;gap:15px}.curriculum-module header:after{content:'⌄';color:#61d7c1;font-size:18px}.curriculum-module h3{font-size:18px}.curriculum-lesson{padding:13px 14px;background:rgba(255,255,255,.027);border:1px solid transparent;transition:background .2s,border-color .2s,transform .2s}.curriculum-lesson:hover{background:rgba(36,102,233,.09);border-color:rgba(61,133,255,.24);transform:translateX(4px)}.curriculum-lesson img{width:104px;height:68px}.curriculum-lesson__links a{display:inline-flex;padding:7px 9px;border-radius:8px;background:rgba(22,93,255,.12);color:#92b6ff}.course-flash{margin-bottom:18px}
@media(max-width:900px){.course-page{padding:22px 18px 60px}.course-showcase{grid-template-columns:215px 1fr;gap:28px;padding:28px}.course-poster{width:205px}.course-showcase h1{font-size:38px}.course-showcase__description{font-size:14px}.course-overview{grid-template-columns:1fr;gap:16px}}@media(max-width:620px){.course-showcase{display:flex;flex-direction:column;align-items:flex-start;padding:25px;gap:28px}.course-poster{width:min(245px,76vw);margin:0 auto}.course-showcase h1{font-size:37px}.course-showcase__stats{gap:13px}.course-builder__header,.course-builder__section{padding-left:20px;padding-right:20px}.course-overview{padding:25px}.curriculum-module header{align-items:flex-start}.curriculum-lesson{align-items:flex-start}.curriculum-lesson img{width:78px;height:58px}}
.course-poster,.course-poster:hover{transform:none!important}
.page-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:28px}.explore-add-course{flex:0 0 auto;text-decoration:none}.explore-add-course span{font-size:20px;line-height:0;font-weight:400}@media(max-width:620px){.page-title-row{align-items:flex-start;flex-direction:column}.explore-add-course{width:100%}}

/* Edição direta do curso: a mesma experiência que o aluno vê */
.course-poster--empty{display:grid;place-items:center;background:linear-gradient(145deg,#112857,#071126);border:1px dashed rgba(118,180,255,.55);box-shadow:none}.course-cover-add{display:grid;place-items:center;gap:10px;text-align:center;color:#b8cae8}.course-cover-add span{width:58px;height:58px;display:grid;place-items:center;border-radius:20px;background:rgba(88,155,255,.18);border:1px solid rgba(167,209,255,.3);font-size:36px;font-weight:200;color:#fff}.course-cover-add b{font-size:14px;color:#f0f6ff}.course-cover-add small{font-size:10px;color:#8496b4}.course-cover-edit{position:absolute;z-index:3;right:13px;bottom:13px;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:rgba(10,18,35,.82);border:1px solid rgba(255,255,255,.25);color:#fff;cursor:pointer;backdrop-filter:blur(12px)}.course-cover-edit input{display:none}.course-cover-edit span{font-size:24px;font-weight:300}.course-page--admin [contenteditable]{outline:0;border-radius:7px;cursor:text;transition:background .18s,box-shadow .18s}.course-page--admin [contenteditable]:hover{background:rgba(105,156,255,.11);box-shadow:0 0 0 5px rgba(105,156,255,.08)}.course-page--admin [contenteditable]:focus{background:rgba(105,156,255,.16);box-shadow:0 0 0 2px rgba(86,164,255,.8)}.course-page--admin .course-empty,.course-page--admin .curriculum-module{display:none}.course-page--admin .course-curriculum{min-height:0}.inline-module{padding:22px 0;border-top:1px solid rgba(255,255,255,.09)}.inline-module:first-child{border-top:0}.inline-module header{display:flex;align-items:center;justify-content:space-between;gap:16px}.inline-module header>div>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:#63ddcd}.inline-module h3{margin:5px 0 0;font-size:20px;color:#f4f7fc}.inline-lessons{margin-top:14px}.inline-lesson{display:flex;align-items:center;gap:13px;padding:14px 15px;margin:9px 0;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.025);transition:background .2s,border-color .2s}.inline-lesson:hover{background:rgba(42,105,232,.09);border-color:rgba(85,146,255,.26)}.inline-lesson__mark{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:9px;background:rgba(33,101,255,.17);color:#96b7ff;font-size:12px;font-weight:800}.inline-lesson__text{display:grid;gap:3px;min-width:0;flex:1}.inline-lesson__text strong{font-size:14px;color:#eaf0fa}.inline-lesson__text small{font-size:12px;color:#8998af}.inline-icon-button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#77859b;font-size:20px;cursor:pointer}.inline-icon-button:hover{background:rgba(247,92,92,.12);color:#ff9696}.inline-add-lesson,.inline-add-module{display:flex;align-items:center;gap:8px;width:100%;padding:13px 14px;border:1px dashed rgba(102,157,255,.3);border-radius:12px;background:rgba(37,92,194,.055);color:#9bc0ff;text-align:left;font:inherit;font-size:13px;cursor:pointer}.inline-add-lesson:hover,.inline-add-module:hover{border-color:rgba(102,157,255,.7);background:rgba(37,92,194,.12)}.inline-add-lesson span,.inline-add-module span{font-size:19px;font-weight:300}.inline-add-module{margin-top:16px;justify-content:center;flex-wrap:wrap}.inline-add-module small{width:100%;text-align:center;color:#72819a;font-size:11px}.course-page--admin .course-curriculum__heading>div:after{content:'Clique nos títulos e textos para editar. As alterações são salvas automaticamente.';display:block;margin-top:7px;color:#7f8ca3;font-size:12px}.course-page--admin .course-showcase__description{min-height:24px}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ========== 40. RESPONSIVO MOBILE ========== */

@media (max-width: 1080px) {
  .grid-5,
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 320px;
    max-width: 84vw;
    background: rgba(10,12,15,.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-highlight);
    transform: translateX(-104%);
    transition: transform 420ms var(--ease-spring);
    box-shadow: 30px 0 80px rgba(0,0,0,.5);
    height: 100vh;
    height: 100dvh;
  }
  .sidebar.open { transform: translateX(0); }

  .content { padding: 24px; }
  .header-app { padding: 12px 18px; }

  .welcome-card {
    padding: 30px 26px;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .content { padding: 20px; }
  .course-hero { padding: 40px 20px 56px; margin: -20px -20px 24px; }
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; padding: 24px; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .search-kbd { display: none; }
  .user-menu-info { display: none; }
  .nav-links { display: none; }
  .header-right > .tooltip:nth-child(-n+3) { display: none; }
  .toast-container { right: 16px; left: 16px; top: auto; bottom: 16px; }
  .toast { min-width: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-col-2, .bento-col-3, .bento-col-4 { grid-column: span 1; }
}

/* ========== 41. SCROLLBAR NOVA (thin, premium) ========== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: background-color 220ms var(--ease-standard);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.13);
  background-clip: padding-box;
  border: 3px solid transparent;
}
::-webkit-scrollbar-corner { background: transparent; }

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.10) transparent;
}

/* ========== 41. UNILEGAL INTRO LOADER (CONSTRUÇÃO POR LUZ) ========== */

:root {
    --unilegal-green: #39c409;
    --unilegal-background: #050607;
}

/* INTRO FULLSCREEN
----------------------------------------------------- */
.unilegal-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(57, 196, 9, .045),
            transparent 28%
        ),
        #050607;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition:
        opacity .55s cubic-bezier(.16, 1, .3, 1),
        filter .55s ease,
        transform .65s cubic-bezier(.16, 1, .3, 1);
}

/* SAÍDA DA INTRO
----------------------------------------------------- */
.unilegal-intro.is-leaving {
    opacity: 0;
    filter: blur(7px);
    transform: scale(1.012);
    pointer-events: none;
    visibility: hidden;
}

/* CONTAINER DO SVG DENTRO DA INTRO (isolado)
----------------------------------------------------- */
.unilegal-intro__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    animation:
        unilegalLoaderAppear
        .6s
        cubic-bezier(.16,1,.3,1)
        both;
}

@keyframes unilegalLoaderAppear {
    from {
        opacity: 0;
        transform: scale(.965);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* SVG dentro da intro
----------------------------------------------------- */
.unilegal-intro__loader .unilegal-loader__svg {
    width: clamp(150px, 17vw, 230px);
    height: auto;
    overflow: visible;
}

#unilegal-loader-svg {
    opacity: 0;
}

#unilegal-loader-svg.loader-ready {
    opacity: 1;
}

/* LINHA PRINCIPAL DA INTRO
----------------------------------------------------- */
.unilegal-intro__loader .unilegal-loader__main {
    fill: none;
    stroke: #39c409;
    stroke-width: 18;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;

    opacity: 1;

    filter:
        drop-shadow(0 0 2px rgba(57,196,9,.70))
        drop-shadow(0 0 7px rgba(57,196,9,.22))
        drop-shadow(0 0 15px rgba(57,196,9,.07));
}

/* FRAGMENTOS DA INTRO
----------------------------------------------------- */
.unilegal-intro__loader .unilegal-loader__fragment {
    fill: none;
    stroke: #39c409;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    pointer-events: none;
}

.unilegal-intro__loader .fragment-1 { stroke-width: 16; }
.unilegal-intro__loader .fragment-2 { stroke-width: 14; }
.unilegal-intro__loader .fragment-3 { stroke-width: 12; }
.unilegal-intro__loader .fragment-4 { stroke-width: 9; }
.unilegal-intro__loader .fragment-5 { stroke-width: 6; }

/* ========== WRAPPER DE CONTEÚDO (fade-in após intro) ========== */

.unilegal-page {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
}

.unilegal-page.is-ready {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition:
        opacity .7s cubic-bezier(.16,1,.3,1) .12s,
        transform .8s cubic-bezier(.16,1,.3,1) .12s,
        filter .7s ease .12s;
}

/* MOBILE
----------------------------------------------------- */
@media (max-width: 600px) {
    .unilegal-intro__loader .unilegal-loader__svg {
        width: clamp(140px, 45vw, 190px);
    }
}

/* ACESSIBILIDADE
----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .unilegal-intro__loader .unilegal-loader__fragment {
        display: none;
    }
    .unilegal-intro {
        transition: opacity .2s ease;
    }
    .unilegal-page {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
.lesson-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:12px 0 0 41px;padding-top:12px;border-top:1px solid rgba(255,255,255,.07)}.lesson-resources label{position:relative;display:flex;align-items:center;gap:7px;min-width:0;padding:9px 10px;border:1px solid rgba(101,157,255,.2);border-radius:9px;background:rgba(27,70,150,.08);color:#a9c5fa;font-size:11px;font-weight:700;cursor:pointer}.lesson-resources label:hover{background:rgba(35,91,196,.16);border-color:rgba(104,170,255,.5)}.lesson-resources input{position:absolute;width:1px;height:1px;opacity:0}.lesson-resources small{overflow:hidden;color:#76859c;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}@media(max-width:700px){.lesson-resources{grid-template-columns:1fr;margin-left:0}.inline-lesson{flex-wrap:wrap}.lesson-resources{order:4}}
.inline-lesson{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:start;gap:12px;padding:16px}.inline-lesson__mark{grid-column:1;grid-row:1;margin-top:3px}.inline-lesson__text{grid-column:2;grid-row:1;min-width:0;padding-right:6px}.inline-lesson__text strong,.inline-lesson__text small{display:block;overflow:hidden;text-overflow:ellipsis}.inline-lesson__text strong{white-space:nowrap}.inline-lesson__text small{margin-top:4px;white-space:normal;line-height:1.35}.inline-lesson>.inline-icon-button{grid-column:3;grid-row:1;justify-self:end;align-self:start}.inline-lesson .lesson-resources{grid-column:1/-1;grid-row:2;width:auto;margin:2px 0 0;padding-top:13px}.lesson-resources label{min-height:38px}@media(max-width:700px){.inline-lesson{grid-template-columns:30px minmax(0,1fr) 30px}.inline-lesson .lesson-resources{grid-template-columns:1fr}.lesson-resources label{min-height:36px}}
.home-experience{position:relative}.home-experience>.home-hero{position:sticky;top:0;z-index:0}.home-experience>.home-courses-wrap,.home-experience>.home-access{position:relative;z-index:2}

/* Shared spacing for catalog filters and adjacent content panels. */
.library-filters {
  margin-bottom: 28px;
}
.library-filters form > * {
  min-width: 0;
}
.content > .card + .card {
  margin-top: var(--grid-m);
}
@media (max-width: 720px) {
  .library-filters form > div {
    flex-basis: 100% !important;
    min-width: 0 !important;
  }
  .library-filters form > select {
    flex: 1 1 160px;
    max-width: 100% !important;
  }
}

/* Catalog sections keep their own space, including expanded admin forms. */
.content.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.content.catalog-layout > * {
  margin-top: 0;
  margin-bottom: 0;
  min-width: 0;
}
.content.catalog-layout > .card.empty-state,
.content.catalog-layout > .card.empty-state:hover {
  transform: none;
  will-change: auto;
}
