/* SLAx Application Styles */

/* Mobile menu styles */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 600px;
}

/* Mobile nav link animation */
.mobile-nav-link {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* Aurora background container */
#aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background-color: #030712;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    animation: aurora-drift linear infinite;
}

/* Blue blob — top-left */
.aurora-blob-1 {
    width: 65vw; height: 65vw;
    background: radial-gradient(circle at center, #3b82f6 0%, transparent 70%);
    filter: blur(90px);
    top: -20%; left: -15%;
    animation-duration: 48s;
    animation-delay: 0s;
}

/* Purple blob — right-center */
.aurora-blob-2 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle at center, #8b5cf6 0%, transparent 70%);
    filter: blur(110px);
    top: 25%; right: -15%;
    animation-duration: 64s;
    animation-delay: -20s;
}

/* Cyan blob — bottom-center */
.aurora-blob-3 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle at center, #06b6d4 0%, transparent 70%);
    filter: blur(80px);
    bottom: -10%; left: 25%;
    animation-duration: 54s;
    animation-delay: -10s;
}

@keyframes aurora-drift {
    0%   { transform: translate(0,    0   ) scale(1);    }
    25%  { transform: translate(4vw,  3vh ) scale(1.06); }
    50%  { transform: translate(2vw,  8vh ) scale(0.94); }
    75%  { transform: translate(-3vw, 4vh ) scale(1.03); }
    100% { transform: translate(0,    0   ) scale(1);    }
}

/* Stripe-style ribbon canvas — home page only, managed by home.js */
#ribbon-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: blur(22px);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1.2s ease;
}

#ribbon-canvas.visible {
    opacity: 1;
}

/* Content layer above background */
.content-layer {
    position: relative;
    z-index: 1;
}

/* Navbar needs higher z-index for dropdowns to appear over content */
#navbar {
    z-index: 100;
}

/* Modal container must sit above navbar so modals aren't clipped */
#modal-container {
    z-index: 200;
}

