/**
 * Flock Theme — client.css
 * Estilos da área de cliente. Prefixo: cl-
 */

/* ── Layout principal ── */

.cl-layout {
    display: block;
    min-height: calc(100vh - 72px);
    background: var(--cream, #f8f7f4);
    margin-top: 72px;
}

.admin-bar .cl-layout {
    margin-top: 104px;
    min-height: calc(100vh - 104px);
}

@media screen and (max-width: 782px) {
    .admin-bar .cl-layout {
        margin-top: 118px;
    }
}

/* ── Sidebar ── */

.cl-sidebar {
    background: var(--green-deep, #30493a);
    color: #fff;
    position: sticky;
    top: 72px; /* cola abaixo do header fixo */
    height: calc(100vh - 72px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.admin-bar .cl-sidebar {
    top: 104px;
    height: calc(100vh - 104px);
}

@media screen and (max-width: 782px) {
    .admin-bar .cl-sidebar {
        top: 118px;
        height: auto;
    }
}

.cl-sidebar__logo {
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cl-sidebar__logo img {
    max-width: 130px;
    height: auto;
    display: block;
}

.cl-sidebar__logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.cl-sidebar__logo-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cl-sidebar__user {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cl-sidebar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.cl-sidebar__user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.cl-sidebar__user-role {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1px;
}

.cl-sidebar__nav {
    flex: 1;
    padding: 0.75rem 0;
}

.cl-sidebar__nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.cl-sidebar__nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.cl-sidebar__nav-link.is-active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #81c784;
}

.cl-sidebar__nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.cl-sidebar__nav-link.is-active svg {
    opacity: 1;
}

.cl-sidebar__footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cl-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}

.cl-sidebar__logout:hover {
    color: rgba(255,255,255,0.9);
}

.cl-sidebar__logout svg {
    width: 15px;
    height: 15px;
}

/* ── Conteúdo principal ── */

.cl-main {
    min-height: 75vh;
    background: var(--cream, #f8f7f4);
    width: 100%;
}

.cl-main__inner {
    padding: 2.5rem 5rem;
    max-width: 1320px;
}

.cl-main__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-main__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.cl-main__sub {
    color: var(--ink-light, #6b7c65);
    font-size: 0.9rem;
}

/* ── Dashboard stats ── */

.cl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.cl-stat {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border, rgba(45,107,74,0.15));
    display: flex;
    flex-direction: column;
}

.cl-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e1e4cb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--green-mid, #2d6b4a);
}

.cl-stat__icon svg {
    width: 22px;
    height: 22px;
}

.cl-stat__val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-mid, #2d6b4a);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.cl-stat__label {
    font-size: 0.82rem;
    color: var(--ink-light, #6b7c65);
}

/* ── Quick actions ── */

.cl-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.cl-quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border, rgba(45,107,74,0.15));
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--ink, #1a1f1c);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cl-quick-link:hover {
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(26,61,31,0.08));
    border-color: var(--green-light, #81c784);
}

.cl-quick-link__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e1e4cb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green-mid, #2d6b4a);
}

.cl-quick-link__icon svg {
    width: 22px;
    height: 22px;
}

.cl-quick-link__text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
    line-height: 1.3;
}

