:root {
    --color-navy-900: #0e1a3b;
    --color-navy-800: #11234e;
    --color-navy-700: #1e3d8c;
    --color-navy-600: #1f4faa;
    --color-navy-500: #2b6ad3;
    --color-sky-100: #f5f7fb;
    --color-sky-200: #e6ebf7;
    --color-sky-300: #d5def5;
    --color-white: #ffffff;
    --color-muted: #6c7a9a;
    --shadow-lg: 0 24px 50px rgba(17, 35, 78, 0.25);
    --shadow-md: 0 18px 32px rgba(17, 35, 78, 0.15);
    --shadow-sm: 0 12px 20px rgba(17, 35, 78, 0.12);
    --radius-lg: 1rem;
    --radius-pill: 999px;
    --radius-md: 0.75rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-sky-100);
    color: var(--color-navy-900);
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-500));
    border: none;
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-outline-light {
    border-radius: var(--radius-pill);
    padding: 0.75rem 2rem;
    border-width: 2px;
    font-weight: 600;
}

.badge-pill {
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(17, 35, 78, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.app-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
}

.app-navbar .front-brand-logo {
    height: 38px;
    width: auto;
    max-width: min(54vw, 210px);
    object-fit: contain;
    display: block;
}

.app-navbar .front-brand-fallback {
    letter-spacing: 0.04em;
    font-weight: 700;
}

.app-navbar .brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: linear-gradient(160deg, var(--color-navy-600), var(--color-navy-800));
    color: var(--color-white);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    transition: background 0.2s ease, color 0.2s ease;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
}

.auth-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
}

.auth-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8edf3;
    color: #1f2a3a;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 50%;
    line-height: 1;
}

/* CEP search button inside input */
.cep-field {
    position: relative;
}
.cep-field .form-control {
    padding-right: 2.75rem;
}
.cep-field .cep-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
    color: inherit;
    opacity: 0.8;
}
.cep-field .cep-search-btn:hover {
    opacity: 1;
}
.cep-field .cep-search-btn:focus {
    outline: none;
}
.cep-field .cep-search-btn:focus-visible {
    outline: 2px solid rgba(109, 106, 253, 0.6);
    outline-offset: 2px;
    border-radius: 999px;
}

/* Simulados (Área do Aluno) - section titles */
body.is-candidato .simulados-section-title{
    display: flex;
    align-items: center;
    gap: .65rem;
}

/* Compact container (reduce wasted space on simulados page) */
body.is-candidato .simulados-compact.card{
    border-radius: 18px;
}
body.is-candidato .simulados-compact .card-body{
    padding-left: 1rem;
    padding-right: 1rem;
}
body.is-candidato .simulados-section-title h5{
    font-weight: 900;
    letter-spacing: -.01em;
}
body.is-candidato .simulados-section-title i{
    opacity: .9;
}
body.is-candidato .simulados-section-divider{
    height: 2px;
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(31,79,170,.35), rgba(20,184,166,.25), transparent);
}
body.is-candidato:not(.theme-light) .simulados-section-divider{
    background: linear-gradient(90deg, rgba(109,106,253,.45), rgba(20,184,166,.22), transparent);
}

/* Simulados (Área do Aluno) - make sources visually distinct */
body.is-candidato .simulado-card{
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
}

body.is-candidato .simulado-card .card-body{
    display: flex;
    flex-direction: column;
    height: 100%;
}
body.is-candidato .simulado-card:hover{
    transform: translateY(-2px);
}

/* Simulados cards: discrete identification (school vs category)
   Some AdminLTE/Bootstrap rules override border-left on .card, so force it with !important.
*/

/* Remove previous glow rails / markers */
body.is-candidato .simulado-card::after{ content: none !important; }
body.is-candidato .simulado-card::before{ content: none !important; }

/* Card identification
   Dark theme already looks good; in light theme we want similar visual language (colored border).
*/

/* Default border (light) */
body.theme-light.is-candidato .simulado-card.card{
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 12px;
}

