/* StudyPortal (study.famzone.net) — Stylesheet chuẩn Giáo dục Cộng đồng & Hệ sinh thái Famzone */
:root {
    --bg-body: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --bg-input: #0f172a;
    --border-color: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --gold: #eab308;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #7dd3fc;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.sp-navbar {
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.sp-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}
.sp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}
.sp-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
}
.sp-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-right: auto;
}
.sp-nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.94rem;
}
.sp-nav-link:hover, .sp-nav-link.active {
    background: rgba(59, 130, 246, 0.14);
    color: #fff;
}
.sp-user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Cards & Grid */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.84rem;
}
.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-warning {
    background: var(--warning);
    color: #0b0f19;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border-color: #334155;
    color: var(--text-main);
}
.btn-outline:hover {
    background: #1e293b;
    color: #fff;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-info { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.badge-success { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-danger { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-purple { background: rgba(139, 92, 246, 0.18); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); }
.badge-gold { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.45); }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

/* Tabs */
.sp-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.sp-tab {
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.sp-tab:hover {
    color: #fff;
    background: #1e293b;
}
.sp-tab.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Autofill Dark Mode Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}
.sp-table {
    width: 100%;
    border-collapse: collapse;
}
.sp-table th, .sp-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.sp-table th {
    color: var(--text-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sp-table tr:hover td {
    background: rgba(30, 41, 59, 0.45);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 500;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.4); color: #93c5fd; }

/* Taking Exam Room & Countdown Timer */
.exam-timer-bar {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid #334155;
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.countdown-clock {
    font-size: 1.45rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.countdown-clock.urgent {
    color: #f87171;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.question-box {
    background: #131c2e;
    border: 1px solid #26334d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #26334d;
}
.option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0f172a;
    margin-bottom: 8px;
    cursor: pointer;
}
.option-item:hover {
    border-color: #3b82f6;
}
.option-item.correct-ans {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}
.option-item.wrong-ans {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.pricing-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}
.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 4px;
}

/* Modal */
.sp-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sp-modal-backdrop.open {
    display: flex;
}
.sp-modal {
    background: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.sp-footer {
    border-top: 1px solid var(--border-color);
    padding: 28px 0;
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Exam Stats Grid (Luôn 4 cột cùng 1 hàng trên màn hình rộng) */
.exam-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .exam-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .exam-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Question Matrix Sidebar Layout trong Editor */
.editor-layout-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.editor-main-col {
    flex: 1;
    min-width: 0;
}
.question-matrix-sidebar {
    width: 260px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-shrink: 0;
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.matrix-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.matrix-btn:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}
.matrix-btn .matrix-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}
.matrix-btn:hover .matrix-sub {
    color: #e0e7ff;
}
.question-box.highlight-focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.7);
    border-color: #3b82f6 !important;
    transition: all 0.3s ease;
}

/* Scroll To Top Global Button */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.2s ease;
    padding: 0;
}
.scroll-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
}
.scroll-to-top.show {
    display: flex;
}

/* CKEditor 4 Dark Skin Overrides */
.cke_chrome {
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    background: #1e293b !important;
    overflow: hidden;
}
.cke_top {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}
.cke_bottom {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
}
.cke_path_item, .cke_path_empty {
    color: #94a3b8 !important;
}
.cke_resizer {
    border-color: transparent #94a3b8 transparent transparent !important;
}
/* Làm sáng toàn bộ toolbar icon và nút bấm trong CKEditor trên nền tối */
.cke_button_icon {
    filter: invert(0.92) brightness(2) contrast(1.1) !important;
}
.cke_button_label, .cke_combo_text {
    color: #f1f5f9 !important;
    text-shadow: none !important;
}
.cke_combo_open {
    border-top-color: #cbd5e1 !important;
}
.cke_combo_button {
    background: #1e293b !important;
    border: 1px solid #475569 !important;
    box-shadow: none !important;
}
.cke_toolgroup {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    box-shadow: none !important;
}
.cke_button:hover, .cke_combo_button:hover {
    background: #334155 !important;
}
.cke_button_on {
    background: #2563eb !important;
}
.cke_button_disabled .cke_button_icon {
    opacity: 0.3 !important;
    filter: none !important;
}

