.card-action-btn {
    position: relative;
    padding: 12px 28px;
    background: transparent;
    color: var(--stellar-white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    height: auto;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth),
        color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.2s ease;
    z-index: 1;
}

.card-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-indigo) 25%,
            transparent 50%);
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -2;
}

.card-action-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: var(--bg-primary);
    border-radius: 7px;
    z-index: -1;
    transition: background 0.5s ease, background-color 0.5s ease;
}

.card-action-btn span {
    position: relative;
    z-index: 2;
}

.card-action-btn:hover::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.card-action-btn:hover::after {
    background: #0d0d0d;
}

.card-action-btn:active {
    transition: transform 0.1s;
    filter: brightness(1.4);
}

body.light-theme .card-action-btn {
    background: transparent;
    color: var(--stellar-white);
    box-shadow: 0 0 0 1px var(--border-color);
}

body.light-theme .card-action-btn::before {
    opacity: 0;
    background: conic-gradient(from 0deg,
            transparent 0%,
            #4B0082 25%,
            transparent 50%);
}

body.light-theme .card-action-btn:hover::before {
    opacity: 0.8;
    animation: rotateBorder 2s linear infinite;
}

body.light-theme .card-action-btn::after {
    background: var(--bg-primary);
}

body.light-theme .card-action-btn:hover::after {
    background: var(--bg-secondary);
}

body.light-theme .card-action-btn:active {
    filter: brightness(0.9);
}

.card-action-btn.selected {
    box-shadow: 0 0 15px rgba(102, 45, 145, 0.4);
    border-color: var(--electric-indigo);
}

.card-action-btn.selected::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.card-action-btn.selected span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stellar-white);
}

body.light-theme .card-action-btn.selected {
    background: transparent;
    color: var(--stellar-white);
    box-shadow: 0 0 15px rgba(102, 45, 145, 0.3);
}

body.light-theme .card-action-btn.selected::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-indigo) 25%,
            transparent 50%);
}

body.light-theme .card-action-btn.selected:active {
    filter: brightness(1.2);
    transform: scale(0.95);
}