/* School: purple border */
body.theme-light.is-candidato .simulado-card--school.card{
    border-color: rgba(109,106,253,.38) !important;
}

/* Category: green border */
body.theme-light.is-candidato .simulado-card--category.card{
    border-color: rgba(22,163,74,.32) !important;
}

/* Dark theme: same border model as light (full border by type) */
body.is-candidato.theme-dark .simulado-card.card{
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px;
}
body.is-candidato.theme-dark .simulado-card--school.card{
    border-color: rgba(109,106,253,.38) !important;
}
body.is-candidato.theme-dark .simulado-card--category.card{
    border-color: rgba(22,163,74,.32) !important;
}

/* Origin badge (top-right chip) */
body.is-candidato .simulado-origin-badge{
    position:absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display:inline-flex;
    align-items:center;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 18px rgba(0,0,0,.10);
}
body.is-candidato .simulado-origin-badge--school{
    color: #1a1650;
    background: rgba(109,106,253,.18);
    border-color: rgba(109,106,253,.35);
}
body.is-candidato .simulado-origin-badge--category{
    color: #053b35;
    background: rgba(20,184,166,.16);
    border-color: rgba(20,184,166,.32);
}

/* Dark theme: badge text needs to be light (app.css is theme-agnostic) */
body.is-candidato:not(.theme-light) .simulado-origin-badge{
    color: rgba(234,240,255,1) !important;
    border-color: rgba(255,255,255,.16) !important;
}
body.is-candidato:not(.theme-light) .simulado-origin-badge--school{
    color: rgba(234,240,255,1) !important;
}
body.is-candidato:not(.theme-light) .simulado-origin-badge--category{
    color: rgba(234,240,255,1) !important;
}

/* Keep content above decoration */
body.is-candidato .simulado-card .card-body{
    position: relative;
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: .9rem;
}

/* Ensure bottom row aligns to bottom-right nicely */
body.is-candidato .simulado-card .card-body > .d-flex.justify-content-between{
    margin-top: auto;
}

/* Make title slightly bolder (helps scan) */
body.is-candidato .simulado-card .card-title{
    font-weight: 800;
}

