:root {
    --brand-navy: #2C4B64;
    --brand-cobalt: #1A73E8;
    --brand-green: #28D07C;
    --brand-white: #FFFFFF;
    --brand-bg-gray: #F4F6F8;
    --brand-border-blue: #8AB4F8;
    
    --brand-green-hover: #22b36a;
    --brand-cobalt-hover: #155cb8;
    --brand-navy-dark: #1f3547;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--brand-bg-gray);
    color: var(--brand-navy);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--brand-cobalt);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, .btn-link:hover {
    color: var(--brand-cobalt-hover);
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-cobalt);
    border-color: var(--brand-cobalt);
}
.btn-primary:hover {
    background-color: var(--brand-cobalt-hover);
    border-color: var(--brand-cobalt-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- FleetNexus Modern Auth & Custom UI Styles --- */

.auth-wrapper {
    min-height: calc(100vh - 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at 10% 20%, rgba(90, 120, 230, 0.05) 0%, rgba(180, 100, 230, 0.03) 90%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.auth-title {
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 16px; /* Critical to prevent iOS auto-zoom */
    color: var(--brand-navy);
    background-color: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--brand-border-blue);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--brand-cobalt);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.auth-input:focus + .auth-input-icon {
    color: var(--brand-cobalt);
}

.auth-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(40, 208, 124, 0.2);
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--brand-green-hover) 0%, #1fa662 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 208, 124, 0.3);
}

.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(40, 208, 124, 0.2);
}

.auth-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.auth-secondary-btn {
    width: 100%;
    height: 48px;
    background-color: transparent;
    color: var(--brand-navy);
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-secondary-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.auth-secondary-btn:disabled {
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.auth-link {
    color: var(--brand-cobalt);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--brand-cobalt-hover);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #f1f5f9;
}

.auth-divider:not(:empty)::before {
    margin-right: .75em;
}

.auth-divider:not(:empty)::after {
    margin-left: .75em;
}

.auth-validation-msg {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert-modern {
    border-radius: 10px;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.alert-modern-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* Step Wizard Indicators */
.step-tracker-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 0.5rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #cbd5e1; /* default neutral grey */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.step-indicator.active .step-dot {
    background-color: var(--brand-cobalt); /* active blue */
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
    transform: scale(1.25);
}

.step-indicator.completed .step-dot {
    background-color: var(--brand-green); /* completed green */
    transform: scale(0.9);
}

.step-connector {
    flex: 1;
    height: 3px;
    background-color: #e2e8f0;
    margin: 0 0.5rem;
    transition: background-color 0.4s ease;
}

.step-connector.completed {
    background-color: var(--brand-green);
}

/* --- Premium Layouts, Skeletons, and States --- */

.premium-card {
    background: var(--brand-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(44, 75, 100, 0.04);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.premium-card:hover {
    box-shadow: 0 8px 30px rgba(44, 75, 100, 0.08);
}

.premium-table-container {
    background: var(--brand-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(44, 75, 100, 0.04);
    overflow: hidden;
}

.premium-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--brand-navy);
    border-collapse: collapse;
}

.premium-table th {
    background-color: #f8fafc;
    color: var(--brand-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #edf2f7;
}

.premium-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    font-size: 0.9rem;
}

.premium-table tbody tr {
    transition: background-color 0.2s ease;
}

.premium-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Skeleton Loading Feedback */
.skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.skeleton-item {
    height: 48px;
    width: 100%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Premium Empty State and Error callouts */
.premium-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--brand-white);
    border-radius: 16px;
    border: 1.5px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 2rem auto;
}

.premium-empty-icon {
    font-size: 3.5rem;
    color: var(--brand-border-blue);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.premium-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.premium-empty-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.alert-modern-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.badge-brand-green {
    background-color: var(--brand-green) !important;
    color: var(--brand-white) !important;
}

.badge-brand-cobalt {
    background-color: var(--brand-cobalt) !important;
    color: var(--brand-white) !important;
}

.auth-logo {
    height: 48px;
    width: auto;
}

/* --- Landing Page Curiosity & Alpha Registration Styles --- */
.landing-hero {
    background: radial-gradient(circle at 50% 0%, rgba(26, 115, 232, 0.12) 0%, rgba(40, 208, 124, 0.05) 50%, rgba(244, 246, 248, 0) 100%);
    padding: 4rem 1.5rem 3rem 1.5rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.landing-headline {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-navy);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.landing-subheadline {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #475569;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.landing-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px -10px rgba(44, 75, 100, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadblock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.roadblock-option-card {
    background: var(--brand-white);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.roadblock-option-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-border-blue);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.06);
}

.roadblock-option-card.selected {
    border-color: var(--brand-cobalt);
    background-color: rgba(26, 115, 232, 0.04);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.12);
}

.roadblock-icon-wrapper {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.roadblock-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
}

.roadblock-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    flex-grow: 1;
}

