@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ==========================================================================
   LUXURY UI/UX DESIGN SYSTEM - CONSEJOS EN MI BOLSILLO
   ========================================================================== */

:root {
    /* Luxury Palette */
    --bg-base: #f8f6f0;          /* Softest warm cream */
    --bg-surface: rgba(255, 255, 255, 0.85); /* Frosted Glass */
    --text-primary: #1a1a1a;     /* Deep Obsidian */
    --text-secondary: #6e6e6e;   /* Refined Ash Grey */
    --accent-gold: #c3a363;      /* Muted Luxury Gold */
    --accent-gold-light: #e4d5b7;
    
    /* Neumorphic & Glassmorphic Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0,0,0,0.03);
    --shadow-glow: 0 0 20px rgba(195, 163, 99, 0.2);
    
    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ==========================================================================
   GLOBAL & RESET
   ========================================================================== */

body, .ui-page {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-base) !important;
    /* Subtle luxury aurora gradient */
    background-image: 
        radial-gradient(at 0% 0%, rgba(195, 163, 99, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.6) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em;
}

/* Prevent text overflow globally */
p, h1, h2, h3, span, div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(195, 163, 99, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(195, 163, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(195, 163, 99, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.animate-fade-up {
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
    opacity: 0;
}

/* Staggered list items */
.ui-listview > li { 
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out-expo) 0.6s forwards; 
}
.ui-listview > li:nth-child(1) { animation-delay: 0.1s; }
.ui-listview > li:nth-child(2) { animation-delay: 0.2s; }
.ui-listview > li:nth-child(3) { animation-delay: 0.3s; }
.ui-listview > li:nth-child(4) { animation-delay: 0.4s; }
.ui-listview > li:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================================================
   HEADER & HERO
   ========================================================================== */

.ui-page-theme-a .ui-header {
    background: rgba(248, 246, 240, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--text-primary) !important;
    padding: 18px 0 12px 0 !important;
    z-index: 100 !important;
}

.ui-header h1 {
    font-weight: 600 !important;
    font-size: 1.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

.hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
    animation: scaleIn 1s var(--ease-out-expo) forwards;
}

.intro-text {
    text-align: center;
    padding: 60px 25px 30px 25px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--bg-base) 35%);
    animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
}
.intro-text h2 {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}
.intro-text p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-gold);
    font-size: 1.35rem;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   CARDS & LISTS (GLASSMORPHISM)
   ========================================================================== */

.ui-listview {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 20px 40px 20px !important;
}

/* Edge to Edge List View */
.custom-listview-edge {
    margin: 0 0 100px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.custom-listview-edge > li > a.ui-btn {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(195, 163, 99, 0.15) !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    padding: 25px 25px !important;
    transition: all 0.4s var(--ease-out-expo) !important;
}

.custom-listview-edge > li > a.ui-btn:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
    padding-left: 32px !important;
}

.custom-listview-edge > li:last-child > a.ui-btn {
    border-bottom: none !important;
}

.ui-listview > li > a.ui-btn {
    background: var(--bg-surface) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 22px 20px !important;
    transition: all 0.4s var(--ease-out-expo) !important;
    display: flex !important;
    align-items: center !important;
    white-space: normal !important; /* Fix jQuery mobile forcing nowrap */
}

.ui-listview > li > a.ui-btn:active {
    transform: scale(0.96) translateY(2px) !important;
    box-shadow: var(--shadow-sm) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px; /* Premium Squircle */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 22px;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), inset 0 2px 2px rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.cat-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.ui-listview > li > a.ui-btn:hover .cat-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 2px 2px rgba(255,255,255,0.5);
}

