html {
    scroll-behavior: smooth;
}

.modern-header {
    background-image: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.92), rgba(var(--bs-dark-rgb), 0.88)), url('../img/bghs.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.modern-footer {
    background: linear-gradient(135deg, rgba(var(--bs-dark-rgb), 0.96), rgba(var(--bs-primary-rgb), 0.86));
}

body.cigam-home {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-secondary-rgb), 0.04));
}

.plano-link {
    cursor: help;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plano-link:focus {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.4);
    outline-offset: 2px;
    border-radius: 4px;
}

.modern-hero {
    border: 0;
    border-radius: 18px;
    background: rgba(var(--bs-body-bg-rgb), 0.85);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.curso-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.13);
}

.curso-card .card-img-top {
    height: 170px;
    object-fit: cover;
}

.curso-card .ebook-card-img {
    height: 260px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
}

.curso-form {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 12px;
    background: rgba(var(--bs-light-rgb), 0.72);
}

.curso-link-info-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(var(--bs-primary-rgb), .12);
}

.curso-link-info-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.curso-link-info {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--bs-primary);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.curso-link-info::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}

.curso-link-info::after {
    content: '↗';
    font-size: .9rem;
}

.curso-link-info:hover,
.curso-link-info:focus {
    color: #0a58ca;
    transform: translateX(1px);
}

.admin-link-externo {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-link-externo::after {
    content: '↗';
    font-size: .85rem;
}

.cart-floating {
    position: sticky;
    top: 12px;
    z-index: 20;
}

.checkout-note {
    border-left: 4px solid rgba(var(--bs-primary-rgb), .85);
    background: rgba(var(--bs-primary-rgb), .06);
    border-radius: 10px;
    padding: 12px 14px;
}

.payment-option {
    border: 1px solid rgba(var(--bs-primary-rgb), .18);
    border-radius: 14px;
    transition: all .2s ease;
    cursor: pointer;
}

.payment-option.active {
    border-color: rgba(var(--bs-primary-rgb), .95);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
    background: rgba(var(--bs-primary-rgb), .05);
}

.summary-sticky {
    position: sticky;
    top: 12px;
}

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 -8px 20px rgba(0,0,0,.12);
}

.mobile-spacer {
    height: 84px;
}

.section-card {
    border: 1px solid rgba(var(--bs-primary-rgb), .15);
    border-radius: 14px;
}

.section-title {
    font-size: .92rem;
    letter-spacing: .02em;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.required-mark {
    color: var(--bs-danger);
}

.contract-card {
    border: 0;
    border-radius: 16px;
}

.contract-summary-sticky {
    position: sticky;
    top: 12px;
}

.contract-summary-item {
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.contract-summary-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirmacao-card {
    border: 0;
    border-radius: 16px;
}

.confirmacao-summary {
    border: 1px solid rgba(var(--bs-primary-rgb), .15);
    border-radius: 14px;
    background: rgba(var(--bs-primary-rgb), .05);
}

.pix-box {
    border: 1px solid rgba(var(--bs-info-rgb), .25);
    border-radius: 14px;
    background: rgba(var(--bs-info-rgb), .06);
}

body.cigam-admin-login {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-secondary-rgb), 0.04));
    min-height: 100vh;
}

.admin-login-wrap {
    min-height: calc(100vh - 320px);
}

.admin-login-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.admin-login-card .card-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.9), rgba(var(--bs-dark-rgb), 0.86));
    color: #fff;
    border: 0;
}

.navbar-cigam {
    background-color: #e87411;
    background-image: url('../img/bghs.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
}

.navbar-cigam .navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.5rem;
}
