:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #ff0050;
    --accent-hover: #e00045;
    --border-color: #333333;
    --nav-bg: #0a0a0c;
    --header-bg: rgba(0, 0, 0, 0.85);
    --max-width: 480px;
    --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-brand: 'Outfit', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-overflow-style: none !important; /* IE & Edge */
    scrollbar-width: none !important; /* Firefox everywhere */
}

/* Universal scrollbar removal across all WebKit browsers (Chrome, Safari, iOS Safari, Android) */
*::-webkit-scrollbar,
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html, body {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* App shell doesn't scroll entirely, main content scrolls */
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    letter-spacing: -0.01em;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .btn, .nav-label, .chain-btn {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.home-app-logo, .splash-logo {
    font-family: var(--font-brand);
    letter-spacing: 5px;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Visually hidden elements (keeps them in DOM for mobile file inputs) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* App Shell Layout */
#app-shell,
.app-shell-animating-clone {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.app-header {
    height: 60px;
    min-height: 60px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.app-header .logo {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.app-header .header-actions {
    font-size: 1.5rem;
    cursor: pointer;
}

.app-main {
    flex: 1 1 0%;
    min-height: 0; /* CRITICAL FOR FIREFOX & MOBILE: flex children must have min-height 0 to scroll and prevent pushing footer */
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.home-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.home-placeholder h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.home-placeholder p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.phase-status {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.phase-status p {
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.phase-status ul {
    list-style-type: none;
}

.phase-status li {
    margin-bottom: 5px;
    color: #4CAF50;
}

.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    max-height: calc(56px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    flex-grow: 0;
    background-color: var(--nav-bg, #0a0a0c);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--max-width, 480px);
    margin: 0 auto;
    z-index: 999999;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.nav-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.nav-item {
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    flex: 1 1 0%;
    min-width: 0;
    height: 56px;
    padding: 2px 1px;
    box-sizing: border-box;
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.92;
}

.nav-item:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: #ffffff;
    opacity: 1;
}

.nav-item .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    position: relative;
}

.nav-item .icon-box svg {
    display: block;
    color: #ffffff;
    stroke: currentColor;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.nav-item.active .icon-box svg {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.75));
}

/* Bottom Nav User Profile Avatar */
.nav-avatar-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.8px solid rgba(255, 255, 255, 0.85);
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nav-item.active .nav-avatar-circle,
.nav-avatar-circle.active-avatar {
    border-color: #ffffff;
    border-width: 2px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.nav-item .nav-label {
    font-size: 9.5px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.15px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-item.active .nav-label {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Modern Studio / Camera Create Button */
.nav-item.create-btn-item {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.viral-lens-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.18s ease;
}

.viral-lens-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.viral-lens-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 8px rgba(0, 255, 204, 0.6));
}

.viral-lens-btn:active {
    transform: scale(0.9);
}

.nav-item.create-btn-item.active .viral-lens-btn {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(0, 255, 204, 0.85));
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 15px;
    top: 50px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
    font-family: var(--font-family);
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--border-color);
}

.dropdown-menu a.danger {
    color: var(--accent-color);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: #fe2c55;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    border: 1.5px solid #000000;
    line-height: 1.2;
}

.notif-badge:empty {
    display: none !important;
}

/* Button Component */
.btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Make Chain / With You Social Connection Button */
.chain-btn {
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.chain-btn.make-chain {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: #ffffff;
    border: 1px solid #ff5252;
    box-shadow: 0 3px 12px rgba(255, 23, 68, 0.45), 0 0 12px rgba(255, 23, 68, 0.25);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.chain-btn.make-chain:hover {
    background: linear-gradient(135deg, #ff3366 0%, #ff1744 100%);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(255, 23, 68, 0.65);
}

.chain-btn.make-chain:active {
    transform: scale(0.92);
}

.chain-btn.motivated {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.32) 0%, rgba(255, 183, 77, 0.25) 35%, rgba(245, 124, 0, 0.35) 70%, rgba(230, 81, 0, 0.28) 100%);
    background-size: 200% 200%;
    animation: orangeWaveShift 4s ease-in-out infinite alternate;
    color: #ffffff !important;
    border: 1px solid rgba(255, 152, 0, 0.75);
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3), inset 0 0 10px rgba(255, 183, 77, 0.2);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

.chain-btn.motivated:hover {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.42) 0%, rgba(255, 204, 128, 0.35) 35%, rgba(245, 124, 0, 0.48) 70%, rgba(230, 81, 0, 0.38) 100%);
    background-size: 200% 200%;
    border-color: rgba(255, 167, 38, 0.95);
    color: #ffffff !important;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.45), inset 0 0 14px rgba(255, 183, 77, 0.3);
}

.chain-btn.motivated:active {
    transform: scale(0.94);
}

@keyframes orangeWaveShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.chain-btn.with-you {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.chain-btn.with-you:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.03);
}

.chain-btn.with-you:active {
    transform: scale(0.92);
}

.chain-btn.requested {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%) !important;
    color: #ffffff !important;
    border: 1px solid #00e676 !important;
    box-shadow: 0 3px 12px rgba(0, 200, 83, 0.45), 0 0 12px rgba(0, 200, 83, 0.25) !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.chain-btn.requested:hover {
    background: linear-gradient(135deg, #69f0ae 0%, #00e676 100%) !important;
    border-color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(0, 200, 83, 0.65) !important;
}

.chain-btn.pending-btn {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.25) 0%, rgba(213, 0, 0, 0.15) 100%);
    color: #ff1744 !important;
    border: 1px solid rgba(255, 23, 68, 0.5);
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.2);
}

.chain-btn.pending-btn:hover {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.35) 0%, rgba(213, 0, 0, 0.25) 100%);
    border-color: #ff1744;
    color: #ff1744 !important;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.3);
}

.chain-btn.pending-btn:active {
    transform: scale(0.92);
}

.chain-btn.in-queue {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 202, 40, 0.15) 100%);
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
}

