html, body.universe-page {
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body.universe-page {
    color: #F8FAFC;
    background:
        radial-gradient(1200px 800px at 50% 45%, rgba(103,46,255,.28) 0%, rgba(28,13,74,.58) 42%, rgba(6,8,24,1) 100%),
        linear-gradient(180deg, #090B1D 0%, #050712 100%);
}

.u-stage { position: fixed; inset: 0; z-index: 1; }
#universeBg, #universe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}
#universeBg { z-index: 0; }
#universe { z-index: 1; cursor: grab; }
#universe:active { cursor: grabbing; }

.nav-float {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px clamp(18px, 3vw, 34px);
    pointer-events: none;
}
.nav-float > * { pointer-events: auto; }

.glass {
    background: rgba(10, 12, 32, 0.48);
    backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid rgba(160, 132, 255, 0.22);
    box-shadow: 0 22px 70px rgba(3, 5, 18, 0.45);
}

.nav-float .brand {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
}
.nav-float .brand .brand-logo-full {
    display: block;
    width: auto;
    height: 62px;
    max-width: min(340px, 52vw);
    object-fit: contain;
    filter: drop-shadow(0 12px 36px rgba(124,58,237,.32));
}
.brand-logo-animated { animation: vm-float 6s ease-in-out infinite, vm-glow 5s ease-in-out infinite; }

.u-search {
    position: relative;
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
}
.u-search input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(160,132,255,.24);
    outline: none;
    border-radius: 999px;
    padding: 0 22px 0 52px;
    font: inherit;
    font-size: 1rem;
    color: #F8FAFC;
    background: rgba(11, 13, 34, .58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.u-search input::placeholder { color: rgba(230, 232, 255, .62); }
.u-search .si {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(230, 232, 255, .72);
}

.u-suggest {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 12, 32, .92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(160,132,255,.2);
    box-shadow: 0 30px 80px rgba(2,4,15,.5);
    display: none;
}
.u-suggest.open { display: block; }
.u-suggest button {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: #F8FAFC;
}
.u-suggest button:hover { background: rgba(124,58,237,.14); }
.u-suggest .s-logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.95);
    padding: 4px;
    flex: 0 0 auto;
}
.u-suggest .s-name { font-weight: 600; color: #F8FAFC; }

.nav-float .actions { display: flex; gap: 10px; align-items: center; }
.nav-float .actions .btn {
    height: 50px;
    padding-inline: 24px;
    box-shadow: 0 18px 44px rgba(109,74,255,.32);
}

.u-side {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    top: 104px;
    z-index: 16;
    width: min(280px, 82vw);
    border-radius: 28px;
    padding: 18px;
}
.u-side-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}
.u-legend { display: grid; gap: 10px; }
.u-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(244, 247, 255, .82);
}
.u-legend-row .l {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.u-legend-row .dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    box-shadow: 0 0 18px currentColor;
}
.u-legend-row .n {
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
}

.u-controls {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(20px, 3vw, 30px);
    z-index: 16;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.u-btn {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(160,132,255,.22);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #F8FAFC;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.u-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(167,139,250,.46);
    box-shadow: 0 18px 40px rgba(109,74,255,.22);
}

.u-counter {
    position: fixed;
    left: clamp(18px, 3vw, 34px);
    bottom: clamp(20px, 3vw, 30px);
    z-index: 16;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: .9rem;
    color: rgba(236, 240, 255, .74);
    font-variant-numeric: tabular-nums;
}
.u-counter b { color: #fff; font-weight: 700; }

.u-hint {
    position: fixed;
    left: 50%;
    bottom: clamp(20px, 3vw, 30px);
    transform: translateX(-50%);
    z-index: 16;
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: .84rem;
    color: rgba(230, 232, 255, .64);
    padding: 12px 22px;
    border-radius: 999px;
}
.u-hint b { color: #fff; font-weight: 600; }

.u-tooltip {
    position: fixed;
    z-index: 18;
    min-width: 240px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 22px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 18px)) scale(.96);
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 30px 90px rgba(2,4,18,.55);
}
.u-tooltip.open { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }
.u-tooltip .tt-body { display: flex; gap: 12px; align-items: center; }
.u-tooltip .tt-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.96);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.u-tooltip .tt-logo.has-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 9px; }
.u-tooltip .tt-logo.text-only { padding: 8px; background: rgba(124,58,237,.22); }
.u-tooltip .tt-logo.text-only span { font-size: .78rem; line-height: 1.1; text-align: center; font-weight: 700; color: #fff; }
.u-tooltip .tt-name { font-size: .98rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.u-tooltip .tt-meta { font-size: .82rem; color: rgba(230,232,255,.7); margin-top: 4px; }

.brand-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.brand-modal.open { display: grid; }
.brand-modal .scrim { position: absolute; inset: 0; background: rgba(4,6,19,.52); backdrop-filter: blur(8px); }
.brand-card {
    position: relative;
    width: min(440px, 94vw);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(10,12,32,.82);
    backdrop-filter: saturate(180%) blur(26px);
    border: 1px solid rgba(160,132,255,.22);
    box-shadow: 0 40px 110px rgba(1,3,14,.62);
    transform: translateY(10px) scale(.97);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .32s;
}
.brand-modal.open .brand-card { transform: none; opacity: 1; }
.brand-card .bc-top { display: flex; align-items: center; gap: 16px; padding: 28px 28px 10px; }
.brand-card .mark {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 40px rgba(109,74,255,.18);
}
.brand-card .mark.has-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 12px; }
.brand-card .mark.text-only { padding: 12px; background: rgba(124,58,237,.26); }
.brand-card .mark.text-only span { font-size: .84rem; line-height: 1.2; text-align: center; font-weight: 700; color: #fff; }
.brand-card .bc-name { font-size: 1.46rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.brand-card .bc-meta { color: rgba(230,232,255,.74); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.brand-card .close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}
.brand-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 28px 30px; }
.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(109,74,255,.14); border-color: rgba(255,255,255,.18); }
.action-btn .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.action-btn.full { grid-column: 1 / -1; justify-content: center; background: linear-gradient(135deg, #6D4AFF 0%, #8B5CF6 100%); color: #fff; border: none; box-shadow: 0 18px 40px rgba(109,74,255,.24); }
.ic.call { background: #22C55E; } .ic.wa { background: #25D366; } .ic.mail { background: #6D4AFF; }
.ic.web { background: #0EA5E9; } .ic.cat { background: #F59E0B; }

@keyframes vm-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.012); }
}

@keyframes vm-glow {
    0%, 100% { filter: drop-shadow(0 12px 30px rgba(109,74,255,.18)); }
    50% { filter: drop-shadow(0 18px 40px rgba(139,92,246,.34)); }
}

@media (max-width: 1100px) {
    .u-side { top: auto; bottom: 110px; width: 230px; }
}

@media (max-width: 820px) {
    .nav-float {
        flex-wrap: wrap;
        gap: 12px;
        align-items: stretch;
    }
    .nav-float .brand .brand-logo-full { height: 50px; max-width: 230px; }
    .u-search { order: 3; max-width: none; width: 100%; }
    .u-side { display: none; }
    .u-hint { display: none; }
}

@media (max-width: 640px) {
    .nav-float { padding: 14px 14px 0; }
    .nav-float .actions { width: 100%; }
    .nav-float .actions .btn { width: 100%; }
    .brand-actions { grid-template-columns: 1fr; }
    .action-btn.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
