/* Modern KBank inspired button styles */
.kbank-style-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    padding: 4px;
    box-sizing: border-box;
}

.kbank-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-height: 28px;
    letter-spacing: 0.2px;
}

/* Status button - Default style with gradient */
.kbank-btn-status {
    background: linear-gradient(145deg, #00A651 0%, #009648 100%);
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Role-specific gradients with contrasting text colors */
.kbank-btn-status.memberFree,
.kbank-btn-status.agencyFree {
    background: linear-gradient(145deg, #4CAF50 0%, #43A047 100%);
    color: #FFFFFF;
}

.kbank-btn-status.member30,
.kbank-btn-status.agency30 {
    background: linear-gradient(145deg, #2196F3 0%, #1E88E5 100%);
    color: #FFFFFF;
}

.kbank-btn-status.memberLT,
.kbank-btn-status.agencyLT {
    background: linear-gradient(145deg, #9C27B0 0%, #8E24AA 100%);
    color: #FFFFFF;
}

/* Profile button with reverse colors */
.kbank-btn-profile {
    background-color: #FFFFFF;
    color: #00A651;
    border: 1px solid currentColor;
    font-weight: 500;
    margin-left: 4px;
}

/* Enhanced hover effects with maintained contrast */
.kbank-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kbank-btn-status:hover {
    opacity: 0.95;
    color: #FFFFFF;
}

.kbank-btn-profile:hover {
    background-color: #00A651;
    color: #FFFFFF;
    border-color: #00A651;
}

/* Active state */
.kbank-btn:active {
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Role-specific hover states */
.kbank-btn-status.memberFree:hover,
.kbank-btn-status.agencyFree:hover {
    background: linear-gradient(145deg, #43A047 0%, #388E3C 100%);
}

.kbank-btn-status.member30:hover,
.kbank-btn-status.agency30:hover {
    background: linear-gradient(145deg, #1E88E5 0%, #1976D2 100%);
}

.kbank-btn-status.memberLT:hover,
.kbank-btn-status.agencyLT:hover {
    background: linear-gradient(145deg, #8E24AA 0%, #7B1FA2 100%);
}

/* Ripple effect with proper contrast */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.4s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading state */
.kbank-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Ensure inline display even on small screens */
@media (max-width: 480px) {
    .kbank-style-buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .kbank-btn {
        width: auto;
        min-width: auto;
        padding: 6px 12px;
        font-size: 13px;
    }
}