/* Panel transparency (matches dashboard.js styling) */
.panel {
    background-color: rgba(17, 24, 39, 0.05) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

.card {
    background-color: rgba(31, 41, 55, 0.05) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Base input styles */
.input-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: rgb(31, 41, 55);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field:focus {
    outline: none;
    border-color: rgb(59, 130, 246);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.input-field::placeholder {
    color: rgb(107, 114, 128);
}

.input-field.error {
    border-color: rgb(239, 68, 68);
}

.input-field.success {
    border-color: rgb(34, 197, 94);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: rgb(37, 99, 235);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: rgb(29, 78, 216);
}

.btn-secondary {
    background-color: rgb(75, 85, 99);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgb(55, 65, 81);
}

.btn-danger {
    background-color: rgb(220, 38, 38);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: rgb(185, 28, 28);
}

.btn-ghost {
    background-color: transparent;
    color: rgb(156, 163, 175);
}

.btn-ghost:hover:not(:disabled) {
    background-color: rgb(55, 65, 81);
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Load More Button - Glass effect with gradient border */
.btn-load-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(209, 213, 219);
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 0.5rem;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-load-more:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.btn-load-more:hover::before {
    opacity: 1;
}

.btn-load-more svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.btn-load-more:hover svg {
    transform: translateY(2px);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more:disabled:hover::before {
    opacity: 0;
}

/* Navigation */
.nav-link {
    color: rgb(156, 163, 175);
    transition: color 0.15s ease-in-out;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: rgb(96, 165, 250);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-active {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
}

.status-disabled {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
}

.status-suspended {
    background-color: rgba(234, 179, 8, 0.2);
    color: rgb(253, 224, 71);
}

.status-warning {
    background-color: rgba(249, 115, 22, 0.2);
    color: rgb(253, 186, 116);
}

/* Plan badges */
.plan-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
    white-space: nowrap;
}

.plan-free {
    color: rgb(156, 163, 175);
    border: 1px solid rgb(55, 65, 81);
    background-color: transparent;
}

.plan-pro {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
}

.status-pending {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgb(55, 65, 81);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgb(55, 65, 81);
}

tr:hover {
    background-color: rgba(55, 65, 81, 0.3);
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    min-width: 12rem;
    background-color: rgb(31, 41, 55);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.15s ease-in-out;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: rgb(209, 213, 219);
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgb(55, 65, 81);
    color: white;
}

.dropdown-divider {
    height: 1px;
    margin: 0.25rem 0;
    background-color: rgb(55, 65, 81);
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
}

.modal-content {
    background-color: rgb(17, 24, 39);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgb(55, 65, 81);
    background-color: rgba(3, 7, 18, 0.5);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgb(55, 65, 81);
}

/* Toast notifications */
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: min(400px, calc(100vw - 2rem));
}

.toast-success {
    background-color: rgb(22, 101, 52);
    color: rgb(187, 247, 208);
}

.toast-error {
    background-color: rgb(153, 27, 27);
    color: rgb(254, 202, 202);
}

.toast-info {
    background-color: rgb(30, 64, 175);
    color: rgb(191, 219, 254);
}

.toast-warning {
    background-color: rgb(161, 98, 7);
    color: rgb(254, 240, 138);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Form groups */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(209, 213, 219);
    margin-bottom: 0.25rem;
}

.form-error {
    font-size: 0.75rem;
    color: rgb(248, 113, 113);
    margin-top: 0.25rem;
}

.form-help {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
    margin-top: 0.25rem;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.spinner.hidden {
    display: none;
}

.spinner-lg {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

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

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
    background-color: transparent;
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background-color: rgb(55, 65, 81);
    color: white;
}

.pagination-btn.active {
    background-color: rgb(37, 99, 235);
    border-color: rgb(37, 99, 235);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility classes */
.text-muted {
    color: rgb(107, 114, 128);
}

.text-error {
    color: rgb(248, 113, 113);
}

.text-success {
    color: rgb(134, 239, 172);
}

.text-warning {
    color: rgb(253, 224, 71);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card component */
.stat-card {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

/* Section header */
.section-header {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

/* Risk Assessment Modal - Collapsible Sections */
.risk-collapsible {
    border-top: 1px solid rgb(55, 65, 81);
}

.risk-collapsible-header {
    cursor: pointer;
    transition: color 0.15s;
}

.risk-collapsible-icon {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.risk-collapsible-icon.expanded {
    transform: rotate(90deg);
}

.risk-collapsible-content {
    padding-bottom: 0.5rem;
}

/* Risk Assessment Modal - Range Slider */
.risk-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgb(55, 65, 81);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.risk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: rgb(59, 130, 246);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.15s, box-shadow 0.15s;
}

.risk-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.risk-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: rgb(59, 130, 246);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

/* Exceedance bar colors */
.risk-exceedance-bar.low { background-color: rgb(34, 197, 94); }
.risk-exceedance-bar.medium { background-color: rgb(234, 179, 8); }
.risk-exceedance-bar.high { background-color: rgb(249, 115, 22); }
.risk-exceedance-bar.critical { background-color: rgb(239, 68, 68); }

/* Data quality bar colors */
.risk-data-quality-bar.prior-dominated { background-color: rgb(239, 68, 68); }
.risk-data-quality-bar.blended { background-color: rgb(234, 179, 8); }
.risk-data-quality-bar.data-dominated { background-color: rgb(34, 197, 94); }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: rgb(107, 114, 128);
    width: 100%;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.875rem;
}

/* =============================================================================
   Insurance Status Badges (Phase 9)
   ============================================================================= */

/* Policy statuses */
.status-pending-payment {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
}

.status-active {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
}

.status-expired {
    background-color: rgba(234, 179, 8, 0.2);
    color: rgb(253, 224, 71);
}

.status-cancelled {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
}

/* Payout statuses */
.status-pending-approval {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
}

.status-approved {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
}

.status-denied {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
}

.status-excluded {
    background-color: rgba(249, 115, 22, 0.2);
    color: rgb(253, 186, 116);
}

.status-paid {
    background-color: rgba(16, 185, 129, 0.2);
    color: rgb(110, 231, 183);
}

/* Data quality badges */
.quality-prior-dominated {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
}

.quality-blended {
    background-color: rgba(234, 179, 8, 0.2);
    color: rgb(253, 224, 71);
}

.quality-data-dominated {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
}

/* =============================================================================
   Quote Builder Styles (Phase 9)
   ============================================================================= */

/* Custom range slider for quote builder */
.quote-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgb(55, 65, 81);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 0.5rem 0;
}

.quote-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgb(59, 130, 246);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.quote-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.quote-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: rgb(59, 130, 246);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quote-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quote-slider:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

/* Premium breakdown display */
.premium-breakdown {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.premium-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.premium-breakdown-row.total {
    border-top: 1px solid rgb(55, 65, 81);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.premium-breakdown-label {
    color: rgb(156, 163, 175);
}

.premium-breakdown-value {
    color: rgb(209, 213, 219);
}

.premium-breakdown-row.total .premium-breakdown-value {
    color: rgb(134, 239, 172);
    font-size: 1rem;
}

/* Quote expiration countdown */
.quote-expiration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: rgb(253, 224, 71);
}

.quote-expiration.expired {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgb(252, 165, 165);
}

/* Eligibility check list */
.eligibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.eligibility-list .check-icon {
    color: rgb(34, 197, 94);
}

.eligibility-list .x-icon {
    color: rgb(239, 68, 68);
}

/* Coverage option card */
.coverage-card {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.coverage-card:hover {
    border-color: rgb(75, 85, 99);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.coverage-card.ineligible {
    opacity: 0.7;
}

.coverage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.coverage-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.coverage-card-chain {
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    text-transform: capitalize;
}

.coverage-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
}

.coverage-card-stat {
    color: rgb(156, 163, 175);
}

.coverage-card-stat-value {
    color: rgb(209, 213, 219);
    font-weight: 500;
}

/* Timeline component */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background-color: rgb(55, 65, 81);
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.125rem;
    top: 0.375rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgb(59, 130, 246);
    border-radius: 50%;
}

.timeline-item.completed::before {
    background-color: rgb(34, 197, 94);
}

.timeline-item.pending::before {
    background-color: rgb(156, 163, 175);
}

.timeline-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.timeline-item-time {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
    margin-top: 0.125rem;
}

/* Tabs navigation */
.tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    background-color: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.tab:hover {
    color: white;
    background-color: rgba(55, 65, 81, 0.5);
}

.tab.active {
    color: white;
    background-color: rgb(55, 65, 81);
}

.monitoring-tabs {
    margin-bottom: 1.5rem;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.tab-icon {
    width: 1rem;
    height: 1rem;
}

.tab.tab-disabled {
    color: rgb(107, 114, 128);
    opacity: 0.5;
    cursor: not-allowed;
}

.tab.tab-disabled:hover {
    color: rgb(107, 114, 128);
    background-color: transparent;
}

.tab-badge-soon {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 9999px;
    padding: 0.0625rem 0.4rem;
    margin-left: 0.375rem;
    line-height: 1.4;
}

.badge-public {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 9999px;
    padding: 0.0625rem 0.4rem;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
}

.tab-badge-pro {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 9999px;
    padding: 0.0625rem 0.4rem;
    margin-left: 0.375rem;
    line-height: 1.4;
}

/* Inline lock icon for tier gating */
.lock-icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    margin-top: -1px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Filter controls */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background-color: rgb(31, 41, 55);
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.filter-select:focus {
    outline: none;
    border-color: rgb(59, 130, 246);
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(209, 213, 219);
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(59, 130, 246);
}

/* Clickable table row */
tr.clickable {
    cursor: pointer;
}

tr.clickable:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

/* =============================================================================
   Capital Pool Styles (Phase 10)
   ============================================================================= */

/* Utilization progress bar */
.utilization-bar {
    height: 6px;
    background-color: rgb(55, 65, 81);
    border-radius: 3px;
    overflow: hidden;
}

.utilization-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
}

.utilization-bar-fill.low {
    background-color: rgb(34, 197, 94);
}

.utilization-bar-fill.medium {
    background-color: rgb(234, 179, 8);
}

.utilization-bar-fill.high {
    background-color: rgb(249, 115, 22);
}

.utilization-bar-fill.critical {
    background-color: rgb(239, 68, 68);
}

/* Circuit breaker warning banner */
.circuit-breaker-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.5rem;
    color: rgb(252, 165, 165);
    font-size: 0.875rem;
}

.circuit-breaker-warning strong {
    color: rgb(248, 113, 113);
}

/* Transaction type badges */
.tx-type-deposit {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
}

.tx-type-withdrawal {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
}

.tx-type-reservation {
    background-color: rgba(234, 179, 8, 0.2);
    color: rgb(253, 224, 71);
}

.tx-type-release {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
}

.tx-type-payout {
    background-color: rgba(249, 115, 22, 0.2);
    color: rgb(253, 186, 116);
}

.tx-type-premium {
    background-color: rgba(168, 85, 247, 0.2);
    color: rgb(216, 180, 254);
}

/* =============================================================================
   Landing Page Bold Redesign Styles
   ============================================================================= */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4),
                    0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6),
                    0 0 60px rgba(139, 92, 246, 0.4);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes border-glow {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }
    50% {
        border-color: rgba(139, 92, 246, 0.5);
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    }
}

@keyframes line-fill {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Animation utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

.animate-icon-pulse {
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes logo-gradient {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.logo-animated {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-gradient 4s linear infinite;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: inline-block;
}

.logo-animated:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Gradient text styles */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warning {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated gradient underline */
.gradient-underline {
    position: relative;
    display: inline-block;
}

.gradient-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    border-radius: 2px;
}

/* Glass morphism card */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card.static:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Gradient border card */
.gradient-border-card {
    position: relative;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow: hidden;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-glow 4s ease infinite;
}

.gradient-border-card:hover::before {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
}

/* Section-specific gradient borders */
.gradient-border-warning::before {
    background: linear-gradient(135deg, #ef4444, #f97316, #eab308);
}

.gradient-border-trust::before {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #0ea5e9);
}

.gradient-border-success::before {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #06b6d4);
}

/* Icon container with gradient background */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--icon-color-1), var(--icon-color-2));
    opacity: 0.2;
    border-radius: 12px;
}

.icon-container svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
}

.icon-container.warning {
    --icon-color-1: #ef4444;
    --icon-color-2: #f97316;
}

.icon-container.warning svg {
    stroke: #f87171;
}

.icon-container.trust {
    --icon-color-1: #3b82f6;
    --icon-color-2: #06b6d4;
}

.icon-container.trust svg {
    stroke: #60a5fa;
}

.icon-container.success {
    --icon-color-1: #10b981;
    --icon-color-2: #14b8a6;
}

.icon-container.success svg {
    stroke: #34d399;
}

.icon-container.purple {
    --icon-color-1: #8b5cf6;
    --icon-color-2: #a855f7;
}

.icon-container.purple svg {
    stroke: #a78bfa;
}

/* Enhanced CTA button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-size: 200% 200%;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradient-shift 4s ease infinite;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-cta svg {
    transition: transform 0.3s ease;
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

/* CTA glow effect */
.cta-glow-wrapper {
    position: relative;
    display: inline-block;
}

.cta-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 1rem;
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* CTA badge */
.cta-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* How It Works enhanced styles */
.how-it-works-container {
    position: relative;
}

.how-it-works-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(55, 65, 81, 0.5);
    transform: translateY(-50%);
    z-index: 0;
}

.how-it-works-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 1px;
    width: 0;
    transition: width 1s ease-out;
}

.how-it-works-line-fill.animated {
    width: 100%;
}

.how-it-works-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.step-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    color: #60a5fa;
}

/* How It Works mobile layout */
@media (max-width: 767px) {
    .how-it-works-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .how-it-works-step:last-child {
        margin-bottom: 0;
    }

    .how-it-works-step .step-icon {
        display: none;
    }

    .how-it-works-step .step-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin: 0;
        font-size: 1rem;
    }

    .how-it-works-step .step-number::after {
        inset: -3px;
    }

    .how-it-works-step p {
        flex: 1;
        padding: 0;
        margin: 0;
    }
}

