@font-face {
    font-family: "HarryPotter";
    src: url("/assets/fonts/HARRYP__-v2.woff2") format("woff2");
    font-display: swap;
}

/* Global themed scrollbars */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.55) rgba(8, 12, 22, 0.9);
}

* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.95), rgba(14, 20, 38, 0.92));
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan, #00d4ff), #2658ec);
    border-radius: 999px;
    border: 2px solid rgba(8, 12, 22, 0.95);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3be5ff, #3f6cff);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 8, 0.5);
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--cyan);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.74rem;
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.header-link:hover {
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--cyan);
    transform: translateY(-1px);
}

.header-link-yt {
    color: #ff7a7a;
    border-color: rgba(255, 122, 122, 0.3);
}

.header-link-yt:hover {
    color: #ff9e9e;
    border-color: rgba(255, 158, 158, 0.55);
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lang-current:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.lang-current::after {
    content: "▾";
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.lang-dropdown.open .lang-current::after {
    transform: rotate(180deg);
}

.lang-flag {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    flex: 0 0 auto;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.lang-flag-es {
    background: linear-gradient(to bottom, #c60b1e 0%, #c60b1e 25%, #ffc400 25%, #ffc400 75%, #c60b1e 75%, #c60b1e 100%);
}

.lang-flag-fr {
    background: linear-gradient(to right, #0055a4 0%, #0055a4 33.34%, #ffffff 33.34%, #ffffff 66.67%, #ef4135 66.67%, #ef4135 100%);
}

.lang-flag-it {
    background: linear-gradient(to right, #009246 0%, #009246 33.34%, #ffffff 33.34%, #ffffff 66.67%, #ce2b37 66.67%, #ce2b37 100%);
}

.lang-flag-en {
    background-color: #012169;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(12, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    min-width: 120px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 30;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
}

.lang-option.active {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
}

.quidditch-score {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.14s ease;
}

.quidditch-score.visible,
html[data-quidditch-visible="1"] .quidditch-score {
    opacity: 1;
    visibility: visible;
}

.quidditch-label {
    font-family: "HarryPotter", fantasy;
    font-size: 0.65rem;
    color: #ffd700;
    letter-spacing: 1px;
    line-height: 1;
}

.quidditch-points {
    font-family: "HarryPotter", fantasy;
    font-size: 0.8rem;
    color: #ffd700;
    line-height: 1;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.snitch {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 9999;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s;
    filter: drop-shadow(0 0 9px rgba(255, 196, 63, 0.65)) drop-shadow(0 0 18px rgba(255, 196, 63, 0.25));
    will-change: transform, left, top;
}

.snitch.active {
    opacity: 1;
}

.snitch-body {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 1px solid rgba(255, 224, 134, 0.65);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 252, 228, 0.95) 0 22%, rgba(255, 252, 228, 0.32) 33%, transparent 45%),
        radial-gradient(circle at 72% 74%, rgba(116, 70, 8, 0.92) 0 34%, transparent 58%),
        radial-gradient(circle at 50% 50%, #ffd85b 0%, #e9b52a 55%, #9f6508 100%);
    box-shadow:
        0 0 12px rgba(255, 198, 78, 0.8),
        0 0 22px rgba(255, 198, 78, 0.34),
        inset -2px -3px 5px rgba(84, 49, 4, 0.42),
        inset 2px 2px 4px rgba(255, 240, 168, 0.3);
}

.snitch-body::before,
.snitch-body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.snitch-body::before {
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 47%, rgba(90, 56, 8, 0.48) 48% 51%, transparent 52%),
        linear-gradient(90deg, transparent 44%, rgba(89, 56, 8, 0.42) 50%, transparent 56%),
        linear-gradient(0deg, transparent 45%, rgba(89, 56, 8, 0.28) 50%, transparent 55%);
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.snitch-body::after {
    inset: 1px;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.5) 0 16%, transparent 35%);
    animation: snitch-glint 2.8s linear infinite;
}

.snitch-wing {
    position: absolute;
    top: 50%;
    width: 25px;
    height: 16px;
    transform-origin: center;
    filter: drop-shadow(0 0 2px rgba(255, 236, 186, 0.65));
}

.snitch-wing-left {
    right: 50%;
    margin-right: 5px;
    transform: translateY(-50%);
    animation: wing-flap-left 0.12s ease-in-out infinite alternate;
}

.snitch-wing-right {
    left: 50%;
    margin-left: 5px;
    transform: translateY(-50%);
    animation: wing-flap-right 0.12s ease-in-out infinite alternate;
}

@keyframes wing-flap-left {
    0% {
        transform: translateY(-50%) rotate(-24deg);
    }

    100% {
        transform: translateY(-50%) rotate(24deg);
    }
}

@keyframes wing-flap-right {
    0% {
        transform: translateY(-50%) rotate(24deg);
    }

    100% {
        transform: translateY(-50%) rotate(-24deg);
    }
}

@keyframes snitch-glint {
    0%,
    100% {
        transform: translateX(-7%) translateY(-4%);
        opacity: 0.42;
    }

    50% {
        transform: translateX(9%) translateY(6%);
        opacity: 0.82;
    }
}

.snitch-catch-burst {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 9998;
    animation: burst-pop 0.7s ease-out forwards;
}

.snitch-catch-burst::before,
.snitch-catch-burst::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 215, 0, 0.9);
    border-radius: 50%;
}

.snitch-catch-burst::before {
    animation: burst-ring 0.7s ease-out forwards;
}

.snitch-catch-burst::after {
    animation: burst-ring 0.7s ease-out 0.12s forwards;
}

@keyframes burst-pop {
    0% {
        opacity: 0.95;
        transform: scale(0.45);
    }

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

@keyframes burst-ring {
    0% {
        transform: scale(0.35);
        opacity: 0.9;
    }

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

.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #0090b3);
    border: 2px solid rgba(0, 212, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s;
    animation: fab-pulse 3s ease-in-out infinite;
    overflow: hidden;
    padding: 0;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.chat-fab .fab-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.chat-fab .fab-close {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: #000;
    opacity: 0;
    transition: opacity 0.3s;
}

.chat-fab.open .fab-avatar {
    opacity: 0;
}

.chat-fab.open .fab-close {
    opacity: 1;
}

html[data-chat-preopen="1"] .chat-fab .fab-avatar {
    opacity: 0;
}

html[data-chat-preopen="1"] .chat-fab .fab-close {
    opacity: 1;
}

.chat-fab.open {
    background: rgba(30, 35, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    animation: none;
}

html[data-chat-preopen="1"] .chat-fab {
    background: rgba(30, 35, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    animation: none;
}

@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 4px 35px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.15);
    }
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 999;
    width: 400px;
    height: 520px;
    background: var(--bg-surface);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.5) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

.chat-panel.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

html[data-chat-preopen="1"] .chat-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.chat-panel-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.chat-panel-avatar-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chat-panel-avatar-wrap img.active-avatar {
    opacity: 1;
}

.chat-panel-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.chat-panel-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

#chat-status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#chat-status-text::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    flex: 0 0 7px;
}

.tts-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.btn-tts {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    isolation: isolate;
}

.btn-tts .tts-icon-wrap {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
}

.btn-tts .tts-speaker-svg {
    width: 17px;
    height: 17px;
    overflow: visible;
}

.btn-tts .tts-speaker-svg .tts-body {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-tts .tts-speaker-svg .tts-ray {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    opacity: 0.42;
}

.btn-tts.active .tts-speaker-svg .tts-ray-1 {
    animation: tts-ray-pulse 0.85s ease-in-out infinite;
}

.btn-tts.active .tts-speaker-svg .tts-ray-2 {
    animation: tts-ray-pulse 0.85s ease-in-out infinite 0.14s;
}

.btn-tts.active .tts-speaker-svg .tts-ray-3 {
    animation: tts-ray-pulse 0.85s ease-in-out infinite 0.28s;
}

.btn-tts .tts-speaker-svg .tts-cross {
    fill: none;
    stroke: #ff7373;
    stroke-width: 2.1;
    stroke-linecap: round;
    opacity: 0.95;
}

.btn-tts.disabled {
    opacity: 0.45;
    filter: grayscale(0.35);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(180, 193, 214, 0.72);
    pointer-events: none;
    cursor: default;
}

.btn-tts.disabled:hover {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(180, 193, 214, 0.72);
}

.btn-tts.active {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.btn-tts.muted {
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 100, 100, 0.6);
}

.btn-tts.error {
    border-color: rgba(255, 100, 100, 0.5);
    color: rgba(255, 100, 100, 0.85);
}

.btn-tts.loading {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(173, 232, 255, 0.95);
    pointer-events: none;
}

.btn-tts.loading::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.22);
    border-top-color: rgba(0, 212, 255, 1);
    border-right-color: rgba(38, 88, 236, 1);
    animation: tts-ring-spin 0.9s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes tts-ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tts-ray-pulse {
    0% {
        opacity: 0.18;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.18;
    }
}

.tts-help-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tts-help-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.tts-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 200px;
    white-space: normal;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.tts-tooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: var(--bg-surface);
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    transform: rotate(45deg);
}

.tts-tooltip.visible {
    display: block;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.55) rgba(8, 12, 22, 0.9);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.95), rgba(14, 20, 38, 0.92));
    border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan, #00d4ff), #2658ec);
    border-radius: 999px;
    border: 1px solid rgba(8, 12, 22, 0.95);
}

