/* ===============================================
   BTN-ECOSYN CUSTOM BUTTONS - UNIFIED GRADIENT THEME
   =============================================== */
:root {
    /* Your specified gradient - now the primary color source */
    --linear-gradient: linear-gradient(
        135deg,
        #6fb1ff 0%,
        #4f6df5 45%,
        #7b3ff2 70%,
        #c218f5 100%
    );

    /* Derived solid colors from gradient for hover/active states */
    --primary-color: #4f6df5;
    --primary-hover: #7b3ff2;
    --primary-dark: #c218f5;
    --primary-start: #6fb1ff;
    --primary-end: #c218f5;

    --primary-rgb: 79, 109, 245;

    --text-light: #ffffff;
    --text-dark: #0f172a;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}
/* Override .outline class dengan gradient theme */
.nav-right .nav-item.outline {
    /* Hapus warna hijau, ganti dengan gradient */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(79, 109, 245, 0.2), 0 4px 18px rgba(194, 24, 245, 0.15);
    transition: all 0.35s ease;
}

/* Gradient overlay (bukan hijau) */
.nav-right .nav-item.outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--linear-gradient); /* Sekarang pakai gradient Anda */
    opacity: 0.18;
    transition: 0.35s ease;
    z-index: -2;
}

.nav-right .nav-item.outline::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: rgba(10, 10, 20, 0.55);
    z-index: -1;
}

.nav-right .nav-item.outline:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 40px rgba(79, 109, 245, 0.3), 0 6px 22px rgba(194, 24, 245, 0.22);
}

.nav-right .nav-item.outline:hover::before {
    opacity: 0.35;
}
/* Base Button */
.btn-ecosyn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(79, 109, 245, 0.3);
}

/* Base hover effect for all buttons */
.btn-ecosyn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 109, 245, 0.4);
}

.btn-ecosyn:active {
    transform: translateY(0);
}

/* ========== PRIMARY VARIANT - Full Gradient ========== */
.btn-ecosyn-primary {
    background: var(--linear-gradient);
    background-size: 150% 150%;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(79, 109, 245, 0.35);
}

.btn-ecosyn-primary:hover {
    background: var(--linear-gradient);
    background-size: 150% 150%;
    background-position: 100% 50%;
    box-shadow: 0 8px 28px rgba(79, 109, 245, 0.5);
}

/* ========== ACCENT VARIANT - Gradient with shift ========== */
.btn-ecosyn-accent {
    background: linear-gradient(135deg, #c218f5 0%, #7b3ff2 50%, #4f6df5 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(194, 24, 245, 0.3);
}

.btn-ecosyn-accent:hover {
    background: linear-gradient(135deg, #7b3ff2 0%, #c218f5 50%, #6fb1ff 100%);
    box-shadow: 0 8px 25px rgba(194, 24, 245, 0.4);
}

/* ========== DARK VARIANT - Deep gradient ========== */
.btn-ecosyn-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    color: var(--text-light);
    border: 1px solid rgba(79, 109, 245, 0.3);
}

.btn-ecosyn-dark:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f172a 100%);
    border-color: rgba(79, 109, 245, 0.6);
}