/* Feature card styles */
.feature-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(59, 130, 246, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: #60a5fa;
}

/* Landing hero specific styles */
.landing-hero {
    text-align: center;
    padding: 2.5rem 3rem 3rem;
    margin-bottom: 2rem;
}

.landing-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .landing-hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .landing-hero h1 {
        font-size: 4rem;
    }
}

.landing-hero p {
    font-size: 1.125rem;
    color: rgb(156, 163, 175);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Scroll animation trigger class */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Landing page section spacing */
.landing-section {
    margin-bottom: 3rem;
}

/* Customer segment card */
.segment-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.segment-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.segment-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.segment-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: rgb(209, 213, 219);
}

.segment-card li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    margin-top: 2px;
    stroke: #22d3ee;
}

/* Icon size constraints for problem section */
.icon-container svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
}

/* =============================================================================
   UI Redesign - Enhanced Components
   ============================================================================= */

/* Page content animation wrapper */
.page-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Enhanced stat card with hover transform */
.stat-card-enhanced {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card-enhanced .stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    margin-bottom: 0.5rem;
}

.stat-card-enhanced .stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

/* Glass table container */
.glass-table-container {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.glass-table-container .table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-table-container table {
    width: 100%;
}

.glass-table-container th {
    background: rgba(17, 24, 39, 0.4);
}

.glass-table-container tr:hover {
    background-color: rgba(55, 65, 81, 0.4);
}

/* Enhanced section header */
.section-header-enhanced {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header-enhanced.with-gradient {
    position: relative;
    overflow: hidden;
}

.section-header-enhanced.with-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

/* Quick action card */
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-action-card .action-title {
    font-weight: 500;
    color: white;
}

.quick-action-card .action-subtitle {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
}

/* Glass form container */
.glass-form-container {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.glass-form-container .form-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.glass-form-container .form-body {
    padding: 1.5rem;
}

.glass-form-container .form-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* Small icon containers for dashboard actions */
.icon-container-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.icon-container-sm::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--icon-color-1), var(--icon-color-2));
    opacity: 0.2;
    border-radius: 10px;
}