/* Start buttons: different colors for school vs category (works in light + dark) */
/* Start buttons: different colors (school vs category) */
body.is-candidato a.btn.btn-primary.btn-start-school,
body.is-candidato button.btn.btn-primary.btn-start-school{
    background-color: rgba(109,106,253,1) !important;
    border-color: rgba(109,106,253,1) !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.is-candidato a.btn.btn-primary.btn-start-school:hover,
body.is-candidato button.btn.btn-primary.btn-start-school:hover{
    background-color: rgba(109,106,253,.92) !important;
    border-color: rgba(109,106,253,.92) !important;
}

body.is-candidato a.btn.btn-start-category,
body.is-candidato button.btn.btn-start-category{
    background-color: rgba(22,163,74,1) !important;
    border-color: rgba(22,163,74,1) !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.is-candidato a.btn.btn-start-category:hover,
body.is-candidato button.btn.btn-start-category:hover{
    background-color: rgba(22,163,74,.92) !important;
    border-color: rgba(22,163,74,.92) !important;
    color: #fff !important;
}

/* Extra specificity inside cards (prevents any .btn-primary overrides) */
body.is-candidato .simulado-card--school a.btn.btn-primary.btn-start-school,
body.is-candidato .simulado-card--school button.btn.btn-primary.btn-start-school{
    background-color: rgba(109,106,253,1) !important;
    border-color: rgba(109,106,253,1) !important;
}
body.is-candidato .simulado-card--category a.btn.btn-start-category,
body.is-candidato .simulado-card--category button.btn.btn-start-category{
    background-color: rgba(22,163,74,1) !important;
    border-color: rgba(22,163,74,1) !important;
    color: #fff !important;
}
body.is-candidato a.btn.btn-start-category:hover,
body.is-candidato button.btn.btn-start-category:hover{
    background-color: rgba(22,163,74,.92) !important;
    border-color: rgba(22,163,74,.92) !important;
    color: #fff !important;
}
body.is-candidato a.btn.btn-primary.btn-start-school:hover,
body.is-candidato button.btn.btn-primary.btn-start-school:hover{
    background-color: rgba(109,106,253,.92) !important;
    border-color: rgba(109,106,253,.92) !important;
}

/* Datepicker (jQuery UI) */
.ui-datepicker {
    font-family: inherit;
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 35, 78, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 0.75rem;
}

.ui-datepicker .ui-datepicker-header {
    border: none;
    background: transparent;
    padding: 0.25rem 0;
}

.ui-datepicker .ui-datepicker-title {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.ui-datepicker .ui-datepicker-title select {
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    background: #fff;
    color: #1f2a3a;
    height: 2rem;
    line-height: 2rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ui-datepicker .ui-datepicker-title select:focus {
    outline: none;
    border-color: rgba(31, 79, 170, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(31, 79, 170, 0.12);
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    border-radius: 0.5rem;
}

.ui-datepicker td span,
.ui-datepicker td a {
    border-radius: 0.5rem;
    text-align: center;
}

.ui-datepicker .ui-state-highlight {
    background: #e0ecff;
    border: none;
}

.ui-datepicker .ui-state-active {
    background: #1f4faa;
    border: none;
    color: #fff;
}

.mobile-nav-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.mobile-nav-panel {
    position: absolute;
    inset: 64px 1rem auto 1rem;
    border-radius: var(--radius-lg);
    background: rgba(17, 35, 78, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: none;
}

.mobile-nav-panel.open {
    display: block;
}

.mobile-nav-panel .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.hero {
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(43, 106, 211, 0.35), transparent 55%), linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
    color: var(--color-white);
    padding: 3rem 0 3rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: url('data:image/svg+xml,%3Csvg width="1440" height="400" viewBox="0 0 1440 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 160L60 149.3C120 139 240 117 360 138.7C480 160 600 224 720 229.3C840 235 960 181 1080 154.7C1200 128 1320 128 1380 128H1440V400H1380C1320 400 1200 400 1080 400C960 400 840 400 720 400C600 400 480 400 360 400C240 400 120 400 60 400H0V160Z" fill="%23f5f7fb" fill-opacity="0.18"/%3E%3C/svg%3E');
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

.schools-page .hero::after {
    display: none;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero > .container,
.hero > .container-fluid {
    position: relative;
    z-index: 1;
}

.hero .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .hero-lead {
    max-width: 520px;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.82);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: rgba(17, 35, 78, 0.28);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
}

.section {
    padding: 4rem 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-heading .subtitle {
    color: var(--color-navy-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.85rem;
}

.section-heading .title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 700;
}

.callout {
    background: linear-gradient(120deg, rgba(30, 61, 140, 0.94), rgba(31, 79, 170, 0.9));
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.plans-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

#planos .plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#planos {
    background: #eef3fb !important;
}

#planos .plans-grid .plan-card {
    width: min(100%, 360px);
}

#planos .section-heading .subtitle {
    color: #1f4faa;
    font-weight: 700;
}

#planos .section-heading .title {
    color: #0b1f44;
    font-weight: 800;
}

#planos .section-heading .text-muted {
    color: #243f70 !important;
    font-weight: 600;
}

.text-contrast-muted {
    color: #233e6f !important;
    font-weight: 600;
}

#area-professor {
    background: #eef3fb !important;
}

#area-professor .subtitle {
    color: #1c4a95;
    font-weight: 700;
}

#area-professor .title {
    color: #081a3a;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#area-professor .school-area-title {
    color: #0a1f45 !important;
}

#area-professor .school-area-lead {
    color: #173963 !important;
    font-weight: 600;
}

#area-professor .text-muted,
#area-professor p,
#area-professor li {
    color: #1c3763 !important;
    font-weight: 500;
}

#area-professor .card {
    background: #ffffff;
    border: 1px solid rgba(17, 35, 78, 0.2) !important;
    box-shadow: 0 16px 30px rgba(17, 35, 78, 0.1);
}