/* Mobile Responsive Adjustments (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .sp-navbar-inner {
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sp-brand {
        font-size: 1.1rem;
    }
    .sp-brand-logo {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .sp-nav-links {
        order: 3;
        width: 100%;
        margin-right: 0;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sp-nav-links::-webkit-scrollbar {
        display: none;
    }
    .sp-nav-link {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .sp-user-bar {
        gap: 6px;
    }
    .sp-user-bar .btn {
        padding: 5px 8px;
        font-size: 0.78rem;
    }
    .card {
        padding: 14px;
        border-radius: 10px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    .editor-layout-wrap {
        flex-direction: column;
    }
    .question-matrix-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        order: -1;
        margin-bottom: 16px;
    }
    .matrix-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}

/* ==================== PHÒNG THI NÂNG CAO: INLINE BLANK, SVG MATCHING, DND ORDERING ==================== */
.inline-blank-input {
    display: inline-block !important;
    width: auto !important;
    min-width: 110px;
    max-width: 240px;
    padding: 3px 10px !important;
    margin: 2px 4px;
    font-size: 0.92rem !important;
    border: 1.5px dashed #38bdf8 !important;
    background: #0f172a !important;
    color: #f8fafc !important;
    border-radius: 6px !important;
    vertical-align: middle;
}
.inline-blank-input:focus {
    border-style: solid !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    outline: none;
}

.matching-board {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}
.matching-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.matching-col {
    position: relative;
    z-index: 3;
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #1e293b;
}
.matching-left-item,
.matching-right-item {
    position: relative;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #111c31;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.matching-left-item:last-child,
.matching-right-item:last-child {
    margin-bottom: 0;
}
.matching-left-item:hover,
.matching-right-item:hover {
    border-color: #38bdf8;
}
.matching-left-item.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}
.matching-left-item.paired,
.matching-right-item.paired {
    border-color: #10b981;
}
.matching-dot {
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #94a3b8;
    transform: translateY(-50%);
}
.matching-dot-left-side {
    right: -6px;
}
.matching-dot-right-side {
    left: -6px;
}
.matching-pair-pill {
    display: inline-block;
    font-size: 0.74rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    cursor: pointer;
}
.matching-pair-pill.linked {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: #10b981;
}

.ordering-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ordering-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #0f172a;
    flex-wrap: wrap;
    cursor: grab;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.ordering-item:hover {
    border-color: #38bdf8;
}
.ordering-item.dragging {
    opacity: 0.55;
    border-color: #3b82f6;
}
.ordering-drag-handle {
    cursor: grab;
    color: #94a3b8;
    font-weight: 700;
    user-select: none;
    padding: 2px 6px;
}

.exam-no-copy {
    -webkit-user-select: none;
    user-select: none;
}
.exam-no-copy input,
.exam-no-copy textarea,
.exam-no-copy select,
.inline-blank-input {
    -webkit-user-select: text;
    user-select: text;
}

.matrix-mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .matching-board {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .matching-svg,
    .matching-dot {
        display: none;
    }
    .matrix-mobile-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        background: #1e293b;
        color: #38bdf8;
        border: 1px solid #334155;
        border-radius: 8px;
        padding: 8px 12px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
    }
    .question-matrix-sidebar.sp-collapsible .matrix-desktop-header {
        display: none !important;
    }
    .question-matrix-sidebar.sp-collapsible .matrix-collapsible-body {
        display: none;
        margin-top: 10px;
    }
    .question-matrix-sidebar.sp-collapsible.expanded .matrix-collapsible-body {
        display: block;
    }
}

/* Toast Notifications & AJAX Loading */
.sp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 390px;
    pointer-events: none;
}
.sp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    font-size: 0.9rem;
    line-height: 1.45;
    animation: spToastIn 0.22s ease-out;
}
.sp-toast.success { border-left: 4px solid #10b981; }
.sp-toast.error { border-left: 4px solid #ef4444; }
.sp-toast.warning { border-left: 4px solid #f59e0b; }
.sp-toast.info { border-left: 4px solid #38bdf8; }
@keyframes spToastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.sp-loading-overlay {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

@keyframes spSpin {
    to { transform: rotate(360deg); }
}

.sp-global-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(7, 11, 20, 0.72);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: wait;
}
.sp-global-loader.active {
    display: flex;
}

.sp-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 170px;
    max-width: 300px;
    padding: 20px 28px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
    text-align: center;
}
.sp-loader-card.sm {
    gap: 8px;
    min-width: 145px;
    padding: 14px 20px;
    border-radius: 12px;
}

.sp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(148, 163, 184, 0.25);
    border-top-color: #38bdf8;
    border-right-color: #60a5fa;
    border-radius: 50%;
    animation: spSpin 0.72s linear infinite;
}
.sp-spinner.sm {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

.sp-loader-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
}

.sp-scoped-loading {
    position: relative !important;
    min-height: 150px;
}
.sp-scoped-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(11, 15, 25, 0.68);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px;
    pointer-events: all;
    cursor: wait;
}
.sp-scoped-overlay .sp-loader-card {
    position: sticky;
    top: 42vh;
}