.icon-container-sm svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
}

.icon-container-sm.trust {
    --icon-color-1: #3b82f6;
    --icon-color-2: #06b6d4;
}

.icon-container-sm.trust svg {
    stroke: #60a5fa;
}

.icon-container-sm.success {
    --icon-color-1: #10b981;
    --icon-color-2: #14b8a6;
}

.icon-container-sm.success svg {
    stroke: #34d399;
}

.icon-container-sm.warning {
    --icon-color-1: #ef4444;
    --icon-color-2: #f97316;
}

.icon-container-sm.warning svg {
    stroke: #f87171;
}

.icon-container-sm.purple {
    --icon-color-1: #8b5cf6;
    --icon-color-2: #a855f7;
}

.icon-container-sm.purple svg {
    stroke: #a78bfa;
}

/* Glass panel - general purpose */
.glass-panel {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.glass-panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-panel-body {
    padding: 1rem 1.5rem;
}

/* Admin action link in panels */
.admin-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: rgb(209, 213, 219);
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-action-link:hover {
    background: rgba(55, 65, 81, 0.5);
    color: white;
}

.admin-action-link svg {
    width: 18px;
    height: 18px;
    stroke: rgb(156, 163, 175);
    transition: stroke 0.2s ease;
}

.admin-action-link:hover svg {
    stroke: #60a5fa;
}

/* =============================================================================
   Alert Threshold Slider Styles
   ============================================================================= */

.threshold-section {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.threshold-row {
    padding: 0.5rem 0;
    max-height: 120px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.threshold-row-hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.alert-threshold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgb(55, 65, 81);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0.25rem 0;
}

.alert-threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.alert-threshold-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.alert-threshold-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.threshold-value-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.threshold-value-badge.active {
    color: #93c5fd;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

/* Chain filter scrollbar hide */
#chain-filter {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chain-filter::-webkit-scrollbar {
    display: none;
}

/* =============================================================================
   Monitoring Page Enhanced Styles
   ============================================================================= */

/* Filter bar with gradient top border accent */
.filter-bar-accent {
    position: relative;
}

.filter-bar-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
}

/* Monitoring card with enhanced hover */
.monitoring-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.monitoring-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3),
                0 0 15px -3px rgba(59, 130, 246, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Gradient border variants for monitoring cards */
.monitoring-card.gradient-border-success {
    position: relative;
}

.monitoring-card.gradient-border-success::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, #10b981, #34d399, #10b981);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.monitoring-card.gradient-border-trust {
    position: relative;
}

