/* ============================================
   MEMBER AREA STYLES
   ============================================ */

/* === GENERIC MEMBER PAGES (NON-DASHBOARD) === */
.member-page {
    min-height: 100vh;
    background: var(--color-off-white);
    /* Account for fixed .navbar height */
    padding-top: 80px;
}

.member-main {
    padding: 2rem 0 3rem;
}

/* === AUTH PAGE === */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #00B4D8 0%, #9370DB 100%);
    padding-top: 80px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 0;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-box {
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--color-medium-gray);
}

/* === ALERTS === */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* === FORM === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark-gray);
}

.form-input {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--color-gray);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-aqua);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-dark-gray);
    transition: color var(--transition-base);
}

.mobile-menu-toggle:hover {
    color: var(--color-aqua);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
}

/* === NAV LINK ACCENTS (MEMBER AREA) === */
.nav-link-accent {
    color: var(--color-malva);
    font-weight: 600;
    position: relative;
}

.nav-link-accent:hover {
    color: var(--color-malva-dark);
}

.nav-link-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-aqua), var(--color-malva));
    opacity: 0.95;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-dark-gray);
    cursor: pointer;
    line-height: 1.5;
    padding: 0.25rem 0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link {
    color: var(--color-aqua);
    font-weight: 600;
    text-decoration: underline;
}

.link:hover {
    color: var(--color-aqua-dark);
}

