@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    background-color: #060a14;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

input, textarea, select, pre, code, p, li {
    user-select: text;
    -webkit-user-select: text;
}

/* Верхні кнопки */
.top-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #111827;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    cursor: pointer;
}
.top-icon-btn:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
}

.cam-switch-btn {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.15s ease;
    cursor: pointer;
}
.cam-switch-btn:hover {
    color: #ffffff;
}
.cam-switch-btn.active {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Бокові ярлики (Tabs) */
.side-tab-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0f172a;
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-tab-btn:hover {
    background: #1e293b;
    border-color: #38bdf8;
    transform: scale(1.05);
}
.side-tab-btn.active {
    background: #0c2744;
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}
.side-tab-btn .tab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    padding: 1px 4px;
    border-radius: 6px;
}

/* Висувні панелі */
.cyber-drawer {
    position: absolute;
    right: 48px;
    top: 0;
    bottom: 0;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform: translateX(0);
    opacity: 1;
}
.cyber-drawer.drawer-closed {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
}

/* Картки */
.cyber-card {
    background: #070d1b;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.15s ease;
}
.cyber-card:hover {
    border-color: #0ea5e9;
    background: #0b1428;
}

/* ===================================================================== */
/* ФУТУРИСТИЧНЕ ОБ'ЄМНЕ ТА РУХОМЕ 3D-МЕНЮ (БЕЗ ЗАДНЬОГО ФОНОВОГО БЛОКУ)  */
/* ===================================================================== */
.dock-3d-stage {
    perspective: 1100px;
}

.dock-3d-deck {
    background: transparent;
    border: none;
    box-shadow: none;
    transform-style: preserve-3d;
    transform: rotateX(9deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.dock-3d-deck:hover {
    transform: rotateX(1deg);
}

.dock-3d-item {
    min-width: 112px;
    height: 76px;
    border-radius: 15px;
    background: linear-gradient(160deg, rgba(17, 27, 51, 0.92) 0%, rgba(9, 16, 34, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-bottom: 3px solid rgba(56, 189, 248, 0.65);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transform: translateZ(6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    animation: dockFloat 4.5s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.dock-3d-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, transparent 20%, rgba(56, 189, 248, 0.16) 50%, transparent 80%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.dock-3d-item:hover {
    transform: translateY(-10px) translateZ(28px) scale(1.07);
    border-color: #38bdf8;
    border-bottom-color: #a855f7;
    background: linear-gradient(160deg, rgba(23, 40, 74, 0.96) 0%, rgba(15, 25, 51, 0.98) 100%);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.78),
        0 0 24px rgba(56, 189, 248, 0.5);
    z-index: 10;
}

.dock-3d-item:hover::before {
    opacity: 1;
}

.dock-3d-item:active {
    transform: translateY(-4px) translateZ(14px) scale(0.98);
}

.dock-3d-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: translateZ(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Збільшені на 50% об'ємні кнопки-стрілки без фонової перегородки */
.dock-scroll-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 19, 36, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    color: #38bdf8;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.18s ease;
    cursor: pointer;
    margin-top: 12px;
}
.dock-scroll-btn:hover {
    background: #0284c7;
    border-color: #7dd3fc;
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
}
.dock-scroll-btn:active {
    transform: scale(0.98);
}

@keyframes dockFloat {
    0%, 100% { translate: 0 0px; }
    50% { translate: 0 -3px; }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Інпути у робочому вікні інструментів */
.tool-input {
    width: 100%;
    background: #060b16;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease;
}
.tool-input:focus {
    border-color: #38bdf8;
}

.tool-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.tool-btn-primary {
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #030712;
    font-weight: 900;
    font-size: 12px;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tool-btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.tool-btn-secondary {
    padding: 7px 12px;
    border-radius: 10px;
    background: #111827;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 11px;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tool-btn-secondary:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Скролбар */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #060a14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.animate-scale-up {
    animation: scaleUp 0.18s ease-out forwards;
}

@supports (height: 100dvh) {
    body {
        height: 100dvh !important;
    }
}