.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-wrap: break-word;
}

.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--cyan), #0090b3);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.msg-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.msg-collapsed {
    max-height: 80px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.btn-expand {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: flex-end;
    font-family: var(--font-mono);
}

.msg-user .btn-expand {
    color: #0b1118;
}

.msg-user .btn-expand:hover {
    color: #000;
}

.btn-expand:hover {
    text-decoration: underline;
}

.thinking-dots {
    display: flex;
    gap: 5px;
    padding: 6px 4px;
    align-items: center;
}

.thinking-dots span {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {

    0%,
    60%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.chat-input-area textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 12px;
    resize: none;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    overflow-y: auto;
    outline: none;
    transition: border-color 0.2s;
}

.chat-disclaimer {
    margin: 0;
    padding: 0 16px 12px;
    text-align: center;
    font-size: 0.74rem;
    line-height: 1.28;
    color: rgba(181, 194, 212, 0.56);
    font-family: var(--font-main);
    font-weight: 500;
}

.chat-input-area textarea::placeholder {
    color: var(--text-secondary);
}

.chat-input-area textarea:focus {
    border-color: rgba(0, 212, 255, 0.3);
}

.btn-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #0090b3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-send:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-send svg {
    width: 18px;
    height: 18px;
    fill: #000;
}

@media (max-width: 900px) {
    .header-links {
        gap: 8px;
        margin-right: 8px;
    }

    .header-link {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    header {
        padding: 16px 20px;
    }

    .chat-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 90px;
        height: 60vh;
    }
}

@media (max-width: 640px) {
    .header-link-yt span {
        display: none;
    }

    .header-link {
        min-width: 30px;
        justify-content: center;
        padding: 6px 8px;
    }
}