.monitoring-card.gradient-border-trust::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, #eab308, #f97316, #eab308);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.monitoring-card.gradient-border-warning {
    position: relative;
}

.monitoring-card.gradient-border-warning::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, #ef4444, #f97316, #eab308);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Provider card with left status indicator */
.provider-status-card {
    position: relative;
    padding-left: 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-status-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    border-radius: 2px;
    background: var(--provider-status-color, #6b7280);
}

.provider-status-card:hover {
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.provider-status-card.status-excellent { --provider-status-color: #10b981; }
.provider-status-card.status-good { --provider-status-color: #3b82f6; }
.provider-status-card.status-warning { --provider-status-color: #f59e0b; }
.provider-status-card.status-critical { --provider-status-color: #ef4444; }

/* Risk badge pill styling */
.risk-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.risk-badge-pill:hover {
    transform: scale(1.02);
}

.risk-badge-pill.risk-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.risk-badge-pill.risk-medium {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(251, 191, 36, 0.2));
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

.risk-badge-pill.risk-low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.risk-badge-pill.risk-unavailable {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    cursor: not-allowed;
}

/* Uptime threshold bar display */
.uptime-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.uptime-value-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.uptime-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.uptime-value.excellent {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uptime-value.good {
    background: linear-gradient(135deg, #eab308, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uptime-value.warning {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uptime-value.critical {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uptime-percent {
    font-size: 1.4rem;
    font-weight: 600;
    color: #9ca3af;
}

.uptime-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uptime-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

.uptime-status.excellent .uptime-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.uptime-status.excellent {
    color: #10b981;
}

.uptime-status.good .uptime-status-dot {
    background: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}

.uptime-status.good {
    color: #eab308;
}

.uptime-status.warning .uptime-status-dot {
    background: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.uptime-status.warning {
    color: #f97316;
}

.uptime-status.critical .uptime-status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.uptime-status.critical {
    color: #ef4444;
}

.uptime-live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 0.25rem;
}
.uptime-live-status.excellent { color: #10b981; }
.uptime-live-status.good      { color: #eab308; }
.uptime-live-status.warning   { color: #f97316; }
.uptime-live-status.critical  { color: #ef4444; }
.uptime-live-status.excellent .uptime-status-dot { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.uptime-live-status.good      .uptime-status-dot { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.6); }
.uptime-live-status.warning   .uptime-status-dot { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.6); }
.uptime-live-status.critical  .uptime-status-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.6); }

.uptime-status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding-bottom: 0.25rem;
}

.uptime-status-line .dot-divider {
    color: rgb(75, 85, 99);
}

.uptime-status-line .latency-info {
    color: rgb(156, 163, 175);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.uptime-status-line .latency-info svg {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Error table enhancements */
.error-table tbody tr:nth-child(odd) {
    background: rgba(31, 41, 55, 0.3);
}

.error-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.status-badge-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.status-badge-warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
}

.status-badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.status-badge-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.status-badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Section header with icon */
.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-header-with-icon h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Monitoring empty state */
.monitoring-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}

.monitoring-empty-state .icon-container-sm {
    margin-bottom: 1rem;
}

.monitoring-empty-state p {
    color: rgb(156, 163, 175);
    margin: 0;
}

.monitoring-empty-state p.helper-text {
    font-size: 0.875rem;
    color: rgb(107, 114, 128);
    margin-top: 0.5rem;
}

.monitoring-empty-state.hidden {
    display: none;
}

/* Metrics grid item */
.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-item svg {
    width: 1rem;
    height: 1rem;
    color: rgb(107, 114, 128);
    margin-bottom: 0.25rem;
}

.metric-item .metric-label {
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    margin-bottom: 0.125rem;
}

.metric-item .metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* Info button enhanced */
.info-btn-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(156, 163, 175);
    transition: all 0.2s ease;
    cursor: pointer;
}

.info-btn-enhanced:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.info-btn-enhanced svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Infra button on monitoring cards (admin-only) */
.infra-btn-monitoring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(156, 163, 175);
    transition: all 0.2s ease;
    cursor: pointer;
}

.infra-btn-monitoring:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.infra-btn-monitoring svg {
    width: 1.125rem;
    height: 1.125rem;
}
