:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f9;
    --ink: #111723;
    --ink-soft: #4a556b;
    --primary: #005f73;
    --primary-strong: #01424f;
    --secondary: #fcbf49;
    --accent: #9b2226;
    --success: #0f8a64;
    --error: #c0392b;
    --border: #dbe2ee;
    --shadow: 0 12px 35px rgba(15, 27, 44, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at top right, #dfefff 0%, transparent 40%), var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

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

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

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.88);
}

.header-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.brand strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.03rem;
    letter-spacing: 0.4px;
}

.brand span {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.93rem;
    color: var(--ink-soft);
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--primary-strong);
    background: #dfedf0;
}

.main-nav a.nav-store {
    background: #fff3d8;
    color: #754800;
    border: 1px solid #f0d089;
    font-weight: 700;
}

.main-nav a.nav-store:hover {
    background: #ffe8b5;
}

.main-nav a.nav-ebook {
    background: #e8f7ee;
    color: #1b5f3f;
    border: 1px solid #b9e4c9;
    font-weight: 700;
}

.main-nav a.nav-ebook:hover {
    background: #d8f0e2;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.site-main {
    min-height: calc(100vh - 170px);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #f0f4fa;
    margin-top: 3.2rem;
}

.footer-content {
    padding: 1.3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.flash-wrap {
    margin-top: 1rem;
}

.flash {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.flash-success {
    background: #e5fbf3;
    border: 1px solid #c8f2e3;
    color: #11624a;
}

.flash-error {
    background: #ffeceb;
    border: 1px solid #ffd7d4;
    color: #8e251d;
}

.hero {
    padding: 4rem 0 2.5rem;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-card {
    background: linear-gradient(120deg, #003f4f 0%, #0d5f6e 55%, #1d7f8b 100%);
    border-radius: 24px;
    box-shadow: var(--shadow);
    color: #ffffff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-card::before {
    width: 300px;
    height: 300px;
    right: -90px;
    top: -70px;
    background: rgba(252, 191, 73, 0.18);
}

.hero-card::after {
    width: 230px;
    height: 230px;
    left: -70px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-card h1 {
    margin: 0 0 1rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.hero-card p {
    margin: 0 0 1.5rem;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--secondary);
    color: #3f2a00;
}

.btn-primary:hover {
    background: #f6b437;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

.btn-outline {
    background: #f7faff;
    color: var(--primary-strong);
    border: 1px solid #d2deef;
}

.hero-side {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-logo img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
}

.hero-logo h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
}

.hero-banner {
    border-radius: 16px;
    overflow: hidden;
    min-height: 155px;
    background: linear-gradient(120deg, #fcbf49 0%, #f6d08d 55%, #f9e3b3 100%);
    position: relative;
    display: flex;
    align-items: end;
    padding: 1rem;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(0, 95, 115, 0.1) 0px,
        rgba(0, 95, 115, 0.1) 14px,
        transparent 14px,
        transparent 28px
    );
}

.hero-banner p {
    position: relative;
    margin: 0;
    max-width: 35ch;
    font-weight: 700;
    color: #3d2a00;
}

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

.hero-list div {
    background: #f3f7fc;
    border: 1px solid #dbe4f1;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.section {
    padding: 2.3rem 0;
}

.section h2 {
    margin: 0 0 0.4rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.section p.section-lead {
    margin: 0 0 1.2rem;
    color: var(--ink-soft);
    max-width: 74ch;
}

.metrics {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.metric strong {
    font-size: 1.35rem;
    display: block;
    font-family: "Sora", sans-serif;
}

.metric span {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.feature-grid,
.course-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card .card-body {
    padding: 1rem;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--primary-strong);
    background: #d8ebef;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.course-banner {
    min-height: 155px;
    background: linear-gradient(145deg, #185b6f 0%, #2b7e8e 55%, #5ea3aa 100%);
    position: relative;
}

.course-banner img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}

.course-class {
    display: inline-block;
    background: #e7eef9;
    color: #20417a;
    border-radius: 999px;
    padding: 0.2rem 0.64rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-wrap {
    padding: 2.5rem 0;
}

.auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 1.45rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.auth-card h1 {
    margin: 0 0 0.4rem;
    font-family: "Sora", sans-serif;
    font-size: 1.45rem;
}

.auth-card p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8ab9df;
    box-shadow: 0 0 0 3px rgba(77, 133, 187, 0.15);
}

.form-row {
    margin-bottom: 0.85rem;
}

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

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.panel h2 {
    margin: 0 0 0.3rem;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.page-banner {
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    background: linear-gradient(140deg, #0e4f60 0%, #2d8a97 55%, #81bbc1 100%);
    position: relative;
    display: grid;
    align-items: end;
}

.page-banner img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.page-banner .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 40, 0.15) 0%, rgba(8, 20, 40, 0.72) 100%);
}

.page-banner .caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    color: #fff;
}

.kicker {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e4eef8;
    color: #34507a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.page-wrap {
    padding: 2rem 0;
}

.page-head {
    margin-bottom: 1rem;
}

.page-head h1 {
    margin: 0 0 0.3rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-head p {
    margin: 0;
    color: var(--ink-soft);
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
}

th,
td {
    padding: 0.7rem;
    border-bottom: 1px solid #e8edf6;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: #f4f7fc;
    font-weight: 700;
    color: #354258;
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    padding: 0.25rem 0.58rem;
    border-radius: 999px;
    font-weight: 700;
}

.badge-success {
    background: #ddf8ee;
    color: #146b4f;
}

.badge-warning {
    background: #fff0d4;
    color: #8a5a00;
}

.badge-muted {
    background: #e8edf8;
    color: #3f5078;
}

.grid-two {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.content-list {
    display: grid;
    gap: 0.7rem;
}

.content-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.85rem;
}

.content-item h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.quiz-question {
    margin: 0.7rem 0 0;
    border: 1px solid #dbe4f2;
    border-radius: 12px;
    padding: 0.75rem;
    background: #ffffff;
}

.quiz-question legend {
    padding: 0 0.35rem;
    font-weight: 700;
    color: #22314b;
}

.quiz-options {
    display: grid;
    gap: 0.45rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid #e3eaf6;
    border-radius: 10px;
    background: #f9fbff;
    padding: 0.5rem 0.6rem;
}

.quiz-option input {
    width: auto;
    margin-top: 0.15rem;
}

.progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #dde7f3;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #005f73, #2f8b8b);
}

.empty-state {
    text-align: center;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px dashed #c7d7ec;
    color: var(--ink-soft);
    background: #f8fbff;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.inline-form input,
.inline-form select {
    min-width: 120px;
    width: auto;
}

.small-text {
    font-size: 0.84rem;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actions a {
    font-size: 0.83rem;
    color: #275a88;
}

.actions a.danger {
    color: #a7281a;
}

.video-wrap video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d5dff0;
}

.image-wrap img {
    border-radius: 12px;
    border: 1px solid #d5dff0;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.27rem 0.62rem;
    background: #e8eef8;
    color: #40567e;
    font-size: 0.76rem;
    font-weight: 700;
}

.acquisition-panel {
    border: 1px solid #d9e5f5;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
}

.spacer-sm {
    margin-top: 0.65rem;
}

.spacer-md {
    margin-top: 1rem;
}

.spacer-lg {
    margin-top: 1.5rem;
}

.prof-whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #d7e4f3;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(11, 25, 43, 0.16);
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    max-width: min(86vw, 360px);
}

.prof-whatsapp-float img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #dfe8f7;
}

.prof-whatsapp-float span {
    color: #1c3a2e;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 980px) {
    .hero-wrap,
    .grid-two {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 78px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 0.75rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        border-radius: 10px;
    }

    .hero,
    .section,
    .page-wrap {
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }

    .hero-card,
    .hero-side {
        border-radius: 18px;
    }

    .hero-list,
    .feature-grid,
    .course-grid,
    .dashboard-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .prof-whatsapp-float {
        right: 10px;
        left: 10px;
        bottom: 10px;
        justify-content: center;
        max-width: none;
    }
}