.list-item-content h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}
.list-item-content p {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.list-item-arrow {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-left: 15px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}
.ui-listview > li > a.ui-btn:active .list-item-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   DETAIL PAGE (CONSEJO)
   ========================================================================== */

.detail-header {
    padding: 30px 25px 20px 25px;
    background: transparent;
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}
.detail-category-tag {
    font-family: 'Inter', sans-serif;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(195, 163, 99, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
}
.detail-header h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 500;
}

.detail-content-card {
    background: transparent;
    padding: 0 25px 60px 25px;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

/* Typography Inside Content */
.consejo-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}
.consejo-content p {
    margin-bottom: 1.5em;
}
.consejo-content h1, .consejo-content h2, .consejo-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.consejo-content strong {
    font-weight: 600;
    color: var(--text-primary);
}
.consejo-content blockquote {
    border-left: 4px solid var(--accent-gold);
    margin: 2em 0;
    padding: 10px 20px;
    background: rgba(195, 163, 99, 0.05);
    border-radius: 0 12px 12px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--accent-gold);
}

/* Audio Player Luxury Treatment */
.audio-wrapper {
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
}
.audio-wrapper audio {
    width: 100%;
    border-radius: 10px;
    outline: none;
    background: #f4f4f4;
}

/* Author Quote Box (The "Be still" card) */
.author-box {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.author-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: rgba(195, 163, 99, 0.1);
    line-height: 1;
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.author-box-content {
    z-index: 2;
}
.author-box-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
.author-box-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   INTERACTIVE ELEMENTS
   ========================================================================== */

.fab-like {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    padding: 0 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.fab-like .fab-like-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.fab-like i {
    font-size: 1.4rem;
    margin-right: 8px;
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
}
.fab-like:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.fab-like:active {
    transform: scale(0.95);
}
.fab-like #likes-count {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.fab-like.liked {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #fff;
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.4);
}
.fab-like.liked i {
    color: #fff;
    animation: heartBeat 1.2s ease-in-out infinite alternate;
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Icon Buttons Top Bar */
.ui-btn-left, .ui-btn-right {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease !important;
}
.ui-btn-left:active, .ui-btn-right:active {
    background: rgba(255,255,255,0.8) !important;
    transform: scale(0.95);
}

/* ==========================================================================
   FOOTER & MODAL (DESEO CONSEJO)
   ========================================================================== */

/* The Black Navigation Bar */
.custom-footer-bar {
    background: #161616 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Footer Request Button (Nav Item Style) */
.footer-nav-btn {
    background: transparent !important;
    color: #888888 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    padding: 8px 5px !important;
    flex: 1 !important;
    text-decoration: none !important;
}
.footer-nav-btn i {
    font-size: 1.35rem !important;
    margin-bottom: 5px !important;
    color: #888888 !important;
    transition: color 0.2s ease !important;
}
.footer-nav-btn:active, .footer-nav-btn:focus, .footer-nav-btn:hover {
    transform: scale(0.92) !important;
    color: var(--accent-gold) !important;
    background: transparent !important;
}
.footer-nav-btn:active i, .footer-nav-btn:focus i, .footer-nav-btn:hover i {
    color: var(--accent-gold) !important;
}

/* Custom Modal */
.custom-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    max-width: 350px !important;
    width: 90vw !important;
}

/* Input Fields inside modal */
.custom-input {
    font-family: 'Inter', sans-serif !important;
    background: #fdfcf9 !important;
    border: 1px solid #eae5d9 !important;
    border-radius: 14px !important;
    padding: 15px 18px !important;
    font-size: 1.05rem !important;
    color: var(--text-primary) !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.custom-input:focus {
    outline: none !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 4px rgba(195, 163, 99, 0.15) !important;
    background: #ffffff !important;
}
.custom-input::placeholder {
    color: #a09d96 !important;
    font-weight: 400 !important;
}

/* WhatsApp Submit Button */
.send-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 16px !important;
    border-radius: 16px !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.send-whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}
.send-whatsapp-btn:active {
    transform: scale(0.96) !important;
}

/* ==========================================================================
   DESKTOP & TABLET RESPONSIVE (SIMULATED DEVICE VIEW)
   ========================================================================== */

/* Hidden by default on Mobile */
.desktop-landing {
    display: none;
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        background: url('../img/header_bible.png') center/cover fixed !important;
    }
    body::before {
        content: '';
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 15, 15, 0.85);
        z-index: 0;
    }
    
    .ui-page {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: 5vh !important;
        transform: translateX(-50%) !important;
        width: 500px !important;
        max-width: 500px !important;
        height: 90vh !important;
        min-height: 90vh !important;
        border-radius: 40px !important;
        box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 12px #111 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        z-index: 2;
    }

    .ui-header-fixed, .ui-footer-fixed {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        z-index: 100 !important;
        flex: none !important;
    }
    
    .ui-content {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        height: 100% !important;
    }
}

