@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #c2151c;
    --primary-rgb: 194, 21, 28;
    --primary-hover: #a11218;
    
    /* Dark Theme (Default) */
    --bg-main: #0a0a0b;
    --bg-card: #121214;
    --bg-hover: #1a1a1d;
    --bg-glass: rgba(10, 10, 11, 0.75);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    --border: rgba(255, 255, 255, 0.04);
    --border-bright: rgba(255, 255, 255, 0.08);
    --shadow-main: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.03);
    --text-inverse: #000000;
    --bg-inverse: #ffffff;
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-focus-bg: rgba(0, 0, 0, 0.6);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --border-inverse: rgba(0, 0, 0, 0.1);
}

[data-theme='light'] {
    --bg-main: #fcfcfd;
    --bg-card: #ffffff;
    --bg-hover: #f5f7fa;
    --bg-glass: rgba(252, 252, 253, 0.85);
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border: rgba(0, 0, 0, 0.04);
    --border-bright: rgba(0, 0, 0, 0.08);
    --shadow-main: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(0, 0, 0, 0.05);
    --text-inverse: #ffffff;
    --bg-inverse: #000000;
    --input-bg: rgba(255, 255, 255, 0.5);
    --input-focus-bg: rgba(255, 255, 255, 0.8);
    --overlay-bg: rgba(255, 255, 255, 0.8);
    --border-inverse: rgba(255, 255, 255, 0.2);
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    --radius-sm: 18px;
    --radius-md: 26px;
    --radius-lg: 40px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a {
    text-decoration: none !important;
}

button {
    text-decoration: none !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Premium Ultra-Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border), rgba(var(--primary-rgb), 0.3));
    border-radius: 10px;
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Classes */
.ub-container {
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 4rem;
}

.ub-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.ub-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.ub-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.ub-reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ub-reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.ub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* V5000 HEADER - Simple Sticky */
.ub-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    align-items: center;
}

.ub-header.scrolled {
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Orbital toggle - hidden (feature disabled) */
.ub-orbital-toggle {
    display: none !important;
}



.ub-nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.ub-logo img {
    height: 50px;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

.ub-header.scrolled .ub-logo img {
    height: 40px;
}

.ub-main-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    height: 100%;
    margin-left: 3rem;
}

.ub-nav-item {
    position: relative;
    height: auto;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.ub-nav-item:hover {
    color: var(--text-main);
}

.ub-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.ub-nav-item:hover::after {
    width: 100%;
}

/* Mega Menu Engine V5000 Elite */
.ub-mega-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background: rgb(8, 8, 10);
    backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    transform: translateY(10px);
}

.ub-mega-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}


.ub-nav-item:hover > .ub-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ub-mobile-menu-btn {
    display: none;
}

.ub-mobile-close {
    display: none;
}

.show-mobile {
    display: none !important;
}
/* Ultimate Popover High-End Transition */
@keyframes popoverSlide {
    0% { opacity: 0; transform: scale(0.9) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.ub-lang-item-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--text-dim) !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
}

.ub-lang-item-grid:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-main) !important;
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.ub-lang-item-grid.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), 0.3);
}

.ub-nav-item i {
    transition: 0.3s;
    margin-right: 0.75rem;
}

.ub-nav-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.ub-dash-sidebar { transition: width 0.3s; }

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ub-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 4rem;
}

.ub-mega-col h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ub-mega-col h4 i {
    color: var(--primary);
}

.ub-mega-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.ub-mega-links a:hover {
    color: var(--text-main);
    background: var(--glass-bg);
    transform: translateX(5px);
}

.ub-mega-links a i {
    color: var(--primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.ub-mega-links a:hover i {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* Action Center */
.ub-search-trigger {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.ub-search-trigger:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ub-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.ub-notif-trigger {
    width: 45px;
    height: 45px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.ub-notif-trigger:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ub-cart-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
    border: none;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.ub-cart-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-hover);
}

/* Cart Popover Corporate - Non-Intrusive */
.ub-cart-popover {
    position: absolute;
    top: calc(100% + 1.5rem);
    right: 0;
    width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    animation: popoverSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

/* User Dropdown Corporate */
.ub-user-dropdown {
    position: relative;
}

.ub-user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    animation: popoverSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .ub-user-dropdown:hover .ub-user-menu { display: flex; } */
.ub-user-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.ub-user-menu-item {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
}

.ub-user-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-main);
}

.ub-user-menu-item i {
    width: 20px;
    text-align: center;
}

/* Initials Avatar */
.ub-avatar-initial {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.ub-cart-header {
    padding: 2.5rem;
    background: linear-gradient(to right, #111, #080808);
    border-bottom: 1px solid var(--border);
}

.ub-cart-body {
    max-height: 450px;
    overflow-y: auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ub-cart-footer {
    padding: 2.5rem;
    background: #080808;
    border-top: 1px solid var(--border);
}

.ub-cart-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ub-cart-item img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #111;
    padding: 1rem;
}

.ub-cart-item-info {
    flex: 1;
}

.ub-cart-item h5 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.ub-cart-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.ub-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.ub-cart-total span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.ub-cart-total b {
    font-size: 1.75rem;
    color: var(--primary);
}

/* Global Buttons */
.ub-btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    height: 60px;
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.35);
    text-decoration: none;
}

.ub-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.5);
}

