/*
Theme Name: DM App Shell
Theme URI: https://davamuthusamy.com
Author: DM Team
Description: A modern, minimalist App-like shell theme for membership sites.
Version: 2.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dm-app-shell
*/

:root {
    /* Design Tokens from DESIGN.md */
    --dmm-primary: #00236f;     /* Navy */
    --dmm-secondary: #0058be;   /* Royal Blue */
    --dmm-tertiary: #00311f;    /* Emerald */
    --dmm-accent: #00e676;
    
    --dmm-bg-main: #f8fafc;
    --dmm-bg-card: #ffffff;
    --dmm-text-main: #1e293b;
    --dmm-text-muted: #64748b;
    --dmm-border: #e2e8f0;
    
    /* Layout Constants */
    --dmm-drawer-width: 280px;
    --dmm-header-height: 72px;
    --dmm-bottom-nav-height: 64px;
    --dmm-radius: 12px;
    --dmm-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --dmm-shadow-lg: 0 10px 40px rgba(0, 35, 111, 0.08);

    /* LearnPress Variable Overrides */
    --lp-primary-color: #0058be;
    --lp-secondary-color: #00236f;
}

/* Global Reset */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--dmm-bg-main);
    color: var(--dmm-text-main);
    -webkit-font-smoothing: antialiased;
}

/* Accessibility Utilities */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background-color: var(--dmm-secondary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff;
    font-weight: 700;
    left: 20px;
    padding: 12px 20px;
    position: absolute;
    text-decoration: none;
    top: -100px;
    transition: top 0.3s;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

h1, h2, h3, h4 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    margin: 0;
}

/* App Shell Layout */
.dmm-app-shell {
    display: flex;
    min-height: 100vh;
}

/* App Drawer (Sidebar) */
.dmm-app-drawer {
    width: var(--dmm-drawer-width);
    background: var(--dmm-primary);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-100%); /* Closed by default */
}

.dmm-app-drawer.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0,0,0,0.2);
}

/* App Drawer Backdrop */
.dmm-app-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dmm-app-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* WP Admin Bar Fixes */
.admin-bar .dmm-app-drawer { top: 32px; height: calc(100vh - 32px); }
.admin-bar .dmm-app-header { top: 32px; }
.admin-bar .dmm-skeleton-overlay { top: 32px; height: calc(100vh - 32px); }

@media screen and (max-width: 782px) {
    .admin-bar .dmm-app-drawer { top: 46px; height: calc(100vh - 46px); }
    .admin-bar .dmm-app-header { top: 46px; }
    .admin-bar .dmm-skeleton-overlay { top: 46px; height: calc(100vh - 46px); }
}

