/* -----------------------------------------------
   Loading state
----------------------------------------------- */
.de-loading {
    opacity: .6;
    pointer-events: none;
}

.de-loading button {
    cursor: not-allowed;
}

/* -----------------------------------------------
   Module header
----------------------------------------------- */
.de-module-header h1 {
    font-size: 1.5rem;
}

/* -----------------------------------------------
   Toolbar: search + per-page
----------------------------------------------- */
.de-list-toolbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 14px;
}

.de-search-form .input-group {
    min-width: 240px;
}

/* -----------------------------------------------
   Result info text
----------------------------------------------- */
.de-result-info {
    font-size: 0.85rem;
    color: #6c757d;
}

/* -----------------------------------------------
   Pagination
----------------------------------------------- */
.de-pagination .pagination {
    margin-bottom: 0;
}

.de-pagination .page-link {
    min-width: 36px;
    text-align: center;
    border-radius: 4px !important;
    font-size: 0.875rem;
}

.de-pagination .page-item.active .page-link {
    z-index: 1;
}

.de-pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* -----------------------------------------------
   Landing splash
----------------------------------------------- */
.de-landing-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100%;
    background: #fff;
    padding: 24px 16px;
}

.de-landing-logo {
    width: 180px;
    max-width: 60vw;
    height: auto;
    object-fit: contain;
}

.de-landing-subtitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
}