.ub-btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    border: 2px solid var(--border-bright);
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    height: 60px;
    text-decoration: none;
}

.ub-btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

/* Mega Footer Engine */
.ub-footer {
    background: var(--bg-main);
    position: relative;
    padding: 10rem 0 0;
    overflow: hidden;
    z-index: 1000;
}

.ub-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.ub-footer-newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: 8rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.ub-footer-newsletter::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
}

.ub-footer-newsletter-text h3 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.ub-footer-newsletter-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ub-footer-form {
    display: flex;
    gap: 1rem;
}

.ub-footer-form input {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    padding: 1.25rem 2rem;
    width: 400px;
    border-radius: 100px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.ub-footer-form input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

.ub-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 8rem;
    border-bottom: 1px solid var(--border);
}

.ub-footer-brand p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 2;
    margin-top: 2rem;
    margin-bottom: 3rem;
    max-width: 400px;
}

.ub-footer-col h4 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.ub-footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.ub-footer-col a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.ub-footer-bottom {
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
}

.ub-footer-bottom-links {
    display: flex;
    gap: 3rem;
}

.ub-footer-bottom-links a:hover {
    color: #fff;
}

/* Dashboard Sidebar v150000 */
.ub-dash-container {
    display: flex;
    min-height: calc(100vh - 110px);
    align-items: stretch;
    position: relative;
    background: #0a0a0a;
}

.ub-dash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 350px;
    background: #050505;
    z-index: 0;
    border-right: 1px solid var(--border);
}

.ub-dash-sidebar {
    position: sticky;
    top: 110px;
    flex: 0 0 350px;
    width: 350px;
    height: calc(100vh - 110px);
    background: linear-gradient(135deg, rgba(8, 8, 10, 0.95) 0%, rgba(5, 5, 8, 0.98) 100%) !important;
    backdrop-filter: blur(50px) saturate(200%);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 20px 0 100px rgba(0,0,0,0.5);
    scrollbar-width: none;
}

.ub-dash-sidebar::-webkit-scrollbar { display: none; }

.ub-dash-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-rgb), 0.3), transparent);
}

.ub-sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ub-sidebar-header {
    margin-bottom: 6rem;
    position: relative;
    padding: 0 0.5rem;
}

.ub-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ub-logo-img {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
    margin-bottom: 0.5rem;
}
    margin-bottom: 0.5rem;
}

.ub-logo-text {
    font-size: 1.2rem;
    font-weight: 1000;
    color: #fff;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.ub-logo-sub {
    font-size: 0.6rem;
    font-weight: 1000;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.ub-nav-section {
    font-size: 0.6rem;
    font-weight: 1000;
    color: var(--primary);
    letter-spacing: 3px;
    margin: 4rem 0.5rem 2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ub-nav-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.2), transparent);
}

.ub-nav-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
}

.ub-nav-link i {
    font-size: 1.25rem;
    width: 25px;
    text-align: center;
    transition: 0.4s;
    opacity: 0.5;
}

.ub-nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.05);
}

.ub-nav-link:hover i {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary);
}

.ub-nav-link.active {
    background: rgba(var(--primary-rgb), 0.05);
    color: #fff;
    border-color: rgba(var(--primary-rgb), 0.15);
}

.ub-nav-link.active i {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.ub-nav-link.active::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

.ub-sidebar-footer {
    margin-top: auto;
    padding-top: 4rem;
}

.ub-user-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.ub-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 3px);
    pointer-events: none;
}

.ub-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(45deg, var(--primary), #ff4d5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 1000;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ub-user-name {
    font-size: 1rem;
    font-weight: 950;
    color: #fff;
    letter-spacing: -0.5px;
}

.ub-user-role {
    font-size: 0.65rem;
    font-weight: 1000;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ub-user-role::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.ub-logout-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    cursor: pointer;
}

.ub-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* Service Selector Mega V1500 */
.ub-service-selector-wrap {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
}

.ub-service-selector {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 1000;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c2151c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='C19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ub-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.ub-service-status { color: #10b981; }

.ub-dash-main {
    flex: 1;
    min-width: 0;
    padding: 6rem 10rem;
    background: transparent;
    position: relative;
    min-height: calc(100vh - 110px);
    z-index: 1;
}

.ub-nav-link-dash {
    padding: 1rem 1.75rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
    text-decoration: none;
}

.ub-nav-link-dash i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    opacity: 0.6;
    transition: 0.3s;
}