.dmm-drawer-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar for Drawer */
.dmm-drawer-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.dmm-drawer-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.dmm-drawer-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.dmm-drawer-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.dmm-drawer-header {
    padding: 24px 20px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.dmm-drawer-logo {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    line-height: 1;
}

.dmm-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.dmm-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.dmm-drawer-close svg {
    width: 18px;
    height: 18px;
}

.dmm-drawer-nav {
    flex: 0;
    padding: 16px;
    margin-top: 8px;
}

.dmm-drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dmm-drawer-nav a,
.dmm-drawer-nav a:visited,
.dmm-drawer-nav a span {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dmm-drawer-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.dmm-drawer-nav a:hover,
.dmm-drawer-nav a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    transform: translateX(4px);
}

.dmm-drawer-nav a:hover span,
.dmm-drawer-nav a:focus span {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.dmm-drawer-nav a.active,
.dmm-drawer-nav a.active:visited {
    background: var(--dmm-secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.dmm-drawer-nav a.active span,
.dmm-drawer-nav a.active:visited span {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.dmm-drawer-nav--secondary {
    flex: 0;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.dmm-drawer-nav--secondary a,
.dmm-drawer-nav--secondary a:visited,
.dmm-drawer-nav--secondary a span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45) !important;
}

.dmm-drawer-nav--secondary a {
    padding: 10px 16px;
}

.dmm-drawer-nav--secondary a:hover,
.dmm-drawer-nav--secondary a:hover span {
    color: #ffffff !important;
}

.dmm-drawer-nav svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}
.dmm-drawer-user-section {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 15, 30, 0.2);
    flex-shrink: 0;
}

/* User Card in Footer */
.dmm-drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.dmm-drawer-user-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    display: block;
}

.dmm-drawer-user-info {
    flex: 1;
    min-width: 0;
}

.dmm-drawer-user-info h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dmm-drawer-user-info p {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dmm-view-profile {
    display: block;
    color: var(--dmm-accent) !important;
    font-size: 11px;
    text-decoration: none !important;
    font-weight: 600;
    margin-top: 2px;
}

.dmm-view-profile:hover {
    text-decoration: underline;
}

.dmm-logout-icon {
    color: rgba(255,255,255,0.3);
    padding: 8px;
    margin-right: -8px;
    transition: all 0.2s;
}

.dmm-logout-icon:hover {
    color: #ff5252;
    transform: scale(1.1);
}

.dmm-logout-icon svg {
    width: 20px;
    height: 20px;
}

/* Login Button in Footer */
.dmm-drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dmm-secondary);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dmm-drawer-login-btn:hover {
    background: white;
    color: var(--dmm-primary);
    transform: translateY(-2px);
}

.dmm-drawer-login-btn svg {
    width: 18px;
    height: 18px;
}

/* Main Content Area */
.dmm-app-main-wrap {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: var(--dmm-header-height);
}

/* App Header */
.dmm-app-header {
    height: var(--dmm-header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    border-bottom: 1px solid var(--dmm-border);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.dmm-app-header.header-hidden {
    transform: translateY(-100%);
}

.dmm-app-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 35, 111, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dmm-app-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.dmm-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dmm-icon-btn {
    background: #f1f5f9;
    border: none;
    color: var(--dmm-text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.dmm-icon-btn:hover {
    background: #e2e8f0;
    color: var(--dmm-primary);
    transform: translateY(-2px);
}

.dmm-icon-btn svg {
    width: 20px;
    height: 20px;
}

.dmm-app-drawer-toggle {
    background: none;
    border: none;
    color: var(--dmm-text-main);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.dmm-app-drawer-toggle:hover {
    color: var(--dmm-secondary);
    transform: scale(1.1);
}

.dmm-app-title {
    font-size: 20px;
    color: var(--dmm-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dmm-app-user-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--dmm-border);
}

.dmm-app-user-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Content - Full Width */
.dmm-app-content {
    padding: 0;
    flex: 1;
}

.dmm-app-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .dmm-app-content-inner {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
}
    
/* Bottom Navigation (Mobile Only) */
.dmm-bottom-nav {
    display: none;
}

/* Animations */
.dmm-fade-in-up {
    animation: dmmFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes dmmFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .dmm-app-drawer {
        transform: translateX(-100%);
    }
    
    .dmm-drawer-close { display: flex; }
    
    .dmm-app-drawer.open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0,0,0,0.2);
    }
    
    .dmm-drawer-close { display: block; }
    
    .dmm-app-main-wrap {
        margin-left: 0;
        width: 100%;
    }
    
    .dmm-app-header { 
        width: 100%;
        padding: 0 16px;
        left: 0;
    }
    .dmm-app-drawer-toggle { display: flex; }
    .dmm-app-title { font-size: 18px; }
    
    .dmm-app-content {
        padding: 0 0 calc(var(--dmm-bottom-nav-height) + env(safe-area-inset-bottom) + 24px);
    }

    /* Bottom Navigation Styling */
    .dmm-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--dmm-bottom-nav-height) + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--dmm-border);
        justify-content: space-around;
        align-items: center;
        z-index: 1500;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0, 35, 111, 0.04);
    }

    .dmm-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--dmm-text-muted);
        flex: 1;
        height: 100%;
        gap: 4px;
        transition: all 0.2s ease;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .dmm-bottom-nav-item svg {
        width: 22px;
        height: 22px;
        transition: transform 0.2s ease;
    }

    .dmm-bottom-nav-item span {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .dmm-bottom-nav-item.active {
        color: var(--dmm-secondary);
    }

    .dmm-bottom-nav-item.active svg {
        transform: translateY(-2px);
        stroke: var(--dmm-secondary);
    }

    .dmm-bottom-nav-item:active {
        transform: scale(0.95);
    }
}
/* Auth Page Container */
/* Premium Auth Page Container */
.dmm-auth-page-container {
    min-height: calc(100vh - var(--dmm-header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(0, 88, 190, 0.08) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 35, 111, 0.06) 0%, transparent 45%),
                #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* Subtle background glows */
.dmm-auth-page-container::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 88, 190, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dmm-auth-page-container::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 35, 111, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dmm-standalone-auth {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px !important;
    padding: 0 !important;
    background: transparent !important;
}

.dmm-standalone-auth .dmm-section {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.dmm-standalone-auth .dmm-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.dmm-standalone-auth .dmm-section-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dmm-primary);
    background: linear-gradient(135deg, var(--dmm-primary) 0%, var(--dmm-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.dmm-standalone-auth .dmm-section-header p {
    font-size: 16px;
    color: var(--dmm-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Glassmorphism Auth Card */
.dmm-standalone-auth .dmm-verification-body {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 35, 111, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dmm-standalone-auth .dmm-verification-body:hover {
    box-shadow: 0 24px 48px rgba(0, 35, 111, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Standalone Auth Form Overrides */
.dmm-standalone-auth .dmm-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dmm-text-main);
    margin-bottom: 8px;
}

.dmm-standalone-auth .dmm-input-wrap input,
.dmm-standalone-auth .dmm-input-wrap select {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    color: var(--dmm-text-main) !important;
    padding: 14px 16px 14px 48px !important;
    font-size: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.dmm-standalone-auth .dmm-input-wrap input:focus,
.dmm-standalone-auth .dmm-input-wrap select:focus {
    border-color: var(--dmm-secondary) !important;
    box-shadow: 0 0 0 4px rgba(0, 88, 190, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transform: translateY(-1px);
}

/* Password input specific */
.dmm-standalone-auth .dmm-form-group div.dmm-input-wrap input[type="password"] {
    padding-right: 48px !important;
}

.dmm-standalone-auth .dmm-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

.dmm-standalone-auth .dmm-input-wrap .dmm-input-icon {
    position: absolute !important;
    left: 16px !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--dmm-primary) !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    z-index: 5 !important;
    display: block !important;
    transition: all 0.25s ease !important;
}

.dmm-standalone-auth .dmm-input-wrap input:focus ~ .dmm-input-icon {
    color: var(--dmm-secondary) !important;
    opacity: 1 !important;
}

.dmm-standalone-auth .dmm-toggle-pass {
    position: absolute !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--dmm-text-muted) !important;
    opacity: 0.6 !important;
    transition: all 0.2s !important;
    z-index: 5 !important;
}

.dmm-standalone-auth .dmm-toggle-pass:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--dmm-primary) !important;
}

/* Custom Checkbox Design */
.dmm-standalone-auth .dmm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dmm-text-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.dmm-standalone-auth .dmm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dmm-standalone-auth .dmm-checkbox-label input[type="checkbox"]:checked {
    background-color: var(--dmm-secondary);
    border-color: var(--dmm-secondary);
}

/* Standalone Primary Action Button */
.dmm-standalone-auth .dmm-btn--primary {
    background: linear-gradient(135deg, var(--dmm-secondary) 0%, var(--dmm-primary) 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 88, 190, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.dmm-standalone-auth .dmm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 88, 190, 0.35) !important;
    background: linear-gradient(135deg, #006aff 0%, #0037ab 100%) !important;
}

.dmm-standalone-auth .dmm-btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.dmm-standalone-auth .dmm-btn--primary svg {
    transition: transform 0.25s ease;
}

.dmm-standalone-auth .dmm-btn--primary:hover svg {
    transform: translateX(4px);
}

/* Standalone Auth Footer */
.dmm-standalone-auth .dmm-auth-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.dmm-standalone-auth .dmm-auth-footer p {
    font-size: 14px;
    color: var(--dmm-text-muted);
    margin: 0;
}

.dmm-standalone-auth .dmm-auth-footer a {
    color: var(--dmm-secondary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.dmm-standalone-auth .dmm-auth-footer a:hover {
    color: var(--dmm-primary);
    text-decoration: underline;
}

/* Standalone Auth Phone field */
.dmm-standalone-auth .dmm-phone-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dmm-standalone-auth .dmm-phone-input-group .dmm-dial-code-select {
    width: 130px !important;
    flex-shrink: 0;
    padding-left: 16px !important; /* Dial select has no icon */
}

.dmm-standalone-auth .dmm-phone-input-group .dmm-phone-number-wrap {
    flex-grow: 1;
    position: relative;
}

@media (max-width: 768px) {
    .dmm-auth-page-container {
        padding: 40px 16px;
        background: radial-gradient(circle at top, rgba(0, 88, 190, 0.05) 0%, transparent 60%), #f8fafc;
    }
    
    .dmm-standalone-auth .dmm-verification-body {
        padding: 32px 24px;
        border-radius: 24px;
        box-shadow: 0 10px 25px rgba(0, 35, 111, 0.04);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }
}

/* Skeleton Loading */
.dmm-skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.dmm-is-loading .dmm-skeleton-overlay {
    display: flex;
}

.dmm-is-loaded .dmm-skeleton-overlay {
    animation: dmmFadeOut 0.4s forwards;
    pointer-events: none;
}

.dmm-skeleton-header-shimmer {
    height: var(--dmm-header-height);
    background: white;
    border-bottom: 1px solid var(--dmm-border);
    width: 100%;
}

.dmm-skeleton-body {
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.dmm-skeleton-shimmer {
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: dmmShimmer 1.5s infinite linear;
    border-radius: 8px;
    margin-bottom: 20px;
}

.line-lg { height: 32px; width: 60%; }
.line-md { height: 16px; width: 40%; }
.line-sm { height: 16px; width: 80%; }
.card { height: 200px; width: 100%; border-radius: 20px; }

@keyframes dmmShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes dmmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@media (max-width: 768px) {
    .dmm-skeleton-body {
        padding: 20px;
    }
    
    .dmm-is-loading .dmm-app-shell {
        display: none;
    }
}

/* Notification Panel */
.dmm-notif-panel {
    position: fixed;
    top: calc(var(--dmm-header-height) + 10px);
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: var(--dmm-bg-card);
    border-radius: var(--dmm-radius-xl);
    box-shadow: 0 20px 50px rgba(0, 35, 111, 0.15);
    border: 1px solid var(--dmm-border);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dmmSlideInUp 0.3s ease;
}

.dmm-notif-panel.open {
    display: flex;
}

.dmm-notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--dmm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dmm-bg-main);
}
/* Curriculum Mastery Styling */
.lp-curriculum {
    border: none;
    border-radius: 0;
}

.section {
    border: 1px solid var(--dmm-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.section-header {
    background: #fff;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.section-header:hover { background: #f8fafc; }

.section-header .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dmm-primary);
}

.section-content .course-item {
    padding: 16px 24px 16px 56px;
    position: relative;
}

.section-content .course-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230058be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.6;
}

.dmm-notif-header h3 {
    font-size: 16px;
    margin: 0;
}

#dmm-notif-clear {
    background: none;
    border: none;
    color: var(--dmm-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.dmm-notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.dmm-notif-item {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--dmm-border);
    transition: background 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.dmm-notif-item:hover {
    background: var(--dmm-bg-main);
}

.dmm-notif-item.unread::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--dmm-secondary);
    border-radius: 50%;
}

.dmm-notif-item.unread {
    background: #f0f7ff;
}

.dmm-notif-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
}

.dmm-notif-icon svg { width: 16px; height: 16px; }
.dmm-notif-icon.info { background: #e0f2fe; color: #0369a1; }
.dmm-notif-icon.success { background: #dcfce7; color: #15803d; }
.dmm-notif-icon.warning { background: #fef9c3; color: #a16207; }

.dmm-notif-content p {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--dmm-text-main);
    line-height: 1.4;
}

.dmm-notif-time {
    font-size: 11px;
    color: var(--dmm-text-muted);
}

.dmm-notif-footer {
    padding: 12px;
    text-align: center;
    background: var(--dmm-bg-main);
    border-top: 1px solid var(--dmm-border);
}

.dmm-notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--dmm-text-muted);
    font-size: 14px;
}

.dmm-notif-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--dmm-text-main);
}

/* Badge */
.dmm-notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--dmm-accent);
    color: var(--dmm-tertiary);
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@keyframes dmmSlideInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dmmPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes dmmSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

.dmm-notif-badge.pulse {
    animation: dmmPulse 2s infinite;
}

.dmm-notif-item.removing {
    animation: dmmSlideOutRight 0.3s forwards;
    pointer-events: none;
}

@media (max-width: 768px) {
    .dmm-notif-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Search Overlay */
.dmm-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.dmm-search-overlay.open {
    display: flex;
    animation: dmmFadeIn 0.3s forwards;
}

.dmm-search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 40px auto 20px;
    width: 100%;
}

.dmm-search-form { flex-grow: 1; }

.dmm-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--dmm-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--dmm-text-main);
    padding: 10px 0;
    outline: none;
}