.de-landing-cta {
    background: #0dcaf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.de-landing-cta:hover,
.de-landing-cta:focus {
    background: #0bb5d8;
    color: #fff;
}

@keyframes de-landing-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.de-landing-fade-in {
    opacity: 0;
    animation: de-landing-fade-in 0.7s ease-out forwards;
}

.de-landing-logo.de-landing-fade-in {
    animation-delay: 0s;
}

.de-landing-subtitle.de-landing-fade-in {
    animation-delay: 0.15s;
}

.de-landing-cta.de-landing-fade-in {
    animation-delay: 0.3s;
}

/* -----------------------------------------------
   Home screen
----------------------------------------------- */
.de-home {
    background: #fff;
}

.de-home-greeting {
    font-size: 1.25rem;
    font-weight: 600;
}

.de-home-notify {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid #e9ecef;
    text-decoration: none;
    flex-shrink: 0;
}

.de-home-notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.de-home-search .form-control {
    border: 1px solid #e9ecef;
    padding: 12px 16px;
    background: #f8f9fa;
}

.de-home-search .form-control:focus {
    background: #fff;
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-category-scroll,
.de-video-scroll {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
}

.de-category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    text-decoration: none;
    color: #212529;
    border: 1px solid #e9ecef;
    transition: transform 0.15s ease;
}

.de-category-card:active {
    transform: scale(0.96);
}

.de-category-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.de-category-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.de-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.de-featured-video {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.de-video-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.de-featured-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.de-featured-grid .de-featured-play {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.de-featured-grid .de-featured-body {
    padding: 10px 4px 0;
}

.de-featured-grid .de-featured-title {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-featured-grid .de-featured-meta {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-featured-play {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0dcaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding-left: 4px;
}

.de-featured-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.de-featured-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0dcaf0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.de-featured-body {
    padding: 14px 16px;
}

.de-featured-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.de-featured-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.de-video-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.de-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.de-video-play {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding-left: 3px;
}

.de-video-body {
    padding: 10px 12px;
}

.de-video-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.de-video-duration {
    font-size: 0.75rem;
    color: #6c757d;
}

.de-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.de-home .de-course-body {
    margin-top: 0;
    padding: 0;
}

.de-home .de-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: visible;
}

.de-home .de-course-card.course-card {
    overflow: visible;
}

.de-course-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-course-icon {
    font-size: 1.5rem;
}

.de-course-body {
    flex: 1;
    min-width: 0;
}

.de-home .de-course-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
    word-break: break-word;
}

.de-course-lessons {
    font-size: 0.8rem;
    color: #6c757d;
}

.de-home .de-course-badge {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* -----------------------------------------------
   Pull to refresh
----------------------------------------------- */
.de-ptr {
    position: relative;
    overflow: visible;
}

.de-ptr-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    transition: height 0.2s ease;
    z-index: 10;
}

.de-ptr-indicator.is-pulling,
.de-ptr-indicator.is-refreshing {
    height: 56px;
}

.de-ptr-spinner {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border: 3px solid #e9ecef;
    border-top-color: #0dcaf0;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.de-ptr-indicator.is-pulling .de-ptr-spinner,
.de-ptr-indicator.is-refreshing .de-ptr-spinner {
    opacity: 1;
    transform: scale(1);
}

.de-ptr-indicator.is-refreshing .de-ptr-spinner {
    animation: de-ptr-spin 0.8s linear infinite;
}

@keyframes de-ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

.de-ptr-content {
    transition: transform 0.2s ease;
    will-change: transform;
}

/* -----------------------------------------------
   Course detail
----------------------------------------------- */
.de-course-detail {
    margin: calc(-16px - var(--safe-top)) -16px 0;
    background: #fff;
}

.de-course-hero {
    position: relative;
    height: 220px;
}

.de-course-back {
    position: absolute;
    top: calc(16px + var(--safe-top));
    left: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.de-course-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #fff 100%);
}

.de-course-body {
    position: relative;
    margin-top: -32px;
    padding: 0 16px 24px;
    z-index: 1;
}

.de-course-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.de-course-detail .de-course-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.de-course-badge-difficulty {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
}

.de-course-badge-sport {
    color: #495057;
    background: #f1f3f5;
}

.de-course-detail .de-course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: normal;
}

.de-course-coach {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.de-course-enrolled-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.de-course-enrolled-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.de-course-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.de-course-stat {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
}

.de-course-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.de-course-stat-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.de-course-section {
    margin-bottom: 24px;
}

.de-course-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.de-course-enroll-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.de-course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.de-enroll-confirm{
    display: block;
    width: 100%;
}

.de-course-detail .de-course-enroll-btn {
    background: #0dcaf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    white-space: nowrap;
}

.de-course-detail .de-course-enroll-btn:hover,
.de-course-detail .de-course-enroll-btn:focus {
    background: #0bb5d8;
    color: #fff;
}

.de-course-enrolled-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
}

.de-discussion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.de-discussion-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
}

.de-discussion-reply {
    background: #fff;
    border-color: #eef1f4;
    padding: 12px;
}

.de-discussion-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid #e9ecef;
}

.de-discussion-reply-btn {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #0dcaf0;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.de-discussion-reply-form {
    margin-top: 10px;
}

.de-discussion-reply-form.is-hidden {
    display: none;
}

.de-discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.de-discussion-user {
    font-size: 0.85rem;
    font-weight: 600;
}

.de-discussion-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.de-discussion-text {
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.de-discussion-empty {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    padding: 8px 0;
}

.de-discussion-login {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.de-discussion-login a {
    font-weight: 600;
    text-decoration: none;
}

.de-discussion-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.de-discussion-input .form-control {
    flex: 1;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 12px 16px;
}

.de-discussion-submit {
    flex-shrink: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.de-discussion-form.de-loading .de-discussion-submit {
    opacity: 0.7;
    pointer-events: none;
}

/* Enrollment modal — slide up from bottom */
.de-enroll-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-out;
}

.de-enroll-modal.show .modal-dialog,
.de-enroll-modal.modal.show .modal-dialog {
    transform: translateY(0) !important;
}

.de-enroll-modal .modal-content {
    border: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(16px + var(--safe-bottom));
}

.de-enroll-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.de-enroll-form .form-control {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.de-enroll-form .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-enroll-form .form-control.is-invalid {
    border-color: #dc3545;
}

.de-enroll-modal .modal-footer {
    gap: 10px;
}

/* -----------------------------------------------
   Video library
----------------------------------------------- */
.de-video-page {
    background: #fff;
}

.de-video-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.de-video-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.de-video-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.de-video-filters {
    margin-bottom: 20px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
}

.de-video-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.de-video-chip.active {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #fff;
}

.de-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.de-video-grid.is-hidden,
.de-video-skeleton-grid.is-hidden,
.de-video-empty.is-hidden {
    display: none;
}

.de-video-lib-card {
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.de-video-lib-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.de-video-lib-play {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.de-video-lib-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 6px;
}

.de-video-lib-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 8px 4px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-video-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.de-video-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.de-video-skeleton-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-video-skeleton-text {
    height: 14px;
    width: 80%;
    margin-left: 4px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes de-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.de-video-empty {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 32px 16px;
}

/* -----------------------------------------------
   Video detail
----------------------------------------------- */
.de-video-detail {
    margin: calc(-16px - var(--safe-top)) -16px 0;
    background: #fff;
}

.de-video-player-wrap {
    position: relative;
}

.de-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.de-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.de-video-player-thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #212529;
}

.de-video-player-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 4px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.de-video-detail-back {
    position: absolute;
    top: calc(12px + var(--safe-top));
    left: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.de-video-detail-body {
    padding: 20px 16px 24px;
}

.de-video-detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.de-video-detail-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.de-video-detail-badge-sport {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
}

.de-video-detail-badge-difficulty {
    color: #495057;
    background: #f1f3f5;
}

.de-video-detail-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.de-video-detail-coach {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.de-video-detail-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.de-video-detail-meta-dot {
    margin: 0 6px;
}

.de-video-detail-section {
    margin-bottom: 24px;
}

.de-video-detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.de-video-related-scroll {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
}

.de-video-related-card {
    flex: 0 0 auto;
    width: 140px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    overflow: visible;
}

.de-video-related-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.de-video-related-play {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding-left: 2px;
}

.de-video-related-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.de-video-related-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 8px 2px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------------
   Shop
----------------------------------------------- */
.de-shop-page {
    background: #fff;
}

.de-shop-header {
    margin-bottom: 20px;
}

.de-shop-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.de-shop-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

.de-shop-categories {
    margin-bottom: 20px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
}

.de-shop-category {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    color: #212529;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.de-shop-category.active {
    border-color: #0dcaf0;
}

.de-shop-category:active {
    transform: scale(0.96);
}

.de-shop-category-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.de-shop-category-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.de-shop-grid,
.de-shop-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.de-shop-grid.is-hidden,
.de-shop-skeleton-grid.is-hidden,
.de-shop-empty.is-hidden {
    display: none;
}

.de-shop-product {
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.de-shop-product.product-card {
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 10px;
    background: #fff;
    overflow: visible;
}

.de-shop-product-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 10px;
}

.de-shop-product-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.de-shop-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-shop-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.de-shop-skeleton-card {
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 10px;
}

.de-shop-skeleton-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-shop-skeleton-text {
    height: 12px;
    width: 85%;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-shop-skeleton-price {
    height: 14px;
    width: 45%;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-shop-empty {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 32px 16px;
}

/* -----------------------------------------------
   Product detail
----------------------------------------------- */
.de-product-detail {
    margin: calc(-16px - var(--safe-top)) -16px 0;
    background: #fff;
}

.de-product-hero {
    position: relative;
    height: 272px;
}

.de-product-back {
    position: absolute;
    top: calc(12px + var(--safe-top));
    left: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.de-product-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, #fff 100%);
}

.de-product-body {
    position: relative;
    margin-top: -32px;
    padding: 0 16px 24px;
    z-index: 1;
}

.de-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.de-product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.de-product-badge-category {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
}

.de-product-badge-stock {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.de-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.de-product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0dcaf0;
    margin-bottom: 20px;
}

.de-product-section {
    margin-bottom: 24px;
}

.de-product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.de-product-buy-btn {
    display: block;
    width: 100%;
    background: #0dcaf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.de-product-buy-btn:hover,
.de-product-buy-btn:focus {
    background: #0bb5d8;
    color: #fff;
}

.de-product-buy-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Order modal — slide up from bottom */
.de-order-modal.modal {
    overflow: visible;
}

.de-order-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    max-height: 92vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.de-order-modal.show .modal-dialog,
.de-order-modal.modal.show .modal-dialog {
    transform: translateY(0) !important;
}

.de-order-modal .modal-content {
    border: none;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.de-order-modal .modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.de-order-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
}

.de-order-modal .modal-footer {
    flex-shrink: 0;
    padding-bottom: calc(16px + var(--safe-bottom));
    background: #fff;
}

.de-order-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.de-order-form .form-control {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.de-order-form .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-order-form .form-control.is-invalid {
    border-color: #dc3545;
}

/* -----------------------------------------------
   Profile page
----------------------------------------------- */
.de-profile-page {
    background: #fff;
    padding-bottom: 16px;
}

.de-profile-header {
    text-align: center;
    padding: 24px 16px 20px;
}

.de-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.de-profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.de-profile-email {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.de-profile-stats {
    display: flex;
    margin: 0 16px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
}

.de-profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-right: 1px solid #e9ecef;
}

.de-profile-stat:last-child {
    border-right: none;
}

.de-profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.de-profile-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
}

.de-profile-menu {
    margin: 0 16px 24px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
}

.de-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
}

.de-profile-menu-item:last-child {
    border-bottom: none;
}

.de-profile-menu-item:active {
    background: #f8f9fa;
}

.de-profile-menu-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.de-profile-menu-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.de-profile-menu-chevron {
    color: #adb5bd;
    font-size: 1.25rem;
    line-height: 1;
}

.de-profile-orders {
    margin: 0 16px 24px;
}

.de-profile-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.de-profile-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
}

.de-profile-order-body {
    flex: 1;
    min-width: 0;
}

.de-profile-order-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.de-profile-order-price {
    font-size: 0.8rem;
    color: #6c757d;
}

.de-profile-order-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.de-profile-order-badge-delivered {
    color: #198754;
    background: rgba(25, 135, 84, 0.12);
}

.de-profile-order-badge-processing {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.12);
}

.de-profile-order-badge-shipped {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
}

.de-profile-signout-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.de-profile-signout-btn:hover,
.de-profile-signout-btn:focus {
    background: #c82333;
    color: #fff;
}

.de-profile-guest {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.de-profile-guest-card {
    text-align: center;
    max-width: 320px;
}

.de-profile-guest-avatar {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.de-profile-guest-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.de-profile-guest-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 24px;
}

.de-profile-signin-btn {
    display: inline-block;
    background: #0dcaf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.de-profile-signin-btn:hover,
.de-profile-signin-btn:focus {
    background: #0bb5d8;
    color: #fff;
}

/* -----------------------------------------------
   Profile edit
----------------------------------------------- */
.de-profile-edit {
    background: #fff;
    padding-bottom: 24px;
}

.de-profile-edit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.de-profile-edit-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.de-profile-edit-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.de-profile-edit-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.de-profile-edit-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.de-profile-edit-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 14px;
}

.de-profile-edit-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.de-profile-edit-form .form-control {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #fff;
}

.de-profile-edit-form .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-profile-edit-save {
    display: block;
    width: 100%;
    background: #0dcaf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
}

.de-profile-edit-save:hover,
.de-profile-edit-save:focus {
    background: #0bb5d8;
    color: #fff;
}

.de-profile-edit-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* -----------------------------------------------
   Courses browse
----------------------------------------------- */
.de-courses-page {
    background: #fff;
}

.de-courses-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.de-courses-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.de-courses-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.de-courses-search {
    margin-bottom: 16px;
}

.de-courses-search .form-control {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
}

.de-courses-search .form-control:focus {
    background: #fff;
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-courses-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}

.de-courses-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.de-courses-tab.active {
    background: #0dcaf0;
    color: #fff;
    font-weight: 600;
}

.de-courses-filters {
    margin-bottom: 20px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
}

.de-courses-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.de-courses-chip.active {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #fff;
}

.de-courses-list,
.de-courses-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.de-courses-list.is-hidden,
.de-courses-skeleton-list.is-hidden,
.de-courses-empty.is-hidden {
    display: none;
}

.de-courses-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: visible;
}

.de-courses-card.course-card {
    border-radius: 16px;
    border: 1px solid #e9ecef;
    background: #fff;
    overflow: visible;
}

.de-courses-card-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-courses-card-icon {
    font-size: 1.75rem;
}

.de-courses-card-body {
    flex: 1;
    min-width: 0;
}

.de-courses-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
    white-space: normal;
}

.de-courses-card-coach {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 8px;
}

.de-courses-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.de-courses-card-difficulty {
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 999px;
}

.de-courses-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
}

.de-courses-card-enrolled {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.de-courses-skeleton-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
}

.de-courses-skeleton-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-courses-skeleton-body {
    flex: 1;
}

.de-courses-skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: de-skeleton-shimmer 1.4s ease-in-out infinite;
}

.de-courses-skeleton-line.short {
    width: 60%;
    margin-bottom: 0;
}

.de-courses-empty {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 32px 16px;
}

/*
|--------------------------------------------------------------------------
| Toastr (override Bootstrap 5 .toast — shared class names)
|--------------------------------------------------------------------------
*/

#toast-container {
    z-index: 999999;
}

#toast-container > div.toast {
    width: 300px;
    max-width: calc(100vw - 24px);
    padding: 15px 15px 15px 50px;
    color: #fff;
    opacity: 0.92;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    background-image: none;
    background-clip: border-box;
    --bs-toast-bg: transparent;
    --bs-toast-border-color: transparent;
    --bs-toast-box-shadow: none;
}

#toast-container > div.toast.toast-success {
    background-color: #51a351;
}

#toast-container > div.toast.toast-error {
    background-color: #bd362f;
}

