/* =========================================================
   Nexion Cloud Status & Colleges Trust Center (/CloudStatus)
   ========================================================= */

.cs-page {
    position: relative;
    min-height: 100vh;
    padding-top: 96px;
    background:
        radial-gradient(circle at 14% 10%, rgba(33, 198, 139, 0.14), transparent 36%),
        radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.13), transparent 38%),
        radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.1), transparent 44%),
        #050913;
    color: #f8fafc;
    overflow: hidden;
}

.cs-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 82%);
    pointer-events: none;
}

.cs-hero {
    position: relative;
    z-index: 2;
    padding: 2.2rem 0 1.4rem;
}

.cs-hero-top {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.8rem;
}

.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.44rem 1rem;
    border-radius: 999px;
    background: rgba(33, 198, 139, 0.13);
    border: 1px solid rgba(33, 198, 139, 0.38);
    color: #34f5b0;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cs-eyebrow.warn {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.42);
    color: #fbbf24;
}

.cs-eyebrow.err {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.55);
    color: #fda4af;
    box-shadow: 0 0 24px -8px rgba(244, 63, 94, 0.65);
    animation: csAlertBannerGlow 2.2s ease-in-out infinite;
}

.cs-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34f5b0;
    box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.7);
    animation: csPulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

.cs-pulse-dot.amber {
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
}

.cs-pulse-dot.err {
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.85);
    animation: csPulseErr 1.5s infinite;
}

@keyframes csPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 245, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 245, 176, 0); }
}

@keyframes csPulseErr {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.85); }
    70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes csAlertBannerGlow {
    0%, 100% { border-color: rgba(244, 63, 94, 0.45); box-shadow: 0 0 18px -8px rgba(244, 63, 94, 0.45); }
    50% { border-color: rgba(251, 113, 133, 0.85); box-shadow: 0 0 28px -6px rgba(244, 63, 94, 0.78); }
}

.cs-title {
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.24;
    margin-bottom: 0.75rem;
}