#area-professor .card h3 {
    color: #0e2852;
    font-weight: 800;
}

#area-professor .school-benefits-title {
    color: #0d2c59 !important;
}

#area-professor .fa-check.text-success {
    color: #146c43 !important;
}

#area-professor .list-unstyled li {
    color: #17345f !important;
    font-weight: 600;
}

#area-professor .school-benefit-item {
    color: #15365f !important;
    font-weight: 700;
}

#area-professor .btn-outline-secondary {
    border-color: #345d99;
    color: #173867;
    font-weight: 700;
}

#area-professor .btn-outline-secondary:hover,
#area-professor .btn-outline-secondary:focus {
    background-color: #173867;
    border-color: #173867;
    color: #ffffff;
}

#area-professor .school-layout .plan-card {
    height: 100%;
}

#area-professor .school-layout .col-lg-8 .plan-card {
    padding: 1.5rem;
}

#area-professor .school-layout .plan-card h3 {
    color: #0c2753;
    font-weight: 800;
}

#area-professor .school-layout .plan-card .text-contrast-muted {
    color: #1b3b69 !important;
    font-weight: 600;
}

#area-professor .school-benefits-panel {
    padding: 1.75rem;
}

#area-professor .school-benefits-panel .btn {
    justify-content: center;
}

#como-funciona {
    background: linear-gradient(135deg, rgba(14, 26, 59, 0.96), rgba(21, 48, 102, 0.92));
}

#como-funciona .section-heading .title {
    color: #ffffff;
}

#como-funciona .section-heading .text-contrast-muted {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

#como-funciona .plan-card {
    background: #ffffff;
    border: 1px solid rgba(17, 35, 78, 0.14);
}

#como-funciona .plan-card h3 {
    color: #0c2753;
    font-weight: 800;
}

#como-funciona .plan-card .text-contrast-muted {
    color: #1b3b69 !important;
    font-weight: 600;
}

.plan-card,
.testimonial-card,
.faq-item,
.catalog-card,
.summary-card,
.report-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(17, 35, 78, 0.08);
}

.plan-card.highlight {
    border: 2px solid rgba(31, 79, 170, 0.35);
    box-shadow: var(--shadow-lg);
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy-800);
}

#planos .plan-card h3 {
    color: #0f2247;
    font-weight: 800;
}

#planos .plan-card p,
#planos .plan-card .text-muted {
    color: #233e6f !important;
    font-weight: 600;
}

.plan-card .price span {
    font-size: 1rem;
    color: var(--color-muted);
}

#planos .plan-card .price {
    color: #0a2b63;
}

#planos .plan-card .price span {
    color: #2d4f85;
    font-weight: 700;
}

.plan-card ul {
    padding-left: 1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

#planos .plan-card ul {
    color: #193762;
    font-weight: 600;
}

#planos .plan-card .btn-outline-secondary {
    border-color: #345d99;
    color: #173867;
    font-weight: 700;
}

#planos .plan-card .btn-outline-secondary:hover,
#planos .plan-card .btn-outline-secondary:focus {
    background-color: #173867;
    border-color: #173867;
    color: #ffffff;
}

#planos .plan-card .badge.bg-primary-subtle {
    background-color: #d8e7ff !important;
    color: #123969 !important;
}

.plan-card ul li + li {
    margin-top: 0.5rem;
}

.catalog-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 35, 78, 0.95), rgba(31, 79, 170, 0.88));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.catalog-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 -120px 0;
    height: 200px;
    background: url('data:image/svg+xml,%3Csvg width="1440" height="320" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 160L60 138.7C120 117 240 74 360 53.3C480 32 600 32 720 64C840 96 960 160 1080 176C1200 192 1320 160 1380 144L1440 128V320H1380C1320 320 1200 320 1080 320C960 320 840 320 720 320C600 320 480 320 360 320C240 320 120 320 60 320H0V160Z" fill="%23f5f7fb" fill-opacity="0.16"/%3E%3C/svg%3E');
    background-size: cover;
}