.cl-quick-link__sub {
    font-size: 0.78rem;
    color: var(--ink-light, #6b7c65);
    margin-top: 2px;
}

/* ── Barra de progresso ── */

.cl-progress {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cl-progress__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
}

.cl-progress__count {
    font-size: 0.85rem;
    color: var(--ink-light, #6b7c65);
}

.cl-progress__track {
    height: 8px;
    background: rgba(45,107,74,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.cl-progress__fill {
    height: 100%;
    background: var(--green-mid, #2d6b4a);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* ── Grelha de tutoriais (área de cliente) ── */

.cl-tut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cl-tut-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(45,107,74,0.15));
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cl-tut-card:hover {
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(26,61,31,0.08));
}

.cl-tut-card.is-watched {
    border-color: var(--green-light, #81c784);
}

.cl-tut-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f0f4f0;
    overflow: hidden;
}

.cl-tut-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cl-tut-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e1e4cb 0%, #c8e6c9 100%);
}

.cl-tut-card__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cl-tut-card__play-btn svg circle {
    transition: opacity 0.2s;
}

.cl-tut-card__thumb:hover .cl-tut-card__play-btn svg circle {
    opacity: 0.75;
}

.cl-tut-card__watched-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--green-mid, #2d6b4a);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.02em;
}

.cl-tut-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cl-tut-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.cl-tut-card__desc {
    font-size: 0.82rem;
    color: var(--ink-light, #6b7c65);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.cl-tut-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cl-tut-card__mark-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1.5px solid var(--green-mid, #2d6b4a);
    background: transparent;
    color: var(--green-mid, #2d6b4a);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.cl-tut-card__mark-btn:hover {
    background: var(--green-mid, #2d6b4a);
    color: #fff;
}

.cl-tut-card.is-watched .cl-tut-card__mark-btn {
    background: #e1e4cb;
    border-color: var(--green-light, #81c784);
    color: var(--green-deep, #30493a);
    cursor: default;
}

/* ── Lightbox (reutilizado em tutoriais do cliente) ── */

.cl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cl-lightbox[hidden] { display: none; }

.cl-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.cl-lightbox__box {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #1a1f1c;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.cl-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
}

.cl-lightbox__title {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.cl-lightbox__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-shrink: 0;
    transition: color 0.15s;
}

.cl-lightbox__close:hover { color: #fff; }

.cl-lightbox__video {
    position: relative;
    padding-bottom: 56.25%;
}

.cl-lightbox__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── FAQ privada ── */

.cl-faq-list {
    display: flex;
    flex-direction: column;
}

.cl-faq-item {
    border-bottom: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-faq-item:first-child {
    border-top: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.925rem;
    color: var(--ink, #1a1f1c);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    gap: 1rem;
    font-family: inherit;
}

.cl-faq-question svg {
    flex-shrink: 0;
    color: var(--green-mid, #2d6b4a);
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

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

.cl-faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.cl-faq-item.is-open .cl-faq-answer-wrap {
    grid-template-rows: 1fr;
}

.cl-faq-answer-inner {
    overflow: hidden;
}

.cl-faq-answer {
    padding-bottom: 1.1rem;
    color: var(--ink-light, #6b7c65);
    line-height: 1.75;
    font-size: 0.9rem;
    white-space: pre-line;
}

.cl-faq-empty {
    color: var(--ink-light, #6b7c65);
    font-size: 0.9rem;
    padding: 2rem 0;
}

/* ── Formulário de suporte ── */

.cl-support-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.cl-support-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cl-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.2rem;
}
.cl-form-field .form-hint {
    font-size: 0.8rem;
    color: var(--ink-light, #6b7c65);
    margin-bottom: 0.25rem;
}

.cl-form-field input,
.cl-form-field textarea,
.cl-form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border, rgba(45,107,74,0.15));
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink, #1a1f1c);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.cl-form-field input:focus,
.cl-form-field textarea:focus {
    border-color: var(--green-mid, #2d6b4a);
}

.cl-form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.cl-support-info {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-support-info__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink, #1a1f1c);
    margin-bottom: 1rem;
}

.cl-support-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--ink-light, #6b7c65);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.cl-support-info__item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--green-mid, #2d6b4a);
    margin-top: 1px;
}

/* ── Certificado ── */

.cl-cert-section {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 16px;
    border: 2px solid var(--green-light, #81c784);
    padding: 2.5rem 2rem;
    text-align: center;
}

.cl-cert__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e1e4cb;
    color: var(--green-deep, #30493a);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.cl-cert__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-deep, #30493a);
    margin-bottom: 0.5rem;
}

.cl-cert__sub {
    font-size: 0.9rem;
    color: var(--ink-light, #6b7c65);
    margin-bottom: 1.5rem;
}

.cl-cert__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.4rem;
}

.cl-cert__date {
    font-size: 0.85rem;
    color: var(--ink-light, #6b7c65);
    margin-bottom: 1.5rem;
}

.cl-cert__print-btn {
    background: var(--green-deep, #30493a);
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.cl-cert__print-btn:hover {
    background: var(--green-mid, #2d6b4a);
}

/* ── Mensagens de feedback ── */

.cl-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cl-feedback.is-success {
    background: #e1e4cb;
    color: var(--green-deep, #30493a);
}

.cl-feedback.is-error {
    background: #fdecea;
    color: #b71c1c;
}

/* ── Formulários de autenticação ── */

.cl-auth-section {
    background: var(--cream, #f8f7f4);
    padding: calc(72px + 3rem) 5% 5rem; /* 72px header + breathing room */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.admin-bar .cl-auth-section {
    padding-top: calc(104px + 3rem);
}

.cl-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(26,61,31,0.08));
    border: 1px solid var(--border, rgba(45,107,74,0.15));
}

.cl-auth-card__logo {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.cl-auth-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.4rem;
    text-align: center;
}

.cl-auth-card__sub {
    color: var(--ink-light, #6b7c65);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    text-align: center;
    line-height: 1.5;
}

.cl-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.cl-auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
    margin-bottom: 0.2rem;
}
.cl-auth-field .form-hint {
    font-size: 0.8rem;
    color: var(--ink-light, #6b7c65);
    margin-bottom: 0.2rem;
}

.cl-auth-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border, rgba(45,107,74,0.15));
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink, #1a1f1c);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.cl-auth-field input:focus {
    border-color: var(--green-mid, #2d6b4a);
}

.cl-auth-row {
    display: flex;
    gap: 0.75rem;
}

.cl-auth-row .cl-auth-field {
    flex: 1;
}

.cl-auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-light, #6b7c65);
}

.cl-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green-mid, #2d6b4a);
    cursor: pointer;
}

.cl-auth-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--green-deep, #30493a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.cl-auth-submit:hover {
    background: var(--green-mid, #2d6b4a);
}

.cl-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cl-auth-links {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-light, #6b7c65);
    margin-top: 1.25rem;
    line-height: 1.6;
}

.cl-auth-links a {
    color: var(--green-mid, #2d6b4a);
    text-decoration: none;
    font-weight: 500;
}

.cl-auth-links a:hover {
    text-decoration: underline;
}

/* ── Dashboard ───────────────────────────────────────────────── */

.cl-dash-page {
    padding: 2.5rem 5rem 5rem;
    max-width: 1320px;
    width: 100%;
    box-sizing: border-box;
}

/* Cabeçalho */
.cl-dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cl-dash-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-light, #6b7c65);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.cl-dash-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 6px;
    color: var(--ink, #1a1f1c);
}

.cl-dash-lede {
    font-size: 0.9rem;
    color: var(--ink-mid, #3d4a38);
    margin: 0;
    max-width: 60ch;
    line-height: 1.5;
}

/* User pill */
/* ── Barra de topo (páginas interiores) ──────────────────── */
.cl-nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cl-nav-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-light, #6b7c65);
    text-decoration: none;
    transition: color 0.15s;
}

.cl-nav-topbar__back svg {
    width: 16px;
    height: 16px;
}

.cl-nav-topbar__back:hover {
    color: var(--ink, #1a1f1c);
}

.cl-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-mid, #3d4a38);
    white-space: nowrap;
    flex-shrink: 0;
}

.cl-user-pill__av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink, #1a1f1c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.cl-user-pill strong {
    font-weight: 600;
    color: var(--ink, #1a1f1c);
}

.cl-user-pill__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #8a8a82;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-left: 2px;
}

.cl-user-pill__logout:hover {
    background: #f0ede6;
    color: var(--ink, #1a1f1c);
}

.cl-user-pill__logout [data-lucide] {
    width: 14px;
    height: 14px;
}

.cl-dash-head__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cl-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--green-mid, #2d6b4a);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.cl-app-btn:hover {
    background: var(--green-deep, #30493a);
    color: #fff;
}

.cl-app-btn [data-lucide] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Continue card (hero escuro) */
.cl-continue-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    margin-top: 22px;
    background: var(--ink, #1a1f1c);
    color: #faf9f5;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
}

.cl-continue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(45,106,79,0.45), transparent 50%),
        radial-gradient(circle at 15% 90%, rgba(45,106,79,0.20), transparent 55%);
    pointer-events: none;
}

.cl-continue-body {
    position: relative;
    z-index: 1;
}

.cl-continue-card .cl-dash-kicker {
    color: rgba(255,255,255,0.6);
}

.cl-continue-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 6px 0 4px;
    line-height: 1.2;
    color: #faf9f5;
}

.cl-continue-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    margin: 0 0 18px;
}

.cl-continue-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.cl-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1.5px solid var(--ink, #1a1f1c);
    border-radius: 999px;
    background: var(--ink, #1a1f1c);
    color: #faf9f5;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s;
}

.cl-dash-btn [data-lucide] {
    width: 14px;
    height: 14px;
}

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

.cl-dash-btn--accent {
    background: var(--green-mid, #2d6b4a);
    border-color: var(--green-mid, #2d6b4a);
    box-shadow: 0 8px 24px -8px rgba(45,106,79,0.55);
}

.cl-dash-btn--ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.cl-dash-btn--ghost:hover {
    border-color: #fff;
}

/* Progress ring in continue card */
.cl-continue-ring-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cl-continue-ring {
    --p: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: conic-gradient(var(--green-mid, #2d6b4a) calc(var(--p) * 1%), rgba(255,255,255,0.15) 0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cl-continue-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    background: var(--ink, #1a1f1c);
    border-radius: 50%;
}

.cl-continue-ring__val {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.cl-continue-ring__lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Stats grid */
.cl-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.cl-dash-stat {
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 12px;
    padding: 20px 22px;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.cl-dash-stat:hover {
    transform: translateY(-2px);
    border-color: var(--ink, #1a1f1c);
    box-shadow: 0 8px 22px -10px rgba(20,20,15,0.18);
}

.cl-dash-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20,20,15,0.08);
    color: var(--green-mid, #2d6b4a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.cl-dash-stat__icon [data-lucide] {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
}

.cl-dash-stat__val {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink, #1a1f1c);
}

.cl-dash-stat__val small {
    font-size: 1rem;
    font-weight: 600;
    color: #8a8a82;
    margin-left: 3px;
    letter-spacing: -0.01em;
}

.cl-dash-stat__label {
    font-size: 13px;
    color: var(--ink-mid, #3d4a38);
    margin: 6px 0 0;
}

/* Progress strip */
.cl-dash-progress {
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 28px;
}

.cl-dash-progress__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.cl-dash-progress__row h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink, #1a1f1c);
}

.cl-dash-progress__meta {
    font-size: 13px;
    color: #8a8a82;
}

.cl-dash-progress__meta strong {
    color: var(--ink, #1a1f1c);
    font-weight: 700;
}

.cl-dash-bar {
    height: 10px;
    background: #ece9df;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.cl-dash-bar__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green-mid, #2d6b4a), var(--green-fresh, #4a9b6f));
    border-radius: inherit;
    transition: width 0.4s ease;
}

/* Quick links */
.cl-dash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.cl-dash-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink, #1a1f1c);
}

.cl-dash-section-head span {
    font-size: 13px;
    color: #8a8a82;
}

.cl-quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.cl-quicklink {
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    position: relative;
}

.cl-quicklink:hover {
    transform: translateY(-2px);
    border-color: var(--ink, #1a1f1c);
    box-shadow: 0 8px 22px -10px rgba(20,20,15,0.18);
}

.cl-quicklink:hover .cl-quicklink__arrow {
    transform: translateX(2px);
}

.cl-quicklink.is-soon {
    opacity: 0.6;
    pointer-events: none;
}

.cl-quicklink.is-active {
    border-color: var(--green-mid, #2d6b4a);
    background: #f0f7f3;
    box-shadow: 0 0 0 3px rgba(45,107,74,0.10);
}

.cl-quicklink__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20,20,15,0.08);
    color: var(--green-mid, #2d6b4a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cl-quicklink__icon [data-lucide] {
    width: 32px;
    height: 32px;
    stroke-width: 1.75;
}

.cl-quicklink__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink, #1a1f1c);
}

.cl-quicklink__desc {
    font-size: 13px;
    color: var(--ink-mid, #3d4a38);
    line-height: 1.45;
    margin: 0;
}

.cl-quicklink__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #faf9f5;
    color: var(--ink, #1a1f1c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s;
}

.cl-quicklink__arrow [data-lucide] {
    width: 14px;
    height: 14px;
}

.cl-quicklink__soon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ece9df;
    color: var(--ink-mid, #3d4a38);
    border: 1px solid #d9d6cc;
}

/* ── Tutoriais — Player Layout ───────────────────────────────── */

.cl-tut-page {
    padding: 2.5rem 5rem 4rem;
    max-width: 1320px;
}

.cl-tut-empty {
    color: var(--ink-light, #6b7c65);
    padding: 2rem 0;
}

/* Page header */
.cl-tut-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.cl-tut-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-light, #6b7c65);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.cl-tut-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    color: var(--ink, #1a1f1c);
}

.cl-tut-progress-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink-mid, #3d4a38);
    font-size: 14px;
    flex-shrink: 0;
}

.cl-tut-progress-label {
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Progress ring */
.cl-ring {
    --p: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(var(--green-mid, #2d6b4a) calc(var(--p) * 1%), #ece9df 0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.cl-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--cream, #f8f7f4);
    border-radius: 50%;
}
.cl-ring span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink, #1a1f1c);
}

/* Player grid */
.cl-player-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Video player */
.cl-video-player {
    background: #1a1a18;
    color: #faf9f5;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid #1a1a18;
}

.cl-player-screen {
    aspect-ratio: 16 / 9;
    background: #111;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Cover image — fills entire screen like a poster */
.cl-player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cl-player-cover--blank {
    background: linear-gradient(135deg, #2a2a26, #1a1a18);
}

.cl-player-screen:hover .cl-player-cover {
    transform: scale(1.02);
}

/* Dark overlay on hover */
.cl-player-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s;
}

.cl-player-screen:hover::after {
    background: rgba(0,0,0,0.5);
}

/* Hide overlay when playing */
.cl-player-screen.is-playing::after {
    display: none;
}

/* Play button */
.cl-player-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a18;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
    padding-left: 4px; /* optical centering of play icon */
}

.cl-player-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* Iframe fills the screen when playing */
.cl-player-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    z-index: 3;
}

.cl-player-screen.is-playing .cl-player-cover,
.cl-player-screen.is-playing .cl-player-play-btn {
    display: none;
}

.cl-player-info {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cl-player-info__text {
    flex: 1;
    min-width: 0;
}

.cl-player-info__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #faf9f5;
    line-height: 1.3;
}

.cl-player-info__desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
    color: #faf9f5;
    line-height: 1.5;
}

/* Mark-as-watched button (player + elsewhere) */
.cl-player-mark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--green-mid, #2d6b4a);
    border-radius: 999px;
    background: var(--green-mid, #2d6b4a);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    flex-shrink: 0;
}
.cl-player-mark-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}
.cl-player-mark-btn.is-done,
.cl-player-mark-btn:disabled {
    background: #3d4a38;
    border-color: #3d4a38;
    opacity: 0.7;
    cursor: default;
}

.cl-player-tracker {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.75;
    color: #faf9f5;
}

.cl-player-tracker__bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    margin: 0 12px;
    overflow: hidden;
}

.cl-player-tracker__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--green-fresh, #4a9b6f);
    font-style: normal;
}

/* Playlist */
.cl-playlist {
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 18px;
    overflow: hidden;
    position: sticky;
    top: calc(72px + 12px);
    max-height: calc(100vh - 72px - 24px);
    overflow-y: auto;
}

.admin-bar .cl-playlist {
    top: calc(104px + 12px);
    max-height: calc(100vh - 104px - 24px);
}

.cl-playlist-head {
    padding: 14px 18px;
    border-bottom: 1px dashed #d9d6cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cl-playlist-head h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink, #1a1f1c);
}

.cl-playlist-head small {
    color: #8a8a82;
    font-size: 13px;
}

.cl-playlist-section {
    border-bottom: 1px dashed #d9d6cc;
}

.cl-playlist-section:last-child {
    border-bottom: none;
}

.cl-playlist-section-head {
    padding: 8px 18px;
    background: #faf9f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a4a46;
}

.cl-playlist-row {
    display: grid;
    grid-template-columns: 20px 44px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #ece9df;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
}

.cl-playlist-row:last-child {
    border-bottom: none;
}

.cl-playlist-row:hover {
    background: #faf9f5;
}

.cl-playlist-row.is-now {
    background: #e1e4cb;
}

.cl-playlist-row.is-done .cl-check {
    background: var(--green-mid, #2d6b4a);
    border-color: var(--green-mid, #2d6b4a);
    color: #fff;
}

.cl-playlist-row.is-now .cl-check {
    border-color: var(--green-mid, #2d6b4a);
    border-style: dashed;
    color: var(--green-mid, #2d6b4a);
}

.cl-playlist-row.is-now .cl-playlist-row__title {
    color: #1b4332;
    font-weight: 600;
}

.cl-playlist-row.is-now .cl-thumb-mini {
    background: var(--green-mid, #2d6b4a);
    color: #fff;
    border-color: var(--green-mid, #2d6b4a);
}

.cl-check {
    width: 18px;
    height: 18px;
    border: 1.5px solid #8a8a82;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    color: #8a8a82;
}

.cl-thumb-mini {
    width: 44px;
    height: 28px;
    border-radius: 5px;
    background: #ece9df;
    border: 1px solid #d9d6cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #8a8a82;
    flex-shrink: 0;
}

.cl-playlist-row__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink, #1a1f1c);
}

.cl-playlist-row__dur {
    font-size: 12px;
    color: #8a8a82;
    flex-shrink: 0;
}

/* Below section */
.cl-player-below {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.cl-content-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1.5px solid var(--ink, #1a1f1c);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.cl-content-tabs button {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-display, 'Rubik', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #8a8a82;
    cursor: pointer;
    letter-spacing: -0.005em;
}

.cl-content-tabs button.is-active {
    color: var(--ink, #1a1f1c);
}

.cl-tab-panel {
    display: none;
}

.cl-tab-panel.is-active {
    display: block;
}

.cl-notes-box {
    width: 100%;
    min-height: 140px;
    background: #faf9f5;
    border: 1.5px dashed #d9d6cc;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    color: var(--ink-mid, #3d4a38);
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.cl-notes-box:focus {
    outline: none;
    border-color: var(--green-mid, #2d6b4a);
}

.cl-transcript-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem 1rem;
    color: #8a8a82;
    text-align: center;
}

.cl-transcript-empty svg,
.cl-transcript-empty i {
    opacity: 0.4;
    width: 32px;
    height: 32px;
}

.cl-transcript-empty p {
    margin: 0;
    font-size: 14px;
}

/* Side extras */
.cl-side-extras {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cl-extras-card {
    background: #fff;
    border: 1.5px solid #d9d6cc;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.cl-extras-card:hover {
    transform: translateY(-2px);
    border-color: var(--ink, #1a1f1c);
    box-shadow: 0 8px 22px -10px rgba(20,20,15,0.18);
}

.cl-extras-card h5,
.cl-certificate h5 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 6px 0 0;
    color: var(--ink, #1a1f1c);
}

.cl-extras-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a82;
    margin: 0;
}

.cl-badges-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cl-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px dashed #d9d6cc;
    background: #faf9f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #8a8a82;
    position: relative;
}

.cl-badge.is-earned {
    background: #e1e4cb;
    border-color: var(--green-mid, #2d6b4a);
    border-style: solid;
    color: #1b4332;
}

.cl-badge.is-earned::after {
    content: '★';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink, #1a1f1c);
    color: #faf9f5;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

.cl-certificate {
    background: linear-gradient(135deg, #faf9f5, #fff);
    border: 1.5px dashed var(--green-mid, #2d6b4a);
    border-radius: 12px;
    padding: 16px;
}

.cl-certificate.is-unlocked {
    border-style: solid;
    background: linear-gradient(135deg, #e1e4cb, #fff);
}

.cl-certificate .cl-extras-kicker {
    color: #1b4332;
}

.cl-certificate h5 {
    color: #1b4332;
}

.cl-certificate p {
    font-size: 13px;
    color: var(--ink-mid, #3d4a38);
    margin: 6px 0 0;
    line-height: 1.5;
}

.cl-cert-print-btn {
    margin-top: 12px;
}

/* ── Print — só o certificado ── */

@media print {
    .site-header,
    .site-footer,
    .cl-sidebar,
    .cl-main__header,
    .cl-progress,
    .cl-tut-grid,
    .cl-quick-links,
    .cl-stats {
        display: none !important;
    }

    .cl-layout {
        display: block;
    }

    .cl-main__inner {
        padding: 0;
        max-width: 100%;
    }

    .cl-cert-section {
        border: 2px solid #81c784;
        page-break-inside: avoid;
    }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .cl-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl-continue-card {
        grid-template-columns: 1fr;
    }

    .cl-continue-ring-wrap {
        flex-direction: row;
        align-items: center;
    }

    .cl-dash-page {
        padding: 1.5rem 1.5rem 5rem;
    }

    .cl-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl-support-grid {
        grid-template-columns: 1fr;
    }

    .cl-main__inner {
        padding: 2rem 2rem;
    }

    .cl-player-grid,
    .cl-player-below {
        grid-template-columns: 1fr;
    }

    .cl-playlist {
        position: static;
        max-height: none;
    }

    .cl-tut-page {
        padding: 1.5rem 1.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .cl-layout {
        grid-template-columns: 1fr;
        margin-top: 72px;
    }

    .cl-sidebar {
        position: static;
        height: auto;
        top: auto;
        flex-direction: column;
    }

    .cl-sidebar__nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0.25rem 0;
    }

    .cl-sidebar__nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .cl-sidebar__nav-link.is-active {
        border-left: none;
        border-bottom-color: #81c784;
    }

    .cl-main__inner {
        padding: 1.5rem 1.25rem;
    }

    .cl-stats {
        grid-template-columns: 1fr;
    }

    .cl-tut-grid {
        grid-template-columns: 1fr;
    }

    .cl-dash-stats {
        grid-template-columns: 1fr;
    }

    .cl-quicklinks {
        grid-template-columns: 1fr;
    }

    .cl-dash-page {
        padding: 1.25rem 1rem 5rem;
    }

    .cl-dash-title {
        font-size: 1.5rem;
    }

    .cl-continue-card {
        padding: 24px;
    }

    .cl-continue-title {
        font-size: 1.2rem;
    }

    .cl-dash-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cl-nav-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cl-dash-head__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cl-tut-page {
        padding: 1.25rem 1rem 3rem;
    }

    .cl-tut-title {
        font-size: 1.4rem;
    }

    .cl-tut-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cl-player-info {
        flex-direction: column;
        align-items: stretch;
    }

    .cl-player-mark-btn {
        align-self: flex-start;
    }

    .cl-quick-links {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * { visibility: hidden; }
    #cl-cert-section,
    #cl-cert-section * { visibility: visible; }
    #cl-cert-section {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px;
        box-shadow: none;
    }
    .cl-cert__print-btn { display: none; }
}
