/*
Theme Name: Lisa Buddy Theme V9
Theme URI: https://lisabuddy.ai
Author: Lisa Buddy
Author URI: https://lisajohnson.com
Description: Member-only AI chat assistant theme with MemberMouse integration.
             Features: 3 page templates, Lisa Johnson brand colors, responsive design.
Version: 9.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lisa-buddy
*/

/* ========================================
   CSS Custom Properties (Lisa Johnson Palette)
   ======================================== */
:root {
    /* Primary Colors */
    --lb-navy: #051821;
    --lb-teal: #00b2c0;
    --lb-cream: #f4f0e5;
    --lb-green: #143d35;

    /* Accent Colors */
    --lb-white: #ffffff;
    --lb-aqua-hover: #26d8e6;

    /* Semantic Colors */
    --lb-text-primary: #051821;
    --lb-text-secondary: #586972;
    --lb-text-muted: #8a9ba3;
    --lb-success: #10b981;
    --lb-warning: #f59e0b;
    --lb-error: #ef4444;

    /* Premium UI Tokens */
    --lb-gradient-premium: linear-gradient(135deg, #00b2c0 0%, #143d35 100%);
    --lb-gradient-vibrant: linear-gradient(135deg, #00d2df 0%, #00b2c0 100%);
    --lb-glass-bg: rgba(255, 255, 255, 0.7);
    --lb-glass-border: rgba(255, 255, 255, 0.4);
    --lb-glass-blur: blur(12px);

    /* Layout */
    --lb-radius-sm: 10px;
    --lb-radius-md: 20px;
    --lb-radius-lg: 32px;
    --lb-radius-xl: 48px;
    --lb-radius-full: 999px;

    /* Shadows */
    --lb-shadow-sm: 0 4px 12px rgba(5, 24, 33, 0.04);
    --lb-shadow-md: 0 12px 32px rgba(5, 24, 33, 0.08);
    --lb-shadow-lg: 0 32px 64px rgba(5, 24, 33, 0.12);
    --lb-shadow-premium: 0 40px 100px rgba(5, 24, 33, 0.18);

    /* Transitions */
    --lb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Chat Specific */
    --lb-chat-user-bg: linear-gradient(135deg, #00b2c0, #00909b);
    --lb-chat-ai-bg: rgba(255, 255, 255, 0.85);
    --lb-chat-date: #94a3b8;

    /* Animation/Depth */
    --lb-z-modal: 1000;
    --lb-z-overlay: 2000;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lb-text-primary);
    background-color: var(--lb-cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Premium Background Blobs */
.lb-bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    /* fallback */
    z-index: -1;
    opacity: 0.6;
    animation: lb-float 20s infinite ease-in-out;
    pointer-events: none;
}

/* Chrome/Safari improved lighting */
@supports (backdrop-filter: blur(1px)) {
    .lb-bg-blob {
        filter: blur(100px);
    }
}

.lb-blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 178, 192, 0.4) 0%, rgba(0, 178, 192, 0) 70%);
    animation-delay: 0s;
}

.lb-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(20, 61, 53, 0.2) 0%, rgba(20, 61, 53, 0) 70%);
    animation-delay: -5s;
}

.lb-blob-3 {
    top: 40%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(38, 216, 230, 0.2) 0%, rgba(38, 216, 230, 0) 70%);
    animation-delay: -10s;
}

@keyframes lb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--lb-navy);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--lb-text-secondary);
}

a {
    color: var(--lb-teal);
    text-decoration: none;
    transition: var(--lb-transition);
}

a:hover {
    color: var(--lb-aqua-hover);
}

/* ========================================
   Layout Utilities
   ======================================== */
.lb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lb-section {
    padding: 60px 0;
}

.lb-card {
    background: var(--lb-white);
    border-radius: var(--lb-radius-lg);
    box-shadow: var(--lb-shadow-md);
    padding: 32px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.lb-header {
    background: var(--lb-green);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    display: flex;
    align-items: center;
}

.lb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
}