.dmm-search-close {
    background: none;
    border: none;
    font-size: 40px;
    color: var(--dmm-text-muted);
    cursor: pointer;
}

.dmm-search-results {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.dmm-search-placeholder {
    text-align: center;
    color: var(--dmm-text-muted);
    padding: 60px 0;
}

@keyframes dmmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Adjustments */
.dmm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmm-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dmm-drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#dmm-theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Search Results List */
.dmm-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dmm-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--dmm-bg-card);
    border: 1px solid var(--dmm-border);
    border-radius: var(--dmm-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dmm-search-result-item:hover {
    border-color: var(--dmm-primary);
    transform: translateY(-2px);
    box-shadow: var(--dmm-shadow);
}

.dmm-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dmm-result-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dmm-primary);
    font-weight: 700;
}

.dmm-result-title {
    font-size: 18px;
    color: var(--dmm-text-main);
    margin: 0;
}

.dmm-search-result-item svg {
    color: var(--dmm-text-muted);
    transition: color 0.3s ease;
}

.dmm-search-result-item:hover svg {
    color: var(--dmm-primary);
}

/* ==========================================================================
   Single Post & Page Templates
   ========================================================================== */

.dmm-post-container {
    padding-bottom: 64px;
}

/* Hero Section - Hidden */
.dmm-post-hero {
    display: none;
}

