:root {
    --bg:        #05060d;
    --bg-2:      #0a0b14;
    --panel:     rgba(20, 22, 38, 0.55);
    --line:      rgba(200, 195, 230, 0.06);
    --line-2:    rgba(200, 195, 230, 0.11);
    --line-3:    rgba(200, 195, 230, 0.18);
    --fg:        #e8e5f4;
    --fg-2:      #a9a3c7;
    --fg-3:      #706b8f;
    --dim:       #3f3c5a;
    --accent:    #b8b0da;
    --accent-2:  #8a80b6;
    --ease:      cubic-bezier(0.22, 0.72, 0.14, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: var(--bg); color: var(--fg); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: bgFadeIn 1.2s ease 0.2s forwards;
}

#bgCanvas.visible { animation: bgFadeIn 1.2s ease 0.2s forwards; }

@keyframes bgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#app {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0;
    animation: appFadeIn 0.4s var(--ease) forwards;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200, 195, 230, 0.09); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 195, 230, 0.16); }

::selection { background: rgba(184, 176, 218, 0.22); color: #fff; }

button, input, textarea, select { font-family: inherit; color: inherit; outline: none; }
button { cursor: pointer; background: none; border: none; }

.hidden { display: none !important; }

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ban-chip {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 11px;
    background: rgba(40, 16, 22, 0.85);
    border: 1px solid rgba(208, 130, 130, 0.32);
    border-radius: 999px;
    color: #f0c4c4;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: all 0.18s var(--ease);
    animation: slideDown 0.4s var(--ease);
    cursor: pointer;
}
.ban-chip:hover {
    background: rgba(60, 22, 30, 0.9);
    border-color: rgba(208, 130, 130, 0.5);
    transform: translateY(-1px);
}
.ban-chip svg { color: #d08282; }
.ban-chip-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ban-chip-timer {
    color: #f0c4c4;
    opacity: 0.75;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    padding-left: 6px;
    border-left: 1px solid rgba(208, 130, 130, 0.25);
    margin-left: 2px;
}

body.banned #searchHome {
    pointer-events: none;
    opacity: 0.5;
}
body.banned #searchHome::placeholder {
    color: #d08282;
}
body.banned #urlBar {
    pointer-events: none;
    opacity: 0.5;
}
