/* ==========================================================================
   WOKE WOMEN DIGITAL SUITE CENTRAL DESIGN SYSTEM & LAYOUT
   ========================================================================== */

/* Modern CSS Reset & Variable Tokens */
:root {
    /* Color Palette - Custom warm cream logo palette default (Light Theme Default) */
    --bg-main: #faf8f5; /* Warm off-white from logo background */
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-header: rgba(250, 248, 245, 0.9);
    --border-color: rgba(132, 113, 156, 0.15);
    
    --text-primary: #3e2f54; /* Deep purple-grey matching "Woke Women" text in logo */
    --text-secondary: #675480; /* Rich supportive mauve */
    --text-muted: #9383a8;
    
    --primary: #84719c; /* Majesty logo purple hands */
    --primary-hover: #6d5986;
    --primary-glow: rgba(132, 113, 156, 0.2);
    
    --secondary: rgba(197, 163, 116, 0.08); /* Warm gold backing */
    --secondary-hover: rgba(197, 163, 116, 0.16);
    
    --accent: #c5a374; /* Wheat stalk/rays gold */
    --accent-glow: rgba(197, 163, 116, 0.25);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Transitions & Borders */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Branded Slate-Plum Dark Mode Variable Overrides */
.dark-theme {
    --bg-main: #130e1c;
    --bg-card: rgba(29, 23, 38, 0.72);
    --bg-header: rgba(19, 14, 28, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f2eef6;
    --text-secondary: #c4b7d7;
    --text-muted: #9281a7;
    
    --primary: #a391bb; /* Branded Lavender - iris/hands */
    --primary-hover: #8f7ba7;
    --primary-glow: rgba(163, 145, 187, 0.3);
    
    --secondary: rgba(255, 255, 255, 0.05);
    --secondary-hover: rgba(255, 255, 255, 0.1);
    
    --accent: #d9be9b; /* Soft Gold - sun/wheat */
    --accent-glow: rgba(217, 190, 155, 0.25);
}

/* Base Document Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Ambient Glowing Background Elements */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    transition: var(--transition-slow);
}
.orb-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(132, 113, 156, 0.22) 0%, rgba(0,0,0,0) 70%);
}
.orb-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(197, 163, 116, 0.18) 0%, rgba(0,0,0,0) 70%);
}
.orb-3 {
    top: 35%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 131, 168, 0.15) 0%, rgba(0,0,0,0) 70%);
}

/* Glassmorphism Panel Base */
.glass-panel {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

/* Premium Click Ripple Effect Simulation */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}
.ripple:active::after {
    transform: scale(0, 0);
    opacity: .2;
    transition: 0s;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    padding: 3px;
}

.logo-text h1 {
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 800;
}

.logo-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Unified Button Component styles */
.btn {
    padding: 0.7rem 1.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* ==========================================================================
   DASHBOARD LANDING VIEW (CORE CONTAINER)
   ========================================================================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

/* Welcome Banner glassmorphism */
.welcome-section {
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}
.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(163, 145, 187, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.welcome-text {
    flex: 1 1 70%;
}
.welcome-branding-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.welcome-text h2 {
    font-size: 2.1rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.02rem;
}

.welcome-visual-emblem {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wwf-logo-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(32, 26, 42, 0.15);
    animation: floatLogo 4s ease-in-out infinite;
}
.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}



/* Apps Grid List */
.apps-grid-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.section-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

/* Card item */
.app-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.app-card-header {
    padding: 1.8rem 1.8rem 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.app-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(132, 113, 156, 0.1) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}
.app-card:hover .app-card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 0 12px var(--primary-glow);
}

.app-card-badge {
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(132, 113, 156, 0.1);
    color: var(--primary);
    border: 1px solid rgba(132, 113, 156, 0.15);
}

.app-card-body {
    padding: 0 1.8rem 1.8rem 1.8rem;
    flex-grow: 1;
}
.app-card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.app-card-body .app-card-subtitle {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.65rem;
    display: block;
}
.app-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.app-card-footer {
    padding: 1.25rem 1.8rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-card-footer span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.app-card-footer i {
    transition: var(--transition-smooth);
}
.app-card:hover .app-card-footer i {
    transform: translateX(5px);
    color: var(--accent);
}

/* Info footer callout */
.info-footer {
    display: flex;
    padding: 2rem;
    gap: 1.25rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(197, 163, 116, 0.03) 0%, rgba(132, 113, 156, 0.03) 100%);
}
.info-icon {
    font-size: 2.2rem;
    color: var(--accent);
}
.info-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.info-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR SANDBOX ARENA & WORKSPACE
   ========================================================================== */
#simulator-view {
    display: none; /* Inactive by default */
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-main);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    opacity: 0;
    transform: scale(0.98);
    transition: var(--transition-slow);
}
#simulator-view.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Sandbox top controller bar */
.sim-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    height: 65px;
}

.sim-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.vertical-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}
.active-app-meta h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.1;
}
.active-app-meta .badge {
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}

.sim-header-center {
    display: flex;
    align-items: center;
}
.device-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 1; }
}

.sim-header-right {
    display: flex;
    gap: 0.5rem;
}
.sim-header-right .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

