:root {
    --accent-color: #8186d5;
    --surface: rgba(20, 29, 42, 1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --shadow-soft: rgba(0, 0, 0, 0.09) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
    --border-soft: rgba(255, 255, 255, 0.18);

    --btn-start: #6366f1;
    --btn-end: #8b5cf6;
    --btn-shadow: rgba(99, 102, 241, 0.2);
    --btn-shadow-hover: rgba(99, 102, 241, 0.3);

    --btn-radius: 17px;
    --btn-radius-lg: 19px;
    --btn-radius-sm: 15px;
}

.btn-site-outline,
.btn-gradient-border,
.btn-gradient-border-outline,
.btn-gradient-border-sm {
    border-radius: var(--btn-radius);
}

.btn-site-solid {
    border-radius: var(--btn-radius-lg);
}

/* === Премахване на focus outline за всички бутони === */
.btn-site-outline,
.btn-site-solid,
.btn-gradient-border,
.btn-gradient-border-outline,
.btn-gradient-border-sm {
    outline: none;
}

.btn-site-outline:focus,
.btn-site-outline:focus-visible,
.btn-site-solid:focus,
.btn-site-solid:focus-visible,
.btn-gradient-border:focus,
.btn-gradient-border:focus-visible,
.btn-gradient-border-outline:focus,
.btn-gradient-border-outline:focus-visible,
.btn-gradient-border-sm:focus,
.btn-gradient-border-sm:focus-visible {
    outline: none;
    box-shadow: inherit;
}

/* === 1. btn-site-outline (прозрачен с border) === */
.btn-site-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    padding: 0.72rem 1.15rem;
    font-weight: 600;

    color: var(--text);
    background: rgba(20, 29, 42, 0.25);
    border: 1px solid rgba(129, 134, 213, 0.75);
    backdrop-filter: blur(8px);

    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-site-outline:hover {
    color: var(--text);
    background: rgba(129, 134, 213, 0.18);
    border-color: rgba(129, 134, 213, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-site-outline:active {
    transform: translateY(0);
}

/* === 2. btn-site-solid === */
.btn-site-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    color: var(--text);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--btn-start) 0%, var(--btn-end) 100%);
    box-shadow: 0 4px 10px var(--btn-shadow);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-site-solid:hover {
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--btn-shadow-hover);
}

.btn-site-solid:active {
    transform: translateY(-1px);
}

/* === 3. btn-gradient-border (gradient border с тъмен фон) === */
.btn-gradient-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;

    color: #fff;
    background: linear-gradient(135deg, rgba(20, 29, 42, 0.9), rgba(20, 29, 42, 0.7));
    border: none;

    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;

    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-gradient-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 29, 42, 0.95), rgba(30, 39, 52, 0.9));
    border-radius: inherit;
    z-index: -1;
}

.btn-gradient-border:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-gradient-border:active {
    transform: translateY(-1px);
}

/* Small version */
.btn-gradient-border-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
}

/* Circle version */
.btn-gradient-border.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-gradient-border.btn-icon::before,
.btn-gradient-border.btn-icon::after {
    border-radius: 50%;
}

/* === 4. btn-gradient-border-outline (gradient border БЕЗ фон) === */
.btn-gradient-border-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;

    color: var(--surface);
    background: transparent;
    border: none;

    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;

    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-gradient-border-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: inherit;
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-gradient-border-outline:hover {
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-gradient-border-outline:active {
    transform: translateY(-1px);
}

/* Small version */
.btn-gradient-border-outline-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    border-radius: var(--btn-radius-sm);
}

/* Circle version */
.btn-gradient-border-outline.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-gradient-border-outline.btn-icon::before {
    border-radius: 50%;
}
