/* 
   VIRALIX MOBILE PREMIUM (VERSION 2.0 - SCRATCH REBUILD)
   Target: Native-App Feel, Smooth Transitions, Zero Conflict with Desktop.
*/

:root {
    --m-primary: #00f2ea;
    --m-secondary: #7000ff;
    --m-bg: #0a0a12;
    --m-card: rgba(255, 255, 255, 0.05);
    --m-text: #ffffff;
    --m-subtext: #94a3b8;
    --m-safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

/* --- App Shell & Layout --- */
body {
    background-color: var(--m-bg) !important;
    overflow-x: hidden;
}

.app-container, .main-content-single, .hub-wrap {
    padding: 15px 15px 100px !important; /* Extra bottom padding for Bottom Nav */
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Mobile Bottom Navigation (Native App Feel) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    display: grid !important; /* Use grid for exactly 6 items */
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    padding: 10px 5px calc(10px + var(--m-safe-area-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--m-subtext);
    text-decoration: none;
    font-size: 0.55rem; /* Smaller font for 6 items */
    font-weight: 600;
    gap: 4px;
    transition: 0.3s;
    text-align: center;
}

.mobile-nav-item i {
    font-size: 1.2rem; /* Slightly smaller icons */
}

.mobile-nav-item.active {
    color: var(--m-primary);
}

/* --- Chatbot (Concierge) Mobile Fixes --- */
html body #viralix-concierge-system,
html body #concierge-trigger {
    position: fixed !important;
    bottom: 90px !important; /* Above the 6-item nav bar */
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    z-index: 999999 !important;
}

html body #concierge-window {
    position: fixed !important;
    bottom: 100px !important; /* Closer to the trigger */
    left: 10px !important;
    right: 10px !important;
    width: auto !important; /* Full width minus margins */
    height: 70vh !important; /* Use viewport height */
    max-height: 550px !important;
    border-radius: 20px !important;
    z-index: 1000000 !important;
}

/* --- Studio Pages Refinements --- */
.studio-container, .sim-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-bottom: 100px !important;
}

.canvas-wrapper, .sim-content {
    order: -1 !important; /* Preview on top */
    width: 100% !important;
    min-height: auto !important;
}

.studio-controls, .sim-sidebar {
    width: 100% !important;
    padding: 20px !important;
    background: var(--m-card) !important;
    border-radius: 20px !important;
}

/* Enable Header on Mobile */
.app-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.mobile-menu-btn {
    display: flex !important;
}
.main-nav {
    display: none; /* Stay hidden until toggled active */
}
.main-nav.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--m-bg);
    padding: 20px;
}

/* --- Landing Page (index.html) Rebuild --- */
.hero-section {
    padding-top: 60px !important;
}

.mega-headline {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px !important;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    text-align: center;
    font-size: 0.95rem !important;
    line-height: 1.5;
    padding: 0 20px;
    color: var(--m-subtext) !important;
}

.magic-input-container {
    margin-top: 40px;
    padding: 0 10px;
}

.magic-input {
    flex-direction: column !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 28px !important;
    padding: 12px !important;
    gap: 12px;
}

.magic-input i { display: none; }

.magic-input input {
    width: 100% !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 1rem !important;
    text-align: center;
    padding: 12px 0 !important;
}

.magic-input button {
    width: 100% !important;
    background: var(--m-primary) !important;
    color: #000 !important;
    padding: 18px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.3) !important;
}

/* --- Ad Hub (dashboard.html) Rebuild --- */
.hub-hero {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 5px;
}

.hub-hero h1 {
    font-size: 1.8rem !important;
    font-weight: 800;
}

.hub-stats {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 15px !important;
}

.hub-stat-item {
    background: var(--m-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hub-stat-val { font-size: 1.6rem !important; color: var(--m-primary) !important; }
.hub-stat-lbl { font-size: 0.7rem !important; opacity: 0.6; }

/* Ad Account Selector Card */
.meta-row {
    background: var(--m-card);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px;
}

.meta-row .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 14px;
}

/* Post Cards */
.post-grid {
    grid-template-columns: 1fr !important; /* Stack vertically for focus */
    gap: 20px !important;
}

.post-card {
    background: #151520 !important;
    border-radius: 24px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05) !important;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.post-img-wrap {
    height: 380px !important; /* Large beautiful images */
}

.post-info {
    padding: 20px !important;
}

.verdict-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 10;
}

/* Launch Wizard Buttons */
.launch-grid { grid-template-columns: 1fr !important; gap: 15px !important; }

.btn-launch {
    padding: 22px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    border-radius: 22px !important;
}

/* --- Universal Overrides --- */
input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
}

/* Modal Fixes for Mobile */
.modal-content {
    width: 95% !important;
    margin: 10vh auto !important;
    padding: 30px 20px !important;
    border-radius: 30px !important;
}