.lb-sidebar-toggle-float {
    position: fixed;
    top: 100px;
    left: 16px;
    background: var(--lb-white);
    border: none;
    color: var(--lb-navy);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--lb-shadow-sm);
    transition: var(--lb-transition);
    z-index: 95;
}

.lb-sidebar-toggle-float:hover {
    background: var(--lb-cream);
    box-shadow: var(--lb-shadow-md);
}

/* Expand button (shows when sidebar is collapsed) */
.lb-sidebar-expand {
    position: fixed;
    top: 100px;
    left: 16px;
    background: var(--lb-white);
    border: none;
    color: var(--lb-navy);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--lb-shadow-md);
    transition: var(--lb-transition);
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-sidebar-expand:hover {
    background: var(--lb-teal);
    color: var(--lb-white);
}

/* Hide expand button when sidebar is open */
.lb-sidebar.open~.lb-main .lb-sidebar-expand,
body:has(.lb-sidebar.open) .lb-sidebar-expand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   Sidebar (Floating Panel)
   ======================================== */
.lb-sidebar {
    position: fixed;
    top: 110px;
    left: 16px;
    width: 280px;
    max-height: calc(100vh - 140px);
    background: var(--lb-white);
    border-radius: var(--lb-radius-lg);
    box-shadow: 0 20px 60px rgba(5, 24, 33, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lb-glass-border);
}

.lb-sidebar.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lb-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(5, 24, 33, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-sidebar-close {
    background: none;
    border: none;
    color: var(--lb-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--lb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-sidebar-close:hover {
    background: var(--lb-cream);
    color: var(--lb-navy);
}

.lb-new-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--lb-teal);
    border: none;
    border-radius: var(--lb-radius-md);
    color: var(--lb-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--lb-transition);
}

.lb-new-chat-btn:hover {
    background: var(--lb-aqua-hover);
}

.lb-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 400px;
}

.lb-chat-item {
    padding: 12px 16px;
    border-radius: var(--lb-radius-sm);
    cursor: pointer;
    transition: var(--lb-transition);
    margin-bottom: 4px;
}

.lb-chat-item:hover {
    background: var(--lb-cream);
}

.lb-chat-item.active {
    background: var(--lb-cream);
    border-left: 3px solid var(--lb-teal);
}

.lb-chat-item-title {
    color: var(--lb-text-primary);
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main content with sidebar */
.lb-main-with-sidebar {
    margin-top: 48px;
}

.lb-logo {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    /* Ensure alt text looks good */
    color: var(--lb-white);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
}

.lb-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--lb-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.lb-logo-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    display: block;
    max-height: 28px;
    /* Force constraint */
}

.lb-nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.lb-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    letter-spacing: normal;
}

.lb-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lb-teal);
    transition: var(--lb-transition);
    border-radius: 0;
    box-shadow: none;
}

.lb-nav a:hover::after,
.lb-nav a.active::after {
    width: 100%;
}

.lb-nav a:hover,
.lb-nav a.active {
    color: var(--lb-white);
}

/* Logout Link - Styled like Login button */
.lb-logout-link {
    background: var(--lb-teal) !important;
    color: var(--lb-white) !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    margin-left: 20px !important;
    transition: all 0.3s ease !important;
}

.lb-logout-link:hover {
    background: #00c9d9 !important;
    color: var(--lb-white) !important;
}

.lb-logout-link::after {
    display: none !important;
}

/* Mobile Navigation */
.lb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--lb-white);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .lb-mobile-toggle {
        display: block;
    }

    .lb-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lb-green);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }

    .lb-nav.open {
        display: flex;
    }

    .lb-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Nicer logout button on mobile */
    .lb-nav .lb-logout-link {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        margin: 16px 0 0 0 !important;
        padding: 12px 20px !important;
        border-radius: 25px !important;
        text-align: center;
        font-weight: 500 !important;
    }

    .lb-nav .lb-logout-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
    }

    /* Smaller logo on mobile */
    .lb-logo-img {
        height: 20px;
    }
}

/* ========================================
   Buttons
   ======================================== */
.lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--lb-radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--lb-transition);
}

