:root {
    --bams-primary: #1a4d2e; /* Deep Ayurvedic Green */
    --bams-secondary: #4f9a6c;
    --bams-accent: #ff9f1c; /* Premium Gold */
    --bams-bg: #f4f6f8;
    --bams-surface: #ffffff;
    --bams-text: #2d3436;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Base Layout */
.bams-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bams-text);
    background: var(--bams-bg);
    padding: 20px;
    line-height: 1.6;
}

.bams-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bams-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

/* Header */
.bams-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bams-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bams-primary);
    margin: 0;
}
.bams-controls-top {
    display: flex;
    gap: 10px;
}

/* Viewer Stage & Overlay */
.bams-viewer-stage {
    position: relative;
    background: #e9ecef;
    min-height: 600px;
}
.bams-iframe {
    width: 100%;
    height: 80vh;
    max-height: 800px;
    border: none;
    display: block;
}

.bams-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease, visibility 0.5s;
}
.bams-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Progress Bar */
.bams-spinner-box {
    text-align: center;
    width: 90%;
    max-width: 400px;
}
.bams-progress-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
.bams-progress-fill {
    height: 100%;
    background: var(--bams-primary);
    width: 0%;
    transition: width 1s linear;
}

/* Bottom Controls */
.bams-controls {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-top: 1px solid #eee;
}
.bams-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.bams-btn:hover { transform: translateY(-2px); }
.bams-btn-primary { background: var(--bams-primary); color: white; }
.bams-btn-whatsapp { background: #25D366; color: white; }
.bams-btn-telegram { background: #0088cc; color: white; }
.bams-btn-outline { background: transparent; border: 1px solid #ddd; color: var(--bams-text); }

/* Premium Card */
.bams-premium-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border: 1px solid #ffe0b2;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

/* Sticky Mobile Footer */
.bams-mobile-sticky {
    display: none;
}

/* Modal */
.bams-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.bams-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
}
.bams-prof-option {
    padding: 12px;
    border: 2px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}
.bams-prof-option.selected {
    border-color: var(--bams-primary);
    background: rgba(26, 77, 46, 0.05);
}

/* Dark Mode & Mobile */
body.bams-dark-mode .bams-page-wrapper { background: #121212; color: #ddd; }
body.bams-dark-mode .bams-container { background: #1e1e1e; }
body.bams-dark-mode .bams-header, body.bams-dark-mode .bams-controls { border-color: #333; background: #1e1e1e; }
body.bams-dark-mode .bams-title { color: #81c784; }
body.bams-dark-mode .bams-overlay { background: rgba(30,30,30,0.98); }
body.bams-dark-mode .bams-btn-outline { color: #fff; border-color: #555; }

@media (max-width: 768px) {
    .bams-page-wrapper { padding: 10px; padding-bottom: 80px; }
    .bams-controls { display: none; } /* Hide desktop controls */
    
    .bams-mobile-sticky {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--bams-surface);
        padding: 12px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 10px;
    }
    body.bams-dark-mode .bams-mobile-sticky { background: #1e1e1e; border-top: 1px solid #333; }
    .bams-mobile-sticky .bams-btn { flex: 1; }
}