:root {
    --ctm-navy: #11185d;
    --ctm-blue: #1d2a7a;
    --ctm-orange: #f36b21;
    --ctm-orange-dark: #d8510d;
    --ctm-ink: #172033;
    --ctm-muted: #657087;
    --ctm-surface: #ffffff;
    --ctm-bg: #f4f6fb;
    --ctm-border: #dfe4ee;
    --ctm-radius: 18px;
    --ctm-shadow: 0 12px 35px rgba(17, 24, 93, .08);
}

html { scroll-behavior: smooth; }
body {
    background: var(--ctm-bg);
    color: var(--ctm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
}
a { color: var(--ctm-blue); }
.app-navbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--ctm-border);
    box-shadow: 0 5px 22px rgba(17,24,93,.05);
}
.app-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ctm-navy); font-weight: 800; text-decoration: none; }
.app-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.user-chip { background: #eef1fb; color: var(--ctm-navy); border-radius: 999px; padding: .5rem .85rem; font-weight: 650; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { color: var(--ctm-navy); font-weight: 800; letter-spacing: -.025em; }
.page-heading p { color: var(--ctm-muted); margin-bottom: 0; }
.card-painel {
    background: var(--ctm-surface);
    border: 1px solid var(--ctm-border);
    border-radius: var(--ctm-radius);
    box-shadow: var(--ctm-shadow);
}
.menu-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; overflow: hidden; }
.menu-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--ctm-orange), #ffb36b); opacity: 0; transition: opacity .18s ease; }
.menu-card:hover, .menu-card:focus-within { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(17,24,93,.13); border-color: #cfd6ea; }
.menu-card:hover::after, .menu-card:focus-within::after { opacity: 1; }
.menu-icon { width: 3rem; height: 3rem; margin-inline: auto; display: grid; place-items: center; border-radius: 15px; background: #eef1fb; color: var(--ctm-blue); font-size: 1.35rem; }
.btn-primary { --bs-btn-bg: var(--ctm-blue); --bs-btn-border-color: var(--ctm-blue); --bs-btn-hover-bg: var(--ctm-navy); --bs-btn-hover-border-color: var(--ctm-navy); }
.btn-cta { background: linear-gradient(135deg, var(--ctm-orange), var(--ctm-orange-dark)); color: #fff; border: 0; font-weight: 750; border-radius: 999px; box-shadow: 0 10px 24px rgba(243,107,33,.24); }
.btn-cta:hover { color: #fff; filter: brightness(.95); }
.form-control, .form-select { border-color: var(--ctm-border); border-radius: 11px; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: #7f8bc6; box-shadow: 0 0 0 .2rem rgba(29,42,122,.12); }
.form-label { color: #333c52; font-weight: 650; }
.table > :not(caption) > * > * { padding: .85rem .75rem; }
.table thead th { color: #536079; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); width: 2.25rem; height: 2.25rem; border: 0; background: transparent; color: var(--ctm-muted); border-radius: 50%; }
.password-toggle:hover, .password-toggle:focus { background: #eef1fb; color: var(--ctm-blue); }
.public-navbar { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ctm-border); }
.public-hero { padding: clamp(2.5rem, 7vw, 6rem) 0; background: radial-gradient(circle at 15% 10%, rgba(243,107,33,.12), transparent 35%), linear-gradient(145deg, #fff, #f2f4fb); }
.public-hero h1 { color: var(--ctm-navy); font-weight: 850; letter-spacing: -.04em; font-size: clamp(2rem, 5vw, 4.5rem); }
.poster-frame { background: #fff; border: 1px solid var(--ctm-border); border-radius: 24px; box-shadow: var(--ctm-shadow); padding: .65rem; }
.poster-frame img { border-radius: 17px; width: 100%; max-height: 680px; object-fit: contain; background: #fff; }
.public-card { border: 1px solid var(--ctm-border); border-radius: 20px; box-shadow: var(--ctm-shadow); background: #fff; }
.contact-cta { padding: clamp(2rem, 5vw, 4.5rem) 0; }
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.5rem, 4vw, 3.25rem);
    color: #fff;
    background: radial-gradient(circle at 90% 10%, rgba(243,107,33,.28), transparent 35%), linear-gradient(135deg, var(--ctm-navy), var(--ctm-blue));
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(17,24,93,.18);
}
.contact-panel .section-kicker { color: #ffb47c; }
.contact-panel h2 { margin: .65rem 0 .75rem; font-weight: 850; letter-spacing: -.03em; font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.contact-panel p { color: rgba(255,255,255,.76); max-width: 650px; margin-bottom: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; text-align: center; }
.contact-detail { color: rgba(255,255,255,.7); font-size: .88rem; }
.institutional-footer { color: rgba(255,255,255,.74); background: #090e3d; }
.footer-brand-row { display: flex; justify-content: center; }
.footer-cetemi-brand { display: inline-flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.footer-cetemi-brand:hover { color: #fff; }
.footer-cetemi-brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 15px; background: #fff; }
.footer-cetemi-brand span { display: flex; flex-direction: column; }
.footer-cetemi-brand strong { font-size: 1.2rem; letter-spacing: .04em; }
.footer-cetemi-brand small { color: rgba(255,255,255,.64); }
.author-logo-shell { width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; padding: .35rem; border-radius: 18px; background: rgba(255,255,255,.96); }
.author-logo-shell img { width: 100%; height: 100%; object-fit: contain; }
.author-copy { display: flex; flex-direction: column; align-items: flex-start; padding-left: .95rem; border-left: 1px solid rgba(255,255,255,.22); line-height: 1.35; }
.author-copy small, .author-copy span { color: rgba(255,255,255,.62); }
.author-copy strong { color: #fff; font-size: 1.05rem; }
.author-copy a { color: #ffb47c; text-decoration: none; margin-top: .15rem; }
.author-copy a:hover, .author-copy a:focus { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.11); font-size: .82rem; }
.footer-bottom .author-logo-shell { width: 58px; height: 58px; flex-basis: 58px; border-radius: 15px; }
.section-kicker { color: var(--ctm-orange-dark); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.data-box { background: #f7f8fc; border: 1px solid var(--ctm-border); border-radius: 14px; padding: 1rem; }
.receipt { max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--ctm-border); border-radius: 20px; box-shadow: var(--ctm-shadow); }
.logo-receipt { width: 90px; height: 90px; object-fit: contain; }
@media (max-width: 767.98px) {
    .user-chip span { display: none; }
    .page-heading { margin-bottom: 1rem; }
    .card-painel .card-body { padding: 1.1rem !important; }
    .contact-panel { grid-template-columns: 1fr; }
    .footer-bottom { text-align: left; }
}
@media print {
    .no-print, .app-navbar { display: none !important; }
    body { background: #fff; }
    .receipt { box-shadow: none; border: 1px solid #999; margin-top: 0; }
}