/* DESKTOP (1024px and up) */
@media (min-width: 1024px) {
    body {
        background: url('../img/header_bible.png') center/cover fixed !important;
    }
    body::before {
        content: '';
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 15, 15, 0.85);
        z-index: 0;
    }
    
    .desktop-landing {
        display: flex;
        position: fixed;
        left: 8%;
        top: 0;
        bottom: 0;
        width: 45%;
        color: #fff;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }
    
    .desktop-landing .logo-icon {
        font-size: 3rem;
        color: var(--accent-gold);
        margin-bottom: 20px;
    }
    
    .desktop-landing h1 {
        font-family: 'Playfair Display', serif !important;
        font-size: 4rem;
        color: #fff !important;
        margin: 0 0 20px 0;
        line-height: 1.1;
        text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    
    .desktop-landing p {
        font-size: 1.4rem;
        color: #ddd;
        line-height: 1.6;
        margin-bottom: 40px;
        font-weight: 300;
        max-width: 90%;
    }
    
    .desktop-landing .qr-box {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        max-width: 450px;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
    }
    
    .desktop-landing .qr-box:hover {
        transform: scale(1.02);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .desktop-landing .qr-box img {
        width: 90px;
        height: 90px;
        border-radius: 12px;
        margin-right: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .desktop-landing .qr-box .qr-text {
        font-size: 0.95rem;
        color: #bbb;
        margin: 0;
        line-height: 1.4;
    }
    .desktop-landing .qr-box .qr-text strong {
        color: var(--accent-gold);
        font-size: 1.1rem;
        display: block;
        margin-bottom: 5px;
        font-family: 'Inter', sans-serif !important;
    }

    /* Desktop QR Modal */
    .desktop-modal {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-modal-content {
        background: rgba(255, 255, 255, 0.98);
        padding: 40px;
        border-radius: 24px;
        max-width: 500px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    }
    
    .desktop-modal-close {
        position: absolute;
        top: 15px; right: 15px;
        background: transparent;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #888;
        transition: color 0.2s ease;
    }
    
    .desktop-modal-close:hover {
        color: var(--accent-gold);
    }
    
    .desktop-modal-content h3 {
        font-family: 'Playfair Display', serif !important;
        font-size: 2.2rem !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        color: var(--text-primary) !important;
    }
    
    .desktop-modal-content p {
        font-family: 'Inter', sans-serif !important;
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
        margin-bottom: 30px !important;
    }
    
    .desktop-modal-content img {
        width: 250px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .ui-page {
        position: absolute !important;
        right: 8% !important;
        left: auto !important;
        top: 5vh !important;
        transform: none !important;
        width: 390px !important;
        max-width: 390px !important;
        height: 90vh !important;
        min-height: 90vh !important;
        border-radius: 40px !important;
        box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 14px #111, inset 0 0 0 4px #000 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        z-index: 2;
    }

    .ui-header-fixed, .ui-footer-fixed {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        z-index: 100 !important;
        flex: none !important;
    }
    
    .ui-content {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        height: 100% !important;
    }
    
    /* Elegant Scrollbar for the simulator */
    .ui-content::-webkit-scrollbar {
        width: 6px;
    }
    .ui-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 10px;
    }
}