.ub-nav-link-dash:hover {
    background: rgba(255,255,255,0.03);
    color: #fff !important;
    transform: translateX(8px);
    border-color: rgba(255,255,255,0.05);
}

.ub-nav-link-dash:hover i {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.ub-nav-link-dash.active {
    background: rgba(var(--primary-rgb), 0.08);
    color: #fff !important;
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
}

.ub-nav-link-dash.active i {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.ub-nav-link-dash.active::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Product Grid Expand */
.ub-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ub-card:hover { 
    border-color: rgba(var(--primary-rgb), 0.3); 
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.15);
    background: rgba(var(--primary-rgb), 0.01);
}

.ub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.8s;
}

.ub-card:hover::before {
    left: 100%;
}

.ub-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.ub-dash-welcome-text {
    line-height: 1.1;
}

.ub-dash-header-stats {
    flex-shrink: 0;
}

.ub-dash-stat-pill {
    min-width: 250px;
}

.ub-dashboard-banner .ub-banner-inner {
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ub-dashboard-banner .ub-banner-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 1200px) {
    .ub-dash-header {
        flex-direction: column;
        gap: 3rem;
    }
    
    .ub-dash-header-stats {
        width: 100%;
    }
    
    .ub-dash-split-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ub-dash-header-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ub-dash-header-stats {
        grid-template-columns: 1fr;
    }
    
    .ub-dash-welcome-text {
        font-size: 2.2rem !important;
    }
    
    .ub-dashboard-banner .ub-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem !important;
        gap: 2rem;
    }
    
    .ub-banner-bg-icon {
        display: none;
    }
    
    .ub-banner-action {
        width: 100%;
    }
    
    .ub-banner-action .ub-btn-primary {
        width: 100% !important;
        padding: 0 2rem !important;
    }
}