.cs-title span {
    background: linear-gradient(125deg, #34f5b0, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cs-lead {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 65ch;
    margin: 0;
}

.cs-controls-card {
    background: rgba(13, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.cs-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cs-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 27, 49, 0.92);
    border: 1px solid rgba(33, 198, 139, 0.36);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-refresh-btn:hover {
    border-color: #34f5b0;
    transform: translateY(-1px);
}

.cs-refresh-btn strong {
    color: #34f5b0;
}

.cs-time-box {
    text-align: left;
}

.cs-mini-lbl {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.cs-time-box strong {
    font-size: 1.05rem;
    color: #f8fafc;
}

.cs-quick-portals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cs-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 0.75rem;
    border-radius: 11px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cs-quick-link.live {
    background: rgba(33, 198, 139, 0.14);
    border: 1px solid rgba(33, 198, 139, 0.34);
    color: #34f5b0 !important;
}

.cs-quick-link.vault {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: #38bdf8 !important;
}

.cs-quick-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

/* KPI Grid */
.cs-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cs-kpi-card {
    background: rgba(13, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.cs-kpi-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--kpi-c, #21c68b);
}

.cs-kpi-card.kpi-emerald { --kpi-c: #21c68b; }
.cs-kpi-card.kpi-cyan    { --kpi-c: #38bdf8; }
.cs-kpi-card.kpi-violet  { --kpi-c: #a78bfa; }
.cs-kpi-card.kpi-amber   { --kpi-c: #fbbf24; }
.cs-kpi-card.is-alert {
    --kpi-c: #f43f5e;
    border-color: rgba(244, 63, 94, 0.45);
    background: linear-gradient(165deg, rgba(42, 14, 24, 0.85), rgba(13, 20, 36, 0.88));
}

.cs-kpi-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.55rem;
}

.cs-kpi-head i {
    color: var(--kpi-c, #21c68b);
}

.cs-kpi-val {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}

.cs-kpi-sub {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections */
.cs-section {
    position: relative;
    z-index: 2;
    padding: 1.9rem 0;
}

.cs-section-last {
    padding-bottom: 4rem;
}

.cs-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.cs-sec-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #34f5b0;
    margin-bottom: 0.25rem;
}

.cs-sec-title {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cs-privacy-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.85rem;
    border-radius: 999px;
    background: rgba(33, 198, 139, 0.1);
    border: 1px solid rgba(33, 198, 139, 0.28);
    color: #34f5b0;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Core Services Strip */
.cs-core-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cs-core-card {
    background: rgba(13, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    text-decoration: none !important;
    color: #f8fafc !important;
    transition: transform 0.22s ease, border-color 0.22s ease;
    min-height: 162px;
}

.cs-core-card:not(.static-card):hover {
    transform: translateY(-3px);
    border-color: rgba(52, 245, 176, 0.45);
}

.cs-core-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cs-core-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.cs-core-ico.emerald { background: rgba(33, 198, 139, 0.16); color: #34f5b0; border: 1px solid rgba(33, 198, 139, 0.35); }
.cs-core-ico.cyan    { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.cs-core-ico.violet  { background: rgba(167, 139, 250, 0.16); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.35); }
.cs-core-ico.amber   { background: rgba(251, 191, 36, 0.16); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }

.cs-core-card h3 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cs-core-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-core-link {
    font-size: 0.78rem;
    font-weight: 800;
    color: #34f5b0;
}

.cs-core-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cs-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    white-space: nowrap;
}

.cs-status-badge.ok {
    background: rgba(33, 198, 139, 0.16);
    border: 1px solid rgba(33, 198, 139, 0.36);
    color: #34f5b0;
}

.cs-status-badge.warn {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

/* 6 Colleges Grid — Compact Refined Fixed-Height Cards (ZERO layout shift) */
.cs-colleges-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
    min-height: 472px;
    align-content: start;
}

.cs-loading-box {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3.2rem 1.5rem;
    border-radius: 18px;
    background: rgba(13, 23, 42, 0.7);
    border: 1px dashed rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
    font-weight: 700;
}

.cs-college-card {
    background: linear-gradient(165deg, rgba(15, 27, 49, 0.92), rgba(9, 17, 34, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 0.95rem 1.05rem 0.9rem;
    height: 224px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cs-college-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--col-accent, #21c68b);
}

.cs-college-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.7);
}

.cs-col-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.cs-col-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.cs-col-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-col-logo-box i {
    color: #0f172a;
    font-size: 1.05rem;
}

.cs-col-titles {
    flex: 1;
    min-width: 0;
}

.cs-col-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.14rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-col-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.cs-col-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
}

.cs-inline-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 800;
    font-size: 0.71rem;
    white-space: nowrap;
}

.cs-inline-status.ok   { color: #34f5b0; }
.cs-inline-status.warn { color: #fbbf24; }
.cs-inline-status.err  { color: #fb7185; }

.cs-mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.cs-inline-status.err .cs-mini-dot {
    background: #f43f5e;
}

.cs-inline-status.err .cs-mini-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #f43f5e;
    animation: csRadarPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.cs-offline-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.44rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.48);
    color: #fda4af;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    animation: csOfflineBadgeBlink 2s ease-in-out infinite;
}

/* Dual Interactive App Tiles (Portal + Internal ERP on same VM) */
.cs-apps-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.cs-app-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.36rem;
    padding: 0.58rem 0.7rem;
    border-radius: 12px;
    background: rgba(6, 12, 25, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-decoration: none !important;
    color: #f8fafc !important;
    min-width: 0;
    transition: all 0.2s ease;
}

.cs-app-tile:not(.static-tile):hover {
    background: rgba(16, 32, 60, 0.92);
    border-color: rgba(33, 198, 139, 0.55);
    transform: translateY(-2px);
}

.cs-app-tile.static-tile {
    cursor: default;
}

.cs-app-lock {
    font-size: 0.66rem;
    color: rgba(56, 189, 248, 0.65);
}

.cs-app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
}

.cs-app-label {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
}

.cs-app-label i {
    font-size: 0.74rem;
    color: #34f5b0;
}

.cs-app-tile.erp-tile .cs-app-label i {
    color: #38bdf8;
}

.cs-app-ext {
    font-size: 0.68rem;
    color: #64748b;
    transition: color 0.2s;
}

.cs-app-tile:hover .cs-app-ext {
    color: #34f5b0;
}

.cs-app-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    font-size: 0.71rem;
    font-weight: 700;
}

.cs-app-state.ok   { color: #34f5b0; }
.cs-app-state.warn { color: #fbbf24; }

.cs-app-ms {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.1);
    padding: 0.05rem 0.36rem;
    border-radius: 6px;
}

.cs-app-host {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.66rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact Telemetry Strip (DB + Cloud Activity) */
.cs-card-telemetry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.38rem 0.6rem;
    border-radius: 9px;
    background: rgba(6, 12, 25, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.72rem;
}

.cs-tel-item {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: #cbd5e1;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-tel-item i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.cs-tel-item.db-ok   { color: #34f5b0; }
.cs-tel-item.db-warn { color: #fbbf24; }
.cs-tel-item.cloud   { color: #38bdf8; }

/* Slim 24-Bar Uptime Strip */
.cs-uptime-bars {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 3px;
    height: 7px;
}

.cs-bar {
    border-radius: 2px;
    background: linear-gradient(180deg, #34f5b0, #21c68b);
    opacity: 0.88;
}

.cs-bar.warn {
    background: linear-gradient(180deg, #fde68a, #f59e0b);
}

.cs-bar.err {
    background: linear-gradient(180deg, #fda4af, #e11d48);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.7);
    animation: csBarErrPulse 1.5s ease-in-out infinite;
}

/* ── Dynamic Server / Database Offline State (Zero Layout Shift) ── */
.cs-college-card.is-db-offline {
    background:
        radial-gradient(circle at 85% 15%, rgba(244, 63, 94, 0.16), transparent 52%),
        linear-gradient(165deg, rgba(44, 12, 23, 0.94), rgba(14, 9, 19, 0.96));
    border-color: rgba(244, 63, 94, 0.52);
    animation: csOfflineBorderPulse 2.4s ease-in-out infinite;
}

.cs-college-card.is-db-offline::before {
    height: 3.5px;
    background: linear-gradient(90deg, #e11d48, #fb7185, #f97316, #fb7185, #e11d48);
    background-size: 220% 100%;
    animation: csDangerSweep 2.4s linear infinite;
}

.cs-college-card.is-db-offline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        112deg,
        transparent 0%,
        transparent 38%,
        rgba(244, 63, 94, 0.09) 48%,
        rgba(251, 113, 133, 0.13) 50%,
        rgba(244, 63, 94, 0.06) 54%,
        transparent 64%,
        transparent 100%
    );
    transform: translateX(-115%);
    animation: csOfflineScan 3.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.cs-college-card.is-db-offline > * {
    position: relative;
    z-index: 2;
}

.cs-college-card.is-db-offline:hover {
    border-color: rgba(251, 113, 133, 0.85);
    transform: translateY(-2px);
}

.cs-college-card.is-db-offline .cs-col-logo-box {
    border-color: rgba(244, 63, 94, 0.65);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
    position: relative;
    overflow: visible;
}

.cs-college-card.is-db-offline .cs-col-logo-box img {
    filter: grayscale(0.55) opacity(0.82);
}

.cs-college-card.is-db-offline .cs-col-logo-box::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f43f5e;
    border: 2px solid #1d0c14;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.9);
    animation: csPulseErr 1.5s infinite;
}

.cs-app-tile.is-offline-tile {
    background: rgba(28, 9, 16, 0.72);
    border: 1px dashed rgba(244, 63, 94, 0.36);
    cursor: not-allowed;
    opacity: 0.92;
}

.cs-app-tile.is-offline-tile .cs-app-label {
    color: #cbd5e1;
}

.cs-app-tile.is-offline-tile .cs-app-label i {
    color: #fb7185 !important;
}

.cs-app-tile.is-offline-tile .cs-app-lock,
.cs-app-tile.is-offline-tile .cs-app-ext {
    color: rgba(251, 113, 133, 0.7);
}

.cs-app-state.err {
    color: #fb7185;
}

.cs-retry-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.18rem 0.36rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.14);
}

.cs-retry-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fb7185;
    display: inline-block;
    animation: csRetryWave 1.3s ease-in-out infinite;
}

.cs-retry-dots i:nth-child(2) { animation-delay: 0.18s; }
.cs-retry-dots i:nth-child(3) { animation-delay: 0.36s; }

.cs-card-telemetry.is-db-offline {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.42);
}

.cs-tel-item.db-err {
    color: #fda4af;
}

.cs-tel-item.db-err i {
    color: #f43f5e;
    animation: csIconBlink 1.5s ease-in-out infinite;
}

.cs-tel-item.reconnecting {
    color: #fb7185;
    font-size: 0.69rem;
}

/* Degraded (DB ok, Portal or ERP under maintenance) */
.cs-college-card.is-degraded {
    border-color: rgba(251, 191, 36, 0.42);
}

.cs-college-card.is-degraded::before {
    background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b);
    background-size: 200% 100%;
    animation: csDangerSweep 3s linear infinite;
}

@keyframes csOfflineBorderPulse {
    0%, 100% {
        border-color: rgba(244, 63, 94, 0.42);
        box-shadow: 0 12px 30px -14px rgba(244, 63, 94, 0.32), inset 0 0 0 1px rgba(244, 63, 94, 0.08);
    }
    50% {
        border-color: rgba(251, 113, 133, 0.85);
        box-shadow: 0 16px 38px -10px rgba(244, 63, 94, 0.58), inset 0 0 18px -10px rgba(244, 63, 94, 0.25);
    }
}

@keyframes csDangerSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes csOfflineScan {
    0% { transform: translateX(-115%); }
    55%, 100% { transform: translateX(115%); }
}

@keyframes csRadarPing {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes csOfflineBadgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.58; }
}

@keyframes csRetryWave {
    0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
    40% { transform: scale(1.15); opacity: 1; }
}

@keyframes csIconBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.38; }
}

@keyframes csBarErrPulse {
    0%, 100% { opacity: 0.42; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-college-card.is-db-offline,
    .cs-college-card.is-db-offline::before,
    .cs-college-card.is-db-offline::after,
    .cs-bar.err,
    .cs-retry-dots i,
    .cs-offline-pill {
        animation: none !important;
    }
}

/* Trust Box */
.cs-trust-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    background: rgba(13, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    backdrop-filter: blur(12px);
}

.cs-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cs-trust-item i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(33, 198, 139, 0.14);
    border: 1px solid rgba(33, 198, 139, 0.32);
    color: #34f5b0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cs-trust-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem;
}

.cs-trust-item p {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1120px) {
    .cs-colleges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-core-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-kpi-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .cs-hero-top   { grid-template-columns: 1fr; }
    .cs-trust-box  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cs-colleges-grid { grid-template-columns: 1fr; min-height: auto; }
    .cs-core-grid     { grid-template-columns: 1fr; }
    .cs-kpi-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-quick-portals { grid-template-columns: 1fr; }
}