#toast-container > div.toast.toast-warning {
    background-color: #f89406;
}

#toast-container > div.toast.toast-info {
    background-color: #2f96b4;
}

#toast-container > div.toast .toast-title,
#toast-container > div.toast .toast-message {
    color: #fff;
}

#toast-container > div.toast .toast-close-button {
    color: #fff;
    text-shadow: none;
    opacity: 0.8;
}

/*
|--------------------------------------------------------------------------
| Attendance
|--------------------------------------------------------------------------
*/

.de-attendance-page {
    background: #fff;
    padding-bottom: 16px;
}

.de-attendance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.de-attendance-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.de-attendance-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.de-attendance-filters {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.de-attendance-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.de-attendance-page .form-control.de-attendance-date {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
}

.de-attendance-page .form-control.de-attendance-date:focus {
    background: #fff;
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-attendance-picker {
    position: relative;
}

.de-attendance-picker-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
    color: #212529;
    text-align: left;
    cursor: pointer;
}

.de-attendance-picker-toggle svg {
    flex-shrink: 0;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.de-attendance-picker.is-open .de-attendance-picker-toggle {
    background: #fff;
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.15);
}

.de-attendance-picker.is-open .de-attendance-picker-toggle svg {
    transform: rotate(180deg);
}

.de-attendance-picker-label {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
}

.de-attendance-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

.de-attendance-picker.is-open .de-attendance-picker-menu {
    display: block;
}

.de-attendance-picker-option {
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    border-radius: 8px;
    cursor: pointer;
}

.de-attendance-picker-option:hover,
.de-attendance-picker-option.is-selected {
    background: #f0f9fc;
    color: #0a8fb0;
}

.de-attendance-stats {
    display: flex;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
}

.de-attendance-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    border-right: 1px solid #e9ecef;
}