.chain-btn.in-queue:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 202, 40, 0.25) 100%);
    border-color: #ffc107;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.chain-btn.in-queue:active {
    transform: scale(0.92);
}

.chain-btn.connected-btn {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25) 0%, rgba(32, 201, 151, 0.15) 100%);
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.5);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2);
}

.chain-btn.connected-btn:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.35) 0%, rgba(32, 201, 151, 0.25) 100%);
    border-color: #28a745;
    color: #28a745 !important;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.3);
}

.chain-btn.connected-btn:active {
    transform: scale(0.92);
}

.chain-btn.people-may-know {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.25) 0%, rgba(137, 101, 224, 0.15) 100%);
    color: #c5a4f7 !important;
    border: 1px solid rgba(111, 66, 193, 0.5);
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.2);
}

.chain-btn.people-may-know:hover {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.35) 0%, rgba(137, 101, 224, 0.25) 100%);
    border-color: #c5a4f7;
    color: #c5a4f7 !important;
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(111, 66, 193, 0.3);
}

.chain-btn.people-may-know:active {
    transform: scale(0.92);
}

.chain-btn.accept-btn {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 230, 118, 0.35);
}

.chain-btn.accept-btn:hover {
    background: linear-gradient(135deg, #00b248, #00c853);
    transform: scale(1.04);
    box-shadow: 0 5px 18px rgba(0, 230, 118, 0.5);
}

.chain-btn.accept-btn:active {
    transform: scale(0.92);
}

.chain-btn.decline-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.chain-btn.decline-btn:hover {
    background: rgba(255, 70, 70, 0.2);
    color: #ff5252;
    border-color: rgba(255, 70, 70, 0.5);
    transform: scale(1.04);
}

.chain-btn.decline-btn:active {
    transform: scale(0.92);
}

.chain-btn.remove-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chain-btn.remove-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}

.chain-btn.remove-btn:active {
    transform: scale(0.92);
}

/* Discover User Profile Card */
.discover-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.discover-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.discover-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.discover-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.discover-user-details {
    min-width: 0;
}

.discover-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-user-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-user-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Transparent Chain Connection Popup */
.chain-transparent-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(18, 18, 28, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.chain-transparent-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.chain-transparent-toast .chain-toast-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
}

.chain-transparent-toast .chain-toast-user {
    color: #00ffcc;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.chain-transparent-toast.breaking {
    border-color: rgba(255, 107, 129, 0.35);
}

