:root {
    --bg-dark: #050006;
    --bg-mid: #150a24;
    --panel-surface: rgba(255, 255, 255, 0.06);
    --panel-border: rgba(153, 0, 255, 0.45);
    --accent: #9900ff;
    --accent-soft: rgba(153, 0, 255, 0.18);
    --text: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(153, 0, 255, 0.16), transparent 24%),
                linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 42%, var(--bg-dark) 100%);
    position: relative;
    overflow-x: hidden;
}

.particle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.app-shell {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 auto 24px;
    max-width: 720px;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(18, 12, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-bar-title {
    letter-spacing: 0.08em;
}

.top-bar-open-blank {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-bar-open-blank:hover {
    background: rgba(153, 0, 255, 0.2);
    border-color: rgba(153, 0, 255, 0.8);
    transform: translateY(-1px);
}

.top-bar-open-blank:active {
    transform: translateY(0);
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.app-main {
    max-width: 720px;
    margin: 0 auto;
}

.tools-text {
    margin: 0 0 16px 0;
    padding-left: 4px;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
    display: inline-block;
    transform-origin: left center;
    transition: transform 0.25s ease-out;
}

.tools-text:hover {
    transform: scale(1.03);
}

.glass-panel {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    transition: transform 0.65s ease-out, border-color 0.3s ease;
    margin-bottom: 24px; /* add spacing between stacked panels */
}

.glass-panel:hover {
    transform: scale(1.035);
}

.button-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.outline-button {
    background: transparent;
    border: 1.8px solid var(--accent);
    color: var(--accent);
    flex: 1;
    min-width: 92px;
    max-width: 160px;
    min-height: 52px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(153, 0, 255, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.outline-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(153, 0, 255, 0.08);
    box-shadow: 0 0 18px rgba(153, 0, 255, 0.26);
}

.tooltip-panel {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -120%) scaleX(0.85);
    transform-origin: left bottom;
    background: rgba(10, 8, 18, 0.96);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.33), 0 0 24px rgba(153, 0, 255, 0.14);
    color: var(--text);
    opacity: 0;
    max-width: 0;
    width: max-content;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.3, 0, 0.2, 1), max-width 0.25s ease;
    white-space: nowrap;
    z-index: 2;
}

.tooltip-panel.visible {
    opacity: 1;
    max-width: 280px;
    transform: translate(-50%, -120%) scaleX(1);
}

.tooltip-text {
    display: inline-block;
    letter-spacing: 0.01em;
}

.particle {
    position: absolute;
    display: block;
    bottom: -24px;
    border-radius: 50%;
    opacity: 0.22;
    animation: rise linear infinite, sway ease-in-out infinite alternate;
}

.particle.white {
    background: rgba(255, 255, 255, 0.9);
}

.particle.purple {
    background: rgba(153, 0, 255, 0.9);
}

.particle:nth-child(1) {
    left: 6%;
    width: 6px;
    height: 6px;
    animation-duration: 14s, 4.5s;
    animation-delay: 0s, 0s;
}

.particle:nth-child(2) {
    left: 18%;
    width: 8px;
    height: 8px;
    animation-duration: 16s, 5.5s;
    animation-delay: 1s, 0.8s;
}

.particle:nth-child(3) {
    left: 30%;
    width: 5px;
    height: 5px;
    animation-duration: 13s, 5s;
    animation-delay: 0.5s, 0.3s;
}

.particle:nth-child(4) {
    left: 44%;
    width: 9px;
    height: 9px;
    animation-duration: 15s, 6s;
    animation-delay: 0.8s, 1s;
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .top-bar-open-blank {
        width: 100%;
    }
}

.particle:nth-child(5) {
    left: 56%;
    width: 7px;
    height: 7px;
    animation-duration: 18s, 4.2s;
    animation-delay: 0.3s, 0.6s;
}

.particle:nth-child(6) {
    left: 68%;
    width: 6px;
    height: 6px;
    animation-duration: 13.5s, 5.2s;
    animation-delay: 1.2s, 0.4s;
}

.particle:nth-child(7) {
    left: 78%;
    width: 10px;
    height: 10px;
    animation-duration: 17s, 5.8s;
    animation-delay: 0.6s, 0.2s;
}

.particle:nth-child(8) {
    left: 88%;
    width: 7px;
    height: 7px;
    animation-duration: 15.5s, 4.9s;
    animation-delay: 1.1s, 0.9s;
}

.particle:nth-child(9) {
    left: 52%;
    width: 6px;
    height: 6px;
    animation-duration: 14.8s, 5.1s;
    animation-delay: 0.4s, 0.7s;
}

.particle:nth-child(10) {
    left: 24%;
    width: 8px;
    height: 8px;
    animation-duration: 16.5s, 6.1s;
    animation-delay: 0.9s, 0.5s;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0.35;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(10px);
    }
    50% {
        transform: translateX(-12px);
    }
    75% {
        transform: translateX(8px);
    }
    100% {
        transform: translateX(0);
    }
}

/* scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(36, 1, 59, 0.349) rgba(15, 8, 30, 0.9);
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(15, 8, 30, 0.9);
}

body::-webkit-scrollbar-thumb {
    background: rgba(153, 0, 255, 0.7);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 0, 255, 0.9);
}

<div class="particle-layer" aria-hidden="true">
    <span class="particle white"></span>
    <span class="particle purple"></span>
    <span class="particle white"></span>
    <span class="particle purple"></span>
    <span class="particle white"></span>
    <span class="particle purple"></span>
    <span class="particle white"></span>
    <span class="particle purple"></span>
    <span class="particle white"></span>
    <span class="particle purple"></span>
</div>