.catalog-clean-hero {
    position: relative;
    background: linear-gradient(135deg, #1c2f6b 0%, #2f4fb0 100%);
    border-radius: 18px;
    padding: 2.2rem;
    overflow: hidden;
}

.hero-aside-card {
    border-radius: 14px;
}

.catalog-stat-card {
    background: #fff;
    border: 1px solid rgba(17, 35, 78, 0.08);
    border-radius: 12px;
    padding: .9rem 1rem;
    box-shadow: 0 4px 20px rgba(13, 35, 79, 0.05);
}

.catalog-tracks .track-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(17, 35, 78, 0.14);
    border-radius: 999px;
    padding: .35rem .75rem;
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    color: #1d3269;
}

.catalog-card {
    border: 1px solid rgba(17, 35, 78, 0.08);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(13, 35, 79, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(13, 35, 79, 0.10);
}

.catalog-card-cover {
    height: 140px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(58, 96, 212, .20), rgba(33, 55, 118, .35));
}

.catalog-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.catalog-card .card-footer {
    background: transparent;
    border: none;
    margin-top: 1.5rem;
    padding: 0;
}

.catalog-card .card-footer a {
    font-weight: 600;
    color: var(--color-navy-600);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: var(--radius-pill);
    border: none;
    color: var(--color-navy-700);
    font-weight: 500;
}

.pagination-clean .page-link {
    background: transparent;
    box-shadow: none;
}

.pagination-clean .page-item.active .page-link {
    background: transparent;
    color: var(--color-navy-900);
    border: 1px solid rgba(17, 35, 78, 0.18);
}

.history-table-wrap .pagination .page-link {
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0d6efd;
    font-weight: 500;
}

.history-table-wrap .pagination .page-item.active .page-link {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.history-table-wrap .pagination .page-item.disabled .page-link {
    color: #6c757d;
}

.faq-item + .faq-item {
    margin-top: 1rem;
}

.faq-item .question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-item .answer {
    display: none;
    color: var(--color-muted);
    margin-top: 1rem;
}

.faq-item.open .answer {
    display: block;
}

.faq-item.open .question i {
    transform: rotate(180deg);
}

.app-footer {
    background: var(--color-navy-900);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0;
}

.app-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-underline-offset: 0.2rem;
}

.app-footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.app-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer-brand-pill {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: linear-gradient(160deg, var(--color-navy-600), var(--color-navy-800));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.candidate-hero,
.simulado-hero {
    background: linear-gradient(135deg, rgba(17, 35, 78, 0.95), rgba(31, 79, 170, 0.9));
    border-radius: var(--radius-lg);
    color: var(--color-white);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.summary-card .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(43, 106, 211, 0.12);
    color: var(--color-navy-700);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.9rem;
    font-weight: 600;
}

.data-table {
    width: 100%;
}

.data-table thead {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.data-table tbody td {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(17, 35, 78, 0.08);
    color: var(--color-navy-900);
}

.table-sortable th {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.table-sortable th.no-sort {
    cursor: default;
}

.table-sortable th.sortable::after {
    content: '\2195';
    font-size: 0.65rem;
    opacity: 0.45;
    margin-left: 0.35rem;
}

.table-sortable th.sort-asc::after {
    content: '\25B2';
    opacity: 0.8;
}

.table-sortable th.sort-desc::after {
    content: '\25BC';
    opacity: 0.8;
}

.option-btn {
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    background: var(--color-white);
    border: 1px solid rgba(17, 35, 78, 0.16);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.option-btn:hover {
    border-color: var(--color-navy-500);
    box-shadow: var(--shadow-sm);
}

.option-btn.correct {
    border-color: #28a745 !important;
    background: #e8f7ee;
}

.option-btn.wrong {
    border-color: #dc3545 !important;
    background: #fdecef;
}

/* Simulado player */
.simulado-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(29, 47, 110, 1), rgba(23, 38, 89, 0.95));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
}

.simulado-hero::after {
    content: '';
    position: absolute;
    inset: auto -40% -60% 40%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.simulado-hero .badge {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    letter-spacing: 0.08em;
}

.simulado-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

.simulado-hero p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
}

.hero-control-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.hero-control-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.hero-control-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.hero-control-card label {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.hero-control-card .form-select {
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem;
}

.hero-control-card .control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stats-row .stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(17, 35, 78, 0.08);
}

.stat-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.stat-card strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy-800);
}