/* Post Layout - Full Width */
.dmm-post-layout {
    display: block;
    max-width: 100%;
    margin: 0;
}

.dmm-post-content-wrap {
    width: 100%;
}

.dmm-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.dmm-post-content h2 { margin: 40px 0 20px; font-size: 28px; color: var(--dmm-primary); }
.dmm-post-content h3 { margin: 32px 0 16px; font-size: 22px; color: var(--dmm-primary); }
.dmm-post-content p { margin-bottom: 24px; }
.dmm-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }

.dmm-post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--dmm-border);
    font-size: 14px;
    color: var(--dmm-text-muted);
}

.dmm-post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dmm-text-main);
    margin-right: 8px;
    transition: all 0.2s;
}

.dmm-post-tags a:hover {
    background: var(--dmm-primary);
    color: white;
}

/* Sidebar Styling */
.dmm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--dmm-border);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dmm-bg-main);
    color: var(--dmm-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget li:last-child { border-bottom: none; }

.widget li a {
    color: var(--dmm-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.widget li a:hover { color: var(--dmm-secondary); }

/* Post Navigation */
.dmm-post-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--dmm-border);
}

.dmm-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dmm-nav-prev, .dmm-nav-next {
    display: flex;
    flex-direction: column;
}

.dmm-nav-next { text-align: right; }

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dmm-text-muted);
    margin-bottom: 8px;
}

