body, button, input, select, textarea, .font-sans, .font-mono, [class*="font-"] {
    font-family: 'Roboto', sans-serif !important;
}

.bg-grid {
    background-image: linear-gradient(rgba(59, 130, 246, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .07) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}



.glass-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.glow {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.orb {
    border-radius: 50%;
    filter: blur(80px);
    position: absolute;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Dashboard and Sidebar layout classes */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 10px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .3s ease;
}



.glass-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}



.glass-card-static {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-link {
    transition: all .2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(37, 99, 235, .08));
    border-left: 3px solid #3b82f6;
    color: #fff !important;
}

.sidebar-link:hover:not(.active) {
    background: rgba(255, 255, 255, .06);
}

.badge-running {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .3);
}

.badge-stopped {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, .3);
}

.badge-pending {
    background: rgba(234, 179, 8, .15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, .3);
}

.badge-info {
    background: rgba(59, 130, 246, .15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, .3);
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, .1);
    border-radius: 9px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 1.2s ease;
}

.tab-btn {
    transition: all .2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
}

.tab-btn.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

.modal-backdrop {
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
}

.plan-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}



.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}



.plan-card.featured {
    border-color: rgba(59, 130, 246, .5);
    background: rgba(37, 99, 235, .08);
}

.plan-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.badge-best {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.btn-buy {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    transition: all .3s ease;
    font-weight: 700;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, .4);
    color: #60a5fa;
    transition: all .2s ease;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, .12);
    border-color: #3b82f6;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideup {
    animation: slideUp .4s ease-out;
}

/* ===== Màn hình loading khởi động — light theme AI 5.0, % thật từ Blazor (--blazor-load-percentage) ===== */
.boot-loading {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fbfdff 0%, #edf7ff 45%, #ecfeff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    z-index: 9999;
    overflow: hidden;
}

/* Lưới kỹ thuật mờ dần ra rìa */
.boot-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(21, 144, 232, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 144, 232, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
    pointer-events: none;
}

/* Aurora xoay chậm */
.boot-aurora {
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.55;
    animation: bootAurora 16s linear infinite;
}

.boot-aurora-1 {
    top: -35vmax;
    left: -20vmax;
    background: conic-gradient(from 0deg, rgba(21, 144, 232, 0.14), rgba(34, 211, 238, 0.10), rgba(99, 102, 241, 0.08), rgba(21, 144, 232, 0.14));
}

.boot-aurora-2 {
    bottom: -38vmax;
    right: -22vmax;
    background: conic-gradient(from 180deg, rgba(34, 211, 238, 0.12), rgba(21, 144, 232, 0.09), rgba(56, 189, 248, 0.12), rgba(34, 211, 238, 0.12));
    animation-direction: reverse;
    animation-duration: 22s;
}

@keyframes bootAurora {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Hạt dữ liệu bay lên */
.boot-particle {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 144, 232, 0.85), rgba(21, 144, 232, 0));
    animation: bootRise linear infinite;
    pointer-events: none;
}

.boot-particle.p1 { left: 12%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 0s; }
.boot-particle.p2 { left: 26%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 2.2s; }
.boot-particle.p3 { left: 43%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 4.5s; }
.boot-particle.p4 { left: 62%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 1.4s; background: radial-gradient(circle, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0)); }
.boot-particle.p5 { left: 78%; width: 6px; height: 6px; animation-duration: 8.5s; animation-delay: 3.2s; background: radial-gradient(circle, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0)); }
.boot-particle.p6 { left: 90%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 5.6s; }

@keyframes bootRise {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: 0.9; }
    85% { opacity: 0.5; }
    100% { transform: translateY(-105vh); opacity: 0; }
}

/* Khung HUD 4 góc màn hình */
.boot-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(21, 144, 232, 0.35);
    pointer-events: none;
    animation: bootCorner 3s ease-in-out infinite;
}

.boot-corner.c-tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.boot-corner.c-tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; animation-delay: 0.4s; }
.boot-corner.c-bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; animation-delay: 0.8s; }
.boot-corner.c-br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; animation-delay: 1.2s; }

@keyframes bootCorner {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Cụm vòng tròn trung tâm */
.boot-ring-wrap {
    position: relative;
    width: 11.5rem;
    height: 11.5rem;
    margin-bottom: 1.9rem;
}

/* Sóng radar lan tỏa phía sau */
.boot-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(21, 144, 232, 0.35);
    animation: bootRipple 3.2s cubic-bezier(0, 0.55, 0.45, 1) infinite;
    pointer-events: none;
}

.boot-ripple.r2 { animation-delay: 1.05s; }
.boot-ripple.r3 { animation-delay: 2.1s; }