.stat-card.success {
    background: #e8f7ee;
    border-color: rgba(20, 108, 43, 0.25);
}

.stat-card.success strong {
    color: #146c2b;
}

.stat-card.time {
    background: rgba(31, 79, 170, 0.08);
    border-color: rgba(31, 79, 170, 0.35);
}

.simulado-dashboard {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(17, 35, 78, 0.08);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.simulado-dashboard .title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.dashboard-item {
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--color-sky-100);
    border: 1px solid rgba(17, 35, 78, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.dashboard-item.primary {
    background: rgba(31, 79, 170, 0.08);
    border-color: rgba(31, 79, 170, 0.25);
}

.dashboard-item.success {
    background: #e8f7ee;
    border-color: rgba(20, 108, 43, 0.2);
}

.dashboard-item.warning {
    background: #fff6d8;
    border-color: rgba(255, 193, 7, 0.25);
}

.dashboard-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.dashboard-item strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy-800);
}

.dashboard-progress {
    margin-top: 1.5rem;
}

.dashboard-progress .progress {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--color-sky-200);
}

.dashboard-progress .progress-bar {
    background: linear-gradient(135deg, var(--color-navy-600), var(--color-navy-800));
}

.dashboard-progress .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.simulado-panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid rgba(17, 35, 78, 0.08);
}

.simulado-panel[data-screen="intro"] {
    text-align: center;
}