.dmm-nav-links a {
    text-decoration: none;
    display: block;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dmm-primary);
    transition: color 0.2s;
}

.dmm-nav-links a:hover .nav-title {
    color: var(--dmm-secondary);
}

/* Comments */
.comments-area {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--dmm-border);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--dmm-border);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
}

.comment-metadata {
    font-size: 12px;
    color: var(--dmm-text-muted);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .dmm-post-layout {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .dmm-sidebar {
        display: none; /* Hide sidebar on mobile to focus on content */
    }
}

@media (max-width: 768px) {
    .dmm-post-hero {
        min-height: 300px;
        margin-top: 0;
    }
    
    .dmm-post-hero-content {
        padding: 20px;
    }
    
    .dmm-post-content-wrap {
        padding: 0 !important;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .dmm-nav-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LearnPress Premium Redesign Templates
   ========================================================================== */

/* Mastery Core CSS Variables */
.dmm-mastery-template {
    --hero-overlay-gradient: linear-gradient(135deg, rgba(0, 35, 111, 0.95) 0%, rgba(0, 88, 190, 0.75) 100%);
    --card-shadow-soft: 0 20px 40px rgba(0, 35, 111, 0.05);
    --transition-premium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Hero Section (Single Course) ── */
.lp-mastery-hero {
    position: relative;
    padding: 20px 0;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #00236f 0%, #0058be 55%, #0070f3 100%);
    border-radius: 15px;
    margin: 16px 16px 0 16px;
    border: none;
}

.lp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: scale(1.05);
}

.lp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay-gradient);
    z-index: 2;
}

.lp-hero-container {
    max-width: var(--spacing-container-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter, 24px);
    position: relative;
    z-index: 3;
}

.lp-hero-content {
    max-width: 800px;
}

.lp-breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lp-breadcrumb-modern a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-breadcrumb-modern a:hover {
    color: var(--dmm-accent);
}

.lp-breadcrumb-modern .sep {
    color: rgba(255, 255, 255, 0.35);
}

.lp-breadcrumb-modern .current {
    color: var(--dmm-accent);
}

/* Category Pill */
.lp-course-categories {
    margin-bottom: 20px;
}

.lp-cat-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Course Main Title */
.lp-course-main-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

/* Hero Meta Grid & Badges */
.lp-hero-meta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

/* Instructor Section */
.lp-hero-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--dmm-accent) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lp-instructor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lp-instructor-info {
    display: flex;
    flex-direction: column;
}

.lp-instructor-info .label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.lp-instructor-info .name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

/* Badges List */
.lp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lp-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-premium);
}

.lp-badge-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.lp-badge-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
    opacity: 0.9;
}

.lp-badge-item.duration svg { color: var(--dmm-accent); }
.lp-badge-item.curriculum svg { color: #adc6ff; }
.lp-badge-item.enrolled svg { color: #81e6d9; }


/* ── Layout Grid ── */
.lp-content-grid {
    max-width: 100%;
    margin: 0 auto;
    padding: 48px var(--spacing-gutter, 24px) 80px var(--spacing-gutter, 24px);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.lp-main-column {
    background: transparent;
    padding: 0;
}


/* ── Sidebar Floating Card ── */
.lp-floating-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--card-shadow-soft);
    border: 1px solid var(--dmm-border);
    padding: 36px;
    position: sticky;
    top: 96px;
    z-index: 10;
    transition: var(--transition-premium);
}

.lp-floating-card:hover {
    box-shadow: 0 24px 60px rgba(0, 35, 111, 0.08);
}

.lp-card-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dmm-border);
}

.lp-price-tag {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--dmm-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.lp-price-tag .price {
    color: var(--dmm-primary);
}

.lp-guarantee {
    font-size: 13px;
    color: var(--dmm-text-muted);
    font-weight: 600;
    display: block;
}

/* Membership Required State (non-members) */
.lp-membership-required-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 8px 0;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dmm-primary);
}

.lp-membership-required-badge svg {
    width: 22px;
    height: 22px;
    color: var(--dmm-secondary);
    flex-shrink: 0;
}

