.gtt-btn {
    /* --c controls the fill color, --p controls the percentage */
    --c: #bd1f17;
    --p: 0%;

    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9998;

    /* THE MAGIC: Conic gradient fills clockwise like a clock */
    background: conic-gradient(var(--c) var(--p), #d3a313 0%);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;

    outline: none;
    padding: 0;
}

.gtt-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gtt-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.gtt-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ── Number Text ── */
.gtt-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    /* Dark text shadow ensures readability on the gray part AND the blue part */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Arrow Icon ── */
.gtt-arrow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gtt-arrow i {
    transform: translateY(1px);
}

/* When hitting 100%, swap number for arrow */
.gtt-btn.done .gtt-text {
    opacity: 0;
    transform: scale(0.5);
}

.gtt-btn.done .gtt-arrow {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .gtt-btn {
        bottom: 90px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    .gtt-text {
        font-size: 12px;
    }

    .gtt-arrow {
        font-size: 16px;
    }
}