/* --- Trust Badge (Sistem Durumu) --- */
:root {
    --ref-bg-color: #ffffff;
    --ref-card-bg: #ffffff;
    --ref-text-main: #000000;
    --ref-text-muted: #94a3b8;
    --ref-accent-green: #10b981;
    --ref-accent-green-glow: rgba(16, 185, 129, 0.4);
    --ref-border-color: rgba(16, 185, 129, 0.4);
}

.ref-sec-card {
    background-color: var(--ref-card-bg);
    border: 1px solid var(--ref-border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin: 0 auto;
}

.ref-sec-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ref-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ref-border-color);
}

.ref-sec-header h4 {
    color: var(--ref-text-main) !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.ref-ping {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ref-ping-dot {
    width: 8px;
    height: 8px;
    background-color: var(--ref-accent-green);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px var(--ref-accent-green-glow);
}

.ref-ping-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--ref-accent-green);
    position: absolute;
    animation: ping-ripple 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.ref-uptime-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ref-uptime-label {
    color: var(--ref-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.ref-uptime-val {
    color: var(--ref-accent-green);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px var(--ref-accent-green-glow);
}

.ref-enc-row-new {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.05);
}

.ref-enc-icon-new {
    color: var(--ref-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.ref-bars-new {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 85px;
    flex-grow: 1;
}

.ref-bar-new {
    flex: 1;
    background-color: var(--ref-accent-green);
    border-radius: 4px 4px 0 0;
    height: 100%;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0;
}

.is-visible .ref-bar-new {
    animation: bar-grow-new 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Delay for wave effect */
.ref-bar-new:nth-child(1) {
    animation-delay: 0.1s;
}

.ref-bar-new:nth-child(2) {
    animation-delay: 0.2s;
}

.ref-bar-new:nth-child(3) {
    animation-delay: 0.3s;
}

.ref-bar-new:nth-child(4) {
    animation-delay: 0.4s;
}

.ref-bar-new:nth-child(5) {
    animation-delay: 0.5s;
}

.ref-bar-new:nth-child(6) {
    animation-delay: 0.6s;
}

.ref-bar-new:nth-child(7) {
    animation-delay: 0.7s;
}

.ref-bar-new:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes bar-grow-new {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.ref-enc-title-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ref-text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.ref-check-animated-new {
    color: var(--ref-accent-green);
    overflow: visible;
}

.ref-check-animated-new path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.is-visible .ref-check-animated-new path:nth-child(1) {
    animation: draw-svg-new 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.is-visible .ref-check-animated-new path:nth-child(2) {
    animation: draw-svg-new 0.4s ease-out forwards;
    animation-delay: 1.4s;
}

@keyframes draw-svg-new {
    to {
        stroke-dashoffset: 0;
    }
}