.de-attendance-stat:last-child {
    border-right: none;
}

.de-attendance-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.de-attendance-stat-present .de-attendance-stat-value {
    color: #198754;
}

.de-attendance-stat-absent .de-attendance-stat-value {
    color: #dc3545;
}

.de-attendance-stat-label {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.de-attendance-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed #dee2e6;
    border-radius: 16px;
    background: #f8f9fa;
}

.de-attendance-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
}

.de-attendance-empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #212529;
}

.de-attendance-empty-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.de-attendance-student-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.de-attendance-student-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #fff;
}

.de-attendance-student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0dcaf0 0%, #0a8fb0 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.de-attendance-student-body {
    flex: 1;
    min-width: 0;
}

.de-attendance-student-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: #212529;
}

.de-attendance-student-phone {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.de-attendance-toggle-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.de-attendance-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.de-attendance-toggle-present.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.de-attendance-toggle-absent.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.de-attendance-record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.de-attendance-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #fff;
}

.de-attendance-record-date {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
}

.de-attendance-record-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}

.de-attendance-record-badge-present {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.de-attendance-record-badge-absent {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.de-attendance-stats.is-hidden,
.de-attendance-student-list.is-hidden,
.de-attendance-empty.is-hidden {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Notifications & Messages
|--------------------------------------------------------------------------
*/

.de-notification-page,
.de-message-page {
    background: #fff;
    padding-bottom: 16px;
}

.de-notification-header,
.de-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.de-notification-back,
.de-message-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.de-notification-title,
.de-message-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.de-notification-unread-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a8fb0;
    background: rgba(13, 202, 240, 0.12);
    padding: 5px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.de-notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.de-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.de-notification-item:active {
    background: #f8f9fa;
}

.de-notification-item.is-unread {
    background: #f0f9fc;
    border-color: rgba(13, 202, 240, 0.25);
}

.de-notification-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.de-notification-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.de-notification-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.de-notification-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.de-notification-item.is-unread .de-notification-item-title {
    font-weight: 700;
}

.de-notification-item-time {
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}

.de-notification-item-preview {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.de-notification-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0dcaf0;
    flex-shrink: 0;
    margin-top: 6px;
}

.de-notification-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed #dee2e6;
    border-radius: 16px;
    background: #f8f9fa;
}

.de-notification-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
}

.de-notification-empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #212529;
}

.de-notification-empty-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 16px;
}

.de-notification-signin {
    margin-top: 8px;
}

.de-message-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.de-message-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 0;
}

.de-message-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.de-message-meta {
    flex: 1;
    min-width: 0;
}

.de-message-subject {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #212529;
}

.de-message-from {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.de-message-body {
    padding: 16px 18px 20px;
}

.de-message-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0 0 12px;
}

.de-message-body p:last-child {
    margin-bottom: 0;
}
