*,*::before,*::after{box-sizing:border-box}
html{min-width:320px;overflow-x:hidden;-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
    margin:0;
    min-width:320px;
    overflow-x:hidden;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    background-color: #f1f5f9; 
    color: #0f172a;
}
img,svg,video{display:block;max-width:100%}
[hidden]{display:none!important}

/* Enhanced Glassmorphism Topbar */
.bh-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999;
    /* More transparent base with high blur and saturation for a premium glass effect */
    background-color: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(24px) saturate(150%); 
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(15, 52, 77, 0.06); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    transition: all 0.3s ease;
    gap: 16px;
}

/* Brand Styling */
.bh-topbar-brandline {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}
.bh-topbar-brandline .bh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease;
}
.bh-topbar-brandline .bh-brand:hover {
    transform: scale(1.02);
}
.bh-topbar-brandline .bh-brand span {
    display: flex;
    flex-direction: column;
}
.bh-topbar-brandline .bh-brand strong {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.bh-topbar-brandline .bh-brand small {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Logo Neumorphic Frame */
.bh-brand-mark {
    background: rgba(241, 245, 249, 0.8) !important;
    border-radius: 50%; /* Forces a perfect circle */
    padding: 6px;
    box-shadow: 3px 3px 6px rgba(203, 213, 225, 0.6), -3px -3px 6px rgba(255, 255, 255, 0.8) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0; /* Removes the 60px gap */
    width: 44px; /* Fixed width prevents squishing */
    height: 44px; /* Fixed height maintains the circle */
    flex-shrink: 0;
}
.bh-brand-mark img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* Keeps the logo proportional inside the circle */
}

/* Pushes the brand line to the right so the absolute toggle button doesn't cover the logo */
.bh-topbar-brandline.has-toggle {
    margin-left: 56px; 
}

/* Navigation Links */
.bh-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    gap: 12px;
    flex-wrap: nowrap; 
    flex: 1;
}
.bh-nav a, .bh-nav button {
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap; 
}
.bh-nav a:not(.bh-neuo-btn):hover {
    background: rgba(226, 232, 240, 0.7);
    color: #0f172a;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
}

/* Neumorphic Header Buttons */
.bh-nav .bh-neuo-btn {
    background: rgba(241, 245, 249, 0.9);
    color: #475569;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 10px rgba(203, 213, 225, 0.6), -4px -4px 10px rgba(255, 255, 255, 0.8);
    cursor: pointer;
}
.bh-nav .bh-neuo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 12px rgba(203, 213, 225, 0.7), -6px -6px 12px rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.bh-nav .bh-neuo-btn-dark {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}
.bh-nav .bh-neuo-btn-dark:hover {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.bh-nav .bh-neuo-btn-danger {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.bh-nav .bh-neuo-btn-danger:hover {
    background: #dc2626;
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Dynamic Scaling for Intermediate Screens */
@media (max-width: 1200px) {
    .bh-nav {
        gap: 6px;
    }
    .bh-nav a, .bh-nav button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .bh-nav .bh-neuo-btn {
        padding: 8px 14px;
    }
    .bh-topbar-brandline .bh-brand strong {
        font-size: 1.1rem;
    }
}

/* Professional Responsive Handling for Mobile */
@media (max-width: 991px) {
    .bh-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }
    .bh-topbar-brandline {
        width: 100%;
        margin: 0; 
    }
    
    .bh-topbar-brandline.has-toggle {
        margin-left: 50px; 
    }
    
    .bh-topbar-brandline .bh-brand {
        margin: 0; /* Removes the heavy indent from the screenshot */
    }
    
    .bh-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap; /* Prevents awkward multi-line stacking */
        overflow-x: auto; /* Enables horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        gap: 8px;
        margin: 0;
        padding-bottom: 4px; /* Room for touch scroll */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
    }
    .bh-nav::-webkit-scrollbar {
        display: none; /* Hides scrollbar in Webkit/Chrome/Safari */
    }
    .bh-nav a, .bh-nav button, .bh-nav .bh-neuo-btn {
        flex: 0 0 auto; /* Prevents text from squishing */
    }
}

/* Typography scaling for very small devices */
@media (max-width: 620px) {
    .bh-topbar-brandline .bh-brand strong {
        font-size: 1.1rem;
    }
    .bh-topbar-brandline .bh-brand small {
        font-size: 0.65rem;
    }
    .bh-brand-mark {
        padding: 5px;
        width: 36px; /* Scales down the container proportionally */
        height: 36px;
    }
}