.lb-btn-primary {
    background: var(--lb-teal);
    color: var(--lb-white);
    box-shadow: 0 4px 16px rgba(0, 178, 192, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.lb-btn-primary:hover {
    background: var(--lb-aqua-hover);
    color: var(--lb-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 178, 192, 0.4);
}

.lb-btn-primary:active,
.lb-btn-primary:focus {
    background: var(--lb-teal);
    color: var(--lb-white);
    outline: none;
    transform: scale(0.98);
}

.lb-btn-primary:visited {
    color: var(--lb-white);
}

.lb-btn-secondary {
    background: var(--lb-green);
    color: var(--lb-white);
    box-shadow: 0 4px 16px rgba(20, 61, 53, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.lb-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 61, 53, 0.4);
}

.lb-btn-secondary:active,
.lb-btn-secondary:focus {
    background: var(--lb-green);
    color: var(--lb-white);
    outline: none;
    transform: scale(0.98);
}

.lb-btn-secondary:visited {
    color: var(--lb-white);
}

/* ========================================
   Footer
   ======================================== */
.lb-footer {
    background: var(--lb-navy);
    color: var(--lb-white);
    padding: 8px 0;
}

.lb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.lb-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.lb-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.lb-footer-links a:hover {
    color: var(--lb-teal);
}

.lb-footer-bottom {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.lb-footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 14px;
}

.lb-footer-col a:hover {
    color: var(--lb-teal);
}

.lb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Hero Section (Generic Pages)
   ======================================== */
.lb-hero-section {
    text-align: center;
    padding: 100px 24px 40px;
    /* Reduced top padding (from huge value/centering) */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   Chat Interface Styles
   ======================================== */
.lb-chat-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.lb-chat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

.lb-chat-header {
    display: none;
}

.lb-new-convo-btn {
    position: fixed;
    top: 56px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lb-radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--lb-transition);
    z-index: 99;
}

.lb-new-convo-btn:hover {
    background: var(--lb-teal);
    color: var(--lb-white);
    border-color: var(--lb-teal);
}

.lb-history-indicator {
    text-align: center;
    font-size: 12px;
    color: var(--lb-text-muted);
    padding: 8px 16px;
    margin-bottom: 8px;
}

.lb-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lb-teal), var(--lb-aqua-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lb-white);
    font-weight: 700;
    font-size: 18px;
}

.lb-chat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--lb-navy);
}

.lb-chat-status {
    font-size: 13px;
    color: var(--lb-success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--lb-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.lb-chat-messages {
    flex: 1;
    padding: 40px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lb-bubble {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: var(--lb-radius-md);
    line-height: 1.6;
    font-size: 15px;
}

.lb-bubble.user {
    margin-left: auto;
    background: var(--lb-chat-user-bg);
    color: var(--lb-white);
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 4px 15px rgba(0, 178, 192, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-bubble.assistant {
    margin-right: auto;
    background: var(--lb-chat-ai-bg);
    color: var(--lb-text-primary);
    border-radius: 20px 20px 20px 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.lb-chat-input-area {
    padding: 16px 0 24px;
}

.lb-chat-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--lb-white);
    border-radius: var(--lb-radius-full);
    padding: 12px 12px 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
}

.lb-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--lb-text-primary);
    font-size: 16px;
    outline: none;
}

.lb-chat-input::placeholder {
    color: var(--lb-text-muted);
}

.lb-chat-send {
    background: var(--lb-teal);
    color: var(--lb-white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--lb-transition);
}

.lb-chat-send:hover {
    background: var(--lb-aqua-hover);
    transform: scale(1.05);
}

.lb-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Page-specific Styles
   ======================================== */
.lb-page-header {
    background: linear-gradient(135deg, var(--lb-green) 0%, var(--lb-navy) 100%);
    color: var(--lb-white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    margin-top: 50px;
}

/* Extend page header color up to cover under the fixed header */
.lb-page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--lb-green);
}

/* Ensure no white line shows between header and page content */
.lb-main {
    background: var(--lb-cream);
    padding-top: 0;
}

.lb-page-header h1 {
    color: var(--lb-white);
    margin-bottom: 16px;
}

.lb-page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* How to Use Page */
/* ========================================
   Compact / Dense Layouts (Premium)
   ======================================== */
.lb-compact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 200px 24px 80px;
    /* Reduced top padding */
}

