:root {
    --bg: #f5f1e8;
    --surface: #fffdf8;
    --surface-strong: #14342b;
    --text: #1c2a26;
    --muted: #66756f;
    --line: #dfd4bf;
    --accent: #d79b2d;
    --accent-dark: #9b6610;
    --shadow: 0 18px 45px rgba(20, 52, 43, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Kantumruy Pro", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(215, 155, 45, 0.16), transparent 24%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
}

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

.site-header {
    position: relative;
    backdrop-filter: blur(10px);
    background: rgb(6, 43, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(6, 43, 1, 0.28);
}

.nav-shell,
.footer-shell,
.hero-grid,
.section-head,
.contact-grid,
.meta-row,
.auth-grid {
    display: flex;
    gap: 1rem;
}

.nav-shell,
.footer-shell,
.section-head {
    align-items: center;
    justify-content: space-between;
}

.nav-shell {
    padding: 1rem 0;
}

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

.brand strong,
.hero h1,
.section h2,
.page-banner h1,
.card h2,
.card h3,
.contact-card h2 {
    margin: 0;
}

.site-header .brand strong {
    color: #fff;
}

.brand small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-image-mark {
    overflow: hidden;
    padding: 0;
}

.brand-image-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.menu-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    width: 1.3rem;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-panel {
    display: contents;
}

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

.site-nav a {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero,
.section,
.page-banner {
    padding: 4.5rem 0;
}

.hero-grid,
.contact-grid {
    align-items: stretch;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
}

.hero-card,
.card,
.contact-card {
    background: var(--surface);
    border: 1px solid rgba(223, 212, 191, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(2rem, 3.2vw, 3.9rem);
    line-height: 1.16;
    max-width: none;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.22em;
}

.hero-word {
    display: block;
    width: fit-content;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(18px);
    background: linear-gradient(90deg, #102620 0%, #173a30 35%, #d79b2d 52%, #173a30 68%, #102620 100%);
    background-size: 280% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hero-rise 0.75s ease forwards, hero-shimmer 8.5s ease-in-out infinite 1.1s;
}

.hero-word:nth-child(2) {
    animation-delay: 0.22s, 1.32s;
}

.lead,
.page-banner p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 60ch;
}

.hero .lead {
    color: rgb(42, 4, 130);
}

.eyebrow {
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.button-small {
    min-height: 42px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.button-current {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.button-primary {
    background: var(--surface-strong);
    color: #fff;
}

.button-secondary {
    background: transparent;
    color: var(--surface-strong);
    border-color: rgba(20, 52, 43, 0.18);
}

.check-list,
.contact-list {
    padding-left: 1.1rem;
    margin: 1rem 0 0;
}

.hero-card .check-list {
    color: #1f5f8b;
    font-size: 1.08rem;
    line-height: 1.75;
    padding-left: 1.75rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.course-showcase-card {
    overflow: hidden;
    padding: 0;
    gap: 0;
}

.course-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #2b1451, #0c4b54);
}

.course-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.course-card-body {
    padding: 1.1rem 1.2rem 0.9rem;
}

.course-card-instructor {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: #4e5d78;
    font-weight: 600;
}

.course-avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #edf1f6;
    color: #0c2a22;
    font-size: 0.92rem;
    font-weight: 800;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid #ecf0f4;
    color: #71829c;
}

.course-card-footer strong {
    color: #ff6b1a;
    font-size: 1.1rem;
}

.badge {
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f4e6c9;
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.meta-row {
    margin-top: auto;
    justify-content: space-between;
    color: var(--muted);
}

.section-muted {
    background: rgba(255, 253, 248, 0.6);
}

.home-section-tight {
    padding-top: 1.5rem;
}

.home-courses-section h2 {
    color: #1f7a1f;
}

.home-books-section h2 {
    color: #7c3aed;
}

.text-link {
    color: var(--surface-strong);
    font-weight: 700;
}

.page-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 52, 43, 0.96), rgba(58, 92, 82, 0.88));
    color: #fff;
}

.page-banner-compact {
    padding: 1.1rem 0;
}

.page-banner::before,
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-banner::before {
    background:
        radial-gradient(circle at 18% 34%, rgba(103, 255, 183, 0.18), transparent 22%),
        radial-gradient(circle at 78% 24%, rgba(255, 220, 128, 0.14), transparent 20%),
        radial-gradient(circle at 62% 78%, rgba(111, 195, 255, 0.1), transparent 24%);
    opacity: 0.9;
    filter: blur(6px);
    animation: glow-float 10s ease-in-out infinite;
}

.page-banner::after {
    background:
        linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.04) 42%, transparent 70%);
    opacity: 0.8;
    animation: glow-sheen 8s ease-in-out infinite;
}

.page-banner > .container {
    position: relative;
    z-index: 1;
}

.page-banner p,
.page-banner .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

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

.contact-showcase {
    background: #f3f3f3;
}

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

.contact-feature-card {
    padding: 2.25rem 1.5rem;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.contact-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f3f0f2;
    color: #ff2d55;
}

.contact-icon-wrap svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.contact-feature-card h2 {
    margin: 0 0 0.5rem;
    color: #071f7a;
    font-size: 1.95rem;
}

.contact-feature-card p {
    margin: 0;
    color: #6a7898;
    font-size: 1.15rem;
}

.contact-form-showcase {
    padding-top: 0;
    background: #f3f3f3;
}

.contact-form-shell {
    padding: 2.5rem 2rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(13, 30, 71, 0.08);
}

.contact-form-shell h2 {
    margin: 0 0 1.75rem;
    text-align: center;
    color: #071f7a;
    font-size: 2.1rem;
}

.contact-message-form {
    display: grid;
    gap: 1.25rem;
}

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

.contact-message-form input,
.contact-message-form textarea {
    width: 100%;
    padding: 1rem 1rem;
    border: 1px solid #d6d9e3;
    border-radius: 8px;
    background: #fff;
    color: #5d6885;
    font: inherit;
}

.contact-message-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-send-button {
    width: fit-content;
    min-width: 160px;
    padding: 0.95rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: #ff7417;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 116, 23, 0.24);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.site-footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgb(0, 0, 0);
    color: #fff;
}

.site-footer p {
    margin: 0.35rem 0;
    color: rgba(255, 255, 255, 0.78);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-link {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    color: #0a237a;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.footer-copy {
    font-size: 1.05rem;
    color: #fff;
}

.narrow {
    max-width: 720px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.flash-wrap {
    padding-top: 1.25rem;
}

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

.flash-success {
    background: #e8f5ec;
    color: #1f6b3d;
    border: 1px solid #b8ddc2;
}

.flash-error {
    background: #fff0ee;
    color: #a33b31;
    border: 1px solid #edc2bd;
}

.auth-section {
    padding: 4.5rem 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    align-items: center;
    gap: 2rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid rgba(223, 212, 191, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.auth-center-shell {
    display: flex;
    justify-content: center;
}

.auth-card-centered {
    width: min(100%, 540px);
    padding: 2.25rem;
}

.auth-form-logo {
    margin: 0 0 1.25rem;
    text-align: center;
}

.auth-form-logo img {
    max-width: 120px;
    width: 100%;
    height: auto;
}

.auth-form-title {
    margin: 0 0 1.25rem;
    text-align: center;
    color: rgb(14, 5, 150);
    animation: auth-title-color 4s ease-in-out infinite;
}

.auth-form-title-register {
    color: rgb(115, 1, 20);
    animation-name: auth-title-color-register;
}

.auth-form {
    display: grid;
    gap: 1rem;
    padding-top: 0.5rem;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3.2rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #51617c;
    cursor: pointer;
}

.password-toggle:hover {
    background: rgba(20, 52, 43, 0.06);
}

.password-toggle.is-active {
    color: rgb(14, 5, 150);
}

.icon-eye {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.forgot-password-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.35rem;
    width: 100%;
}

.forgot-password-link {
    color: #c62828 !important;
    font-weight: 600;
    text-align: right;
    display: inline-block;
    width: 100%;
}

.auth-note {
    margin: 1rem 0 0;
    color: var(--muted);
}

.auth-submit-button {
    position: relative;
    overflow: hidden;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(7, 61, 24, 0.92);
    border-radius: 999px;
    background:
        linear-gradient(120deg, rgb(7, 53, 18) 0%, rgb(10, 83, 29) 45%, rgb(7, 53, 18) 100%) !important;
    background-size: 220% 220% !important;
    color: #fff !important;
    font-family: "Kantumruy Pro", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    box-shadow: 0 16px 28px rgba(7, 61, 24, 0.22);
    animation: auth-button-flow 6s ease-in-out infinite;
}

.auth-submit-button:hover {
    background:
        linear-gradient(120deg, rgb(10, 92, 30) 0%, rgb(18, 128, 41) 48%, rgb(10, 92, 30) 100%) !important;
    background-size: 220% 220% !important;
    color: #fff !important;
    border-color: rgb(18, 128, 41);
    transform: translateY(-1px);
}

.auth-submit-button:focus-visible {
    outline: 3px solid rgba(32, 144, 63, 0.22);
    outline-offset: 2px;
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes hero-shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-word {
        opacity: 1;
        transform: none;
        animation: none;
        color: var(--text);
        background: none;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .card-grid,
    .contact-grid,
    .auth-grid,
    .contact-feature-grid {
        grid-template-columns: 1fr;
    }

    .contact-message-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .nav-shell {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1rem;
    }

    .brand {
        min-width: 0;
    }

    .menu-toggle {
        display: inline-flex !important;
        margin-left: 0;
    }

    .menu-panel {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.25rem;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .menu-panel.is-open {
        display: grid;
        gap: 1rem;
    }

    .site-nav,
    .auth-nav {
        width: 100%;
    }

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

    .site-nav a {
        text-align: center;
    }

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

    .auth-nav .welcome-text {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .hero,
    .section,
    .page-banner {
        padding: 3rem 0;
    }

    .nav-shell {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .menu-toggle {
        align-self: start;
    }

    .site-nav {
        grid-template-columns: 1fr;
    }

    .auth-nav {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-word {
        white-space: normal;
    }
}

.hero-card h2 {
    color: #c62828;
}

.banner-animated-title,
.banner-animated-text {
    opacity: 0;
    transform: translateY(14px);
    animation: banner-rise 0.75s ease forwards;
}

.banner-animated-title {
    background: linear-gradient(90deg, #ffffff 0%, #f3d78a 45%, #ffffff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: banner-rise 0.75s ease forwards, banner-shimmer 6s ease-in-out infinite 0.9s;
}

.banner-animated-text {
    animation-delay: 0.18s;
}

@keyframes banner-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes banner-shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes auth-title-color {
    0%,
    100% {
        color: rgb(14, 5, 150);
        text-shadow: 0 0 0 rgba(14, 5, 150, 0);
    }

    50% {
        color: rgb(53, 35, 219);
        text-shadow: 0 0 14px rgba(53, 35, 219, 0.18);
    }
}

@keyframes auth-title-color-register {
    0%,
    100% {
        color: rgb(115, 1, 20);
        text-shadow: 0 0 0 rgba(115, 1, 20, 0);
    }

    50% {
        color: rgb(176, 19, 44);
        text-shadow: 0 0 14px rgba(176, 19, 44, 0.2);
    }
}

@keyframes auth-button-flow {
    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 16px 28px rgba(7, 61, 24, 0.2);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 18px 32px rgba(12, 94, 33, 0.28);
    }
}

@keyframes glow-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translate3d(-10px, 6px, 0) scale(1.02);
        opacity: 1;
    }
}

@keyframes glow-sheen {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.75;
    }

    50% {
        transform: translateX(-18px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-animated-title,
    .banner-animated-text {
        opacity: 1;
        transform: none;
        animation: none;
        filter: none;
    }

    .banner-animated-title {
        color: #fff;
        background: none;
    }
}

.admin-main {
    padding: 2rem 0 3rem;
    background: #f4f6f8;
}

.admin-main .container {
    width: min(calc(100% - 1rem), 1320px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.admin-shell {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 0.85rem;
}

.admin-sidebar,
.admin-content,
.admin-panel-card,
.admin-stat-card {
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 20px;
}

.admin-sidebar {
    padding: 1rem;
    height: fit-content;
}

.admin-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-nav a {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: #24413b;
    font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: #edf5ef;
    color: #0b5d1b;
}

.admin-content {
    padding: 1.25rem;
}

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

.admin-page-copy {
    margin: 0.45rem 0 0;
    color: #5f6f69;
}

.admin-stats-grid,
.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-grid-two {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.45fr);
}

.admin-stat-card {
    padding: 1.4rem;
    text-align: center;
}

.admin-stat-card span,
.admin-stat-card small {
    display: block;
}

.admin-stat-card strong {
    display: block;
    font-size: 2rem;
    color: #0b5d1b;
}

.admin-stat-card small {
    margin-top: 0.4rem;
    color: #62756f;
}

.admin-panel-card {
    padding: 1.25rem;
}

.admin-panel-card h2 {
    margin-top: 0;
}

.admin-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid #dce3e8;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(48, 110, 66, 0.2), transparent 30%),
        linear-gradient(135deg, #113127 0%, #1c4a3b 55%, #295d49 100%);
    color: #fff;
}

.admin-hero-card h2 {
    margin: 0 0 0.65rem;
}

.admin-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.admin-hero-label {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 230, 178, 0.92);
}

.admin-hero-actions {
    display: grid;
    gap: 0.75rem;
    align-content: center;
}

.admin-hero-actions .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    margin-top: 1rem;
}

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

.admin-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-panel-head p {
    margin: 0.4rem 0 0;
    color: #63756f;
}

.admin-quick-links {
    display: grid;
    gap: 0.85rem;
}

.admin-quick-links a {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px solid #e3eaee;
    border-radius: 16px;
    background: #f9fbfc;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-quick-links a:hover {
    transform: translateY(-2px);
    border-color: #b8cfc1;
    box-shadow: 0 14px 30px rgba(17, 49, 39, 0.08);
}

.admin-quick-links strong {
    color: #17392e;
}

.admin-quick-links span,
.admin-list-item span,
.admin-empty {
    color: #63756f;
}

.admin-list {
    display: grid;
    gap: 0.8rem;
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e7edf1;
    border-radius: 16px;
    background: #fcfdfd;
}

.admin-list-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #17392e;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-pill.is-live {
    background: #e8f5ec;
    color: #1f6b3d;
}

.admin-status-pill.is-muted {
    background: #eef2f4;
    color: #5f6d75;
}

.admin-empty {
    margin: 0;
    padding: 0.6rem 0;
}

.admin-form {
    display: grid;
    gap: 0.85rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #ccd6dd;
    background: #fff;
    font: inherit;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-table th,
.admin-table td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid #edf2f5;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #46635c;
    font-size: 0.98rem;
    white-space: nowrap;
}

.admin-table td {
    color: #17392e;
    line-height: 1.55;
    word-break: break-word;
}

.admin-col-title,
.admin-cell-title {
    width: 34%;
}

.admin-cell-title {
    font-weight: 700;
    color: #102f25;
}

.admin-cell-secondary {
    color: #5e6f69 !important;
}

.admin-col-compact,
.admin-cell-compact {
    width: 130px;
    white-space: nowrap;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-badge.is-published {
    background: #e8f5ec;
    color: #1f6b3d;
}

.admin-status-badge.is-draft {
    background: #fff4df;
    color: #9a650d;
}

.admin-table th:last-child,
.admin-table td:last-child {
    width: 190px;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .admin-shell,
    .admin-grid-two,
    .admin-stats-grid,
    .admin-dashboard-grid,
    .admin-dashboard-grid-secondary,
    .admin-hero-card {
        grid-template-columns: 1fr;
    }

    .admin-table {
        min-width: 820px;
    }
}

@media (max-width: 720px) {
    .admin-main .container {
        width: min(calc(100% - 0.5rem), 1320px);
    }

    .admin-content,
    .admin-sidebar,
    .admin-panel-card {
        border-radius: 16px;
    }
}

.admin-actions-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-table-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.admin-table-actions .button {
    min-width: 82px;
}

.admin-table-actions form {
    margin: 0;
}

.admin-danger-button {
    border-color: #d14848 !important;
    color: #d14848 !important;
}

.admin-danger-button:hover {
    background: #d14848 !important;
    color: #fff !important;
}

.admin-table-lessons {
    min-width: 980px;
    table-layout: auto;
}

.admin-table-lessons .admin-col-course,
.admin-table-lessons .admin-cell-course {
    width: 24%;
}

.admin-table-lessons .admin-col-chapter,
.admin-table-lessons .admin-cell-chapter {
    width: 20%;
}

.admin-table-lessons .admin-col-lesson,
.admin-table-lessons .admin-cell-lesson-title {
    width: 28%;
}

.admin-table-lessons .admin-col-status,
.admin-table-lessons .admin-cell-status {
    width: 14%;
    white-space: nowrap;
}

.admin-table-lessons .admin-col-actions,
.admin-table-lessons .admin-cell-actions {
    width: 180px;
    white-space: nowrap;
}

.admin-table-lessons .admin-cell-course,
.admin-table-lessons .admin-cell-chapter,
.admin-table-lessons .admin-cell-lesson-title {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-table-lessons .admin-cell-course {
    color: #4f635d;
    font-weight: 600;
}

.admin-table-lessons .admin-cell-chapter {
    color: #6a5b2e;
    font-weight: 700;
}

.admin-table-lessons .admin-cell-lesson-title {
    color: #102f25;
    font-weight: 700;
}

.admin-table-lessons .admin-cell-status {
    text-align: center;
}

.admin-table-lessons .admin-cell-actions {
    text-align: right;
}

.admin-empty-table {
    padding: 1.25rem 1rem !important;
    text-align: center !important;
    color: #64746d !important;
}
.admin-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-list-head h2 {
    margin: 0;
}

.admin-filter-form label {
    display: grid;
    gap: 0.35rem;
    color: #5c6c66;
    font-weight: 600;
}

.admin-filter-form select {
    min-width: 240px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #ccd6dd;
    background: #fff;
    font: inherit;
}

@media (max-width: 980px) {
    .admin-list-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-form select {
        min-width: 0;
        width: 100%;
    }
}
.admin-table-wrap-scroll {
    max-height: 680px;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.admin-table-wrap-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}
.admin-lesson-groups {
    display: grid;
    gap: 1rem;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.admin-lesson-course-block {
    border: 1px solid #e5ecef;
    border-radius: 18px;
    background: #fcfdfd;
    overflow: hidden;
}

.admin-lesson-course-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #f6faf8;
    border-bottom: 1px solid #e5ecef;
}

.admin-lesson-course-head h3,
.admin-lesson-chapter-head strong,
.admin-lesson-item-row strong {
    margin: 0;
}

.admin-lesson-course-head span,
.admin-lesson-chapter-head span,
.admin-lesson-item-row span {
    color: #63756f;
}

.admin-lesson-chapter-list {
    display: grid;
}

.admin-lesson-chapter-card + .admin-lesson-chapter-card {
    border-top: 1px solid #edf2f5;
}

.admin-lesson-chapter-card {
    padding: 1rem 1.1rem;
}

.admin-lesson-chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.admin-lesson-item-list {
    display: grid;
    gap: 0.7rem;
}

.admin-lesson-item-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e8eef2;
    border-radius: 14px;
    background: #fff;
}

.admin-lesson-item-row > div:first-child {
    display: grid;
    gap: 0.2rem;
}

@media (max-width: 980px) {
    .admin-lesson-item-row,
    .admin-lesson-course-head,
    .admin-lesson-chapter-head {
        align-items: stretch;
        flex-direction: column;
    }
}
.course-card-footer-stack {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.course-card-footer-stack .button {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
}

.lesson-banner {
    padding: 2.6rem 0;
}

.lesson-view-section {
    padding-top: 2.5rem;
}

.lesson-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.lesson-player-card,
.lesson-sidebar-card,
.lesson-meta-card {
    background: var(--surface);
    border: 1px solid rgba(223, 212, 191, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.lesson-player-card {
    padding: 1.2rem;
}

.lesson-video-wrap {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #0f1c18;
}

.lesson-video-wrap iframe,
.lesson-video-fallback {
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-video-fallback,
.lesson-empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem;
}

.lesson-meta-card {
    margin-top: 1rem;
    padding: 1.25rem;
}

.lesson-meta-top,
.lesson-sidebar-head,
.lesson-sidebar-chapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lesson-meta-card h2,
.lesson-sidebar-head h2 {
    margin: 0;
}

.lesson-meta-order,
.lesson-sidebar-head span,
.lesson-sidebar-chapter span,
.lesson-sidebar-item span {
    color: #60706a;
}

.lesson-meta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.lesson-sidebar-card {
    padding: 1.15rem;
}

.lesson-sidebar-head {
    margin-bottom: 1rem;
}

.lesson-sidebar-section + .lesson-sidebar-section {
    margin-top: 1rem;
}

.lesson-sidebar-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.lesson-sidebar-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e8eef2;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lesson-sidebar-item:hover,
.lesson-sidebar-item.is-active {
    transform: translateY(-1px);
    border-color: #bfd6c7;
    box-shadow: 0 12px 24px rgba(20, 52, 43, 0.08);
}

.lesson-sidebar-item.is-active {
    background: #f5faf7;
}

.lesson-sidebar-item strong {
    color: #17392e;
}

@media (max-width: 980px) {
    .lesson-view-grid {
        grid-template-columns: 1fr;
    }
}
.course-detail-section {
    padding-top: 2.5rem;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
    gap: 1.25rem;
    align-items: start;
}

.course-detail-main {
    display: grid;
    gap: 1.2rem;
}

.course-detail-card,
.course-purchase-box {
    background: var(--surface);
    border: 1px solid rgba(223, 212, 191, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.course-detail-card {
    padding: 1.25rem;
}

.course-detail-media {
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 1rem;
    background: #f3efe5;
}

.course-detail-media img,
.course-purchase-box img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.course-detail-copy {
    display: grid;
    gap: 1rem;
}

.course-detail-badges,
.course-detail-stats,
.course-detail-head,
.course-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-detail-stats > div {
    min-width: 160px;
    display: grid;
    gap: 0.2rem;
}

.course-detail-stats strong,
.course-price-tag {
    font-size: 1.5rem;
    color: #ff6b1a;
}

.course-detail-stats span,
.course-preview-item span,
.course-purchase-note {
    color: #61716b;
}

.course-preview-list {
    display: grid;
    gap: 0.8rem;
}

.course-preview-item {
    padding: 0.95rem 1rem;
    border: 1px solid #e8eef2;
    border-radius: 16px;
    background: #fff;
}

.course-preview-item strong {
    display: block;
    color: #17392e;
}

.course-preview-lock {
    font-weight: 700;
}

.course-purchase-card {
    position: sticky;
    top: 0.75rem;
}

.course-purchase-box {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.course-purchase-box .button,
.course-purchase-form button {
    width: 100%;
}

.course-purchase-form {
    margin: 0;
}

.course-purchase-note.is-success {
    color: #1f6b3d;
    font-weight: 700;
}

@media (max-width: 980px) {
    .course-detail-grid {
        grid-template-columns: 1fr;
    }

    .course-purchase-card {
        position: static;
    }
}

.my-courses-empty-card {
    text-align: center;
    padding: 2rem;
}

.my-courses-empty-card h2 {
    margin-bottom: 0.5rem;
}

.my-courses-empty-card .hero-actions {
    justify-content: center;
}

.checkout-section {
    padding-top: 2.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.checkout-card {
    padding: 1.25rem;
}

.checkout-head,
.checkout-points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-media {
    overflow: hidden;
    border-radius: 22px;
    margin: 1rem 0;
    background: #f3efe5;
}

.checkout-media img {
    width: 100%;
    display: block;
}

.checkout-points {
    margin-top: 1rem;
}

.checkout-points > div {
    min-width: 160px;
    display: grid;
    gap: 0.2rem;
}

.checkout-points strong {
    font-size: 1.4rem;
    color: #ff6b1a;
}

.checkout-points span,
.checkout-note {
    color: #61716b;
}

.checkout-side-card {
    position: sticky;
    top: 0.75rem;
    display: grid;
    gap: 1rem;
}

@media (max-width: 980px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-side-card {
        position: static;
    }
}

.payment-method-panel {
    padding: 1rem;
    border: 1px solid #e8eef2;
    border-radius: 18px;
    background: #f9fbfa;
}

.payment-method-form {
    display: grid;
    gap: 0.8rem;
}

.payment-method-head {
    display: grid;
    gap: 0.2rem;
}

.payment-method-head span,
.payment-method-option small {
    color: #61716b;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe5df;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.payment-method-option input {
    accent-color: #14342b;
}

.payment-method-option strong,
.payment-method-option small {
    display: block;
}

.payment-method-panel {
    padding: 1rem;
    border: 1px solid #e8eef2;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.82), transparent 34%),
        linear-gradient(180deg, #f8fbfa 0%, #eef5f1 100%);
}

.payment-method-form {
    display: grid;
    gap: 0.9rem;
}

.payment-method-head {
    display: grid;
    gap: 0.25rem;
}

.payment-method-head span {
    color: #61716b;
}

.payment-method-grid {
    display: grid;
    gap: 0.85rem;
}

.payment-method-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 3.2rem;
    border-radius: 20px;
    border: 1px solid rgba(20, 52, 43, 0.12);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(20, 52, 43, 0.12);
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background: transparent;
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card input:checked + .payment-card-mark + .payment-card-copy + .payment-card-check {
    opacity: 1;
    transform: translateY(0);
}

.payment-method-card input:checked ~ .payment-card-mark,
.payment-method-card input:checked ~ .payment-card-copy {
    filter: none;
}

.payment-method-card:has(input:checked)::before {
    background: #fff;
    box-shadow: inset 0 0 0 3px rgba(20, 52, 43, 0.45);
}

.payment-aba {
    background: linear-gradient(135deg, #0e2446 0%, #1c4b8f 55%, #2f69c8 100%);
}

.payment-acleda {
    background: linear-gradient(135deg, #7f1117 0%, #b61b24 55%, #d8562f 100%);
}

.payment-card-mark {
    min-width: 88px;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.payment-card-copy strong,
.payment-card-copy small {
    display: block;
}

.payment-card-copy strong {
    font-size: 1rem;
}

.payment-card-copy small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.82);
}

.payment-card-check {
    opacity: 0;
    transform: translateY(4px);
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 720px) {
    .payment-method-card {
        grid-template-columns: 1fr;
        padding: 2.9rem 1rem 1rem;
    }

    .payment-card-check {
        width: fit-content;
    }
}

.payment-method-panel {
    padding: 1rem;
    border: 1px solid #e8eef2;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.82), transparent 34%),
        linear-gradient(180deg, #f8fbfa 0%, #eef5f1 100%);
}

.payment-method-form {
    display: grid;
    gap: 0.9rem;
}

.payment-method-head {
    display: grid;
    gap: 0.25rem;
}

.payment-method-head span {
    color: #61716b;
}

.payment-method-grid {
    display: grid;
    gap: 0.85rem;
}

.payment-method-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 3.2rem;
    border-radius: 20px;
    border: 1px solid rgba(20, 52, 43, 0.12);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(20, 52, 43, 0.12);
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background: transparent;
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card input:checked + .payment-card-mark + .payment-card-copy + .payment-card-qr + .payment-card-check {
    opacity: 1;
    transform: translateY(0);
}

.payment-method-card:has(input:checked)::before {
    background: #fff;
    box-shadow: inset 0 0 0 3px rgba(20, 52, 43, 0.45);
}

.payment-aba {
    background: linear-gradient(135deg, #0e2446 0%, #1c4b8f 55%, #2f69c8 100%);
}

.payment-acleda {
    background: linear-gradient(135deg, #7f1117 0%, #b61b24 55%, #d8562f 100%);
}

.payment-card-mark {
    min-width: 88px;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.payment-card-copy strong,
.payment-card-copy small,
.payment-card-meta {
    display: block;
}

.payment-card-copy strong {
    font-size: 1rem;
}

.payment-card-copy small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.82);
}

.payment-card-meta {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.payment-card-qr {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
        repeating-linear-gradient(0deg, #111 0 6px, transparent 6px 12px),
        repeating-linear-gradient(90deg, #111 0 6px, transparent 6px 12px);
    color: #102620;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(16, 38, 32, 0.1);
}

.payment-card-check {
    opacity: 0;
    transform: translateY(4px);
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.payment-hint-box {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #fff6df;
    border: 1px solid #f0ddb0;
    color: #7c5b12;
}

.payment-hint-box span {
    color: #8b6a1b;
}

@media (max-width: 720px) {
    .payment-method-card {
        grid-template-columns: 1fr;
        padding: 2.9rem 1rem 1rem;
    }

    .payment-card-qr,
    .payment-card-check {
        width: fit-content;
    }
}

.payment-card-qr-image {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    padding: 0.3rem;
    box-shadow: inset 0 0 0 1px rgba(16, 38, 32, 0.08);
}

.payment-action-button,
.payment-confirm-button {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.payment-method-head strong {
    font-size: 1.15rem;
}

.payment-method-card {
    grid-template-columns: 92px minmax(0, 1fr) 120px auto;
    gap: 1rem;
    padding: 1rem 1rem 1rem 3.2rem;
}

.payment-card-copy {
    display: grid;
    gap: 0.18rem;
}

.payment-card-copy strong {
    font-size: 1.18rem;
    line-height: 1.2;
}

.payment-card-copy small {
    font-size: 0.98rem;
    line-height: 1.45;
}

.payment-card-meta {
    margin-top: 0.1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.payment-card-qr-image,
.payment-card-qr {
    width: 120px;
    height: 120px;
    border-radius: 20px;
}

.payment-card-qr-image {
    padding: 0.4rem;
    background: #fff;
}

.payment-card-check {
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .payment-method-card {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 2.9rem 1rem 1rem;
    }

    .payment-card-qr-image,
    .payment-card-qr {
        width: 150px;
        height: 150px;
    }

    .payment-confirm-button,
    .payment-action-button {
        font-size: 0.96rem;
    }
}

.payment-method-card {
    grid-template-columns: 88px minmax(0, 1fr) 152px auto;
    gap: 1rem;
}

.payment-card-copy {
    max-width: 100%;
}

.payment-card-copy strong {
    font-size: 1.22rem;
}

.payment-card-copy small {
    font-size: 1rem;
    line-height: 1.5;
}

.payment-card-meta {
    display: none;
}

.payment-card-qr-image,
.payment-card-qr {
    width: 152px;
    height: 152px;
    border-radius: 22px;
}

.payment-card-qr-image {
    padding: 0.45rem;
    box-shadow: 0 10px 24px rgba(13, 24, 44, 0.16), inset 0 0 0 1px rgba(16, 38, 32, 0.08);
}

.payment-action-button,
.payment-confirm-button,
.course-purchase-box .button {
    min-height: 54px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

@media (max-width: 720px) {
    .payment-method-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .payment-card-copy {
        justify-items: center;
    }

    .payment-card-qr-image,
    .payment-card-qr {
        width: 180px;
        height: 180px;
    }

    .payment-card-check {
        width: auto;
    }
}

.payment-method-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 0.85rem !important;
    padding: 2.9rem 1rem 1.15rem !important;
}

.payment-card-mark {
    min-width: 112px !important;
}

.payment-card-copy {
    display: grid !important;
    justify-items: center !important;
    gap: 0.1rem !important;
}

.payment-card-copy strong {
    font-size: 1.28rem !important;
    line-height: 1.2 !important;
}

.payment-card-copy small,
.payment-card-meta {
    display: none !important;
}

.payment-card-qr-image,
.payment-card-qr {
    width: 190px !important;
    height: 190px !important;
    border-radius: 24px !important;
}

.payment-card-qr-image {
    padding: 0.45rem !important;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(13, 24, 44, 0.18), inset 0 0 0 1px rgba(16, 38, 32, 0.08) !important;
}

.payment-card-check {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    font-size: 0.8rem !important;
}

.payment-action-button,
.payment-confirm-button,
.course-purchase-box .button {
    min-height: 56px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.payment-action-button,
.payment-confirm-button {
    position: relative;
    width: 100%;
    min-height: 60px !important;
    padding: 0.95rem 1.5rem !important;
    border: 1px solid rgba(13, 66, 48, 0.18) !important;
    border-radius: 999px !important;
    font-family: "Kantumruy Pro", sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(13, 66, 48, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.payment-action-button {
    background: linear-gradient(135deg, #f6e4b5 0%, #e4b255 48%, #cf8f1a 100%) !important;
    color: #4a2800 !important;
    border-color: rgba(167, 108, 14, 0.34) !important;
}

.payment-confirm-button {
    background: linear-gradient(135deg, #184a3a 0%, #1c5d48 55%, #133a2f 100%) !important;
    color: #fefaf0 !important;
    border-color: rgba(16, 59, 46, 0.5) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.payment-action-button:hover,
.payment-confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(13, 66, 48, 0.18);
    filter: saturate(1.05);
}

.payment-action-button:focus-visible,
.payment-confirm-button:focus-visible {
    outline: 3px solid rgba(226, 176, 72, 0.26);
    outline-offset: 3px;
}

.payment-action-button:active,
.payment-confirm-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(13, 66, 48, 0.14);
}

@media (max-width: 720px) {
    .payment-action-button,
    .payment-confirm-button {
        min-height: 56px !important;
        font-size: 0.98rem !important;
        padding-inline: 1.1rem !important;
    }
}
.course-detail-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(380px, 0.9fr) !important;
}

.course-purchase-box {
    gap: 1.2rem !important;
}

.payment-method-card {
    padding: 2.9rem 1.1rem 1.25rem !important;
}

.payment-card-qr-image,
.payment-card-qr {
    width: 240px !important;
    height: 240px !important;
    border-radius: 26px !important;
}

.payment-card-qr-image {
    padding: 0.5rem !important;
}

@media (max-width: 980px) {
    .course-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .payment-card-qr-image,
    .payment-card-qr {
        width: 220px !important;
        height: 220px !important;
    }
}

.course-detail-single-column {
    display: grid;
    gap: 1.25rem;
}

.course-detail-card-expanded {
    display: grid;
    gap: 1.2rem;
}

.course-action-panel {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #e7edf1;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f2f7f4 100%);
}

.course-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.course-action-buttons .button,
.course-action-panel > .button,
.course-action-panel .payment-confirm-button {
    min-width: 220px;
}

.course-outline-card {
    padding: 0;
    overflow: hidden;
}

.course-outline-head {
    padding: 1.2rem 1.3rem 0;
}

.course-outline-accordion {
    display: grid;
    margin-top: 0.9rem;
}

.course-outline-section {
    border-top: 1px solid #e7edf1;
    background: #fff;
}

.course-outline-section:first-child {
    border-top: 0;
}

.course-outline-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.course-outline-section summary::-webkit-details-marker {
    display: none;
}

.course-outline-lessons {
    display: grid;
    gap: 0.75rem;
    padding: 0 1.3rem 1.2rem;
}

.course-outline-lesson-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e8eef2;
    border-radius: 16px;
    background: #fbfcfd;
}

.course-outline-lesson-row strong,
.course-outline-lesson-row span {
    display: block;
}

.course-outline-lesson-row strong {
    color: #17392e;
}

.course-outline-lesson-row span {
    color: #677872;
}

.course-outline-status {
    min-width: 92px;
    text-align: right;
    font-weight: 800;
    color: #51636c !important;
}

.payment-method-grid-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.payment-method-grid-inline .payment-method-card {
    height: 100%;
}

.course-purchase-card {
    display: none !important;
}

.course-detail-grid {
    grid-template-columns: 1fr !important;
}

@media (max-width: 900px) {
    .payment-method-grid-inline {
        grid-template-columns: 1fr;
    }

    .course-action-buttons {
        flex-direction: column;
    }

    .course-action-buttons .button,
    .course-action-panel > .button,
    .course-action-panel .payment-confirm-button {
        width: 100%;
        min-width: 0;
    }

    .course-outline-section summary,
    .course-outline-lesson-row {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .course-outline-lesson-row {
        flex-direction: column;
    }

    .course-outline-status {
        text-align: left;
        min-width: 0;
    }
}

.course-outline-section summary {
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.course-outline-section summary:hover {
    background: #f8fbfc;
}

.course-outline-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.course-outline-summary-icon {
    position: relative;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.course-outline-summary-icon::before,
.course-outline-summary-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.62rem;
    height: 2px;
    background: #17392e;
    border-radius: 999px;
    transition: transform 0.22s ease;
}

.course-outline-summary-icon::before {
    left: 0.02rem;
    transform: translateY(-50%) rotate(45deg);
}

.course-outline-summary-icon::after {
    right: 0.02rem;
    transform: translateY(-50%) rotate(-45deg);
}

.course-outline-section[open] .course-outline-summary-icon::before {
    transform: translateY(-50%) rotate(-45deg);
}

.course-outline-section[open] .course-outline-summary-icon::after {
    transform: translateY(-50%) rotate(45deg);
}

.course-outline-summary-meta {
    color: #5f7069;
    font-weight: 700;
}

.course-outline-section summary + .course-outline-lessons {
    animation: course-outline-reveal 0.24s ease;
    transform-origin: top;
}

@keyframes course-outline-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-outline-section[open] {
    background: linear-gradient(180deg, #f9fcfb 0%, #ffffff 100%);
}

.course-outline-section[open] summary {
    color: #0f5a2c;
    background: #f3faf6;
}

.course-outline-section[open] .course-outline-summary-meta {
    color: #0f5a2c;
}

.course-outline-summary-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
}

.course-outline-summary-icon::before,
.course-outline-summary-icon::after {
    width: 0.72rem;
    height: 2.5px;
}

.course-outline-lessons {
    background: linear-gradient(180deg, rgba(243, 250, 246, 0.55) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.course-outline-lesson-row {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-outline-lesson-row:hover {
    transform: translateY(-1px);
    border-color: #c9ddd1;
    box-shadow: 0 10px 22px rgba(20, 52, 43, 0.06);
}

.qr-lightbox-open {
    overflow: hidden;
}

.qr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.qr-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 18, 0.72);
    backdrop-filter: blur(6px);
}

.qr-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 560px);
    margin: min(8vh, 4rem) auto 0;
    padding: 1.25rem;
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: 0 28px 70px rgba(20, 52, 43, 0.3);
    display: grid;
    gap: 1rem;
}

.qr-lightbox-close {
    justify-self: end;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid #d9e3dd;
    border-radius: 999px;
    background: #fff;
    color: #17392e;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.qr-lightbox-title {
    text-align: center;
    font-size: 1.1rem;
    color: #17392e;
}

.qr-lightbox-image {
    width: min(100%, 440px);
    margin: 0 auto;
    border-radius: 24px;
    background: #fff;
    padding: 0.55rem;
    box-shadow: inset 0 0 0 1px rgba(16, 38, 32, 0.08);
}

.qr-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.qr-lightbox-actions .button {
    min-width: 180px;
}

.course-action-panel {
    gap: 1.15rem;
    padding: 1.35rem !important;
    border: 1px solid rgba(208, 195, 167, 0.72) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #f6f1e5 100%) !important;
    box-shadow: 0 20px 42px rgba(84, 69, 35, 0.08) !important;
}

.payment-method-panel {
    padding: 1.1rem !important;
    border: 1px solid rgba(218, 203, 171, 0.78) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), transparent 34%),
        linear-gradient(180deg, #fcf9f1 0%, #f3ecdd 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 28px rgba(98, 78, 40, 0.08);
}

.payment-method-form {
    gap: 1rem !important;
}

.payment-method-head {
    gap: 0.4rem !important;
    padding: 0.1rem 0.1rem 0.5rem;
}

.payment-method-head strong {
    color: #17392e;
    font-family: "Kantumruy Pro", sans-serif;
    font-size: 1.22rem !important;
    line-height: 1.3;
}

.payment-method-head span {
    color: #6f6a57 !important;
    font-size: 0.98rem;
    line-height: 1.6;
}

.payment-method-grid-inline {
    gap: 0.95rem !important;
}

.payment-hint-box {
    gap: 0.3rem !important;
    padding: 1rem 1.05rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(233, 198, 119, 0.7) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 225, 0.98) 0%, rgba(248, 236, 198, 0.95) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.payment-hint-box strong {
    color: #8a5b00;
    font-size: 1rem;
}

.payment-hint-box span {
    color: #8a6b21 !important;
    line-height: 1.6;
}

.course-purchase-note {
    margin: 0 !important;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(22, 69, 54, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #58675f !important;
    font-size: 0.95rem;
    line-height: 1.55;
}

.course-purchase-note.is-success {
    border-style: solid;
    border-color: rgba(42, 125, 76, 0.22);
    background: linear-gradient(180deg, rgba(239, 252, 244, 0.95) 0%, rgba(230, 247, 236, 0.95) 100%);
}

@media (max-width: 900px) {
    .course-action-panel {
        padding: 1rem !important;
        border-radius: 22px !important;
    }

    .payment-method-panel {
        padding: 0.95rem !important;
        border-radius: 20px !important;
    }
}
.payment-method-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(14, 23, 46, 0.18) !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
}

.payment-method-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 210, 112, 0.18), transparent 26%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

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

.payment-method-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 26px 48px rgba(14, 23, 46, 0.22) !important;
    filter: saturate(1.04);
}

.payment-method-card:has(input:checked) {
    border-color: rgba(255, 233, 184, 0.74) !important;
    box-shadow: 0 0 0 1px rgba(255, 233, 184, 0.3), 0 28px 54px rgba(14, 23, 46, 0.24) !important;
}

.payment-method-card:has(input:checked)::after {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 24%),
        radial-gradient(circle at center right, rgba(255, 221, 148, 0.26), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 241, 208, 0.18), transparent 24%);
}

.payment-method-card::before {
    top: 1.15rem !important;
    left: 1.15rem !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.payment-method-card:has(input:checked)::before {
    background: #fff !important;
    box-shadow: inset 0 0 0 3px rgba(20, 52, 43, 0.42), 0 0 0 6px rgba(255, 255, 255, 0.12) !important;
}

.payment-aba {
    background:
        linear-gradient(145deg, #0a1b37 0%, #173d76 38%, #2f67bf 72%, #7db9ff 140%) !important;
}

.payment-acleda {
    background:
        linear-gradient(145deg, #6d0f16 0%, #a81724 38%, #d7462c 70%, #ffb16d 140%) !important;
}

.payment-card-mark {
    min-width: 124px !important;
    padding: 0.72rem 1rem !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 18px rgba(7, 12, 27, 0.14);
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
}

.payment-card-copy strong {
    font-size: 1.42rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.payment-card-qr-image,
.payment-card-qr {
    border-radius: 28px !important;
}

.payment-card-qr-image {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 34px rgba(10, 16, 33, 0.22), inset 0 0 0 1px rgba(16, 38, 32, 0.08) !important;
}

.payment-card-check {
    padding: 0.48rem 0.95rem !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.12)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 0.82rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(8, 14, 28, 0.14);
}

.payment-method-card:has(input:checked) .payment-card-check {
    background: linear-gradient(180deg, rgba(255,245,214,0.34), rgba(255,255,255,0.14)) !important;
    border-color: rgba(255, 236, 190, 0.36);
}

@media (max-width: 720px) {
    .payment-method-card {
        border-radius: 24px !important;
    }

    .payment-card-mark {
        min-width: 112px !important;
    }

    .payment-card-copy strong {
        font-size: 1.28rem !important;
    }
}
.payment-confirm-button {
    position: relative;
    overflow: hidden;
    justify-content: center;
    min-height: 66px !important;
    padding: 1rem 1.6rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(12, 72, 56, 0.55) !important;
    background: linear-gradient(135deg, #103e31 0%, #1e6a53 52%, #0f342b 100%) !important;
    color: #fff8ea !important;
    font-family: "Kantumruy Pro", sans-serif !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.015em !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
    box-shadow: 0 18px 34px rgba(14, 64, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.payment-confirm-button::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
    pointer-events: none;
}

.payment-confirm-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -28%;
    width: 28%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.35s ease;
}

.payment-confirm-button:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #124837 0%, #25745c 52%, #124037 100%) !important;
    box-shadow: 0 24px 42px rgba(14, 64, 50, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    filter: none !important;
}

.payment-confirm-button:hover::after {
    left: 112%;
}

.payment-confirm-button:focus-visible {
    outline: 3px solid rgba(54, 166, 118, 0.22) !important;
    outline-offset: 4px !important;
}

.payment-confirm-button:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 24px rgba(14, 64, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 720px) {
    .payment-confirm-button {
        min-height: 60px !important;
        font-size: 1rem !important;
    }
}
.payment-receipt-field {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border: 1px dashed rgba(32, 81, 63, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.payment-receipt-field label {
    color: #17392e;
}

.payment-receipt-field input[type="file"] {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(20, 52, 43, 0.16);
    border-radius: 14px;
    background: #fff;
    color: #47554f;
    font-family: "Kantumruy Pro", sans-serif;
}
.admin-purchase-content {
    background:
        radial-gradient(circle at top right, rgba(233, 190, 96, 0.08), transparent 24%),
        linear-gradient(180deg, #fffdfa 0%, #f7f3eb 100%);
}

.admin-purchase-head {
    margin-bottom: 1.25rem;
}

.admin-purchase-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.admin-purchase-summary-card {
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(220, 227, 232, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 14px 30px rgba(17, 49, 39, 0.06);
}

.admin-purchase-summary-card span,
.admin-purchase-summary-card small {
    display: block;
}

.admin-purchase-summary-card span {
    color: #7a673c;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.admin-purchase-summary-card strong {
    display: block;
    margin: 0.4rem 0 0.25rem;
    font-size: 2rem;
    color: #17392e;
}

.admin-purchase-summary-card small {
    color: #64746d;
}

.admin-purchase-summary-card.is-pending {
    background: linear-gradient(180deg, #fffaf0 0%, #fff3d8 100%);
    border-color: rgba(232, 187, 82, 0.28);
}

.admin-purchase-summary-card.is-approved {
    background: linear-gradient(180deg, #f2fbf5 0%, #e3f5e8 100%);
    border-color: rgba(65, 143, 93, 0.2);
}

.admin-purchase-summary-card.is-rejected {
    background: linear-gradient(180deg, #fff6f6 0%, #ffe8e8 100%);
    border-color: rgba(209, 72, 72, 0.18);
}

.admin-purchase-panel {
    padding: 1.35rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 248, 230, 0.95), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
    box-shadow: 0 20px 44px rgba(17, 49, 39, 0.06);
}

.admin-purchase-panel-head {
    margin-bottom: 1.25rem;
}

.admin-purchase-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #f5f1e8;
    color: #5f6f69;
    font-weight: 700;
}

.admin-purchase-list {
    display: grid;
    gap: 1rem;
}

.admin-purchase-item {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid #e7edf1;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 12px 28px rgba(17, 49, 39, 0.05);
}

.admin-purchase-item.status-pending {
    border-color: rgba(232, 187, 82, 0.28);
    box-shadow: 0 14px 32px rgba(184, 133, 18, 0.08);
}

.admin-purchase-item.status-approved {
    border-color: rgba(65, 143, 93, 0.2);
}

.admin-purchase-item.status-rejected {
    border-color: rgba(209, 72, 72, 0.18);
}

.admin-purchase-item-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-purchase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-purchase-block {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f8fbfc;
    border: 1px solid #edf2f5;
}

.admin-purchase-label {
    color: #7a673c;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-purchase-block strong,
.admin-purchase-item-top strong {
    color: #17392e;
    font-size: 1.05rem;
}

.admin-purchase-subtitle {
    color: #62756f;
    line-height: 1.5;
}

.admin-status-pill.is-pending {
    background: #fff1c9;
    color: #9a650d;
}

.admin-purchase-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.1rem;
}

.admin-receipt-link {
    min-width: 190px;
    border-radius: 999px;
    border-color: rgba(19, 70, 55, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    box-shadow: 0 10px 22px rgba(17, 49, 39, 0.05);
}

.admin-purchase-actions {
    justify-content: flex-end;
    gap: 0.7rem;
}

.admin-approve-button {
    min-width: 132px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #123d31 0%, #1b614c 55%, #12392f 100%) !important;
    box-shadow: 0 14px 24px rgba(18, 61, 49, 0.18);
}

.admin-reject-button {
    min-width: 132px !important;
    border-radius: 999px !important;
    background: #fff !important;
}

.admin-purchase-empty {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    padding: 2.25rem 1rem;
    border-radius: 22px;
    border: 1px dashed #d4dde3;
    background: linear-gradient(180deg, #fbfcfd 0%, #f7f9fb 100%);
    color: #63756f;
    text-align: center;
}

.admin-purchase-empty strong {
    color: #17392e;
    font-size: 1.08rem;
}

@media (max-width: 980px) {
    .admin-purchase-summary,
    .admin-purchase-grid {
        grid-template-columns: 1fr;
    }

    .admin-purchase-actions-row,
    .admin-purchase-item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-purchase-actions {
        justify-content: stretch;
    }

    .admin-purchase-actions form,
    .admin-purchase-actions .button,
    .admin-receipt-link {
        width: 100%;
    }
}
.admin-dashboard-content {
    background:
        radial-gradient(circle at top right, rgba(233, 190, 96, 0.08), transparent 24%),
        linear-gradient(180deg, #fffdfa 0%, #f7f3eb 100%);
}

.admin-dashboard-head {
    margin-bottom: 1.25rem;
}

.admin-dashboard-hero {
    margin-bottom: 1.2rem;
    border: 1px solid rgba(230, 213, 181, 0.32);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 233, 184, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, #102a24 0%, #173f35 46%, #285646 100%);
    box-shadow: 0 22px 48px rgba(17, 49, 39, 0.14);
}

.admin-dashboard-hero-copy {
    max-width: 760px;
}

.admin-dashboard-hero h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.12;
}

.admin-dashboard-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.admin-dashboard-hero-actions .button {
    min-height: 52px;
    border-radius: 18px;
}

.admin-dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.2rem;
}

.admin-dashboard-stat-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 1.25rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(220, 227, 232, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 14px 28px rgba(17, 49, 39, 0.06);
}

.admin-dashboard-stat-card::after {
    content: '';
    position: absolute;
    top: -34px;
    right: -24px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 223, 158, 0.28), transparent 70%);
}

.admin-dashboard-stat-card strong,
.admin-dashboard-stat-card span,
.admin-dashboard-stat-card small {
    position: relative;
    z-index: 1;
}

.admin-dashboard-stat-card span {
    color: #7a673c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-dashboard-stat-card strong {
    margin: 0.42rem 0 0.18rem;
    font-size: 2rem;
    color: #17392e;
}

.admin-dashboard-stat-card small {
    color: #64746d;
    line-height: 1.55;
}

.admin-dashboard-stat-card.is-highlight {
    border-color: rgba(232, 187, 82, 0.34);
    background: linear-gradient(180deg, #fff9ea 0%, #fff0cb 100%);
}

.admin-dashboard-main-grid {
    align-items: start;
}

.admin-dashboard-panel {
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 248, 230, 0.95), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
    box-shadow: 0 18px 40px rgba(17, 49, 39, 0.06);
}

.admin-dashboard-quick-links {
    gap: 0.95rem;
}

.admin-dashboard-quick-links a {
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfcfb 0%, #f7fafb 100%);
    box-shadow: 0 10px 22px rgba(17, 49, 39, 0.04);
}

.admin-dashboard-list {
    gap: 0.9rem;
}

.admin-dashboard-list-item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    box-shadow: 0 10px 22px rgba(17, 49, 39, 0.04);
}

@media (max-width: 1100px) {
    .admin-dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-dashboard-hero-actions,
    .admin-dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}
.admin-header {
    position: relative;
    margin-bottom: 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(255, 224, 160, 0.18), transparent 20%),
        linear-gradient(135deg, #102923 0%, #183c32 52%, #214c3d 100%);
    box-shadow: 0 16px 34px rgba(17, 49, 39, 0.14);
}

.admin-topbar-premium {
    min-height: 92px;
    gap: 1rem;
}

.admin-brand {
    gap: 1rem;
    color: #fff !important;
}

.admin-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-brand-copy {
    display: grid;
    gap: 0.12rem;
}

.admin-brand-copy strong {
    color: #fff;
    font-size: 1.28rem;
}

.admin-brand-copy small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.96rem;
}

.admin-brand-eyebrow {
    color: rgba(255, 224, 160, 0.92) !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem !important;
    font-weight: 700;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-topbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 247, 229, 0.92);
    font-weight: 600;
}

.admin-view-site-button {
    min-height: 48px;
    padding-inline: 1.15rem;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #fffdf7 0%, #f4ebd5 100%) !important;
    border-color: rgba(201, 176, 118, 0.42) !important;
    color: #17392e !important;
    box-shadow: 0 10px 22px rgba(17, 49, 39, 0.08);
}

.admin-sidebar-premium {
    padding: 1.15rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 242, 213, 0.92), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
    box-shadow: 0 18px 40px rgba(17, 49, 39, 0.06);
}

.admin-sidebar-head {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.2rem 0.2rem 0.7rem;
    border-bottom: 1px solid rgba(219, 208, 184, 0.62);
}

.admin-sidebar-head strong {
    color: #17392e;
    font-size: 1.12rem;
}

.admin-sidebar-head small {
    color: #6d7c76;
}

.admin-sidebar-label {
    color: #9a6d14;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-nav {
    gap: 0.6rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(250,251,252,0.96) 100%);
    box-shadow: 0 8px 18px rgba(17, 49, 39, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-nav-title {
    font-weight: 700;
}

.admin-nav-arrow {
    color: #9a6d14;
    font-size: 1.05rem;
    line-height: 1;
}

.admin-nav a.active,
.admin-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 190, 128, 0.34);
    background: linear-gradient(180deg, #fffaf0 0%, #f5ecda 100%);
    color: #0b5d1b;
    box-shadow: 0 14px 24px rgba(138, 104, 29, 0.08);
}

.admin-nav a.active .admin-nav-arrow,
.admin-nav a:hover .admin-nav-arrow {
    transform: translateX(2px);
}

@media (max-width: 980px) {
    .admin-topbar-premium,
    .admin-topbar-actions {
        align-items: flex-start;
    }

    .admin-topbar-premium {
        flex-direction: column;
        padding: 1rem 0;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .admin-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-view-site-button,
    .admin-topbar-badge {
        width: 100%;
    }
}
.admin-purchase-list.admin-table-wrap-scroll {
    max-height: 680px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.2rem;
}
.lesson-sidebar-scroll-card {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 0.75rem;
}

.lesson-sidebar-scroll {
    display: grid;
    gap: 0;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

.lesson-sidebar-section {
    border-top: 1px solid #e7edf1;
}

.lesson-sidebar-section:first-child {
    border-top: 0;
}

.lesson-sidebar-section[open] {
    background: #f8fcfa;
}

.lesson-sidebar-chapter {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0.15rem;
    margin: 0;
}

.lesson-sidebar-chapter::-webkit-details-marker {
    display: none;
}

.lesson-sidebar-chapter-main {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.lesson-sidebar-chapter-icon {
    position: relative;
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 0.95rem;
}

.lesson-sidebar-chapter-icon::before,
.lesson-sidebar-chapter-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.62rem;
    height: 2px;
    background: #17392e;
    border-radius: 999px;
    transition: transform 0.22s ease;
}

.lesson-sidebar-chapter-icon::before {
    left: 0.02rem;
    transform: translateY(-50%) rotate(45deg);
}

.lesson-sidebar-chapter-icon::after {
    right: 0.02rem;
    transform: translateY(-50%) rotate(-45deg);
}

.lesson-sidebar-section[open] .lesson-sidebar-chapter-icon::before {
    transform: translateY(-50%) rotate(-45deg);
}

.lesson-sidebar-section[open] .lesson-sidebar-chapter-icon::after {
    transform: translateY(-50%) rotate(45deg);
}

.lesson-sidebar-list {
    margin-top: 0;
    padding: 0 0 1rem;
}

.lesson-sidebar-item {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.lesson-sidebar-item strong {
    line-height: 1.45;
}

.lesson-sidebar-item span {
    justify-self: end;
    white-space: nowrap;
    font-weight: 700;
}

@media (max-width: 980px) {
    .lesson-sidebar-scroll-card {
        position: static;
    }

    .lesson-sidebar-scroll {
        max-height: min(560px, calc(100vh - 2rem));
    }
}
.lesson-player-card {
    display: grid;
    gap: 1rem;
}

.lesson-player-card .lesson-video-wrap {
    position: sticky;
    top: 0.75rem;
    box-shadow: 0 16px 32px rgba(15, 28, 24, 0.18);
}

@media (max-width: 980px) {
    .lesson-player-card .lesson-video-wrap {
        position: static;
    }
}
.lesson-view-grid {
    --lesson-sticky-top: 0.75rem;
    --lesson-sticky-bottom-gap: 1rem;
    --lesson-sticky-viewport: calc(100vh - var(--lesson-sticky-top) - var(--lesson-sticky-bottom-gap));
}

.lesson-sidebar-scroll-card {
    top: var(--lesson-sticky-top);
    max-height: var(--lesson-sticky-viewport);
    align-self: start;
}

.lesson-sidebar-scroll {
    max-height: calc(var(--lesson-sticky-viewport) - 5.4rem);
}

.lesson-player-card .lesson-video-wrap {
    top: var(--lesson-sticky-top);
    align-self: start;
}

@media (max-width: 980px) {
    .lesson-view-grid {
        --lesson-sticky-top: 0rem;
        --lesson-sticky-bottom-gap: 2rem;
    }
}
.admin-purchase-summary.admin-purchase-summary-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


.admin-delete-button {
    min-width: 132px !important;
    border-radius: 999px !important;
    border-color: rgba(182, 56, 48, 0.28) !important;
    color: #b63830 !important;
    background: linear-gradient(180deg, #fff7f5 0%, #fff1ee 100%) !important;
}

@media (max-width: 1100px) {
    .admin-purchase-summary.admin-purchase-summary-triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-purchase-summary.admin-purchase-summary-triple {
        grid-template-columns: 1fr;
    }
}
.auth-inline-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.auth-verify-card {
    gap: 1.1rem;
}

.auth-verify-badge {
    align-self: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 170, 84, 0.16), rgba(10, 83, 29, 0.12));
    color: #8f6112;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-verify-title {
    margin-bottom: 0;
}

.auth-verify-lead {
    text-align: center;
    color: #52646e;
}

.auth-verify-email-box {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(19, 71, 33, 0.14);
    background: linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
    text-align: center;
    color: #4d5f69;
}

.auth-verify-email-box strong {
    font-size: 1.05rem;
    color: #12392b;
}

.auth-verify-steps {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 1.2rem;
    border-radius: 1.25rem;
    background: #fffdfa;
    border: 1px solid rgba(216, 190, 140, 0.22);
    color: #455862;
}

.auth-verify-steps p {
    margin: 0;
}

.auth-verify-preview-card {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    padding: 1.2rem;
    border-radius: 1.3rem;
    background: linear-gradient(180deg, #fff9eb 0%, #fff4d5 100%);
    border: 1px solid rgba(212, 170, 84, 0.34);
}

.auth-verify-preview-card h2,
.auth-verify-preview-card p {
    margin: 0;
}

.auth-verify-preview-path {
    color: #8a6a2f;
    word-break: break-all;
    font-size: 0.94rem;
}

.auth-verify-preview-button,
.auth-verify-primary,
.auth-verify-secondary {
    min-height: 54px;
    border-radius: 999px;
    font-weight: 800;
}

.auth-verify-preview-button,
.auth-verify-primary {
    background: linear-gradient(135deg, #0a5b21 0%, #0f7d31 100%);
    border-color: #0a5b21;
    color: #fff;
}

.auth-verify-actions {
    display: grid;
    gap: 0.9rem;
    width: 100%;
}

.auth-verify-actions form {
    margin: 0;
}

.auth-verify-actions .button,
.auth-verify-actions button {
    width: 100%;
}

@media (min-width: 720px) {
    .auth-verify-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.7rem 0.4rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.profile-chip.is-active,
.profile-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.profile-chip-avatar,
.profile-chip-initials {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    flex: 0 0 2.35rem;
}

.profile-chip-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-chip-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0c870 0%, #0d6a28 100%);
    color: #fff;
    font-weight: 800;
}

.profile-chip-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.profile-section {
    padding-top: 3.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
    gap: 1.5rem;
}

.profile-summary-card,
.profile-form-card {
    padding: 1.7rem;
}

.profile-summary-card {
    display: grid;
    gap: 1rem;
    align-self: start;
    text-align: center;
}

.profile-summary-avatar-wrap {
    display: flex;
    justify-content: center;
}

.profile-summary-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(13, 41, 26, 0.18);
}

.profile-summary-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0c870 0%, #0d6a28 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.profile-summary-card h1,
.profile-summary-card p {
    margin: 0;
}

.profile-summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.profile-summary-badge {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #f5f8f4;
    border: 1px solid rgba(14, 88, 34, 0.12);
    color: #1c4f2b;
    font-weight: 700;
    font-size: 0.92rem;
}

.profile-form-card {
    display: grid;
    gap: 1rem;
}

.profile-form-head {
    display: grid;
    gap: 0.45rem;
}

.profile-form-head h2,
.profile-form-head p {
    margin: 0;
}

.profile-form-kicker {
    color: #9b6b17;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.profile-form textarea {
    min-height: 144px;
    resize: vertical;
}

.profile-save-button {
    width: 100%;
    min-height: 60px;
    border-radius: 999px;
}

@media (max-width: 980px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .profile-chip-name {
        display: none;
    }
}
.profile-dropdown {
    position: relative;
}

.profile-chip {
    border: 0;
    cursor: pointer;
}

.profile-chip-caret {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid rgba(255, 255, 255, 0.82);
    border-bottom: 2px solid rgba(255, 255, 255, 0.82);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.profile-dropdown.is-open .profile-chip-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: 250px;
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(223, 212, 191, 0.9);
    background: #fffdfa;
    box-shadow: 0 20px 36px rgba(11, 37, 25, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 180;
}

.profile-dropdown.is-open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.35rem 0.2rem 0.8rem;
    border-bottom: 1px solid rgba(223, 212, 191, 0.9);
    margin-bottom: 0.2rem;
}

.profile-dropdown-head strong,
.profile-dropdown-head small {
    display: block;
}

.profile-dropdown-head strong {
    color: #17392e;
}

.profile-dropdown-head small {
    color: #64757e;
    word-break: break-word;
}

.profile-dropdown-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 3rem;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    color: #17392e;
    text-decoration: none;
    font-weight: 700;
}

.profile-dropdown-menu a:hover,
.profile-dropdown-menu a.is-active {
    background: #f2f7f3;
}

.profile-dropdown-menu a.is-danger {
    color: #b63830;
}

.profile-dropdown-menu a.is-danger:hover {
    background: #fff1ee;
}

@media (max-width: 980px) {
    .profile-dropdown {
        width: 100%;
    }

    .profile-chip {
        width: 100%;
        justify-content: space-between;
    }

    .profile-chip-name {
        display: inline;
        flex: 1 1 auto;
        text-align: left;
    }

    .profile-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.6rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .profile-dropdown.is-open .profile-dropdown-menu {
        display: grid;
    }
}
.site-header {
    z-index: 120;
    overflow: visible;
}

.nav-shell {
    position: relative;
    overflow: visible;
}

.auth-nav {
    position: relative;
    overflow: visible;
}

.profile-dropdown {
    z-index: 140;
}
.course-card-footer-stack .button.button-secondary {
    width: 100%;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgb(6, 3, 158);
    background: linear-gradient(135deg, rgb(6, 3, 158) 0%, rgb(24, 19, 214) 52%, rgb(6, 3, 158) 100%);
    background-size: 220% 220%;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 26px rgba(6, 3, 158, 0.28);
    animation: course-detail-button-flow 5.5s ease-in-out infinite;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.course-card-footer-stack .button.button-secondary:hover,
.course-card-footer-stack .button.button-secondary:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 32px rgba(6, 3, 158, 0.34);
}

.course-card-footer-stack .button.button-secondary:active {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(6, 3, 158, 0.22);
}

@keyframes course-detail-button-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.book-preview-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(16, 64, 39, 0.12);
    background: linear-gradient(180deg, #fbfdfb 0%, #f3f8f4 100%);
}

.book-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.book-preview-head h2,
.book-preview-card h2 {
    margin: 0;
}

.book-video-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1.2rem;
    background: #000;
}

.book-pdf-preview-wrap {
    min-height: 720px;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #eef3f0;
    border: 1px solid rgba(17, 68, 43, 0.1);
}

.book-pdf-preview-wrap iframe {
    width: 100%;
    min-height: 720px;
    border: 0;
    background: #fff;
}

@media (max-width: 820px) {
    .book-preview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .book-pdf-preview-wrap,
    .book-pdf-preview-wrap iframe {
        min-height: 520px;
    }
}
.book-detail-actions .book-detail-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    grid-column: 1 / -1;
    width: 100%;
}

.book-detail-actions .book-detail-actions-row .button {
    grid-column: auto;
    margin-top: 0;
    border-radius: 6px !important;
}

@media (max-width: 680px) {
    .book-detail-actions .book-detail-actions-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .book-detail-actions .book-detail-actions-row .button {
        padding-inline: 0.75rem;
        font-size: 0.95rem;
    }
}