.ub-product-card-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ub-product-card-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.ub-product-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.ub-product-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ub-product-card-price span {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

.ub-filter-btn {
    padding: 1.25rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.ub-filter-btn:hover,
.ub-filter-btn.active {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Stats Engine */
.ub-stat-box {
    padding: 5rem;
    background: #080808;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.ub-stat-box:hover {
    background: #0c0c0c;
    border-color: var(--primary);
}

.ub-stat-value {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -4px;
}

.ub-stat-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Forms v150000 */
.ub-input-mega {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.ub-input-mega:focus {
    border-color: var(--primary);
    background: #000;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
}

/* FAQ Accordion */
.ub-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ub-faq-trigger {
    padding: 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition);
}

.ub-faq-trigger:hover {
    background: var(--bg-hover);
}

.ub-faq-content {
    padding: 0 2.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
    line-height: 2;
    font-size: 1.1rem;
}

.ub-faq-item.open .ub-faq-content {
    padding: 0 2.5rem 2.5rem;
    max-height: 500px;
}

.ub-faq-item.open .ub-faq-trigger {
    color: var(--primary);
}

/* Preloader Removed - Corporate Standard */
#ub-preloader {
    display: none !important;
}

/* Badge System Detail */
.ub-rank-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Refinement */
.ub-hero-v15 {
    min-height: 100vh;
    padding-top: 5rem;
    overflow: hidden;
    position: relative;
}

.ub-hero-glow {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(250px);
    opacity: 0.2;
    pointer-events: none;
}

.ub-hero-title {
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -6px;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

.ub-hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* Premium Forms */
.ub-input-mega {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #111;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
}

.ub-input-mega:focus {
    border-color: var(--primary);
    background: #000;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.15);
}

select.ub-input-mega {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='C19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2rem;
    padding-right: 3.5rem;
}

.ub-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

/* Global Form Reset & SweetAlert Dark Theme */
input,
select,
textarea {
    background-color: #111 !important;
    color: #fff !important;
    border: 2px solid var(--border) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
}

.swal2-popup {
    background: #0c0c0c !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title,
.swal2-html-container {
    color: #fff !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 1rem 2rem !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 1rem 2rem !important;
}

@keyframes pulse-notif {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

@keyframes popoverSlide {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.show-mobile {
    display: none !important;
}

@media (max-width: 992px) {
    .show-mobile {
        display: block !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (Corporate V1)
   ========================================= */
.ub-dash-mobile-toggle {
    display: none;
}

.ub-mobile-menu-btn {
    display: none;
    font-size: 1.25rem;
    color: #fff;
    cursor: pointer;
    z-index: 1002;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .ub-container {
        padding: 0 1.5rem;
    }

    /* Typography & Hero */
    .ub-hero-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .ub-hero-subtitle {
        font-size: 1.1rem;
    }

    .ub-blog-title {
        font-size: 3rem !important;
        letter-spacing: -2px !important;
    }

    /* Layout & Grids */
    .ub-grid-dynamic {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .ub-grid-3,
    .ub-grid-4,
    .ub-mega-grid,
    .ub-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Header & Navigation */
    .ub-topbar {
        height: auto;
        padding: 1rem 0;
        text-align: center;
    }

    .ub-topbar .ub-container {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .ub-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: var(--bg-hover);
        border: 1px solid var(--border);
        border-radius: 12px;
        cursor: pointer;
        transition: 0.3s;
    }

    .ub-mobile-menu-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .ub-mobile-menu-btn i {
        font-size: 1.1rem;
    }

    .ub-main-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(12, 12, 12, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--border);
        padding: 4rem 1.5rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1002;
        margin-left: 0;
    }

    .ub-main-nav.active {
        left: 0;
        box-shadow: 50px 0 100px rgba(0, 0, 0, 0.8);
    }

    .ub-main-nav .ub-nav-item {
        height: auto;
        width: 100%;
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .ub-main-nav .ub-nav-item:hover {
        background: rgba(var(--primary-rgb), 0.1);
    }

    .ub-main-nav .ub-nav-item::after {
        display: none;
    }

    .ub-mobile-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: var(--bg-hover);
        border: 1px solid var(--border);
        border-radius: 50%;
        color: #fff;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        cursor: pointer;
    }

    /* Hide mega menu on mobile */
    .ub-mega-menu {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .ub-nav-actions {
        gap: 0.5rem;
    }

    .ub-header .ub-container {
        padding: 0 1rem;
    }

    .ub-logo img {
        height: 35px;
    }

    .ub-avatar-initial {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.7rem !important;
    }

    .ub-cart-btn {
        width: 40px;
        height: 40px;
    }

    .ub-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .ub-dash-main {
        padding: 2.5rem 1.5rem;
    }

    .ub-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .ub-dash-main header {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start !important;
    }

    .ub-nav-actions .ub-user-dropdown span {
        display: none;
    }

    .ub-dash-sidebar {
        padding: 4rem 1.5rem;
    }

    .ub-nav-actions .ub-user-dropdown div[style*="padding"] {
        padding: 0.5rem !important;
    }

    .ub-nav-actions .ub-user-dropdown i {
        margin-left: 0 !important;
    }

    /* Dashboard */
    .ub-dash-container {
        flex-direction: column;
    }

    .ub-dash-sidebar {
        height: auto;
        position: static;
        padding: 3rem 1.5rem;
    }

    .ub-dash-main {
        padding: 3rem 1.5rem;
    }

    .ub-stat-box {
        padding: 3rem;
    }

    /* Footer */
    .ub-footer-newsletter {
        padding: 3rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .ub-footer-form {
        flex-direction: column;
        width: 100%;
    }

    .ub-footer-form input {
        width: 100%;
    }

    .ub-footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .ub-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    header[style*="justify-content: space-between"] {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start !important;
    }

    div[style*="display: grid; grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    div[style*="display: grid; grid-template-columns: 2fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust tables & info blocks */
    .ub-cart-popover {
        width: 100%;
        right: 0;
        left: 0;
        position: fixed;
        top: auto;
        bottom: 0;
        border-radius: 20px 20px 0 0;
    }

    input.ub-input-mega,
    select.ub-input-mega,
    textarea.ub-input-mega {
        font-size: 16px;
    }

    /* Make invoice rows stack on very small screens if necessary */
    /* Make invoice rows stack on very small screens if necessary */
    .ub-cart-item {
        flex-direction: column;
        text-align: center;
    }

    .ub-topbar {
        display: none;
    }

    .ub-dash-mobile-toggle {
        display: flex;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 65px;
        height: 65px;
        background: linear-gradient(135deg, var(--primary), #8a0d12);
        color: #fff;
        border: none;
        border-radius: 20px;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        z-index: 2001;
        box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.5);
        cursor: pointer;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .ub-dash-mobile-toggle:active {
        transform: scale(0.9);
    }

    .ub-dash-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 330px;
        height: 100vh;
        z-index: 2000;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        background: linear-gradient(135deg, #0d0d0f 0%, #050505 100%) !important;
        padding: 5rem 2rem 3rem;
        backdrop-filter: blur(40px) saturate(180%);
        box-shadow: 30px 0 120px rgba(0,0,0,0.9);
        border-right: 1px solid rgba(255,255,255,0.03);
    }

    .ub-dash-sidebar.active {
        left: 0;
    }

    .ub-dash-container {
        flex-direction: column !important;
    }

    .ub-dash-main {
        padding: 4rem 1.5rem 10rem !important; /* Extra bottom padding for toggle room */
    }

    .ub-sidebar-header {
        margin-bottom: 3rem !important;
    }

    .ub-user-cockpit {
        margin-bottom: 2rem !important;
    }
}

/* Ucan Bayi Topbar & Socials */
.ub-top-link {
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 0.72rem;
}

.ub-top-link:hover {
    color: var(--primary);
}

.ub-social-icon {
    color: var(--text-dim);
    transition: 0.3s;
    font-size: 0.9rem;
}

.ub-social-icon.insta:hover {
    color: #f09433;
    filter: drop-shadow(0 0 10px rgba(240, 148, 51, 0.5));
}

.ub-social-icon.discord:hover {
    color: #5865f2;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
}

.ub-social-icon.twitter:hover {
    color: #1da1f2;
    filter: drop-shadow(0 0 10px rgba(29, 161, 242, 0.5));
}

@keyframes popoverSlide {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ub-popover {
    position: absolute;
    top: calc(100% + 1rem);
    background: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    animation: popoverSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Unified Legal Layout */
.ub-info-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    padding: 10rem 0;
}

.ub-info-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.ub-info-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ub-info-nav-item {
    padding: 1.25rem 2rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ub-info-nav-item.active {
    background: var(--bg-card);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}

.ub-info-nav-item:hover:not(.active) {
    border-color: var(--border-bright);
    transform: translateX(8px);
    color: #fff;
}

.ub-info-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6rem;
    line-height: 2.2;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ub-info-content h2,
.ub-info-content h3 {
    color: #fff;
    font-weight: 900;
    margin: 5rem 0 2rem;
    font-family: 'Outfit';
    letter-spacing: -1px;
}

.ub-info-content h2:first-child,
.ub-info-content h3:first-child {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .ub-info-layout {
        grid-template-columns: 1fr;
    }

    .ub-info-sidebar {
        position: static;
        margin-bottom: 4rem;
    }

    .ub-info-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .ub-info-nav-item {
        white-space: nowrap;
    }
}

/* UI Switch Component */
.ub-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ub-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ub-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #222;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.ub-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.ub-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked+.ub-slider:before {
    transform: translateX(20px);
}

/* Corporate Discord Button */
.ub-btn-discord {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 950;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(224, 26, 34, 0.3);
}

.ub-btn-discord:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 26, 34, 0.4);
}

.ub-btn-discord i {
    font-size: 0.85rem;
}

/* Scroll to Top Premium Button */
.ub-scroll-top {
    position: fixed;
    bottom: -100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #8a0d12);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.ub-scroll-top.visible {
    bottom: 40px;
    opacity: 1;
    pointer-events: auto;
}

.ub-scroll-top:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--primary-hover), #6b0a0d);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.6);
}

@media (max-width: 768px) {
    .ub-scroll-top {
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .ub-scroll-top.visible {
        bottom: 100px;
    }

    /* above mobile dashboard toggle */
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS v2
   ============================================ */

/* -- Tablet (max-width: 1200px) -- */
@media (max-width: 1200px) {
    /* Product Detail Page: 2-column → stacked */
    div[style*="grid-template-columns: 1fr 450px"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Index: Why Us 2-col */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 8rem"] {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    /* Index: Discord 2-col */
    div[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    /* References 4-col grid */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Admin integration grid */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* -- Mobile (max-width: 768px) -- */
@media (max-width: 768px) {
    /* Global Type Scaling */
    .ub-hero-title {
        font-size: 2.8rem !important;
        letter-spacing: -2px !important;
    }
    .ub-hero-subtitle {
        font-size: 1rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2.5rem !important;
    }

    /* Buttons */
    .ub-btn-primary, .ub-btn-outline {
        height: 50px !important;
        padding: 0 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Product Detail Page */
    div[style*="grid-template-columns: 1fr 450px"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Product right sticky panel */
    div[style*="position: sticky; top: 120px"] {
        position: static !important;
    }

    /* Product title */
    h1[style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
        letter-spacing: -1.5px !important;
    }

    /* Product price */
    div[style*="font-size: 3.5rem"][style*="font-weight: 1000"] {
        font-size: 2.5rem !important;
    }

    /* Product buy button */
    button[style*="width: 100%; height: 80px"] {
        height: 60px !important;
        font-size: 1.1rem !important;
    }

    /* Product options grid */
    div[style*="display: grid; grid-template-columns: 1fr 1fr"][style*="gap: 2rem"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Hero section */
    .ub-hero-v15 {
        min-height: auto !important;
        padding-top: 3rem !important;
        padding-bottom: 5rem !important;
    }

    /* Hero stat bar */
    div[style*="display: inline-flex"][style*="gap: 4rem"][style*="backdrop-filter"] {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2rem !important;
        padding: 1.5rem 2rem !important;
        justify-content: center !important;
    }
    div[style*="display: inline-flex"][style*="gap: 4rem"] > div[style*="font-size: 3rem"] span:first-child {
        font-size: 2rem !important;
    }
    div[style*="width: 1px; height: 50px"] {
        display: none !important;
    }

    /* Hero button row */
    div[style*="display: flex; gap: 2rem; align-items: center"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    div[style*="display: flex; gap: 2rem; align-items: center"] a {
        justify-content: center !important;
        width: 100% !important;
    }

    /* Shop header */
    h1[style*="font-size: 4.5rem"] {
        font-size: 2.5rem !important;
        letter-spacing: -1.5px !important;
    }

    /* Section titles */
    h2[style*="font-size: 4rem"],
    h2[style*="font-size: 4.5rem"],
    h2[style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }
    h2[style*="font-size: 3rem"] {
        font-size: 1.8rem !important;
    }

    /* Section padding reduction */
    section[style*="padding: 12rem 0"],
    section[style*="padding: 10rem 0"] {
        padding: 5rem 0 !important;
    }

    /* Section spacing for margin-bottom */
    div[style*="margin-bottom: 8rem"] {
        margin-bottom: 4rem !important;
    }
    div[style*="margin-bottom: 7rem"] {
        margin-bottom: 3rem !important;
    }

    /* Hero gradient header padding */
    div[style*="padding: 8rem 0"][style*="border-bottom"] {
        padding: 4rem 0 !important;
    }

    /* Index category + product grids */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
    .ub-grid-dynamic {
        grid-template-columns: 1fr !important;
    }

    /* Product card image height */
    div[style*="height: 280px"][style*="background:"][style*="center/cover"] {
        height: 200px !important;
    }
    div[style*="height: 300px"][style*="center/cover"] {
        height: 200px !important;
    }

    /* Product card padding */
    div[style*="padding: 2.5rem"][style*="flex-grow: 1"] {
        padding: 1.5rem !important;
    }

    /* Product card title */
    h3[style*="font-size: 1.8rem"] {
        font-size: 1.3rem !important;
    }

    /* Product card price */
    span[style*="font-size: 2.25rem"] {
        font-size: 1.75rem !important;
    }

    /* Related products grid */
    .ub-grid-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    /* Discord section icon */
    div[style*="width: 100px; height: 100px"] {
        width: 70px !important;
        height: 70px !important;
        font-size: 2.5rem !important;
        border-radius: 20px !important;
    }
    h2[style*="font-size: 4rem"][style*="margin-bottom: 3rem"] {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Discord widget iframe */
    iframe[style*="height"] {
        height: 400px !important;
    }

    /* CTA section */
    div[style*="display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1"] {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    div[style*="display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1"] > div:last-child {
        display: none !important;
    }
    div[style*="display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1"] .ub-btn-primary,
    div[style*="display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1"] .ub-btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    /* FAQ section */
    .ub-faq-trigger {
        font-size: 1rem !important;
        padding: 1.5rem !important;
    }
    .ub-faq-content {
        font-size: 0.95rem !important;
    }

    /* References grid */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Sponsors bar */
    div[style*="display: flex; justify-content: space-between"][style*="opacity: 0.4"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 2rem !important;
    }

    /* Shop container padding */
    .ub-shop-container {
        padding: 3rem 0 !important;
    }

    /* Admin panel */
    .ub-dash-main {
        padding: 2rem 1rem !important;
    }

    /* Admin header */
    header[style*="margin-bottom: 5rem"] {
        margin-bottom: 2.5rem !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }
    header[style*="margin-bottom: 5rem"] h1 {
        font-size: 2rem !important;
    }

    /* Admin card padding */
    .ub-card {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }

    /* Admin tables */
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Footer padding */
    .ub-footer {
        padding-top: 4rem !important;
    }
    .ub-footer-newsletter {
        padding: 2.5rem 1.5rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
        margin-bottom: 4rem !important;
    }
    .ub-footer-newsletter-text h3 {
        font-size: 1.5rem !important;
    }
    .ub-footer-form {
        flex-direction: column !important;
        width: 100% !important;
    }
    .ub-footer-form input {
        width: 100% !important;
    }
    .ub-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
        padding-bottom: 4rem !important;
    }
    .ub-footer-brand {
        grid-column: 1 / -1 !important;
    }
    .ub-footer-bottom {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
        padding: 2rem 0 !important;
    }
    .ub-footer-bottom-links {
        gap: 1.5rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Info/Legal pages */
    .ub-info-content {
        padding: 2.5rem 1.5rem !important;
    }

    /* Stat boxes */
    .ub-stat-box {
        padding: 2rem !important;
    }
    .ub-stat-value {
        font-size: 3rem !important;
    }

    /* Auth page mobile */
    .auth-form {
        padding: 3rem 1.5rem !important;
    }
    .auth-form h2 {
        font-size: 2rem !important;
    }
    .auth-form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Payment method cards in admin */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(350px"] {
        grid-template-columns: 1fr !important;
    }

    /* Discord stats grid in product/index */
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Product detail feature list margin */
    div[style*="margin-bottom: 3rem; display: grid; gap: 1rem"] {
        margin-bottom: 2rem !important;
    }
}

/* -- Very small devices (max-width: 480px) -- */
@media (max-width: 480px) {
    .ub-container {
        padding: 0 1rem !important;
    }
    .ub-hero-title {
        font-size: 2.2rem !important;
    }
    .ub-grid-4 {
        grid-template-columns: 1fr !important;
    }
    h1[style*="font-size: 4.5rem"],
    h1[style*="font-size: 3.5rem"] {
        font-size: 1.8rem !important;
    }
    h2[style*="font-size: 4rem"],
    h2[style*="font-size: 3.5rem"],
    h2[style*="font-size: 3rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    /* Cart popover full width on small */
    .ub-cart-popover {
        width: calc(100vw - 2rem) !important;
        right: -1rem !important;
    }

    /* Product card adjustments */
    div[style*="height: 280px"][style*="center/cover"],
    div[style*="height: 200px"][style*="center/cover"] {
        height: 160px !important;
    }

    /* Shop breadcrumb */
    div[style*="display: flex; gap: 1rem; align-items: center; justify-content: center"] {
        font-size: 0.75rem !important;
        flex-wrap: wrap !important;
    }

    /* Admin sidebar auto-close tweak */
    .ub-dash-sidebar {
        width: 260px !important;
    }
}
/* --- Premium Shop UI Overhaul --- */
.ub-shop-pill { padding: 0.85rem 1.75rem; border-radius: 100px; background: rgba(255,255,255,0.03); color: #fff; text-decoration: none; font-weight: 800; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 0.5rem; }
.ub-shop-pill.active, .ub-shop-pill:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3); }
.ub-hover-zoom-parent { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.ub-card:hover .ub-hover-zoom-parent { transform: scale(1.1); }

/* --- Ultimate Sync & UX Refinements --- */
.ub-popover { backdrop-filter: blur(40px) saturate(200%); background: rgba(0,0,0,0.85) !important; border: 1px solid rgba(255,255,255,0.08) !important; box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 40px rgba(var(--primary-rgb), 0.1) !important; }
.ub-cart-item { animation: slideInCart 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes slideInCart { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.ub-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.ub-btn-primary i.fa-spin { font-size: 1.1rem; }

/* --- Corporate Excellence Grid & Card Optimization --- */
.ub-card { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.ub-card:hover { border-color: rgba(var(--primary-rgb), 0.4) !important; box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 50px rgba(var(--primary-rgb), 0.15) !important; }
.ub-btn-primary { transition: all 0.3s ease !important; position: relative; overflow: hidden; }
.ub-btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: 0.5s; }
.ub-btn-primary:hover::after { left: 100%; }

/* --- V5000 Hybrid Mobile Strategy --- */
@media (max-width: 991px) {
    /* Ultra-Clean Mobile Top Header */
    .ub-topbar { display: none !important; }
    .ub-header { 
        height: 60px !important; 
        top: 0 !important; 
        background: rgba(10, 10, 12, 0.8) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    .ub-header .ub-nav-actions, 
    .ub-header .ub-mobile-menu-btn,
    .ub-header .ub-main-nav { 
        display: none !important; 
    }
    .ub-header .ub-nav-container {
        justify-content: center !important;
    }
    .ub-logo img {
        height: 35px !important;
    }
    
    /* Layout Adjustments for Bottom Nav */
    .ub-main { padding-bottom: 110px !important; }
    .ub-footer { padding-bottom: 130px !important; }
    .ub-scroll-top.visible { bottom: 110px !important; }

    /* Bottom Nav Styles - Glassmorphic / Premium Floating */
    .ub-mobile-bottom-nav { 
        display: grid !important; 
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        height: 65px;
        background: rgba(10, 10, 12, 0.85);
        backdrop-filter: blur(35px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 25px;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        padding: 0 10px;
        z-index: 100000;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
    }

    .ub-m-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #64748b;
        text-decoration: none !important;
        font-size: 0.6rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        height: 100%;
        border-radius: 18px;
    }

    .ub-m-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
        transition: 0.3s;
    }

    .ub-m-nav-item.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.08);
    }

    .ub-m-nav-item.active i {
        transform: scale(1.1) translateY(-2px);
        filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
    }

    .ub-m-nav-item.primary-glow {
        color: var(--primary);
    }
    
    /* Dashboard Sidebar Mobile Drawer Mode */
    .ub-dash-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -350px !important;
        height: 100vh !important;
        background: rgba(4, 4, 6, 0.98) !important;
        backdrop-filter: blur(40px);
        width: 320px !important;
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
        box-shadow: 20px 0 60px rgba(0,0,0,0.8);
    }
    
    .ub-dash-sidebar.active {
        left: 0 !important;
        transform: translateX(350px);
        visibility: visible;
    }

    .ub-dash-mobile-toggle {
        display: flex !important;
        position: fixed;
        left: 20px;
        bottom: 100px;
        width: 55px;
        height: 55px;
        border-radius: 18px;
        background: var(--primary);
        color: #000;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        z-index: 99990;
        box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
        border: none;
        cursor: pointer;
        transition: 0.3s;
    }

    .ub-dash-mobile-toggle:active {
        transform: scale(0.9);
    }
}

.ub-mobile-bottom-nav { display: none; }

.ub-m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
}

.ub-m-nav-item i {
    font-size: 1.3rem;
    transition: 0.3s;
}

.ub-m-nav-item.active, .ub-m-nav-item:hover {
    color: var(--primary);
}

.ub-m-nav-item.active i, .ub-m-nav-item:hover i {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.4));
}

.ub-m-cart-badge {
    position: absolute;
    top: 6px;
    right: 22%;
    background: var(--primary);
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ub-m-nav-item.primary-glow {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
    border-radius: 15px 15px 0 0;
    color: var(--primary);
}

/* --- FINAL MOBILE UI EXCELLENCE (V5000 ELITE) --- */
@media (max-width: 768px) {
    .ub-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        height: 75px !important;
        background: rgba(15, 15, 17, 0.7) !important;
        backdrop-filter: blur(25px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 24px !important;
        z-index: 99999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
        animation: mobileNavSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .ub-mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        color: var(--text-dim) !important;
        text-decoration: none !important;
        flex: 1 !important;
        transition: 0.3s !important;
    }

    .ub-mobile-nav-item i {
        font-size: 1.35rem !important;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    .ub-mobile-nav-item span {
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
    }

    .ub-mobile-nav-item.active {
        color: var(--primary) !important;
    }

    .ub-mobile-nav-item.active i {
        transform: translateY(-4px) scale(1.15) !important;
        color: var(--primary) !important;
        filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5)) !important;
    }

    /* Spacing for Main Content to avoid overlap */
    .ub-dash-main, 
    main,
    .ub-shop-container,
    .ub-container[style*="padding-top: 8rem"],
    .ub-info-layout {
        padding-bottom: 125px !important;
    }

    /* Floating Toggle for Sidebar Drawer */
    .ub-dash-mobile-toggle {
        display: flex !important;
        position: fixed !important;
        bottom: 110px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        background: var(--primary) !important;
        border-radius: 18px !important;
        z-index: 99998 !important;
        box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4) !important;
        border: none !important;
        color: #fff !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.3rem !important;
        transition: 0.3s !important;
    }
}

@keyframes mobileNavSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 769px) {
    .ub-mobile-nav { display: none !important; }

    /* --- ADMIN STRUCTURAL V2 (PROFESSIONAL SAAS LAYOUT) --- */
    .ub-admin-wrapper {
        display: flex;
        min-height: 100vh;
        background: var(--bg-main);
    }

    .ub-admin-sidebar {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
        background: #080808;
        border-right: 1px solid var(--border);
        overflow-y: auto;
        flex-shrink: 0;
        z-index: 1000;
        scrollbar-width: none;
    }

    .ub-admin-sidebar::-webkit-scrollbar { display: none; }

    .ub-admin-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0; /* Prevents flex children from overflowing */
        background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.05), transparent 70%);
    }

    .ub-admin-topbar {
        height: 80px;
        background: rgba(10, 10, 11, 0.8);
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        padding: 0 3rem;
        position: sticky;
        top: 0;
        z-index: 900;
        justify-content: space-between;
    }

    .ub-admin-main-area {
        padding: 3rem;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .ub-admin-wrapper { flex-direction: column; }
    .ub-admin-sidebar { display: none; } /* Handled by mobile toggle/drawer */
    .ub-admin-topbar {
        padding: 0 1.5rem;
        height: 70px;
    }
    .ub-admin-main-area {
        padding: 2rem 1.5rem;
    }
}

/* --- Point 22: Premium Status Skeletons & Image Polish --- */
.ub-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite linear;
    border-radius: 12px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ub-skeleton-item {
    height: 100px;
    margin-bottom: 1.5rem;
}

/* Image Shimmer & Polish */
.img-shimmer {
    background: linear-gradient(90deg, #121214 25%, #1a1a1d 50%, #121214 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s infinite linear;
}

img {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

.product-image-zoom:hover img {
    transform: scale(1.05);
}