/* === PLAN SELECTOR === */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Side panel variant: stack vertically */
.plan-selector--side {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.plan-option {
    cursor: pointer;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-card {
    position: relative;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.plan-option input[type="radio"]:checked + .plan-card {
    border-color: var(--color-aqua);
    background: rgba(0, 180, 216, 0.05);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

.plan-popular {
    border-color: var(--color-malva);
}

.plan-option input[type="radio"]:checked + .plan-popular {
    border-color: var(--color-malva);
    background: rgba(147, 112, 219, 0.05);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--color-aqua), var(--color-malva));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: inherit;
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: inherit;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.plan-setup {
    font-size: 0.8rem;
    color: inherit;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.plan-period-selector {
    margin-bottom: 1rem;
}

.period-select {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    background: white;
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-select:focus {
    outline: none;
    border-color: var(--color-aqua);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.plan-feature {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.9;
    line-height: 1.4;
}

/* Glass card styling when on auth-side gradient */
.auth-side .plan-card {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-side .plan-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Improve internal contrast for text inside glass cards */
.auth-side .plan-card,
.auth-side .plan-card * {
    color: rgba(255, 255, 255, 0.95);
}

.auth-side .plan-card .plan-name {
    color: rgba(255,255,255,0.98);
    font-weight: 700;
}

.auth-side .plan-card .plan-price {
    color: #E6FBFF; /* pale aqua for emphasis */
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.auth-side .plan-card .plan-setup {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.auth-side .plan-card .plan-feature {
    color: rgba(255,255,255,0.92);
    opacity: 0.95;
}

.auth-side .plan-card a.link {
    color: rgba(255,255,255,0.98);
    text-decoration: underline;
}

/* Selectable plan card states */
.plan-card--selectable {
    cursor: pointer;
}

.plan-card--selectable.is-selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.plan-card--selectable.is-selected:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.02) translateY(-2px);
}

/* Popular badge on glass cards */
.auth-side .plan-popular .popular-badge {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* === AUTH FOOTER === */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray);
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

/* === TRUST SECTION === */
.trust-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-medium-gray);
}

/* Improve contrast when trust section is placed on the gradient side panel */
.auth-side .trust-item {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

/* === AUTH SIDE === */
.auth-side {
    background: linear-gradient(135deg, var(--color-kobalt), var(--color-aqua));
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.side-content {
    max-width: 480px;
}

.quote-icon {
    margin-bottom: 2rem;
    opacity: 0.3;
}

.side-title {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.side-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.side-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: grid;
    gap: 0.75rem;
}

.side-list li {
    line-height: 1.5;
    opacity: 0.95;
}

.side-quick-links {
    font-size: 0.9rem;
    opacity: 0.95;
}

.side-quick-links a.link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.side-quick-links a.link:hover {
    color: #fff;
}

.side-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    opacity: 0.8;
}

.side-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.side-stat {
    text-align: center;
}

.side-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.side-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* === DASHBOARD === */
.dashboard {
    min-height: 100vh;
    background: var(--color-off-white);
    padding-top: 80px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-welcome {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    margin-bottom: 0.5rem;
}

.dashboard-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: var(--color-medium-gray);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--color-success);
}

/* === DASHBOARD GRID === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-action {
    font-size: 0.875rem;
    color: var(--color-aqua);
    font-weight: 600;
    cursor: pointer;
}

.card-action:hover {
    color: var(--color-aqua-dark);
}

/* === VIDEO LIST === */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.video-item:hover {
    border-color: var(--color-aqua);
    background: rgba(0, 180, 216, 0.02);
}

.video-thumbnail {
    width: 120px;
    height: 80px;
    background: var(--color-light-gray);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.video-meta {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

.video-duration {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
}

/* === BADGES === */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.badge-item {
    text-align: center;
    padding: 1rem;
    border: 2px dashed var(--color-gray);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.badge-item.earned {
    border-style: solid;
    border-color: var(--color-aqua);
    background: rgba(0, 180, 216, 0.05);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: grayscale(100%);
    opacity: 0.3;
}

.badge-item.earned .badge-icon {
    filter: none;
    opacity: 1;
}

.badge-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.badge-description {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
}

/* === PROGRESS === */
.progress-bar {
    height: 8px;
    background: var(--color-light-gray);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-aqua), var(--color-malva));
    transition: width 0.3s ease;
}

/* === SUPPORT PACKAGES === */
.support-packages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-package {
    padding: 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    background: var(--color-off-white);
    transition: all 0.2s ease;
    position: relative;
}

.support-package:hover {
    border-color: var(--color-terrakotta);
    background: rgba(210, 105, 30, 0.02);
}

.package-popular {
    border-color: var(--color-terrakotta);
    background: rgba(210, 105, 30, 0.05);
}

.popular-label {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-terrakotta);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.package-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-kobalt);
    margin-bottom: 0.25rem;
}

.package-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-terrakotta);
    margin-bottom: 0.25rem;
}

.package-details {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
    margin-bottom: 0.25rem;
}

.package-savings {
    font-size: 0.7rem;
    color: var(--color-success);
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-side {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-selector {
        grid-template-columns: 1fr;
    }
    
    .video-iframe {
        max-width: 720px;
        height: 405px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1000;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--color-light-gray);
        width: 100%;
        text-align: left;
    }
    
    .nav-menu .btn {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
    }
    
    /* Auth Pages */
    .auth-container {
        grid-template-columns: 1fr;
        margin: 1rem;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-visual {
        display: none;
    }
    
    /* Dashboard */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-section {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    /* Badges */
    .badge-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Videos */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-player-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-iframe {
        max-width: 100%;
        height: 250px;
    }
    
    .video-controls-card {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .video-nav-left,
    .video-nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .btn-nav {
        padding: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-title {
        font-size: 0.875rem;
    }
    
    .btn-complete {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    /* Filters */
    .filters-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-box {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-dropdown select {
        width: 100%;
        min-width: 100%;
    }
    
    /* Module View */
    .module-videos {
        gap: 1rem;
    }
    
    /* Settings & Forms */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Support */
    .support-options-grid {
        grid-template-columns: 1fr;
    }
    
    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-selection {
        grid-template-columns: 1fr;
    }
    
    /* General Card Adjustments */
    .card,
    .video-info-card,
    .progress-section,
    .filters-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    /* Typography */
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* === VIDEOS PAGE === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-aqua);
}

.video-card-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--color-aqua) 0%, var(--color-malva) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-completed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-terrakotta);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play-button {
    opacity: 1;
}

.video-card-thumbnail .video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-card-content {
    padding: 1.5rem;
}

.video-card-module {
    color: var(--color-aqua);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.video-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.video-card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-order {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.video-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-status.completed {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.video-status.pending {
    background: rgba(237, 108, 2, 0.1);
    color: #ed6c02;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-aqua);
}

.filter-dropdown select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--color-aqua);
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-dark);
}

.progress-percent {
    font-weight: 700;
    color: var(--color-aqua);
    font-size: 1.125rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-aqua) 0%, var(--color-malva) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* === MEMBER: WP PLUGINS PAGE === */
.wp-plugins-toolbar {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 1rem;
    align-items: end;
    background: white;
    border: 1px solid var(--color-gray);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.wp-plugins-search-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.wp-plugins-search-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--color-gray);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.wp-plugins-search-input:focus {
    outline: none;
    border-color: var(--color-aqua);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

.wp-plugins-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.wp-filter-chip {
    appearance: none;
    border: 1px solid var(--color-gray);
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wp-filter-chip:hover {
    border-color: rgba(0, 180, 216, 0.45);
    background: rgba(0, 180, 216, 0.08);
}

.wp-filter-chip.is-active {
    border-color: rgba(0, 180, 216, 0.6);
    background: rgba(0, 180, 216, 0.12);
    color: #065f46;
}

.wp-plugins-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    padding-bottom: 0.25rem;
}

.wp-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.wp-plugin-card {
    background: white;
    border: 1px solid var(--color-gray);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wp-plugin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wp-plugin-head {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.wp-plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.18), rgba(147, 112, 219, 0.18));
    font-size: 1.35rem;
    flex-shrink: 0;
}

.wp-plugin-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    line-height: 1.2;
}

.wp-plugin-badges {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.wp-badge-zip {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.wp-badge-link {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

.wp-badge-muted {
    background: rgba(107, 114, 128, 0.12);
    border-color: rgba(107, 114, 128, 0.25);
    color: #374151;
}

.wp-plugin-snippet {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wp-plugin-snippet-muted {
    color: var(--text-muted);
}

.wp-plugin-details {
    border-top: 1px dashed var(--color-gray);
    padding-top: 0.75rem;
}

.wp-plugin-details-summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-aqua);
    list-style: none;
}

.wp-plugin-details-summary::-webkit-details-marker {
    display: none;
}

.wp-plugin-details-summary:hover {
    color: var(--color-aqua-dark);
}

.wp-plugin-details-body {
    margin-top: 0.75rem;
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 0.95rem;
}

.wp-plugin-details-body p { margin: 0 0 0.75rem 0; }
.wp-plugin-details-body p:last-child { margin-bottom: 0; }
.wp-plugin-details-body ul,
.wp-plugin-details-body ol { margin: 0.75rem 0; padding-left: 1.25rem; }
.wp-plugin-details-body a { color: var(--color-aqua); font-weight: 700; text-decoration: underline; }
.wp-plugin-details-body a:hover { color: var(--color-aqua-dark); }

.wp-plugin-more {
    margin-top: 0.25rem;
}

.wp-plugin-details-btn {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-aqua);
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.wp-plugin-details-btn:hover {
    color: var(--color-aqua-dark);
}

/* Modal (WP plugins details) */
.wp-modal[hidden] {
    display: none;
}

.wp-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.wp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.wp-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(147, 112, 219, 0.08));
}

.wp-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-dark);
}

.wp-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-gray);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
}

