/* * SecretHeat Base Styles 
 * Mobile-first, Dark Theme, Native App Feel
 */
:root {
    --bg: #0c0c0e;
    --card: #18181b;
    --text: #f4f4f5;
    --text-dim: #a1a1aa;
    --primary: oklch(0.55 0.2 300); /* Vibrant purple */
    --primary-grad: linear-gradient(135deg, oklch(0.55 0.2 300), oklch(0.45 0.2 260));
    --danger: oklch(0.6 0.2 20);
    --success: oklch(0.6 0.15 140);
    --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* Native App Container */
.app-container {
    width: 100%;
    max-width: 480px; /* Limits width on desktop to look like mobile app */
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* UI Elements */
.header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-grad); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Form Inputs */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px 44px;
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus { border-color: var(--primary); }
.input-group .icon-left { position: absolute; left: 16px; top: 16px; color: var(--text-dim); }
.input-group .icon-right { position: absolute; right: 16px; top: 16px; color: var(--text-dim); cursor: pointer; }

/* Toast Notifications */
#toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#toast.show { bottom: 24px; }
/* Premium Bottom Navigation */
    .bottom-bar {
        position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 100%; max-width: 480px; height: 70px;
        background: rgba(18, 18, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-around; align-items: center;
        padding-bottom: env(safe-area-inset-bottom); z-index: 1000;
    }

    .nav-btn {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: var(--text-dim); font-size: 10px; font-weight: 500; text-decoration: none;
        width: 60px; transition: color 0.2s;
    }
    .nav-btn.active { color: #fff; }
    .nav-btn.active i { color: var(--primary); }

    .nav-fab-wrapper { position: relative; top: -20px; }
    .nav-fab {
        width: 56px; height: 56px; border-radius: 50%;
        background: var(--primary-grad); border: 4px solid var(--bg);
        display: flex; justify-content: center; align-items: center; color: white;
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); transition: transform 0.2s;
    }
    .nav-fab:active { transform: scale(0.92); }

    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
     /* =========================================================
       PREMIUM HOME FEED STYLES (Overrides global for perfect UI)
       ========================================================= */
    .app-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px 20px 8px 20px;
        position: sticky; top: 0; z-index: 50;
        background: rgba(12, 12, 14, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    
    .brand-logo {
        font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
        background: var(--primary-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        display: flex; align-items: center; gap: 6px;
    }

    .header-actions { display: flex; align-items: center; gap: 16px; }
    
    .coin-pill {
        display: flex; align-items: center; gap: 6px;
        background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6px 12px; border-radius: 20px; cursor: pointer;
        font-size: 14px; font-weight: 600; color: #fbbf24;
    }

    /* Swipeable Categories */
    .categories-wrapper {
        display: flex; gap: 12px; padding: 12px 20px;
        overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
    }
    .categories-wrapper::-webkit-scrollbar { display: none; }
    
    .cat-chip {
        padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
        color: var(--text-dim); background: var(--card); border: 1px solid transparent;
        white-space: nowrap; cursor: pointer; transition: all 0.2s;
    }
    .cat-chip.active { color: #fff; background: rgba(255,255,255,0.1); border-color: var(--border); }

    /* Stream Grid */
    .grid-container {
        display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
        padding: 16px 16px 120px 16px; /* Bottom padding prevents hiding behind nav */
    }

    .stream-card {
        position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4;
        background: var(--card); cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .stream-bg { width: 100%; height: 100%; object-fit: cover; }
    
    .stream-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.8) 100%);
        display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
    }

    .card-top { display: flex; justify-content: space-between; align-items: flex-start; }
    
    .badge-live {
        background: var(--danger); color: white; font-size: 10px; font-weight: 800;
        padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px;
        animation: pulse 2s infinite; display: flex; align-items: center; gap: 4px;
    }

    .badge-viewers {
        background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: white;
        font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
        display: flex; align-items: center; gap: 4px;
    }

    .card-bottom { display: flex; flex-direction: column; gap: 4px; }
    .host-info { display: flex; align-items: center; gap: 6px; }
    
    .host-avatar {
        width: 20px; height: 20px; border-radius: 50%;
        background: var(--primary-grad); display: flex; align-items: center; justify-content: center;
        font-size: 10px; font-weight: bold; color: #fff;
    }

    .host-name { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
    .stream-title { font-size: 11px; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Premium Bottom Navigation */
    .bottom-bar {
        position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 100%; max-width: 480px; height: 70px;
        background: rgba(18, 18, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-around; align-items: center;
        padding-bottom: env(safe-area-inset-bottom); z-index: 1000;
    }

    .nav-btn {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: var(--text-dim); font-size: 10px; font-weight: 500; text-decoration: none;
        width: 60px; transition: color 0.2s;
    }
    .nav-btn.active { color: #fff; }
    .nav-btn.active i { color: var(--primary); }

    .nav-fab-wrapper { position: relative; top: -20px; }
    .nav-fab {
        width: 56px; height: 56px; border-radius: 50%;
        background: var(--primary-grad); border: 4px solid var(--bg);
        display: flex; justify-content: center; align-items: center; color: white;
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); transition: transform 0.2s;
    }
    .nav-fab:active { transform: scale(0.92); }

    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }