/* ===== Security Animation Scene ===== */
.sec-anim-wrap {
    background: #fff !important;
    border: 0.15rem solid rgba(18, 183, 106, 0.12) !important;
    overflow: hidden !important;
}

.sec-anim-scene {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 44rem;
}

/* ===== Central Shield ===== */
.sec-shield {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-shield-icon {
    width: 5.4rem;
    height: 5.4rem;
    background: linear-gradient(135deg, #12B76A, #039855);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 0.4rem 2rem rgba(18, 183, 106, 0.2);
    z-index: 3;
    position: relative;
}

.sec-shield-ring {
    position: absolute;
    width: 8.5rem;
    height: 8.5rem;
    border: 0.1rem solid rgba(18, 183, 106, 0.15);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.sec-ring-2 {
    width: 11.5rem;
    height: 11.5rem;
    border-color: rgba(18, 183, 106, 0.08);
    animation-delay: 1.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* ===== Data Nodes (4 corners) ===== */
.sec-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
}

.sec-node i {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.8rem;
    font-size: 1.3rem;
}

.sec-node span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.sec-node-1 { top: 3rem; left: 3rem; }
.sec-node-2 { top: 3rem; right: 3rem; }
.sec-node-3 { bottom: 3rem; left: 3rem; }
.sec-node-4 { bottom: 3rem; right: 3rem; }

.sec-node-1 i { color: #027BFF; }
.sec-node-2 i { color: #06b6d4; }
.sec-node-3 i { color: #f59e0b; }
.sec-node-4 i { color: #ec4899; }

/* ===== Encryption Blocks — hidden for clean look ===== */
.sec-block {
    display: none;
}

/* ===== User Data Cards ===== */
.sec-data-card {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #f8fafc;
    border: 0.1rem solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.6rem 0.9rem;
    z-index: 10;
    width: 14rem;
}

.sec-dc-1 { top: 9rem; transform: translateX(calc(-50% - 3rem)); }
.sec-dc-2 { top: 50%; transform: translate(-50%, -50%) translateX(5rem); }
.sec-dc-3 { bottom: 9rem; transform: translateX(calc(-50% + 1rem)); }

.sec-dc-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.sec-dc-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sec-dc-line {
    height: 0.35rem;
    background: #e2e8f0;
    border-radius: 0.2rem;
}

.sec-dc-line.w70 { width: 70%; }
.sec-dc-line.w50 { width: 50%; }
.sec-dc-line.w60 { width: 60%; }
.sec-dc-line.w80 { width: 80%; }
.sec-dc-line.w55 { width: 55%; }
.sec-dc-line.w40 { width: 40%; }

.sec-dc-check {
    color: #12B76A;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sec-dc-lock {
    color: #f59e0b;
    font-size: 0.9rem;
    flex-shrink: 0;
    animation: lockShake 3s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

/* ===== Scan Line ===== */
.sec-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.15rem;
    background: linear-gradient(90deg, transparent, rgba(18, 183, 106, 0.35), transparent);
    z-index: 15;
    animation: scanDown 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sec-anim-scene { min-height: 28rem; }
    .sec-shield-icon { width: 4rem; height: 4rem; font-size: 1.6rem; }
    .sec-shield-ring { width: 6.5rem; height: 6.5rem; }
    .sec-ring-2 { width: 9rem; height: 9rem; }
    .sec-node i { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
    .sec-node span { font-size: 0.6rem; }
    .sec-node-1, .sec-node-2 { top: 1.5rem; }
    .sec-node-3, .sec-node-4 { bottom: 1.5rem; }
    .sec-node-1, .sec-node-3 { left: 1.5rem; }
    .sec-node-2, .sec-node-4 { right: 1.5rem; }
    .sec-data-card { width: 11rem; padding: 0.4rem 0.5rem; font-size: 0.7rem; }
    .sec-dc-1 { top: 6rem; }
    .sec-dc-3 { bottom: 6rem; }
}
