:root {
    --vh-bg-dark: #07090e;
    --vh-card-bg: rgba(15, 19, 32, 0.72);
    --vh-border-color: rgba(255, 255, 255, 0.08);
    --vh-glow-purple: rgba(139, 92, 246, 0.28);
    --vh-glow-cyan: rgba(6, 182, 212, 0.22);
    --vh-glow-pink: rgba(236, 72, 153, 0.2);
    --vh-primary-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --vh-primary-grad-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--vh-bg-dark);
    color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Floating Orbs */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-1 {
    position: absolute;
    top: -15%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--vh-glow-purple) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(90px);
    animation: floatGlow1 16s infinite alternate ease-in-out;
}

.bg-glow-2 {
    position: absolute;
    bottom: -10%;
    right: 15%;
    width: 50vw;
    height: 50vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, var(--vh-glow-cyan) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
    animation: floatGlow2 20s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
    position: absolute;
    top: 30%;
    left: -10%;
    width: 35vw;
    height: 35vw;
    max-width: 450px;
    max-height: 450px;
    background: radial-gradient(circle, var(--vh-glow-pink) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(85px);
    animation: floatGlow1 12s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 35px) scale(1.1);
    }
}

@keyframes floatGlow2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, -30px) scale(1.15);
    }
}

/* Navigation Bar */
.glass-navbar {
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vh-border-color);
    padding: 0.9rem 0;
}

.brand-font {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-size: 1.3rem;
}

.brand-color {
    background: var(--vh-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.videohub-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .videohub-icon {
    transform: scale(1.08) rotate(-4deg);
}

.nav-link-custom {
    color: #9ca3af !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-custom:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 17px;
    height: 17px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-link-custom:hover .nav-icon {
    opacity: 1;
    transform: translateY(-1px);
}

/* Modern Glassmorphism Center Card */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.glass-card {
    background: var(--vh-card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--vh-border-color);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    max-width: 480px;
    width: 100%;
    padding: 2.25rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Input & Interactive Components */
.form-label-custom {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.form-control-custom {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-custom:focus {
    background: rgba(10, 14, 26, 0.85);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
    color: #ffffff;
}

.form-control-custom:focus+.input-icon {
    color: #a78bfa;
}

.form-control-custom::placeholder {
    color: #64748b;
}

/* Join Button */
.btn-gradient {
    background: var(--vh-primary-grad);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
}

.btn-gradient:hover {
    background: var(--vh-primary-grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    color: #ffffff;
}

.btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Share Link Section */
.share-card {
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.badge-live {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
}

.share-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.65rem 1rem;
    gap: 0.75rem;
}

.share-link-font {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-link-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.copy-link-btn:active {
    transform: scale(0.95);
}

.copy-link-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Tooltip toast notification */
.toast-copy {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 100;
}

.toast-copy.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}



@media (max-width: 575.98px) {
    .glass-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .room-icon-box {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .form-control-custom {
        font-size: 16px;
        /* Prevents auto-zoom on iOS Safari */
    }

    .navbar-collapse {
        background: rgba(11, 15, 25, 0.95);
        border-radius: 12px;
        padding: 12px;
        margin-top: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}