/* =============================
   GLOBAL RESET
   ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

/* =============================
   BODY & ROOT
   ============================= */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #000 100%);
    color: #e5e7eb;
}

/* Wrapper from base.html */
.wrapper {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================
   HEADER (base.html)
   ============================= */

header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(30, 64, 175, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 10px;
}

header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

header h2::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #16a34a);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
}

header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

header nav a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.15s ease;
}

header nav a:hover {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
}

/* =============================
   MAIN LAYOUT
   ============================= */

main.wrapper {
    padding-top: 22px;
    padding-bottom: 30px;
    min-height: calc(100vh - 110px);
}

/* HERO layout */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: flex-start;
}

/* LEFT (form) */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* RIGHT (result & history) */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =============================
   TITLES & TEXT
   ============================= */

.hero-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 90%;
}

/* =============================
   CARDS (generic)
   ============================= */

.card {
    border-radius: 16px;
    background: radial-gradient(circle at top left, #1f2937, #020617);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
    padding: 16px 16px 14px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* =============================
   FORM CARD
   ============================= */

.form-card {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-label {
    font-size: 12px;
    color: #9ca3af;
}

.field-input {
    font-size: 13px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    outline: none;
    transition: 0.15s ease;
}

.field-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* =============================
   BUTTONS
   ============================= */

.btn {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.16s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

.btn.primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(34, 197, 94, 0.75);
}

/* =============================
   ALERTS
   ============================= */

.alert {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

.alert-error {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

/* =============================
   RESULT CARD: PREDICTION
   ============================= */

.card-metric {
    padding-bottom: 12px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(75, 85, 99, 0.65);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    color: #9ca3af;
}

.metric-value {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}

/* Prediction badge */

.prediction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: subtle-pop 0.18s ease-out;
}

.prediction-badge.normal {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.8);
    color: #bbf7d0;
}

.prediction-badge.fraud {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.85);
    color: #fecaca;
}

@keyframes subtle-pop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============================
   RISK PILL
   ============================= */

.risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.risk-low {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.risk-medium {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.8);
    color: #facc15;
}

.risk-high {
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.85);
    color: #fecaca;
}

/* =============================
   HISTORY CARD / TABLE
   ============================= */

.card-history {
    padding-top: 12px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 6px;
}

.history-table thead tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.history-table th,
.history-table td {
    text-align: left;
    padding: 4px 6px;
}

.history-table th {
    font-weight: 500;
    color: #9ca3af;
}

.history-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.tag-normal {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.tag-fraud {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

/* =============================
   FOOTER
   ============================= */

footer {
    border-top: 1px solid rgba(15, 23, 42, 0.95);
    background: #020617;
    font-size: 12px;
    color: #6b7280;
}

footer .wrapper {
    text-align: center;
    padding-block: 10px;
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-right {
        order: -1;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================
   API INFO PAGE
   ========================================= */

.api-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-header-card {
    margin-bottom: 4px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.api-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.api-list {
    list-style: none;
    font-size: 13px;
    color: #cbd5f5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-list li::before {
    content: "•";
    display: inline-block;
    margin-right: 6px;
    color: #38bdf8;
}

/* Endpoint table */

.api-endpoints-card {
    margin-top: 4px;
}

.endpoint-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 6px;
}

.endpoint-table thead tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.endpoint-table th,
.endpoint-table td {
    text-align: left;
    padding: 6px 8px;
}

.endpoint-table th {
    font-weight: 500;
    color: #9ca3af;
}

.endpoint-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

/* Stats / chart style */

.api-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding-top: 12px;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-bar {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.9);
    margin-bottom: 4px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
}

.stat-bar-fill.stat-ok {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.stat-bar-fill.stat-latency {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.stat-bar-fill.stat-risk {
    background: linear-gradient(90deg, #f97316, #f97373);
}

.stat-value {
    font-size: 12px;
    color: #e5e7eb;
}

/* Responsive for API page */

@media (max-width: 900px) {
    .api-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .api-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================
   HEALTH PAGE
   ========================================= */

.health-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.health-main-card {
    padding-bottom: 14px;
}

.health-main-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.health-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.14);
    border: 1px solid rgba(22, 163, 74, 0.8);
    font-size: 13px;
    font-weight: 500;
    color: #bbf7d0;
}

.health-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 12px;
    color: #9ca3af;
}

.summary-value {
    font-size: 13px;
    font-weight: 500;
}

/* Metrics grid (bar chartlar) */

.health-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Komponentlar jadvali */

.health-components-card {
    margin-top: 4px;
}

.component-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 6px;
}

.component-table thead tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.component-table th,
.component-table td {
    text-align: left;
    padding: 6px 8px;
}

.component-table th {
    font-weight: 500;
    color: #9ca3af;
}

.component-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

/* Status pillar */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-ok {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.8);
    color: #bbf7d0;
}

.status-warn {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.85);
    color: #facc15;
}

/* Responsive */

@media (max-width: 900px) {
    .health-main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .health-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .health-metrics-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =============================
   TOP NAVIGATION
   ============================= */

.top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav-link {
    position: relative;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 4px;
    transition: color 0.15s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    transition: width 0.18s ease;
}

.nav-link:hover {
    color: #e5e7eb;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #38bdf8;
}

.nav-link-active::after {
    width: 100%;
}

/* API feature bloklari */

.api-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.api-feature-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.api-feature-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

/* =========================================
   SECURITY VISUAL (gauges)
   ========================================= */

.security-visual-card {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.security-visual-text {
    flex: 1 1 260px;
}

.security-list {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.security-list li::before {
    content: "•";
    display: inline-block;
    margin-right: 6px;
    color: #38bdf8;
}

/* Gauges container */

.security-gauges {
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.gauge {
    width: 90px;
    height: 90px;
    position: relative;
}

.gauge-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle at center, #020617 35%, #020617 36%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Har bir gauge uchun conic-gradient (aylana diagramma) */
.gauge-auth {
    background:
        conic-gradient(#22c55e 0 306deg, rgba(30, 64, 175, 0.4) 306deg 360deg),
        radial-gradient(circle at center, #020617 0 58%, transparent 59%);
}

.gauge-monitor {
    background:
        conic-gradient(#0ea5e9 0 260deg, rgba(30, 64, 175, 0.4) 260deg 360deg),
        radial-gradient(circle at center, #020617 0 58%, transparent 59%);
}

.gauge-logging {
    background:
        conic-gradient(#f97316 0 230deg, rgba(30, 64, 175, 0.4) 230deg 360deg),
        radial-gradient(circle at center, #020617 0 58%, transparent 59%);
}

.gauge-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #020617;
    border: 1px solid rgba(51, 65, 85, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.gauge-value {
    font-size: 14px;
    font-weight: 700;
}

.gauge-label {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}

/* Responsivlik */

@media (max-width: 900px) {
    .security-visual-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .security-gauges {
        justify-content: flex-start;
    }
}

/* =========================================
   CYBER RADAR (asosiy sahifa uchun)
   ========================================= */

.cyber-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 4px;
}

.cyber-info {
    flex: 1 1 220px;
}

.cyber-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cyber-text {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

/* Animatsion qism */

.cyber-anim {
    position: relative;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit doiralar */

.cyber-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
    animation: orbit-spin 18s linear infinite;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    animation-duration: 16s;
}

.orbit-2 {
    width: 85px;
    height: 85px;
    animation-duration: 22s;
}

.orbit-3 {
    width: 110px;
    height: 110px;
    animation-duration: 30s;
}

/* Markaziy "yadro" */

.cyber-core {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #22c55e, #16a34a 55%, #022c22);
    box-shadow:
        0 0 18px rgba(34, 197, 94, 0.9),
        0 0 40px rgba(34, 197, 94, 0.6);
    animation: core-pulse 2.4s ease-in-out infinite;
}

/* Animatsiyalar */

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {
    0% {
        transform: scale(0.96);
        box-shadow:
            0 0 10px rgba(34, 197, 94, 0.7),
            0 0 26px rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 18px rgba(34, 197, 94, 0.95),
            0 0 40px rgba(34, 197, 94, 0.6);
    }
    100% {
        transform: scale(0.96);
        box-shadow:
            0 0 10px rgba(34, 197, 94, 0.7),
            0 0 26px rgba(34, 197, 94, 0.4);
    }
}

/* Responsiv holat */

@media (max-width: 900px) {
    .cyber-card {
        flex-direction: row-reverse;
    }

    .cyber-anim {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }

    .orbit-3 {
        width: 95px;
        height: 95px;
    }
}

/* =========================================
   PASTKI CYBER ANIMATSIYA STRIP
   ========================================= */

.cyber-strip {
    position: relative;
    margin-top: 18px;
    margin-bottom: 10px;
    height: 110px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top, #020617 0, #020617 30%, #000 90%);
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

/* Harakatlanayotgan grid (tarmoq chiziqlari) */
.cyber-strip::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
        linear-gradient(115deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(-115deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.7;
    animation: cyber-grid-move 18s linear infinite;
}

/* Scanning chiziq */
.cyber-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0,
        rgba(56, 189, 248, 0.0) 30%,
        rgba(56, 189, 248, 0.35) 50%,
        rgba(56, 189, 248, 0.0) 70%,
        transparent 100%
    );
    mix-blend-mode: screen;
    transform: translateX(-100%);
    animation: cyber-scan 5.5s linear infinite;
}

.cyber-strip-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 24px;
}

.cyber-strip-text {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    max-width: 460px;
    line-height: 1.6;
}

/* Animatsiyalar */

@keyframes cyber-grid-move {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-40px, -20px, 0);
    }
}

@keyframes cyber-scan {
    0% {
        transform: translateX(-110%);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mobil uchun */
@media (max-width: 900px) {
    .cyber-strip {
        height: 90px;
        border-radius: 18px;
    }

    .cyber-strip-text {
        font-size: 11px;
        max-width: 100%;
    }
}

/* =========================================
   NATIJA KARTASI ANIMATSIYASI
   ========================================= */

/* Kartaning sahifaga yumshoq chiqishi */
.result-animated {
    animation:
        result-pop 0.45s ease-out,
        result-glow 1.8s ease-out 0.2s forwards;
}

@keyframes result-pop {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Karta atrofidagi yengil “glow” effekt */
@keyframes result-glow {
    0% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        box-shadow: 0 0 26px rgba(34, 197, 94, 0.4);
    }
    100% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Badge uchun pulse animatsiya */

.prediction-badge {
    position: relative;
    overflow: hidden;
}

/* Fraud bo‘lsa – kuchliroq puls */
.prediction-badge.fraud {
    animation: badge-pulse-fraud 1.4s ease-in-out infinite;
}

/* Normal bo‘lsa – yengil puls 1 marta */
.prediction-badge.normal {
    animation: badge-pulse-normal 1.6s ease-out 0.2s 1;
}

@keyframes badge-pulse-fraud {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.0);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.0);
    }
}

@keyframes badge-pulse-normal {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(56, 189, 248, 0.0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(56, 189, 248, 0.0);
    }
}
