.market-video {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.market-video video {
    width: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.market-subtitle {
    width: 100%;
    font-size: 24px;
    text-align: center;
    opacity: 1;
    color: var(--white);
    background-color: transparent;
    margin-bottom: var(--padding-sm);
    transition: opacity 0.4s;
}

.market-buttons {
    position: absolute;
    bottom: var(--padding-base);
    left: 50%;
    width: 100%;
    padding-left: var(--padding-base);
    padding-right: var(--padding-base);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-hold-button {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-left: var(--padding-xl);
    padding-right: var(--padding-xl);
    height: 70px;
    font-size: 20px;
    backdrop-filter: blur(10px);
    /* background-color: var(--dark-blue); */
    color: var(--white);
    overflow: hidden;
}

.progress-fill-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--orange);
    transition: width 0.1s linear;
    z-index: 1;
}

.market-button-text {
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.market-hold-button.holding .market-button-text {
    opacity: 0;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 40px;
    height: 40px;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}

.progress-fill {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.1s linear;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
}

.market-button-text {
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.market-hold-button.transforming .market-button-text {
    opacity: 0;
    transform: scale(0.8);
}

.success-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.market-hold-button.success .success-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-check path {
    stroke: white;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
}

.market-hold-button.success .success-check path {
    animation: drawCheck 0.5s ease forwards 0.3s;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}