.lb-dense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .lb-dense-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.lb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    align-items: start;
    /* Prevent cards from stretching to same height */
}

.lb-info-card {
    background: var(--lb-white);
    border-radius: var(--lb-radius-lg);
    padding: 32px;
    box-shadow: var(--lb-shadow-sm);
}

.lb-info-card h3 {
    color: var(--lb-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-info-card ul {
    list-style: none;
    padding: 0;
}

.lb-info-card li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--lb-text-secondary);
}

.lb-info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lb-teal);
    font-weight: bold;
}

/* Video Section */
.lb-video-section {
    margin: 40px 0;
}

.lb-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--lb-radius-lg);
    box-shadow: var(--lb-shadow-md);
}

.lb-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Policies Page */
.lb-policies-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.lb-policy-section {
    margin-bottom: 40px;
}

.lb-policy-section h2 {
    color: var(--lb-navy);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lb-teal);
    margin-bottom: 20px;
}

.lb-policy-section p,
.lb-policy-section li {
    color: var(--lb-text-secondary);
    line-height: 1.8;
}

/* ========================================
   Audio Indicator
   ======================================== */
.lb-audio-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--lb-teal);
    color: var(--lb-white);
    border-radius: var(--lb-radius-full);
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto 16px;
    width: fit-content;
}

.lb-audio-indicator.playing {
    display: flex;
}

.lb-audio-bars {
    display: flex;
    gap: 3px;
    height: 16px;
    align-items: flex-end;
}

.lb-audio-bar {
    width: 3px;
    background: var(--lb-white);
    border-radius: 2px;
    animation: eq 0.8s ease-in-out infinite;
}

.lb-audio-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.lb-audio-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.lb-audio-bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes eq {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 16px;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .lb-section {
        padding: 40px 0;
    }

    .lb-chat-wrapper {
        padding: 16px;
    }

    .lb-chat-card {
        max-height: 70vh;
    }

    .lb-page-header {
        padding: 40px 0;
    }
}

/* ========================================
   WordPress Emoji Fix
   ======================================== */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* ========================================
   Modern Page Layouts (Premium)
   ======================================== */
.lb-main-content {
    padding-top: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 178, 192, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(20, 61, 53, 0.05) 0%, transparent 40%);
}

/* Hero Section */
.lb-hero-section {
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.lb-hero-badge {
    display: inline-block;
    background: var(--lb-gradient-vibrant);
    color: var(--lb-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border-radius: var(--lb-radius-full);
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 178, 192, 0.2);
}

.lb-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--lb-navy);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.lb-hero-subtitle {
    font-size: 1.25rem;
    color: var(--lb-text-secondary);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.lb-features-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.lb-feature-card {
    background: var(--lb-glass-bg);
    backdrop-filter: var(--lb-glass-blur);
    -webkit-backdrop-filter: var(--lb-glass-blur);
    border: 1px solid var(--lb-glass-border);
    border-radius: var(--lb-radius-lg);
    padding: 48px;
    box-shadow: var(--lb-shadow-lg);
    margin-bottom: 32px;
    transition: var(--lb-transition);
}

.lb-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--lb-shadow-premium);
    border-color: rgba(0, 178, 192, 0.3);
}

.lb-feature-main {
    position: relative;
    overflow: hidden;
}

/* ========================================
   Compact Inner Page Layout (Redesign)
   ======================================== */
.lb-compact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 24px 40px;
    /* Clears header (80px) + 20px space */
}

/* Compact Hero: Left aligned, minimal padding */
.lb-compact-hero {
    margin-bottom: 32px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.lb-compact-hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--lb-navy);
}

.lb-compact-hero p {
    font-size: 1rem;
    color: var(--lb-text-secondary);
    margin: 0;
    max-width: 600px;
}

/* Dense Grid for Cards */
.lb-dense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    /* Tight gap */
}