.simulado-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.simulado-question-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    box-shadow: 0 4px 10px rgba(17, 35, 78, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.question-option + .question-option {
    margin-top: 0.55rem;
}

.question-option:hover {
    border-color: #cfd6e6;
    background: #f9fbff;
    box-shadow: 0 8px 18px rgba(17, 35, 78, 0.06);
    transform: translateY(-1px);
}

.question-option-letter {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eef2fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4a5da5;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.question-option.selected {
    border-color: #2d6cf6;
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
    box-shadow: 0 10px 22px rgba(45, 108, 246, 0.12);
    color: #12264a;
}

.question-option.correct {
    border-color: #38c172;
    background: linear-gradient(180deg, #f1fff7 0%, #ecfff5 100%);
    box-shadow: 0 12px 28px rgba(56, 193, 114, 0.16);
    color: #155724;
}

.question-option.correct .question-option-letter {
    background: #38c172;
    color: #fff;
}

.question-option.wrong {
    border-color: #e3342f;
    background: linear-gradient(180deg, #fff5f5 0%, #fff1f1 100%);
    box-shadow: 0 12px 28px rgba(227, 52, 47, 0.12);
    color: #842029;
}

.question-option.wrong .question-option-letter {
    background: #e3342f;
    color: #fff;
}

.question-option.disabled {
    pointer-events: none;
    opacity: 0.85;
}

.simulado-content .vstack[data-question-options] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.simulado-timer {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-navy-800);
    line-height: 1;
}

.quiz-progress .progress {
    height: 10px;
    background: var(--color-sky-200);
    border-radius: var(--radius-pill);
}

.quiz-progress .progress-bar {
    background: linear-gradient(135deg, var(--color-navy-600), var(--color-navy-800));
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.question-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 35, 78, 0.12);
    background: var(--color-white);
    font-weight: 600;
    color: var(--color-navy-700);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.question-chip:hover {
    border-color: var(--color-navy-500);
}

.question-chip.current {
    border-color: var(--color-navy-700);
    box-shadow: var(--shadow-sm);
}

.question-chip.answered {
    background: rgba(31, 79, 170, 0.08);
    border-color: var(--color-navy-600);
}

.question-chip.correct {
    background: #e8f7ee;
    border-color: #28a745;
    color: #146c2b;
}

.question-chip.wrong {
    background: #fdecef;
    border-color: #dc3545;
    color: #9e2c38;
}

.explanation-card {
    border-radius: var(--radius-md);
    background: var(--color-sky-100);
    border: 1px solid rgba(17, 35, 78, 0.12);
    padding: 1.25rem;
}

.summary-metric {
    background: var(--color-sky-100);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-metric.success {
    background: #e8f7ee;
    color: #146c2b;
}

.summary-metric.warning {
    background: #fdecef;
    color: #9e2c38;
}

.summary-metric .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    color: var(--color-muted);
}

.summary-metric strong {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.35rem;
    color: var(--color-navy-800);
}

.summary-table thead th {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

.time-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    font-weight: 500;
}

/* Simulado player */
.simulado-panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.simulado-panel[data-screen="intro"] {
    text-align: center;
}

.simulado-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.simulado-question-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.simulado-sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.simulado-timer {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-navy-800);
    line-height: 1;
}

.quiz-progress .progress {
    height: 10px;
    background: var(--color-sky-200);
    border-radius: var(--radius-pill);
}

.quiz-progress .progress-bar {
    background: linear-gradient(135deg, var(--color-navy-600), var(--color-navy-800));
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.question-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 35, 78, 0.12);
    background: var(--color-white);
    font-weight: 600;
    color: var(--color-navy-700);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.question-chip:hover {
    border-color: var(--color-navy-500);
}

.question-chip.current {
    border-color: var(--color-navy-700);
    box-shadow: var(--shadow-sm);
}

.question-chip.answered {
    background: rgba(31, 79, 170, 0.08);
    border-color: var(--color-navy-600);
}

.question-chip.correct {
    background: #e8f7ee;
    border-color: #28a745;
    color: #146c2b;
}

.question-chip.wrong {
    background: #fdecef;
    border-color: #dc3545;
    color: #9e2c38;
}

.explanation-card {
    border-radius: var(--radius-md);
    background: var(--color-sky-100);
    border: 1px solid rgba(17, 35, 78, 0.12);
    padding: 1.25rem;
}

.summary-metric {
    background: var(--color-sky-100);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-metric.success {
    background: #e8f7ee;
    color: #146c2b;
}

.summary-metric.warning {
    background: #fdecef;
    color: #9e2c38;
}

.summary-metric .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    color: var(--color-muted);
}

.summary-metric strong {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.35rem;
    color: var(--color-navy-800);
}

.summary-table thead th {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

.time-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    font-weight: 500;
}

.login-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.login-modal .modal-dialog {
    max-width: 620px;
}

.login-modal .modal-header {
    border-bottom: none;
    padding: 1.75rem 2.5rem 0.5rem;
    background: linear-gradient(135deg, rgba(17, 35, 78, 0.08), rgba(31, 79, 170, 0.08));
    justify-content: center;
}

.login-modal .modal-title {
    flex: 1;
    text-align: center;
}

.login-modal .btn-close {
    margin: 0;
}

.login-modal .modal-body {
    padding: 2.5rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}


.login-modal .register-intro {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.login-modal .auth-pane {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.login-modal .register-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.login-modal .register-switch .btn {
    border-radius: 999px;
    border: 1px solid rgba(17, 35, 78, 0.12);
    background: var(--color-white);
    font-weight: 600;
    color: var(--color-navy-700);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.login-modal .register-switch .btn.active {
    background: var(--color-navy-700);
    color: var(--color-white);
    border-color: var(--color-navy-700);
    box-shadow: var(--shadow-sm);
}

.login-modal .form-label {
    font-weight: 600;
    color: var(--color-navy-800);
}

.login-modal .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(17, 35, 78, 0.12);
    padding: 0.7rem 0.9rem;
    background: #f9fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-modal .form-control:focus {
    border-color: rgba(31, 79, 170, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(31, 79, 170, 0.15);
    background: var(--color-white);
}
.password-toggle-group {
    position: relative;
}

.password-toggle-group .form-control {
    padding-right: 2.75rem;
    border-radius: 0.85rem !important;
    position: relative;
    z-index: 1;
}

.password-toggle-btn {
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: 1px;
    transform: none;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 0.75rem;
    color: var(--color-navy-700);
    line-height: 1;
    z-index: 5;
    border-left: none !important;
    border-radius: 0.85rem;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid rgba(31, 79, 170, 0.7) !important;
    outline-offset: 2px;
    border-radius: 0.85rem;
}

.password-toggle-btn:hover,
.password-toggle-btn:active {
    background: transparent;
    box-shadow: none;
}

.login-modal .password-toggle-btn,
.auth-shell .password-toggle-btn {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.login-modal .password-toggle-btn:hover,
.login-modal .password-toggle-btn:focus,
.login-modal .password-toggle-btn:active,
.auth-shell .password-toggle-btn:hover,
.auth-shell .password-toggle-btn:focus,
.auth-shell .password-toggle-btn:active {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.password-toggle-btn i {
    pointer-events: none;
}

.login-modal .btn-gradient {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.login-modal .login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.login-modal .login-divider::before,
.login-modal .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(17, 35, 78, 0), rgba(17, 35, 78, 0.2));
}

.login-modal .login-google-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--color-sky-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-700);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.login-modal .login-google-btn:hover {
    color: var(--color-navy-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: rgba(31, 79, 170, 0.4);
}

.login-modal .tab-content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(17, 35, 78, 0.08);
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.login-modal .text-muted a {
    color: var(--color-navy-700);
}

.login-modal .text-muted a:hover {
    color: var(--color-navy-900);
}

.login-modal .auth-pane > * {
    width: 100%;
}

.login-modal .auth-pane .login-form,
.login-modal .auth-pane .register-form {
    width: 100%;
    margin: 0 auto;
}

.auth-google-wide {
    border: 1px solid rgba(17, 35, 78, 0.12);
    border-radius: 0.85rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: var(--color-navy-800);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-google-wide:hover {
    border-color: rgba(31, 79, 170, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--color-navy-900);
}

.auth-page {
    background: linear-gradient(180deg, #5aa7ff 0%, #6bb4ff 45%, var(--color-sky-100) 100%);
}

.auth-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-card .auth-subtitle {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-sky-200);
}

.auth-social {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.auth-social .auth-google-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--color-sky-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-700);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.auth-actions {
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .login-modal .modal-body,
    .auth-card {
        padding: 1.75rem;
    }
}

.overlay-backdrop {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 59, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 1030;
}

.overlay-backdrop.active {
    display: block;
}

#global-loading {
    position: fixed;
    inset: 0;
    z-index: 1065;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

#global-loading .global-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .plans-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .simulado-sidebar-card {
        position: static;
        top: auto;
    }

    .simulado-hero {
        padding: 2.5rem 1.5rem;
    }

    .hero-control-card {
        background: rgba(255, 255, 255, 0.16);
    }

    .stats-row .stat-card {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .app-navbar {
        position: fixed;
        width: 100%;
    }

    body {
        padding-top: 72px;
    }

    .hero {
        padding: 6.5rem 0 4.5rem;
    }

    .plans-grid,
    .testimonials-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        text-align: left;
    }

    .callout {
        padding: 2rem;
    }

    .catalog-hero,
    .candidate-hero,
    .simulado-hero {
        padding: 2rem;
    }

    .mobile-auth-card .btn {
        width: 100%;
    }

    .app-footer {
        text-align: center;
    }

    .question-chip {
        height: 44px;
    }

    .simulado-hero {
        border-radius: 0;
    }

    .hero-control-card {
        padding: 1.5rem;
    }

    .simulado-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-title {
        font-size: 2.2rem;
    }

    .stats-row .stat-card strong {
        font-size: 1.5rem;
    }

    .question-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    }
}