.wp-modal-close:hover {
    box-shadow: var(--shadow-sm);
}

.wp-modal-body {
    padding: 1.25rem;
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 0.98rem;
}

.wp-modal-body p { margin: 0 0 0.9rem 0; }
.wp-modal-body p:last-child { margin-bottom: 0; }
.wp-modal-body ul,
.wp-modal-body ol { margin: 0.9rem 0; padding-left: 1.25rem; }
.wp-modal-body a { color: var(--color-aqua); font-weight: 800; text-decoration: underline; }
.wp-modal-body a:hover { color: var(--color-aqua-dark); }

body.wp-modal-open {
    overflow: hidden;
}

.wp-plugin-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wp-plugin-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-plugin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wp-plugins-empty {
    margin-top: 1.5rem;
    background: white;
    border: 1px solid var(--color-gray);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.wp-plugins-empty h3 {
    margin: 0 0 0.25rem 0;
}

.wp-plugins-empty p {
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .wp-plugins-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wp-plugins-count {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .wp-plugins-grid {
        grid-template-columns: 1fr;
    }

    .wp-plugin-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Video Controls Redesign */
.video-controls-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 1rem;
}

.video-nav-left, .video-nav-right {
    flex: 1;
    display: flex;
}

.video-nav-right {
    justify-content: flex-end;
}

.nav-placeholder {
    flex: 1;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-dark-gray);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--color-off-white);
    border: 1px solid transparent;
    max-width: 100%;
}

