/*
|--------------------------------------------------------------------------
| RansomLook Dashboard
|--------------------------------------------------------------------------
*/
.rld-dashboard {
    --rld-bg: #05090d;
    --rld-bg-2: #081219;
    --rld-panel: #09151b;
    --rld-panel-2: #0c1b22;
    --rld-cyan: #00e5ff;
    --rld-cyan-dark: #008fa3;
    --rld-green: #00ff88;
    --rld-red: #ff3b5c;
    --rld-yellow: #ffd166;
    --rld-text: #d8faff;
    --rld-muted: #6d8b94;
    --rld-border: rgba(0, 229, 255, .16);
    width: 100%;
    max-width: 1500px;
    margin: 30px auto;
    padding: 28px;
    box-sizing: border-box;
    color: var(--rld-text);
    background:
        linear-gradient(
            rgba(0, 229, 255, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 229, 255, .025) 1px,
            transparent 1px
        ),
        var(--rld-bg);
    background-size: 30px 30px;
    border: 1px solid var(--rld-border);
    box-shadow:
        0 0 60px rgba(0, 229, 255, .04),
        inset 0 0 80px rgba(0, 0, 0, .35);
    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    overflow: hidden;
}
/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/
.rld-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--rld-border);
}
.rld-eyebrow {
    color: var(--rld-cyan);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: .8;
}
.rld-title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -2px;
    text-shadow:
        0 0 20px rgba(0, 229, 255, .35);
}
h2.rld-title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
    letter-spacing: 0;
    text-shadow:
        0 0 20px rgba(0, 229, 255, .35);
}
.rld-subtitle {
    margin-top: 9px;
    color: var(--rld-muted);
    font-size: 11px;
    letter-spacing: 2px;
}
.rld-api-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--rld-green);
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.rld-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.rld-status-dot.online {
    background: var(--rld-green);
    box-shadow:
        0 0 8px var(--rld-green),
        0 0 18px rgba(0, 255, 136, .4);
}
.rld-status-dot.offline {
    background: var(--rld-red);
    box-shadow:
        0 0 8px var(--rld-red);
}
/*
|--------------------------------------------------------------------------
| KPI
|--------------------------------------------------------------------------
*/
.rld-kpis {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.rld-kpi {
    position: relative;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(0, 229, 255, .045),
            rgba(0, 229, 255, .01)
        );
    border: 1px solid var(--rld-border);
    transition:
        border-color .2s ease,
        transform .2s ease;
}
.rld-kpi:hover {
    border-color: rgba(0, 229, 255, .35);
    transform: translateY(-2px);
}
.rld-kpi::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--rld-cyan);
    opacity: .5;
}
.rld-kpi-label {
    color: var(--rld-muted);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 13px;
}
.rld-kpi-value {
    color: var(--rld-cyan);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    text-shadow:
        0 0 14px rgba(0, 229, 255, .3);
}
/*
|--------------------------------------------------------------------------
| Panels
|--------------------------------------------------------------------------
*/
.rld-grid-two {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.rld-panel {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .005)
        ),
        var(--rld-panel);
    border: 1px solid var(--rld-border);
}
.rld-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--rld-border);
    color: var(--rld-cyan);
    font-size: 11px;
    letter-spacing: 1px;
}
.rld-panel-code {
    color: var(--rld-muted);
    font-size: 9px;
}
/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
*/
.rld-status-list {
    padding: 5px 18px;
}
.rld-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    font-size: 12px;
}
.rld-status-list > div:last-child {
    border-bottom: 0;
}
.rld-status-list span {
    color: var(--rld-muted);
}
.rld-status-list strong {
    color: #fff;
}
/*
|--------------------------------------------------------------------------
| Periods
|--------------------------------------------------------------------------
*/
.rld-periods {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}
.rld-period {
    padding: 20px;
    border-right: 1px solid rgba(0, 229, 255, .08);
    border-bottom: 1px solid rgba(0, 229, 255, .08);
}
.rld-period:nth-child(2n) {
    border-right: 0;
}
.rld-period:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.rld-period span {
    display: block;
    color: var(--rld-muted);
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 9px;
}
.rld-period strong {
    color: var(--rld-cyan);
    font-size: 25px;
}
/*
|--------------------------------------------------------------------------
| Recent table
|--------------------------------------------------------------------------
*/
.rld-recent-panel {
    margin-top: 15px;
}
.rld-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.rld-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.rld-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--rld-muted);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, .15);
    border-bottom: 1px solid var(--rld-border);
    white-space: nowrap;
}
.rld-table td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    vertical-align: middle;
}
.rld-table tr:hover td {
    background: rgba(0, 229, 255, .025);
}
.rld-table a {
    color: #e8fdff;
    text-decoration: none;
}
.rld-table a:hover {
    color: var(--rld-cyan);
    text-decoration: underline;
}
.rld-date {
    color: var(--rld-muted);
    white-space: nowrap;
}
.rld-tag {
    display: inline-block;
    padding: 5px 8px;
    color: var(--rld-cyan);
    background: rgba(0, 229, 255, .06);
    border: 1px solid rgba(0, 229, 255, .18);
    font-size: 9px;
    letter-spacing: .5px;
}
/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/
.rld-alert {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid;
}
.rld-alert-error {
    color: #ffb7c3;
    background: rgba(255, 59, 92, .06);
    border-color: rgba(255, 59, 92, .3);
}
.rld-alert strong {
    color: var(--rld-red);
    font-size: 11px;
    letter-spacing: 1px;
}
.rld-alert p {
    margin: 8px 0;
    font-size: 12px;
}
.rld-alert small {
    color: var(--rld-muted);
}
/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/
.rld-empty {
    padding: 35px 20px;
    text-align: center;
    color: var(--rld-muted);
    font-size: 11px;
}
/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/
.rld-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    color: var(--rld-muted);
    font-size: 8px;
    letter-spacing: 1px;
}
/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/
@media (max-width: 1100px) {
    .rld-kpis {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .rld-grid-two {
        grid-template-columns: 1fr;
    }
    .rld-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .rld-api-status {
        margin-top: 5px;
    }
}
@media (max-width: 600px) {
    .rld-dashboard {
        padding: 15px;
        margin: 15px auto;
    }
    .rld-kpis {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
    .rld-kpi {
        padding: 15px;
    }
    .rld-kpi-value {
        font-size: 24px;
    }
    .rld-footer {
        flex-direction: column;
    }
}
/* ==========================================================================
   RansomLook Attribution Footer
   ========================================================================== */
.rld-footer {
    margin-top: 24px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(0, 255, 170, 0.12);
    background:
        linear-gradient(
            90deg,
            rgba(0, 255, 170, 0.025),
            transparent 45%,
            rgba(0, 170, 255, 0.025)
        );
    color: #6f8490;
    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rld-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718792;
}
.rld-status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #00ff9d;
    box-shadow:
        0 0 6px rgba(0, 255, 157, 0.75),
        0 0 12px rgba(0, 255, 157, 0.25);
}
.rld-footer-attribution {
    color: #627782;
    text-align: right;
}
.rld-footer-attribution a {
    color: #00d99a;
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-shadow 0.15s ease;
}
.rld-footer-attribution a:hover {
    color: #4fffc0;
    text-shadow:
        0 0 8px rgba(0, 255, 157, 0.35);
    text-decoration: underline;
}
.rld-footer-separator {
    margin: 0 7px;
    color: #344a54;
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 700px) {
    .rld-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .rld-footer-attribution {
        text-align: left;
        line-height: 1.7;
    }
}
.rld-disclaimer {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 184, 77, 0.22);
    border-left: 3px solid #ffb84d;
    background: rgba(255, 184, 77, 0.035);
}
.rld-disclaimer-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 184, 77, 0.45);
    border-radius: 50%;
    color: #ffb84d;
    font-weight: 700;
    font-size: 12px;
}
.rld-disclaimer-title {
    margin-bottom: 5px;
    color: #ffb84d;
    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.rld-disclaimer-text {
    color: #8999a2;
    font-size: 12px;
    line-height: 1.6;
}