.chain-transparent-toast.breaking .chain-toast-user.breaking {
    color: #ff6b81;
    text-shadow: 0 0 10px rgba(255, 107, 129, 0.5);
}

/* Community Guidelines Warning Transparent Glass Modal */
.guideline-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guideline-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.guideline-modal-card {
    background: rgba(20, 20, 32, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 75, 75, 0.45);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 45, 85, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.guideline-modal-overlay.show .guideline-modal-card {
    transform: scale(1) translateY(0);
}

.guideline-modal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.guideline-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.2), rgba(255, 120, 0, 0.2));
    border: 1px solid rgba(255, 75, 75, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35);
    animation: pulseWarning 2s infinite alternate ease-in-out;
}

@keyframes pulseWarning {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35); }
    100% { transform: scale(1.08); box-shadow: 0 12px 30px rgba(255, 45, 85, 0.6); }
}

.guideline-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
}

.guideline-modal-body {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin-bottom: 22px;
}

.guideline-modal-body .guideline-highlight {
    color: #ff5277;
    font-weight: 700;
}

.guideline-modal-body .guideline-thanks {
    margin-top: 12px;
    display: block;
    color: #00ffcc;
    font-weight: 700;
    font-size: 0.95rem;
}

.guideline-modal-btn {
    background: linear-gradient(135deg, #ff2d55 0%, #ff5252 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 18px rgba(255, 45, 85, 0.4);
    transition: all 0.25s ease;
}

.guideline-modal-btn:hover {
    background: linear-gradient(135deg, #ff4770 0%, #ff6b6b 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 45, 85, 0.6);
}

.guideline-modal-btn:active {
    transform: scale(0.96);
}

/* --- ANIMATED TRANSPARENT VIDEO DELETING POPUP --- */
.viral-delete-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.viral-delete-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.viral-delete-popup-card {
    position: relative;
    background: rgba(16, 16, 25, 0.85);
    border: 1px solid rgba(255, 0, 80, 0.35);
    border-radius: 22px;
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 86%;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 0, 80, 0.22), inset 0 0 15px rgba(255, 0, 80, 0.08);
    transform: scale(0.85) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.viral-delete-popup-overlay.show .viral-delete-popup-card {
    transform: scale(1) translateY(0);
}

/* Animated Trash / Deletion Icon */
.delete-anim-icon-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.delete-glow-ring {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 80, 0.45) 0%, transparent 70%);
    animation: pulseDeleteRing 1.4s ease-in-out infinite alternate;
}

@keyframes pulseDeleteRing {
    0% { transform: scale(0.85); opacity: 0.45; }
    100% { transform: scale(1.35); opacity: 0.95; }
}

.delete-icon-svg {
    position: relative;
    z-index: 2;
    animation: shakeDeleteIcon 0.85s ease-in-out infinite;
}

@keyframes shakeDeleteIcon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-9deg) scale(1.08); }
    75% { transform: rotate(9deg) scale(1.08); }
}

.delete-spinner-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 74px;
    height: 74px;
    border: 3px solid rgba(255, 0, 80, 0.15);
    border-top: 3px solid #ff0050;
    border-right: 3px solid #00f2fe;
    border-radius: 50%;
    animation: spinDeleteSpinner 0.9s linear infinite;
}

@keyframes spinDeleteSpinner {
    to { transform: rotate(360deg); }
}

.delete-popup-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #fedcd2 40%, #ff0050 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 0, 80, 0.4));
}

.delete-popup-status {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Success / Completed State */
.viral-delete-popup-card.success {
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 255, 204, 0.35);
}

.viral-delete-popup-card.success .delete-popup-title {
    background: linear-gradient(135deg, #ffffff 0%, #00ffcc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(0, 255, 204, 0.6));
}

/* Error State */
.viral-delete-popup-card.error {
    border-color: rgba(255, 50, 50, 0.6);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 50, 50, 0.4);
}

/* Confirmation Modal Buttons */
#viral-confirm-cancel-btn:hover, #viral-confirm-cancel-btn:active {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#viral-confirm-delete-btn:hover, #viral-confirm-delete-btn:active {
    background: linear-gradient(135deg, #ff1a66 0%, #e00045 100%) !important;
    box-shadow: 0 6px 22px rgba(255, 0, 80, 0.65) !important;
    transform: scale(1.02);
}