.btn-nav:hover {
    background: white;
    border-color: var(--color-aqua);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.1);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.5rem;
    color: var(--color-aqua);
    font-weight: 300;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

.video-action-center {
    flex: 0 0 auto;
}

.btn-complete {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-aqua), var(--color-kobalt));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.4);
}

.status-completed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-weight: 600;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video View Layout */
.video-player-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-player-container {
    display: flex;
    flex-direction: column;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-info-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.video-info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 0.75rem;
}

.module-info {
    background: var(--color-off-white);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-light-gray);
}

.module-name {
    font-weight: 600;
    color: var(--color-aqua);
    margin-bottom: 0.25rem;
}

.module-progress {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

/* Video Header */
.video-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-breadcrumb {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

.video-breadcrumb a {
    color: var(--color-aqua);
    font-weight: 500;
}

.video-breadcrumb span {
    color: var(--color-dark-gray);
}

.video-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.video-order {
    background: var(--color-light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-dark-gray);
}

.video-duration {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    font-weight: 500;
}

.video-completed {
    color: var(--color-success);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Video iframe styles */
.video-iframe {
    width: 100%;
    max-width: 960px;
    height: 540px;
    border-radius: 8px;
    border: none;
    display: block;
    margin: 0 auto;
}

/* HTML5 Video Player specific styles */
video.video-iframe {
    background: #000;
    object-fit: contain;
}

video.video-iframe::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

/* === COMPACT REGISTER PAGE === */
.register-page {
    padding: 9rem 0;
}

.register-page .form-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.register-page .form-section-title {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.register-page textarea.form-input {
    resize: vertical;
    min-height: 90px;
}

.register-page .payment-summary {
    border: 2p.5rem;
    background: var(--color-off-white);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.register-page .payment-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-dark-gray);
    padding: 0..875rem;
    color: var(--color-dark-gray);
    padding: 0.25rem 0;
}

.register-page .plan-selector--side {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0;
}

.register-page .plan-card--selectable {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.register-page .plan-card--selectable.is-selected {
    border-color: var(--color-aqua);
    background: rgba(0, 180, 216, 0.06);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

.register-page .auth-side .plan-card {
    color: var(--color-dark-gray);
}

.register-page .auth-side .plan-features {
    display: block;
}

.register-page .auth-side .plan-feature {
    font-size: 0.875rem;
    opacity: 0.95;
}

.register-page .auth-container {
    margin: 0 auto;
    max-width: 1200px;
}

.register-page .auth-box {
    padding: 1.5rem 2rem;
}

.register-page .auth-header {
    margin-bottom: 1rem;
}

.register-page .auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.register-page .auth-form {
    gap: 0.75rem;
}

.register-page .form-group {
    gap: 0.25rem;
}

.register-page .form-input {
    padding: 0.5rem 0.75rem;
}

.register-page .plan-selector {
    gap: 0.75rem;
}

.register-page .plan-card {
    padding: 0.75rem;
}

.register-page .plan-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.register-page .plan-price {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.register-page .plan-setup {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.register-page .plan-features {
    display: none; /* Hide features to save space */
}

.register-page .trust-section {
    padding-top: 1rem;
    margin-top: 1rem;
}

.register-page .side-content {
    padding: 2rem;
}

.register-page .side-title {
    font-size: 1.75rem;
}

.register-page .side-stats {
    margin-top: 2rem;
}