@keyframes bootRipple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.85); opacity: 0; }
}

/* Vành đai quỹ đạo + vệ tinh */
.boot-orbit {
    position: absolute;
    inset: -1.35rem;
    border: 1px dashed rgba(21, 144, 232, 0.3);
    border-radius: 50%;
    animation: bootSpin 14s linear infinite;
    pointer-events: none;
}

.boot-orbit.o2 {
    inset: -2.6rem;
    border-color: rgba(34, 211, 238, 0.22);
    animation-direction: reverse;
    animation-duration: 22s;
}

.boot-sat {
    position: absolute;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1590e8, #22d3ee);
    box-shadow: 0 0 10px rgba(21, 144, 232, 0.8), 0 0 20px rgba(34, 211, 238, 0.4);
}

.boot-sat.s2 {
    top: auto;
    bottom: -4px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
}

@keyframes bootSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vòng tròn tiến trình — % thật do blazor.webassembly.js cập nhật */
.loading-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(21, 144, 232, 0.10);
    stroke-width: 0.45rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: url(#bootRingGradient);
    stroke-linecap: round;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(21, 144, 232, 0.55));
}

/* Lõi trắng kính */
.boot-ring-center {
    position: absolute;
    inset: 1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f4faff 100%);
    border-radius: 50%;
    box-shadow:
        0 18px 44px rgba(20, 74, 120, 0.16),
        inset 0 0 0 1px rgba(21, 144, 232, 0.10),
        inset 0 -12px 24px rgba(21, 144, 232, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    animation: bootCoreFloat 4s ease-in-out infinite;
}

@keyframes bootCoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.loading-progress-text {
    font-size: 1.55rem;
    font-weight: 900;
    background: linear-gradient(90deg, #0f76c8, #1590e8, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.01em;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "0%");
}

/* Tiêu đề với hiệu ứng shimmer */
.boot-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.boot-title span {
    background: linear-gradient(90deg, #1590e8, #22d3ee, #6366f1, #1590e8);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bootShimmer 4s linear infinite;
}

@keyframes bootShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

/* Dòng trạng thái chạy vòng (3 thông điệp) */
.boot-status {
    position: relative;
    height: 1.3rem;
    margin-top: 0.5rem;
    width: 320px;
    text-align: center;
}

.boot-status span {
    position: absolute;
    inset: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: #64748b;
    opacity: 0;
    animation: bootStatus 7.5s ease-in-out infinite;
}

.boot-status span:nth-child(2) { animation-delay: 2.5s; }
.boot-status span:nth-child(3) { animation-delay: 5s; }

@keyframes bootStatus {
    0% { opacity: 0; transform: translateY(8px); }
    6%, 27% { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* Thanh tiến trình ngang — % thật */
.boot-bar {
    position: relative;
    width: 260px;
    height: 7px;
    margin-top: 1.5rem;
    background: rgba(21, 144, 232, 0.10);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(20, 74, 120, 0.08);
}

.boot-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--blazor-load-percentage, 0%);
    background: linear-gradient(90deg, #0f76c8, #1590e8, #22d3ee);
    border-radius: 999px;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(21, 144, 232, 0.55);
}

.boot-bar-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    animation: bootShine 1.4s linear infinite;
}

@keyframes bootShine {
    0% { left: -46px; }
    100% { left: 100%; }
}

/* Hàng huy hiệu công nghệ */
.boot-badges {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.boot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(20, 74, 120, 0.08), inset 0 0 0 1px rgba(21, 144, 232, 0.14);
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f76c8;
    letter-spacing: 0.04em;
    animation: bootBadgeFloat 3.6s ease-in-out infinite;
}

.boot-badge:nth-child(2) { animation-delay: 0.6s; }
.boot-badge:nth-child(3) { animation-delay: 1.2s; }

.boot-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.boot-badge .dot.blue { background: #1590e8; box-shadow: 0 0 8px rgba(21, 144, 232, 0.8); }
.boot-badge .dot.cyan { background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, 0.8); }

@keyframes bootBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Đám mây trôi */
.boot-cloud {
    position: absolute;
    color: #d9edfe;
    pointer-events: none;
    animation: bootCloudFloat 9s ease-in-out infinite alternate;
}

.boot-cloud-1 { width: 150px; top: 13%; left: 9%; }
.boot-cloud-2 { width: 100px; bottom: 16%; right: 11%; animation-delay: 2s; animation-duration: 7s; }

@keyframes bootCloudFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0.7; }
    100% { transform: translateY(-16px) translateX(20px); opacity: 1; }
}

/* Chong FOUC chu den o sidebar: to mau tinh truoc khi Tailwind CDN kip sinh class */
#sidebar { color: rgba(237, 247, 254, 0.85); }