/* Dense Card Style */
.lb-dense-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    /* Smaller radius */
    padding: 20px;
    /* Reduced padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.lb-dense-card:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.lb-dense-card h2,
.lb-dense-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-dense-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.lb-dense-card ul {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--lb-text-secondary);
}

.lb-audio-trigger .lb-audio-waveform {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
    height: 100%;
    opacity: 0.5;
}

.lb-audio-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    text-align: left;
}

.lb-audio-trigger .lb-audio-bar {
    width: 3px;
    background: var(--lb-teal);
    border-radius: 2px;
    animation: none;
}

.lb-audio-trigger.playing .lb-audio-bar {
    background: white;
    animation: lb-wave 1s ease-in-out infinite;
}

@keyframes lb-wave {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 16px;
    }
}

/* Sidebar Specific Audio Style */
.lb-dense-card li {
    margin-bottom: 6px;
}

/* Two Column Layout for Desktop */
.lb-split-layout {
    display: flex;
    gap: 32px;
}

.lb-split-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.lb-split-content {
    flex: 1;
}

@media (max-width: 768px) {
    .lb-split-layout {
        flex-direction: column;
    }

    .lb-split-sidebar {
        width: 100%;
    }

    .lb-compact-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.lb-feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
}

.lb-feature-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--lb-navy);
}

.lb-feature-card p {
    font-size: 1.125rem;
    color: var(--lb-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.lb-feature-note {
    background: rgba(0, 178, 192, 0.05);
    padding: 24px;
    border-radius: var(--lb-radius-md);
    font-size: 15px;
    color: var(--lb-navy);
    border-left: 3px solid var(--lb-teal);
    margin-bottom: 0 !important;
}

.lb-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .lb-feature-grid {
        grid-template-columns: 1fr;
    }

    .lb-hero-title {
        font-size: 2.5rem;
    }
}

.lb-feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.lb-feature-icon-small {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lb-feature-do .lb-feature-icon-small {
    background: #ecfdf5;
    color: #10b981;
}

.lb-feature-dont .lb-feature-icon-small {
    background: #fffbeb;
    color: #f59e0b;
}

.lb-feature-header h3 {
    font-size: 1.375rem;
    margin: 0;
    color: var(--lb-navy);
}

.lb-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lb-feature-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(5, 24, 33, 0.04);
    color: var(--lb-text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lb-teal);
    opacity: 0.4;
}

.lb-feature-list li:last-child {
    border-bottom: none;
}

/* Video Section Modern */
.lb-video-section-modern {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.lb-video-placeholder {
    background: var(--lb-gradient-premium);
    border-radius: var(--lb-radius-xl);
    padding: 100px 48px;
    text-align: center;
    color: var(--lb-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--lb-shadow-premium);
}

.lb-video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h20v20H0z" fill="none"/><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
}

.lb-video-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 28px;
    transition: var(--lb-transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lb-video-placeholder:hover .lb-video-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.lb-video-placeholder h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--lb-white);
}

.lb-video-placeholder p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    color: var(--lb-white);
}

/* CTA Section */
.lb-cta-section {
    text-align: center;
    padding: 100px 24px;
    background: var(--lb-white);
    border-top: 1px solid rgba(5, 24, 33, 0.05);
}

.lb-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lb-navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.lb-cta-section p {
    color: var(--lb-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
}

.lb-btn-large {
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--lb-radius-full);
}

.lb-btn-primary {
    background: var(--lb-gradient-vibrant);
    box-shadow: 0 15px 30px rgba(0, 178, 192, 0.25);
    border: none;
    color: var(--lb-white);
}

.lb-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 178, 192, 0.35);
}

/* Policies Modern */
.lb-policies-modern {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.lb-policy-card {
    display: flex;
    gap: 40px;
    background: var(--lb-glass-bg);
    backdrop-filter: var(--lb-glass-blur);
    border: 1px solid var(--lb-glass-border);
    border-radius: var(--lb-radius-lg);
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--lb-shadow-lg);
}

.lb-policy-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--lb-teal);
    opacity: 0.15;
    min-width: 80px;
    line-height: 1;
}

.lb-policy-content h2 {
    font-size: 1.75rem;
    color: var(--lb-navy);
    margin-bottom: 20px;
}