/* Global Creator & Copyright (Positioned cleanly above mobile OS navigation/gesture bars) */
.viral-global-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    margin-top: clamp(18px, 3.5vh, 32px) !important;
    margin-bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    clear: both;
    position: relative;
    z-index: 5;
}

.viral-global-copyright .copyright-brand {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.86rem, 2.8vw, 0.98rem);
    font-weight: 800;
    letter-spacing: 0.9px;
    line-height: 1.3;
    display: inline-block;
    color: #ffffff;
    background: linear-gradient(125deg, #ff0050 0%, #00f2fe 25%, #a855f7 50%, #ff2b54 75%, #00f2fe 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: suryaColorShift 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45)) drop-shadow(0 0 16px rgba(255, 0, 80, 0.35));
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45)) drop-shadow(0 0 16px rgba(255, 0, 80, 0.35));
}

@keyframes suryaColorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.viral-global-copyright .copyright-rights {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.66rem, 2.2vw, 0.74rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
    display: block;
    color: rgba(255, 255, 255, 0.45);
    text-shadow: none;
}

/* ============================================================
   Inline PWA Installation Box (Welcome Back / Auth Page)
   ============================================================ */
.auth-pwa-install-box {
    margin-top: 22px;
    margin-bottom: 10px;
    width: 100%;
    background: linear-gradient(135deg, rgba(25, 25, 38, 0.85) 0%, rgba(14, 14, 22, 0.92) 100%);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 18px;
    padding: 16px 18px;
    box-sizing: border-box;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-pwa-install-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0050, #00f2fe, #a855f7);
}

html.app-installed .auth-pwa-install-box,
body.app-installed .auth-pwa-install-box,
html.app-installed #virol-pwa-banner,
body.app-installed #virol-pwa-banner,
html.app-installed .virol-pwa-banner,
body.app-installed .virol-pwa-banner {
    display: none !important;
}

@media all and (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen), (display-mode: window-controls-overlay) {
    .auth-pwa-install-box,
    #virol-pwa-banner,
    .virol-pwa-banner {
        display: none !important;
    }
}

.auth-pwa-install-box.hidden {
    display: none !important;
}

.pwa-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pwa-box-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pwa-box-brand .pwa-brand-sparkle {
    -webkit-text-fill-color: initial;
    font-size: 1rem;
    filter: drop-shadow(0 0 6px #00f2fe);
}

.pwa-box-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.pwa-box-dismiss:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.pwa-box-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.pwa-box-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-box-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pwa-icon-under-text {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pwa-under-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: 0.4px;
}

.pwa-under-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: #00ffcc;
    line-height: 1.15;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pwa-box-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-box-info {
    flex: 1;
    min-width: 0;
}

.pwa-box-title {
    margin: 0 0 3px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.pwa-box-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}

.pwa-box-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pwa-btn-box-install {
    flex: 1;
    background: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
    border: none;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 0, 80, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.4px;
}

.pwa-btn-box-install:active {
    transform: scale(0.96);
}

.pwa-btn-box-later {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.pwa-btn-box-later:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   PWA Glassmorphic Install Banner (Bottom Floating Sheet)
   ============================================================ */
.virol-pwa-banner {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(40px) scale(0.92);
    width: 92%;
    max-width: 440px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
}

@media (max-width: 480px) {
    .virol-pwa-banner {
        bottom: 105px;
    }
}

.virol-pwa-banner.banner-visible {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

.pwa-banner-card {
    position: relative;
    background: rgba(14, 16, 26, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1.5px solid rgba(0, 255, 204, 0.45);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 204, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-banner-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.pwa-banner-close:hover {
    color: #ffffff;
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
}

.pwa-icon-box {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.2), rgba(0, 242, 254, 0.2));
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.pwa-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.pwa-icon-sparkle {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.9rem;
    animation: sparkleSpin 3s linear infinite;
}

.pwa-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.pwa-banner-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pwa-btn-install {
    flex: 1;
    background: linear-gradient(135deg, #00ffcc 0%, #0099ff 100%);
    border: none;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pwa-btn-install:active {
    transform: scale(0.96);
}

.pwa-btn-later {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.pwa-btn-later:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Animated Installation Theater Overlay
   ============================================================ */
.virol-pwa-theater {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.virol-pwa-theater.theater-active {
    opacity: 1;
    pointer-events: auto;
}

.theater-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 15, 0.88);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
}

.theater-modal-card {
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(35, 40, 65, 0.95), rgba(12, 14, 25, 0.98));
    border: 1.5px solid rgba(0, 255, 204, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 255, 204, 0.25);
    border-radius: 28px;
    padding: 35px 24px 28px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: theaterZoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes theaterZoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 3D Animated Icon Stage */
.theater-icon-stage {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theater-radar-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 204, 0.5);
    animation: theaterSpin 8s linear infinite;
}

.theater-radar-pulse {
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.2) 0%, transparent 70%);
    animation: radarPulseAnim 2s infinite ease-out;
}

@keyframes theaterSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes radarPulseAnim {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.theater-icon-frame {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #000000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 204, 0.4);
    z-index: 2;
    animation: iconFloatAnim 2.5s infinite ease-in-out;
}

@keyframes iconFloatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.theater-app-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.theater-icon-subtext {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    z-index: 3;
}

.theater-icon-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.theater-icon-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00ffcc;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.theater-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.theater-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
    margin-bottom: 18px;
}

/* Animated Progress Bar */
.theater-progress-wrapper {
    width: 100%;
    margin-bottom: 18px;
}

.theater-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.theater-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0050, #00f2fe, #00ffcc);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px #00ffcc;
}

.theater-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--text-muted, #888);
}

#theater-percentage-val {
    font-weight: 800;
    color: #00ffcc;
}