.alpha-email-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-glow-group {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.input-glow {
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    height: 52px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    width: 100%;
}

.input-glow:focus {
    border-color: var(--brand-cobalt);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
    outline: none;
}

.btn-pulse {
    background: linear-gradient(135deg, var(--brand-cobalt) 0%, #155cb8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
    height: 52px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-pulse:hover:not(:disabled) {
    background: linear-gradient(135deg, #155cb8 0%, #0f468a 100%);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    transform: translateY(-1px);
}

.badge-glow-locked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    animation: badge-pulse 2s infinite alternate;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
        transform: scale(1.02);
    }
}

.roadmap-voter-card {
    background: var(--brand-white);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(44, 75, 100, 0.04);
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .roadmap-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.roadmap-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.roadmap-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.roadmap-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.roadmap-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.roadmap-item-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.roadmap-vote-btn {
    border: 1.5px solid var(--brand-border-blue);
    background: transparent;
    color: var(--brand-cobalt);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.roadmap-vote-btn:hover:not(:disabled) {
    background: var(--brand-cobalt);
    color: white;
    border-color: var(--brand-cobalt);
}

.roadmap-vote-btn.voted {
    background: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
}

.roadmap-progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.roadmap-progress-bar {
    height: 100%;
    background-color: var(--brand-cobalt);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-progress-bar.voted {
    background-color: var(--brand-green);
}

.animated-success-icon {
    font-size: 4rem;
    color: var(--brand-green);
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Dashboard KPI Grid & Glassmorphic Cards --- */

.dashboard-container {
    background: radial-gradient(circle at 10% 20%, rgba(90, 120, 230, 0.03) 0%, rgba(180, 100, 230, 0.02) 90%);
    padding: 2rem 0;
    min-height: calc(100vh - 10rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.kpi-tile-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(44, 75, 100, 0.05);
}

.kpi-tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(31, 38, 135, 0.08);
}

.kpi-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.accent-cobalt { background: linear-gradient(90deg, var(--brand-cobalt) 0%, #3b82f6 100%); }
.accent-amber { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.accent-green { background: linear-gradient(90deg, var(--brand-green) 0%, #10b981 100%); }

.kpi-title {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.kpi-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bg-cobalt-light { background-color: rgba(26, 115, 232, 0.1); }
.bg-amber-light { background-color: rgba(245, 158, 11, 0.1); }
.bg-green-light { background-color: rgba(40, 208, 124, 0.1); }
.bg-purple-light { background-color: rgba(168, 85, 247, 0.1); }
.bg-teal-light { background-color: rgba(6, 182, 212, 0.1); }

.kpi-value-wrapper {
    display: flex;
    flex-direction: column;
}

.kpi-display-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.kpi-action-link {
    color: var(--brand-cobalt);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.kpi-action-link:hover {
    color: var(--brand-cobalt-hover);
    text-decoration: underline;
}

.bg-success-light { background-color: rgba(40, 208, 124, 0.1); color: var(--brand-green); }
.bg-warning-light { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }
.bg-danger-light { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Skeleton loaders inside cards */
.loading-skeleton {
    pointer-events: none;
}

.skeleton-line {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: 4px;
}