/* ========== RESET ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========== PAGE BACKGROUND ========== */
body {
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f5f7ff;
    /* Background image from background.png */
    background: #000;
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Slight blur/darken overlay on top of the image */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at bottom, rgba(255, 60, 60, 0.35) 0, transparent 60%), radial-gradient(circle at top, rgba(40, 70, 150, 0.6) 0, transparent 70%), rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(6px);
        pointer-events: none;
        z-index: 0;
    }

/* ========== MAIN PANEL ========== */
.panel {
    position: relative;
    z-index: 1;
    width: 440px;
    max-width: 95vw;
    padding: 24px 22px 18px;
    background: rgba(10, 13, 28, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.9);
}

/* ========== HEADER ========== */
.panel-header {
    margin-bottom: 16px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.panel-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 4px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3da4ff, #5df2ff);
    color: #02101d;
    box-shadow: 0 0 12px rgba(61, 164, 255, 0.7);
    font-size: 16px;
}

.panel-title-text {
    font-size: 18px;
    font-weight: 600;
}

.panel-subtitle {
    font-size: 11px;
    color: #9db4ff;
    margin-top: 4px;
    opacity: 0.9;
}

/* ========== USERNAME ROW ========== */
.row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.row-username {
    margin-top: 12px;
}

.label-username {
    font-size: 12px;
    color: #c6d5ff;
    min-width: 110px;
}

.input-text {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .input-text::placeholder {
        color: #92a0d0;
    }

    .input-text:focus {
        border-color: #3af2ff;
        box-shadow: 0 0 8px rgba(58, 242, 255, 0.7);
        background: rgba(255, 255, 255, 0.09);
    }

/* ========== BUTTON ========== */
.btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3af2ff, #48ffcf);
    border: none;
    color: #00141c;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

    .btn:hover {
        filter: brightness(1.08);
        box-shadow: 0 0 12px rgba(58, 242, 255, 0.7);
    }

    .btn:active {
        transform: translateY(1px) scale(0.98);
    }

/* ========== HINT TEXT ========== */
.hint {
    margin-top: 8px;
    font-size: 11px;
    color: #a6b4e8;
    line-height: 1.4;
}

/* ========== STATUS ========== */
.status-pill {
    margin-top: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff4a6b;
    box-shadow: 0 0 8px rgba(255, 74, 107, 0.85);
}

.status-pill.online .status-dot {
    background: #3affc9;
    box-shadow: 0 0 8px rgba(58, 255, 201, 0.9);
}

.status-line {
    margin-top: 6px;
    color: #c1cffc;
    font-size: 13px;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 18px;
    font-size: 10px;
    text-align: center;
    color: #97abf5;
    opacity: 0.85;
}

/* ========== HIDE AUDIO ELEMENT ========== */
audio {
    display: none !important;
}

/* ========== VOLUME SLIDER ========== */
.volume-container {
    margin-top: 20px;
    text-align: center;
    color: #d0d8ff;
}

.volume-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.volume-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Slider track */
.volume-slider {
    width: 70%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .volume-slider:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Slider thumb - WebKit */
    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #3af2ff;
        box-shadow: 0 0 10px #3af2ff;
        cursor: pointer;
    }

    /* Slider thumb - Firefox */
    .volume-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #3af2ff;
        box-shadow: 0 0 10px #3af2ff;
        cursor: pointer;
    }

/* Percentage label */
.volume-percent {
    min-width: 42px;
    text-align: left;
    font-size: 12px;
    color: #cce8ff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .panel {
        width: 94vw;
        padding: 18px 14px 14px;
    }

    .row-username {
        flex-direction: column;
        align-items: stretch;
    }

    .label-username {
        min-width: 100%;
    }

    .btn {
        align-self: flex-end;
        margin-top: 4px;
    }
}