/* Feature Checklist */
.theater-checklist {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.theater-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
}

.theater-check-item.checked {
    background: rgba(0, 255, 204, 0.08);
    border-color: rgba(0, 255, 204, 0.35);
    color: #ffffff;
}

.theater-check-item .check-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* iOS Safari Guide */
.ios-install-guide {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    text-align: center;
}

.ios-guide-arrow {
    font-size: 1.2rem;
    margin-bottom: 4px;
    animation: bounceUpDown 1.2s infinite;
}

@keyframes bounceUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.ios-guide-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.ios-share-glyph {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.theater-done-wrap {
    width: 100%;
}

.theater-done-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ffcc 0%, #0099ff 100%);
    border: none;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.theater-done-btn:active {
    transform: scale(0.97);
}

/* ============================================================
   Transparent App Update Box (Floating Glassmorphic Modal)
   ============================================================ */
.virol-pwa-update-box {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.92);
    width: 92%;
    max-width: 440px;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.virol-pwa-update-box.update-box-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.pwa-update-card {
    position: relative;
    background: rgba(14, 18, 30, 0.85);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1.5px solid rgba(0, 255, 204, 0.55);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 255, 204, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: updatePulseGlow 3s infinite alternate;
}

@keyframes updatePulseGlow {
    0% { border-color: rgba(0, 255, 204, 0.4); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 255, 204, 0.2); }
    100% { border-color: rgba(0, 255, 204, 0.8); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 255, 204, 0.45); }
}

.pwa-update-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.pwa-update-close:hover {
    color: #ffffff;
}

.pwa-update-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
}

.pwa-update-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 153, 255, 0.2));
    border: 1.5px solid rgba(0, 255, 204, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.25);
}

.update-icon-pulse {
    animation: updateRocketShake 2s infinite ease-in-out;
}

@keyframes updateRocketShake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-8deg); }
}

.pwa-update-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #00ffcc;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.pwa-update-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.pwa-update-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pwa-btn-update-now {
    flex: 1;
    background: linear-gradient(135deg, #00ffcc 0%, #0099ff 100%);
    border: none;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pwa-btn-update-now:active {
    transform: scale(0.96);
}

.pwa-btn-update-later {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.pwa-btn-update-later:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pwa-success-card {
    background: rgba(10, 20, 32, 0.88) !important;
    border: 1.5px solid rgba(0, 255, 204, 0.65) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 255, 204, 0.35) !important;
}

.pwa-success-icon-box {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.3), rgba(0, 242, 254, 0.25)) !important;
    border-color: rgba(0, 255, 204, 0.7) !important;
}