/* ========== LIGHT VARIANT - Soft gradient ========== */
.btn-ecosyn-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-ecosyn-light:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========== OUTLINE VARIANTS - Border with gradient glow ========== */
.btn-ecosyn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.btn-ecosyn-outline-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: var(--linear-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-ecosyn-outline-primary:hover {
    background: var(--linear-gradient);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-ecosyn-outline-primary:hover::before {
    opacity: 0;
}

.btn-ecosyn-outline-accent {
    background: transparent;
    color: #c218f5;
    border: 2px solid #c218f5;
}

.btn-ecosyn-outline-accent:hover {
    background: linear-gradient(135deg, #c218f5, #7b3ff2);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px);
}

.btn-ecosyn-outline-light {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ecosyn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* ========== GRADIENT VARIANT - Enhanced animation ========== */
.btn-ecosyn-gradient {
    background: var(--linear-gradient);
    background-size: 200% 200%;
    color: var(--text-light);
    border: none;
    animation: gradientShift 4s ease infinite;
}

.btn-ecosyn-gradient:hover {
    animation: gradientShift 2s ease infinite;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 109, 245, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== WITH ICON ========== */
.btn-ecosyn i,
.btn-ecosyn .icon {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-ecosyn:hover i,
.btn-ecosyn:hover .icon {
    transform: translateX(4px);
}

.btn-ecosyn:hover i:first-child,
.btn-ecosyn:hover .icon:first-child {
    transform: translateX(-4px);
}

/* Icon on left */
.btn-ecosyn-icon-left i {
    margin-right: 8px;
    transform: translateX(0);
}

.btn-ecosyn-icon-left:hover i {
    transform: translateX(-3px);
}

/* Icon on right */
.btn-ecosyn-icon-right i {
    margin-left: 8px;
}

.btn-ecosyn-icon-right:hover i {
    transform: translateX(3px);
}

/* ========== SIZE VARIATIONS ========== */
.btn-ecosyn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-ecosyn-lg {
    padding: 18px 42px;
    font-size: 18px;
}

.btn-ecosyn-xl {
    padding: 22px 56px;
    font-size: 20px;
}

/* Full Width */
.btn-ecosyn-block {
    display: flex;
    width: 100%;
}

/* ========== DISABLED STATE ========== */
.btn-ecosyn:disabled,
.btn-ecosyn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.1);
}

/* ========== LOADING STATE ========== */
.btn-ecosyn-loading {
    position: relative;
    color: transparent !important;
}

.btn-ecosyn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-start);
    border-radius: 50%;
    animation: btn-ecosyn-spin 0.8s linear infinite;
}

@keyframes btn-ecosyn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RIPPLE EFFECT ========== */
.btn-ecosyn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ecosyn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-ecosyn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========== SPECIAL GLASS BUTTON (like your .nav-right style) ========== */
.btn-ecosyn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1.5px solid var(--glass-border);
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(79, 109, 245, 0.2);
}

.btn-ecosyn-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--linear-gradient);
    opacity: 0.18;
    transition: opacity 0.35s ease;
    z-index: -2;
    border-radius: 999px;
}

.btn-ecosyn-glass::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: rgba(10, 10, 20, 0.55);
    z-index: -1;
}

.btn-ecosyn-glass:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 40px rgba(79, 109, 245, 0.3);
}

.btn-ecosyn-glass:hover::before {
    opacity: 0.35;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .btn-ecosyn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-ecosyn-lg {
        padding: 14px 32px;
        font-size: 16px;
    }

    .btn-ecosyn-xl {
        padding: 16px 40px;
        font-size: 18px;
    }
}

/* ========== PULSE BADGE with gradient ========== */
.ecosyn-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--linear-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    animation: ecosynPulseText 2s ease-in-out infinite;
}

.ecosyn-pulse-badge i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 109, 245, 0.12);
    color: #4f6df5;
    position: relative;
    z-index: 1;
    animation: ecosynPulseIcon 2s ease-in-out infinite;
}

/* Ripple using box-shadow with gradient colors */
.ecosyn-pulse-badge i::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    animation: ecosynRipple 2s infinite;
}

@keyframes ecosynPulseIcon {
    0%, 100% {
        transform: scale(0.6);
        box-shadow: 0 0 0 0 rgba(79, 109, 245, 0.4);
    }
    50% {
        transform: scale(0.85);
        box-shadow: 0 0 0 4px rgba(79, 109, 245, 0.2);
    }
}

@keyframes ecosynRipple {
    0% {
        box-shadow: 0 0 0 0 #4f6df5, 0 0 0 0 #c218f5;
        opacity: 0.5;
    }
    70% {
        box-shadow: 0 0 0 12px #4f6df5, 0 0 0 18px #c218f5;
        opacity: 0;
    }
    100% {
        box-shadow: 0 0 0 0 #4f6df5, 0 0 0 0 #c218f5;
        opacity: 0;
    }
}

@keyframes ecosynPulseText {
    0%, 100% {
        opacity: 1;
        letter-spacing: 1.5px;
    }
    50% {
        opacity: 0.85;
        letter-spacing: 2px;
    }
}