/* Simulator Sandbox Arena */
.sim-arena {
    display: flex;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

/* Ambient Backlight Glow */
.sim-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    background-color: var(--primary);
    transition: var(--transition-slow);
}

/* Virtual Device Mockup */
.phone-frame-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2;
    overflow-y: auto;
}

/* Simulated Smartphone Body */
.virtual-device {
    background-color: #000;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

/* Standardized portrait mobile only */
.virtual-device.portrait {
    width: 355px;
    height: 740px;
    border: 11px solid #1c1626; /* Deep brand purple border */
    border-radius: 40px;
    padding: 0;
}

/* Hardware Notch & Speaker */
.device-notch {
    position: absolute;
    background-color: #1c1626;
    z-index: 5;
    transition: var(--transition-slow);
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 18px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.device-speaker {
    position: absolute;
    background-color: #0b0f19;
    border-radius: 5px;
    z-index: 6;
    transition: var(--transition-slow);
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
}

/* Home indicator line */
.device-home-bar {
    position: absolute;
    background-color: var(--text-muted);
    border-radius: 2px;
    z-index: 5;
    transition: var(--transition-slow);
    opacity: 0.4;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
}

/* Inner Simulated Device Screen */
.device-screen-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background-color: #f8fafc;
    position: relative;
    z-index: 3;
}

#simulator-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: white;
}

/* Guided Tips drawer sidebar */
.tips-drawer {
    width: 360px;
    height: 100%;
    border-left: 1px solid var(--border-color);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    z-index: 5;
    transform: translateX(0);
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}
.tips-drawer.collapsed {
    transform: translateX(360px);
    width: 0;
    border-left-color: transparent;
    pointer-events: none;
}

.tips-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tips-drawer-header h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tips-drawer-header h4 i {
    color: var(--warning);
}
.close-tips-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
}

.tips-drawer-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}
.tips-intro-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tips-list-container {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.tip-item {
    display: flex;
    gap: 0.75rem;
}
.tip-number {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tip-content-txt {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.tip-card-footer {
    margin-top: auto;
    padding: 1rem;
    background-color: rgba(132, 113, 156, 0.05);
    border: 1px solid rgba(132, 113, 156, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.5rem;
}
.tip-card-footer i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.tip-card-footer span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* ==========================================
   ADD APP FORM MODAL DIALOG
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 4, 10, 0.75);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: none; /* Inactive by default */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.active {
    display: flex;
}

.modal-container {
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-header h3 i {
    color: var(--primary);
}
.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: rgba(29, 23, 38, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(163, 145, 187, 0.15);
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-group.half {
    width: 50%;
}
.input-tip {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#new-app-color {
    background: transparent;
    border: none;
    width: 44px;
    height: 32px;
    cursor: pointer;
}
.color-picker-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.new-app-tip-field {
    margin-bottom: 0.4rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
    .welcome-section {
        flex-direction: column;
        padding: 2.2rem;
        gap: 1.5rem;
        text-align: center;
    }
    .welcome-branding-badge {
        justify-content: center;
    }
    .welcome-visual-emblem {
        width: 100%;
        margin-top: 0.5rem;
    }
    .tips-drawer {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        background-color: var(--bg-header);
    }
}

@media (max-width: 768px) {
    .header-logo span {
        display: none;
    }
    .welcome-text h2 {
        font-size: 1.6rem;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .hide-mobile {
        display: none !important;
    }
    .sim-header-right .hide-mobile {
        display: none;
    }
    .sim-header-right .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Ultimate Mobile-First Simulator Optimization for actual smartphones */
@media (max-width: 600px) {
    .app-header {
        padding: 0.75rem 1rem;
    }
    .dashboard-container {
        padding: 1rem 0.75rem;
        gap: 1.5rem;
    }
    .welcome-section {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    .wwf-logo-img {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }
    
    /* Simulator Header Mobile Optimization to prevent overlap/collision */
    .sim-header {
        padding: 0.5rem 1rem;
        height: 60px;
    }
    .sim-header-center {
        display: none !important;
    }
    .vertical-divider {
        display: none !important;
    }
    #active-app-category {
        display: none !important;
    }
    #active-app-title {
        font-size: 1rem !important;
        white-space: nowrap;
    }
    .active-app-meta {
        margin-left: 0.25rem;
    }
    
    /* Disable physical simulated frame margins/borders on mobile screen sizes */
    .phone-frame-container {
        padding: 0;
        background-color: var(--bg-main);
    }
    .virtual-device.portrait {
        width: 100%;
        height: 100%;
        border: none !important;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    
    /* Hide simulated device outer notch, speaker, and home line bars */
    .device-notch, .device-speaker, .device-home-bar {
        display: none !important;
    }
    .device-screen-wrapper {
        border-radius: 0;
    }
    
    /* Convert Tips Drawer into a elegant Bottom Sheet on mobile viewports */
    .tips-drawer {
        position: fixed;
        top: auto !important; /* Reset inherited top: 0 from tablet media query */
        bottom: 0;
        right: 0;
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid var(--border-color);
        border-radius: 20px 20px 0 0;
        transform: translateY(0);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    }
    .tips-drawer.collapsed {
        transform: translateY(100vh);
        height: 0;
    }
}