.lb-policy-content>p {
    font-size: 1.125rem;
    color: var(--lb-text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.lb-policy-content li {
    padding: 12px 0;
    color: var(--lb-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.lb-policy-note {
    background: var(--lb-cream);
    padding: 20px 24px;
    border-radius: var(--lb-radius-md);
    margin-top: 32px;
    font-size: 14px;
    color: var(--lb-text-muted);
}

/* WordPress Emoji Fix */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* ========================================
   Login Modal & Transition Overlay
   ======================================== */
.lb-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 24, 33, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--lb-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lb-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.lb-login-modal {
    background: var(--lb-cream);
    border-radius: var(--lb-radius-lg);
    padding: 48px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--lb-shadow-premium);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.lb-modal-backdrop.open .lb-login-modal {
    transform: translateY(0);
}

.lb-login-title {
    color: var(--lb-navy);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.lb-login-btn {
    width: 100%;
    margin-top: 8px;
}

.lb-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lb-gradient-premium);
    z-index: var(--lb-z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lb-white);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lb-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lb-transition-content {
    text-align: center;
    animation: lb-fadeInUp 0.6s ease;
}

@keyframes lb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ========================================
   Stunning Hero Section - Animated
   ======================================== */

/* Aurora Animated Background - Lisa Johnson Brand Colors */
.lb-hero-animated {
    background: linear-gradient(-45deg, #051821, #143D35, #0a2a24, #051821);
    background-size: 400% 400%;
    animation: lb-aurora-shift 15s ease infinite;
}

@keyframes lb-aurora-shift {
    0% {
        background-position: 0% 50%;
    }

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

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

.lb-aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 178, 192, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(20, 61, 53, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 178, 192, 0.15) 0%, transparent 60%);
    animation: lb-aurora-pulse 8s ease-in-out infinite alternate;
}

@keyframes lb-aurora-pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Floating Particles */
.lb-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.lb-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: lb-float-particle 20s infinite ease-in-out;
}

.lb-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.lb-particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.lb-particle:nth-child(3) {
    left: 60%;
    top: 30%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.lb-particle:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.lb-particle:nth-child(5) {
    left: 40%;
    top: 50%;
    animation-delay: -7s;
    animation-duration: 18s;
}

.lb-particle:nth-child(6) {
    left: 90%;
    top: 40%;
    animation-delay: -12s;
    animation-duration: 24s;
}

@keyframes lb-float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.6;
    }

    75% {
        transform: translate(40px, -50px) scale(1.1);
        opacity: 0.9;
    }
}

/* Centered Avatar with Glow */
.lb-hero-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    display: inline-block;
}

.lb-avatar-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(0, 178, 192, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: lb-glow-pulse 3s ease-in-out infinite;
}

@keyframes lb-glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.lb-avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: lb-ring-spin 20s linear infinite;
}

@keyframes lb-ring-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lb-avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lb-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Badge - Sparkle Style */
.lb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    animation: lb-badge-float 4s ease-in-out infinite;
}

.lb-badge-icon {
    font-size: 16px;
    animation: lb-sparkle 2s ease-in-out infinite;
}

@keyframes lb-sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

@keyframes lb-badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.lb-hero-badge span:last-child {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hero Title */
.lb-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.lb-hero-handwriting {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 5rem;
    font-weight: 400;
    display: block;
    margin-top: 16px;
    background: linear-gradient(135deg, #00B2C0, #2dd4bf, #00B2C0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lb-shimmer 3s ease-in-out infinite;
}

@keyframes lb-shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}

/* Hero Subtitle */
.lb-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero Buttons */
.lb-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.lb-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #0f0c29;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.lb-btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lb-btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.lb-btn-hero-primary:hover svg {
    transform: translateX(5px);
}

.lb-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lb-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lb-hero-avatar {
        width: 120px;
        height: 120px;
    }

    .lb-hero-title {
        font-size: 2rem;
    }

    .lb-hero-handwriting {
        font-size: 3.5rem;
    }

    .lb-hero-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }

    .lb-hero-buttons {
        flex-direction: column;
    }

    .lb-btn-hero-primary,
    .lb-btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}