.lp-membership-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: var(--dmm-text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Buy Membership button icon + text layout */
.lp-btn-buy-membership {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.lp-btn-buy-membership svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* Card Actions & Custom CTAs */
.lp-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-card-actions .lp-button,
.lp-card-actions .button,
.lp-card-actions .button-enroll-course,
.lp-card-actions .button-purchase-course,
.lp-card-actions .button-continue-course,
.lp-card-actions .button-retake-course {
    width: 100% !important;
    height: 56px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: var(--transition-premium) !important;
    border: none !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Join Membership CTA Button Style */
.lp-btn-membership {
    background: linear-gradient(135deg, var(--dmm-primary) 0%, var(--dmm-secondary) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 88, 190, 0.25) !important;
}

.lp-btn-membership:hover {
    background: linear-gradient(135deg, var(--dmm-secondary) 0%, var(--dmm-primary) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 88, 190, 0.35) !important;
}

/* Start Learning CTA Button Style */
.lp-btn-member {
    background: #10b981 !important; /* Emerald Accent */
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
}

.lp-btn-member:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
}

/* Standard LearnPress Button Fallbacks */
.button-enroll-course,
.lp-button-enroll {
    background: var(--dmm-secondary) !important;
    color: #ffffff !important;
}

.button-enroll-course:hover,
.lp-button-enroll:hover {
    background: var(--dmm-primary) !important;
    transform: translateY(-2px) !important;
}

.button-continue-course {
    background: #0070f3 !important;
    color: white !important;
}

/* Minimal Features Checklist */
.lp-card-features-minimal {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--dmm-border);
}

.lp-card-features-minimal .features-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dmm-text-main);
    margin-bottom: 16px;
}

.lp-card-features-minimal .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lp-card-features-minimal .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 88, 190, 0.08); /* 10% Opacity of Secondary color */
    color: var(--dmm-secondary);
    flex-shrink: 0;
}

.lp-card-features-minimal .feature-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

.lp-card-features-minimal .feature-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dmm-text-main);
}


/* ── Tabs Modernization ── */
.lp-tabs-container-modern {
    margin-bottom: 32px;
}

.learn-press-nav-tabs {
    display: flex !important;
    gap: 28px !important;
    border-bottom: 1px solid var(--dmm-border) !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
    list-style: none !important;
    overflow-x: auto;
}

.learn-press-nav-tabs li {
    padding: 0 0 16px 0 !important;
    position: relative !important;
    margin: 0 !important;
}

.learn-press-nav-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dmm-secondary);
    border-radius: 9999px;
}

.learn-press-nav-tabs li a {
    font-family: 'Hanken Grotesk', sans-serif !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    color: var(--dmm-text-muted) !important;
    font-size: 16px !important;
    transition: var(--transition-premium);
    display: block;
}

.learn-press-nav-tabs li.active a {
    color: var(--dmm-primary) !important;
}

.learn-press-nav-tabs li a:hover {
    color: var(--dmm-secondary) !important;
}


/* ── Locked Curriculum Notice (Premium Lock Design) ── */
.dmm-locked-curriculum-wrapper {
    position: relative;
    border: 1px solid var(--dmm-border);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.dmm-curriculum-preview {
    opacity: 0.12;
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    max-height: 280px;
    overflow: hidden;
}

.dmm-locked-curriculum-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5;
    box-sizing: border-box;
}

.dmm-locked-curriculum-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 35, 111, 0.08);
    color: var(--dmm-primary);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dmm-locked-curriculum-notice__icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.2px;
}

.dmm-locked-curriculum-notice__content h3 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dmm-primary);
    margin-bottom: 8px;
}

.dmm-locked-curriculum-notice__content p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: var(--dmm-text-muted);
    max-width: 440px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
}

.dmm-locked-curriculum-notice__cta {
    max-width: 280px;
    margin: 0 auto;
}


/* ── LearnPress Standard Course Components (Curriculum Lists) ── */
.curriculum-heading {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dmm-primary);
    margin: 32px 0 16px 0;
}

.section-header {
    background: var(--dmm-bg-main);
    border: 1px solid var(--dmm-border);
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dmm-primary);
}

.section-content {
    list-style: none;
    padding: 0;
    margin: 8px 0 24px 0;
    border-left: 2px solid var(--dmm-border);
    margin-left: 12px;
    padding-left: 20px;
}

.section-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.section-content li:last-child {
    border-bottom: none;
}

.section-content li .item-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dmm-text-main);
}

/* ── Stacked Sections Layout (Single Course Page) ── */
.lp-course-sections-stacked {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lp-course-section-block {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.lp-course-section-block:hover {
    transform: none;
    box-shadow: none;
}

.lp-section-block-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dmm-primary);
    margin: 0 0 24px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dmm-border);
    position: relative;
    letter-spacing: -0.01em;
}

.lp-section-block-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--dmm-secondary);
    border-radius: 2px;
}

.lp-section-block-content {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dmm-text-main);
}


/* ─────────────────────────────────────────────────────────────────────────────
   COURSE ARCHIVE - CATALOG REDESIGN
   ────────────────────────────────────────────────────────────────────────── */

/* Premium Archive Header */
.lp-archive-mastery {
    background-color: var(--dmm-bg-main);
}

.lp-archive-header {
    position: relative;
    background: var(--dmm-primary);
    padding: 20px 0;
    color: #ffffff;
    overflow: hidden;
}

.lp-archive-header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 88, 190, 0.45) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.lp-archive-header-container {
    max-width: var(--spacing-container-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--spacing-gutter, 24px);
    position: relative;
    z-index: 2;
}

.lp-archive-header-content {
    max-width: 720px;
}

.lp-archive-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.lp-archive-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.lp-archive-container {
    max-width: var(--spacing-container-max, 1280px);
    margin: 0 auto;
    padding: 64px var(--spacing-gutter, 24px) 100px var(--spacing-gutter, 24px);
}

/* Catalog Courses Grid */
.lp-mastery-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 36px;
}


/* ── Premium Course Card (Archive Loop) ── */
.dmm-course-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dmm-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-premium);
    height: 100%;
}

.dmm-course-card:hover {
    border-color: var(--dmm-secondary);
    box-shadow: 0 15px 35px rgba(0, 35, 111, 0.06);
    transform: translateY(-4px);
}

.dmm-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dmm-card-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.dmm-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dmm-course-card:hover .dmm-card-thumbnail img {
    transform: scale(1.04);
}

/* Card Category Tag */
.dmm-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dmm-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dmm-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dmm-primary) 0%, var(--dmm-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.9;
}

.dmm-card-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

/* Card Body Content */
.dmm-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dmm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dmm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dmm-card-meta .lp-level {
    color: var(--dmm-secondary);
}

.dmm-card-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--dmm-primary);
    margin-bottom: 10px;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ── Empty catalog template state ── */
.lp-no-courses {
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--dmm-border);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 480px;
    margin: 40px auto;
}

.lp-empty-icon {
    width: 48px;
    height: 48px;
    color: var(--dmm-text-muted);
    margin-bottom: 20px;
    stroke-width: 1.5px;
}

.lp-no-courses h3 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dmm-primary);
    margin-bottom: 8px;
}

.lp-no-courses p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: var(--dmm-text-muted);
    margin: 0;
    line-height: 1.5;
}


/* ── Sleek Catalog Pagination ── */
.lp-pagination-wrapper {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.learnpress-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.learnpress-pagination li span,
.learnpress-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--dmm-border);
    background: #ffffff;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dmm-text-main);
    transition: var(--transition-premium);
}

.learnpress-pagination li span.current,
.learnpress-pagination li a:hover {
    background: var(--dmm-secondary);
    color: #ffffff;
    border-color: var(--dmm-secondary);
}


/* ── Responsive Mobile Adjustments ── */
@media (max-width: 1024px) {
    .lp-mastery-hero {
        padding: 20px 0;
        margin: 12px 12px 0 12px;
        border-radius: 12px;
    }
    
    .lp-course-main-title {
        font-size: 32px;
    }
    
    .lp-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }
    
    .lp-floating-card {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--dmm-border);
    }
    
    .lp-mastery-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .lp-hero-meta-grid {
        gap: 24px;
    }
    
    .lp-hero-badges {
        width: 100%;
    }
    
    .lp-badge-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lp-archive-header {
        padding: 20px 0;
    }
    
    .lp-archive-title {
        font-size: 32px;
    }
    
    .lp-archive-container {
        padding-top: 32px;
        padding-bottom: 60px;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   LESSON LOCKED NOTICE (non-members on lesson pages)
   ────────────────────────────────────────────────────────────────────────── */

.dm-lesson-locked-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 32px;
    margin: 40px auto;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid var(--dmm-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 35, 111, 0.06);
}

.dm-lesson-locked-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00236f 0%, #0058be 100%);
    color: #ffffff;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 88, 190, 0.3);
}

.dm-lesson-locked-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2px;
}

.dm-lesson-locked-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--dmm-primary);
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dm-lesson-locked-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dmm-text-muted);
    margin: 0 0 32px 0;
    max-width: 380px;
}

.dm-lesson-locked-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.dm-lesson-locked-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00236f 0%, #0058be 100%);
    color: #ffffff !important;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 88, 190, 0.3);
}

.dm-lesson-locked-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 88, 190, 0.4);
}

.dm-lesson-locked-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dm-lesson-locked-back {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--dmm-border);
    background: transparent;
    color: var(--dmm-text-muted) !important;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.dm-lesson-locked-back:hover {
    border-color: var(--dmm-secondary);
    color: var(--dmm-secondary) !important;
    background: rgba(0, 88, 190, 0.04);
}