.pwa-btn-success-ok {
    background: linear-gradient(135deg, #00ffcc 0%, #00f2fe 50%, #7928ca 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
}

/* Completely suppress all Install and Update popups across all devices */
.auth-pwa-install-box,
.virol-pwa-banner,
.virol-pwa-update-box,
.virol-pwa-theater {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   VIROL NOT INTERESTED TRANSPARENT POPUP BOX
   ========================================================================== */
.virol-not-interested-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    padding: 20px;
}

.virol-not-interested-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.virol-not-interested-box {
    position: relative;
    background: rgba(18, 18, 26, 0.72);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 71, 87, 0.18);
    border-radius: 26px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    color: #ffffff;
    transform: scale(0.88) translateY(12px);
    transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.virol-not-interested-backdrop.show .virol-not-interested-box {
    transform: scale(1) translateY(0);
}

.virol-not-interested-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(255, 71, 87, 0.22);
}

.virol-not-interested-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
    margin-bottom: 8px;
}

.virol-not-interested-user {
    display: inline-block;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ff6b81;
    background: rgba(255, 107, 129, 0.12);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 129, 0.25);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.virol-not-interested-msg {
    font-size: 0.94rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    margin: 0 0 22px;
}

.virol-not-interested-actions {
    display: flex;
    gap: 10px;
}

.virol-not-interested-ok-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(255, 107, 129, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
    transition: opacity 0.2s, transform 0.15s;
}

.virol-not-interested-ok-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Repost Badges & Pills */
.profile-video-repost-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 245, 212, 0.45);
    color: #00f5d4;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insta-card-repost-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 2px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00f5d4;
    letter-spacing: 0.1px;
}

.insta-card-repost-bar.hidden {
    display: none !important;
}

.insta-card-repost-bar svg {
    color: #00f5d4;
    flex-shrink: 0;
}

/* Smooth Scroll Snapping for Feed */
.app-main {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.feed-item {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Prevent context menu and touch callouts on media */
.feed-video, .feed-image, .feed-item video, .feed-item img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Discover Reels Modal & Staggered Non-Laggy Grid */
#discover-reels-floating-btn {
    position: fixed;
    bottom: 74px;
    right: 18px;
    z-index: 99998;
    background: linear-gradient(135deg, #ff0050, #ff512f, #f09819);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(255, 0, 80, 0.45), 0 2px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    animation: pulseReelsFab 2.8s infinite;
}

#discover-reels-floating-btn:active {
    transform: scale(0.92);
}

@keyframes pulseReelsFab {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 0, 80, 0.45), 0 0 0 0 rgba(255, 0, 80, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(255, 81, 47, 0.6), 0 0 0 8px rgba(255, 81, 47, 0); }
}

.discover-reels-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.discover-reels-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.discover-reels-panel {
    background: #0d0c13;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.9);
    will-change: transform;
}

.discover-reels-modal.open .discover-reels-panel {
    transform: translateY(0);
}

.discover-reels-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.discover-reels-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s;
}

.discover-reels-close-btn:active {
    transform: scale(0.92);
}

.discover-reels-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
}

.discover-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.discover-reel-card {
    position: relative;
    aspect-ratio: 9/16;
    background: radial-gradient(circle at center, #1e1b2e 0%, #0d0c13 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(0); /* Hardware accelerated */
    will-change: opacity, transform;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-reel-card:active {
    transform: scale(0.97);
}

.discover-reel-card.loaded {
    opacity: 1;
}

.discover-reel-card img.discover-reel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: filter 0.2s;
}

.discover-reel-card video.discover-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.discover-reel-card img.discover-reel-thumb.is-fallback-logo {
    object-fit: contain;
    width: 60%;
    height: 60%;
    margin: auto;
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(255, 0, 80, 0.25));
}

.discover-reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6px;
    pointer-events: none;
}

.discover-reel-user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.discover-reel-user img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.discover-reel-username {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.discover-reel-likes,
.discover-reel-views {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.discover-reel-views svg {
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