@media (max-width: 768px) {
    .dm-lesson-locked-notice {
        padding: 48px 24px;
        margin: 24px 16px;
        border-radius: 16px;
    }

    .dm-lesson-locked-title {
        font-size: 22px;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   CSS SAFETY NET — Hide all LP default Buy Now / Enroll buttons site-wide.
   Membership is the only way to access courses.
   ────────────────────────────────────────────────────────────────────────── */

/* Hide LP purchase form & Buy Now button */
form.purchase-course,
.purchase-course,
.button-purchase-course,
button.button-purchase-course,
.lp-button.button-purchase-course {
    display: none !important;
}

/* Hide LP enroll form & Start Now button (for non-member scenario) */
form.enroll-course,
.button-enroll-course,
button.button-enroll-course {
    display: none !important;
}

/* Hide LP course price on archive cards (non-members see no price) */
.lp-course-price .origin-price,
.lp-course-price .price:not(.free) {
    display: none !important;
}


/* Hide any stray LP checkout notice / order notices outside membership flow */
.learn-press-checkout-notice,
.lp-checkout-form {
    display: none !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   LP INTERNAL SKELETON — do not let LP's own loading animations block the
   theme skeleton overlay. The theme overlay hides on window.load + 200ms.
   LP's rating/reviews section has its own internal skeleton (lp-skeleton-animation)
   which is fine — it lives inside the content area, not the full-page overlay.
   ────────────────────────────────────────────────────────────────────────── */

/* Ensure theme overlay is hidden once dmm-is-loaded is set */
body.dmm-is-loaded #dmm-skeleton-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* LP's internal section skeleton — scope it to only the reviews area,
   not the full viewport */
.lp-skeleton-animation {
    max-height: 200px;
    overflow: hidden;
}


/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBAR - MEMBERSHIP COURSES & UPGRADE BANNER
   ────────────────────────────────────────────────────────────────────────── */

.lp-sidebar-courses-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--dmm-border);
}

.lp-sidebar-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dmm-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Hanken Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.lp-sidebar-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--dmm-secondary);
}

.lp-sidebar-courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-sidebar-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-sidebar-course-item:hover {
    background: #ffffff;
    border-color: rgba(0, 88, 190, 0.12);
    box-shadow: 0 4px 16px rgba(0, 35, 111, 0.04);
    transform: translateY(-2px);
}

.lp-sidebar-course-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.lp-sidebar-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-sidebar-course-info {
    flex: 1;
    min-width: 0;
}

.lp-sidebar-course-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dmm-primary);
    margin: 0 0 3px 0;
    line-height: 1.35;
    font-family: 'Hanken Grotesk', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-sidebar-course-meta {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--dmm-text-muted);
}

.lp-sidebar-course-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lp-sidebar-course-meta svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* Sidebar Ad Banner */
.lp-sidebar-ad-banner {
    margin-top: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d1e36 0%, #1e3c72 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 35, 111, 0.12);
}

.lp-sidebar-ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lp-ad-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-ad-icon {
    width: 20px;
    height: 20px;
    color: #ffca28;
}

.lp-ad-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    font-family: 'Hanken Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.lp-ad-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0 0 16px 0;
    font-family: 'Hanken Grotesk', sans-serif;
}

.lp-ad-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff !important;
    color: #1e3c72 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lp-ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
    background: #f8f9fa !important;
}

.lp-ad-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    stroke: currentColor;
    stroke-width: 2.5;
}

.lp-ad-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   APP FOOTER STYLES
   ========================================================================== */
.dmm-app-footer {
    background: #ffffff;
    border-top: 1px solid var(--dmm-border);
    padding: 24px 0;
    margin-top: auto; /* Push footer to bottom of short pages */
    width: 100%;
}

.dmm-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dmm-copyright {
    font-size: 13px;
    color: var(--dmm-text-muted);
    margin: 0;
}

.dmm-copyright strong {
    color: var(--dmm-primary);
    font-weight: 600;
}

.dmm-legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

.dmm-legal-menu li {
    display: inline-block;
}

.dmm-legal-menu li a,
.dmm-legal-menu li a:visited {
    font-size: 13px;
    color: var(--dmm-text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dmm-legal-menu li a:hover,
.dmm-legal-menu li a:focus {
    color: var(--dmm-secondary) !important;
}

/* Footer Responsiveness */
@media (max-width: 1024px) {
    .dmm-app-footer {
        padding-bottom: calc(var(--dmm-bottom-nav-height) + env(safe-area-inset-bottom) + 24px);
    }
}

@media (max-width: 768px) {
    .dmm-footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
    
    .dmm-legal-menu {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
}



/* -----------------------------------------------------------------------------
   LEARNPRESS LESSON PLAYER FIXES
   Ensures the Course Player fills the screen and isn't clipped by theme UI.
   -------------------------------------------------------------------------- */

body.learnpress-content-item-only .dmm-app-header,
body.learnpress-content-item-only .dmm-bottom-nav {
    z-index: 1 !important; /* Move behind the lesson player */
}

body.learnpress-content-item-only .dmm-app-main-wrap {
    padding-top: 0 !important; /* Remove top offset for theme header */
}

body.learnpress-content-item-only .dmm-app-content-inner {
    padding: 0 !important;
    max-width: 100% !important;
}

/* LearnPress 4.x Player Main Container */
body.learnpress-content-item-only #learn-press-course-curriculum,
body.learnpress-content-item-only .lp-course-player {
    z-index: 2000 !important; /* Ensure it stays above everything */
    position: relative; /* Ensure z-index applies if not already positioned */
}

/* Fix for mobile where scroll area might be restricted */
@media (max-width: 1024px) {
    body.learnpress-content-item-only .dmm-app-content {
        padding-bottom: 0 !important; /* Remove bottom padding meant for nav */
    }
}

