/* Global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #020617;
}

/* Loader */

#loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #1d4ed8 0, #020617 45%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
    color: #e5e7eb;
}

.loader-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    margin-bottom: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.logo-accent {
    font-weight: 700;
    margin-left: 5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f97316;
    font-size: 0.95rem;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.4);
    border-top-color: #f97316;
    border-right-color: #38bdf8;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

/* Topbar */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 40px;
    font-size: 0.82rem;
    background: #020617;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    position: sticky;
    top: 0;
    z-index: 990;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon {
    font-size: 1rem;
}

.topbar-divider {
    opacity: 0.5;
}

.topbar-link {
    color: #e5e7eb;
    opacity: 0.8;
    text-decoration: none;
}

.topbar-link:hover {
    opacity: 1;
}

/* Nav */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: linear-gradient(90deg, #0b5ed7, #1d4ed8);
    color: #f9fafb;
    position: sticky;
    top: 33px;
    z-index: 980;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.45);
}

.nav-logo .logo-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.nav-logo {
    text-decoration: none;
}

.nav-left {
    display: flex;
    align-items: center;
}

/* Burger for mobile */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #eff6ff;
    border-radius: 999px;
}

/* Nav links */

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    font-size: 0.94rem;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.9;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #f97316;
    border-radius: 999px;
    transition: width 0.18s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */

.btn-primary,
.btn-outline,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.55);
}

.btn-outline {
    border-color: #dbebff;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.12);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.2);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: #f9fafb;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Variants */

.btn-primary.large,
.btn-light.large {
    padding: 10px 22px;
    font-size: 0.96rem;
}

.btn-primary.full,
.btn-light.full {
    width: 100%;
}

/* Hero */

.hero {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.28) 0, transparent 52%),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.4) 0, transparent 55%),
        linear-gradient(to bottom, #020617, #020617);
    color: #f9fafb;
    padding: 60px 40px 48px;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.review-badge {
    background: rgba(15, 23, 42, 0.78);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
}

.review-logo {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.review-stars {
    color: #facc15;
    letter-spacing: 0.04em;
}

.review-text {
    opacity: 0.86;
}

/* Hero visual, screens */

.hero-visual {
    position: relative;
    height: 380px;
}

.hero-screen {
    position: absolute;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    overflow: hidden;
    font-size: 0.8rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.hero-screen-main {
    top: 12px;
    left: 0;
    right: 56px;
    height: 260px;
}

.hero-screen-small {
    width: 230px;
    height: 190px;
}

.hero-screen-right {
    top: -18px;
    right: 0;
}

.hero-screen-bottom {
    bottom: -6px;
    right: 50px;
}

.hero-screen-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.65), #020617);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-screen-title {
    font-size: 0.74rem;
    opacity: 0.9;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #4b5563;
}

.dot-red {
    background: #f97373;
}

.dot-amber {
    background: #facc15;
}

.dot-green {
    background: #22c55e;
}

.hero-screen-body {
    padding: 10px 14px 12px;
}

/* Table in main screen */

.hero-table-header,
.hero-table-row {
    display: grid;
    grid-template-columns: 0.7fr 1.1fr 0.8fr 0.8fr 0.9fr 0.9fr 1fr;
    gap: 8px;
    align-items: center;
}

.hero-table-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.hero-table-row {
    padding: 4px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-table-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pills */

.pill {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.pill-green {
    background: rgba(22, 163, 74, 0.24);
    color: #4ade80;
}

.pill-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.pill-blue {
    background: rgba(59, 130, 246, 0.24);
    color: #93c5fd;
}

/* Small bodies */

.small-body {
    font-size: 0.75rem;
}

.vehicle-photo-placeholder {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    margin-bottom: 8px;
}

.muted {
    opacity: 0.78;
    margin-bottom: 6px;
}

.price-line {
    opacity: 0.9;
}

.price-ask {
    margin-top: 4px;
    font-weight: 600;
    color: #4ade80;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Floating card motion */

.floating-card,
.floating-card-delay,
.floating-card-late {
    animation: float 6s ease-in-out infinite;
}

.floating-card-delay {
    animation-delay: 1s;
}

.floating-card-late {
    animation-delay: 2.1s;
}

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

/* Hero tabs */

.hero-bottom-tabs {
    max-width: 1180px;
    margin: 42px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.hero-tab.active,
.hero-tab:hover {
    background: rgba(37, 99, 235, 0.85);
    border-color: rgba(59, 130, 246, 0.9);
    transform: translateY(-1px);
}

/* Generic sections */

.section {
    padding: 56px 40px;
    background: #020617;
    color: #e5e7eb;
}

.section-light {
    background: #020617 linear-gradient(to bottom, rgba(15, 23, 42, 0.65), #020617);
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 0.98rem;
    opacity: 0.9;
    max-width: 640px;
    margin-bottom: 26px;
}

/* Features grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
    font-size: 0.9rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.9);
    border-color: rgba(96, 165, 250, 0.9);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

/* Split sections */

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.workflow-steps {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.workflow-steps li {
    display: flex;
    gap: 10px;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #60a5fa, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 0.98rem;
    margin-bottom: 2px;
}

/* Activity and stats cards */

.section-split-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.activity-card,
.mini-stats-card,
.support-card,
.pricing-card {
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.26), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    font-size: 0.9rem;
}

.activity-card h3,
.mini-stats-card h3,
.support-card h3,
.pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.activity-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-card li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.dot-status {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-top: 5px;
}

.dot-green {
    background: #22c55e;
}

.dot-blue {
    background: #3b82f6;
}

.dot-amber {
    background: #eab308;
}

.timestamp {
    display: block;
    font-size: 0.74rem;
    opacity: 0.7;
}

.mini-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.mini-stats-row .label {
    display: block;
    font-size: 0.78rem;
    opacity: 0.76;
}

.mini-stats-row .value {
    font-weight: 600;
}

/* Pricing */

.pricing {
    text-align: center;
}

.pricing-card {
    max-width: 360px;
    margin: 10px auto 0;
    text-align: left;
}

.pricing-card .price {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pricing-card .price span {
    font-weight: 600;
    margin-right: 4px;
}

.pricing-card ul {
    list-style: none;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

/* Demo form and support */

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.demo-form input,
.demo-form textarea {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 9px 10px;
    color: #e5e7eb;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.demo-form input:focus,
.demo-form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
    background: rgba(15, 23, 42, 0.96);
}

.support-list {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.support-footnote {
    font-size: 0.78rem;
    opacity: 0.74;
    margin-top: 10px;
}

/* Footer */

.footer {
    border-top: 1px solid rgba(15, 23, 42, 1);
    background: #020617;
    padding: 18px 24px 20px;
    color: #9ca3af;
    font-size: 0.82rem;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-logo {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: #111827;
}

.footer-text {
    margin-top: 6px;
    max-width: 360px;
    font-size: 0.8rem;
}

/* Scroll reveal animation */

.section[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    }
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .topbar {
        padding-inline: 16px;
    }

    .navbar {
        padding-inline: 16px;
    }

    .hero,
    .section {
        padding-inline: 16px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-visual {
        height: 340px;
    }

    .hero-screen-main {
        right: 0;
    }

    .hero-screen-right {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-split {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 16px 10px;
        background: rgba(15, 23, 42, 0.98);
        border-top: 1px solid rgba(30, 64, 175, 0.7);
        flex-direction: column;
        gap: 10px;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.16s ease, opacity 0.16s ease;
    }

    .nav-links.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-actions {
        display: none;
    }
}

@media (max-width: 520px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }
}
/* Auth page */

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
        linear-gradient(to bottom, #020617, #020617);
    min-height: calc(100vh - 33px - 64px); /* topbar + navbar */
    display: flex;
    align-items: center;
}

.auth-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

.auth-card {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.45), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    overflow: hidden;
}

.auth-left {
    padding: 28px 28px 30px;
    border-right: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.5), transparent 70%);
}

.auth-left h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.auth-left p {
    font-size: 0.94rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.auth-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.auth-highlights li::before {
    content: "•";
    margin-right: 6px;
    color: #facc15;
}

.auth-right {
    padding: 24px 26px 26px;
    background: rgba(15, 23, 42, 0.96);
}

.auth-logo {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: #111827;
    margin-bottom: 12px;
}

.auth-right h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.86rem;
    opacity: 0.8;
    margin-bottom: 14px;
}

.auth-alert {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.85);
    color: #fecaca;
}

.auth-alert-info {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.85);
    color: #bbf7d0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.form-label {
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 9px 10px;
    color: #e5e7eb;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.auth-form input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.auth-form input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
    background: rgba(15, 23, 42, 0.98);
}

.auth-form-footer {
    margin-top: 6px;
}

.auth-footnote {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 6px;
}

/* Auth responsive */

@media (max-width: 840px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    .auth-left {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    }
    .auth-page {
        min-height: auto;
    }
}
/* Small button variant used on dashboard */
.btn-primary.small,
.btn-outline.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Dashboard common */

.dashboard-page {
    background: #020617;
    min-height: calc(100vh - 33px - 64px);
}

.dashboard-section {
    padding-top: 40px;
    padding-bottom: 32px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-header h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.dashboard-header-right {
    text-align: right;
}

.dashboard-user-role {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
}

.nav-actions-dashboard {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user {
    font-size: 0.86rem;
    opacity: 0.9;
}

.nav-board-title {
    margin-left: 10px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Notification bell */

.nav-bell {
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 999px;
    transition: background 0.12s ease, transform 0.12s ease;
}

.nav-bell:hover {
    background: rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.nav-bell-icon {
    font-size: 1.1rem;
}

.nav-bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(35%, -35%);
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f97316;
    color: #111827;
    font-size: 0.68rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid #fef3c7;
}

/* KPI cards */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    padding: 16px 16px 18px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    font-size: 0.86rem;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.9);
}

.kpi-label {
    opacity: 0.85;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.kpi-footnote {
    font-size: 0.78rem;
    opacity: 0.74;
}

/* BOARD LAYOUT */

.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* wrapper for search + add button */
.board-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Add vehicle button next to search */
.board-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.9);           /* orange border */
    background: radial-gradient(circle at top left,
                rgba(251, 146, 60, 0.95),
                rgba(249, 115, 22, 0.98));               /* orange pill */
    color: #111827;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
    transition: transform 0.14s ease,
                box-shadow 0.14s ease,
                background 0.14s ease;
    white-space: nowrap;
}

.board-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at top left,
                rgba(253, 186, 116, 1),
                rgba(249, 115, 22, 1));
}
.board-search input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 7px 12px;
    min-width: 220px;
    color: #e5e7eb;
    font-size: 0.84rem;
    outline: none;
}

.board-search input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.board-search input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
}

.board-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.board-filter-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    font-size: 0.78rem;
    opacity: 0.9;
}

.board-wrapper {
    display: grid;
    grid-template-columns: repeat(7, minmax(260px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.board-column {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.board-column-header {
    padding: 10px 10px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0.98));
}

.board-column-header h3 {
    font-size: 0.9rem;
}

.board-count {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.board-column-body {
    padding: 8px 8px 10px;
    overflow-y: auto;
}

.board-empty {
    font-size: 0.8rem;
    opacity: 0.8;
    padding: 4px 2px;
}

/* Cards */

.board-card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 8px 9px 9px;
    margin-bottom: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.85);
    font-size: 0.8rem;
    cursor: default;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.board-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(15, 23, 42, 1);
}

.board-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.board-card-header h4 {
    font-size: 0.86rem;
    font-weight: 500;
}

.board-stock-pill {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.74rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.board-card-body {
    margin-top: 4px;
}

.board-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.board-badge-source {
    background: rgba(250, 204, 21, 0.25);
    color: #fef9c3;
}

.board-card-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}

.board-label {
    opacity: 0.76;
}

.board-value {
    font-weight: 500;
}

.board-value-ask {
    color: #4ade80;
}

.board-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    opacity: 0.8;
}

.board-meta-right {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Notifications overlay */

.notifications-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 80px 24px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
}

.notifications-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.notifications-panel {
    width: 380px;
    max-width: 100%;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.36), rgba(15, 23, 42, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.notifications-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notifications-header h3 {
    font-size: 1rem;
}

.notifications-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

.notifications-close {
    border: none;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    color: #e5e7eb;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.86rem;
    transition: background 0.12s ease;
}

.notifications-close:hover {
    background: rgba(30, 64, 175, 0.9);
}

.notifications-body {
    padding: 10px 6px 10px;
    overflow-y: auto;
}

.notifications-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    gap: 8px;
    padding: 8px 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
    font-size: 0.8rem;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #60a5fa, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f9fafb;
    flex-shrink: 0;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.notification-text {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    opacity: 0.8;
}

.notification-code {
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Responsive dashboard */

@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .nav-actions-dashboard {
        display: none;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-wrapper {
        grid-template-columns: repeat(7, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .board-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .board-toolbar-left {
        width: 100%;
        display: flex;
        flex-direction: row;
    }
    .board-search input {
        flex: 1;
        min-width: 0;
    }
}

/* Vehicle overlay */

.vehicle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1300;
}

.vehicle-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.vehicle-panel {
    width: 860px;
    max-width: 100%;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
}

.vehicle-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.vehicle-header h3 {
    font-size: 1.1rem;
}

.vehicle-subtitle {
    font-size: 0.82rem;
    opacity: 0.85;
}

.vehicle-link-icon {
    text-decoration: none;
    margin-left: 6px;
    font-size: 0.9rem;
}

.vehicle-close {
    border: none;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    color: #e5e7eb;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.12s ease;
}

.vehicle-close:hover {
    background: rgba(30, 64, 175, 0.95);
}

.vehicle-body {
    padding: 14px 18px 16px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vehicle-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-field label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 3px;
    opacity: 0.85;
}

.vehicle-field input,
.vehicle-field select {
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 7px 9px;
    color: #e5e7eb;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.vehicle-field input::placeholder {
    color: rgba(148, 163, 184, 0.95);
}

.vehicle-field input:focus,
.vehicle-field select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
    background: rgba(15, 23, 42, 1);
}

.vehicle-readonly {
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.98);
    font-size: 0.84rem;
}

.vehicle-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-footnote {
    font-size: 0.76rem;
    opacity: 0.8;
}

.vehicle-alert {
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.9);
    font-size: 0.8rem;
}

/* Vehicle detail page grid */
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}
/* New-vehicle layout boxes */

.vehicle-column-box {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 10px 12px 12px;
    background: rgba(15, 23, 42, 0.98);
}

.vehicle-group-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Make page form reuse overlay layout nicely */
.vehicle-form-page .vehicle-grid {
    margin-top: 4px;
}

/* Image gallery */

.vehicle-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vehicle-image-thumb {
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #020617;
}

.vehicle-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-upload-form input[type="file"] {
    background: transparent;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 7px 9px;
    font-size: 0.84rem;
    color: #e5e7eb;
}
/* DealerBuddi date inputs (Flatpickr) */

.flatpickr-input,
input.db-date {
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 7px 9px;
    color: #e5e7eb;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.14s ease,
                box-shadow 0.14s ease,
                background 0.14s ease;
}

.flatpickr-input::placeholder,
input.db-date::placeholder {
    color: rgba(148, 163, 184, 0.95);
}

.flatpickr-input:focus,
input.db-date:focus {
    border-color: #f97316; /* orange accent */
    box-shadow: 0 0 0 1px rgba(248, 150, 74, 0.8);
    background: rgba(15, 23, 42, 1);
}

/* Calendar panel */
.flatpickr-calendar {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

.flatpickr-months {
    background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
    color: #f9fafb;
    border-radius: 14px 14px 0 0;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #f9fafb;
}

.flatpickr-weekdays {
    background: #020617;
    border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.flatpickr-weekday {
    color: rgba(148, 163, 184, 0.9);
}

.flatpickr-day {
    color: #e5e7eb;
}

.flatpickr-day:hover {
    background: rgba(248, 150, 74, 0.18);
    border-color: rgba(248, 150, 74, 0.8);
}

.flatpickr-day.today {
    border-color: rgba(248, 150, 74, 0.9);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-color: transparent;
    color: #0f172a;
}
/* Financial summary */

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.financial-block {
    padding: 8px 10px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,1));
    border: 1px solid rgba(148,163,184,0.6);
}

.financial-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148,163,184,0.9);
    margin-bottom: 4px;
}

.financial-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #e5e7eb;
}

.financial-value-accent {
    color: #fed7aa;
}

.financial-form {
    margin-top: 10px;
}

.financial-edit-row {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr)) auto;
    gap: 10px;
    align-items: flex-end;
}

.financial-actions {
    display: flex;
    justify-content: flex-end;
}

/* Repair log */

.repair-table-wrapper {
    margin-top: 6px;
    overflow-x: auto;
}

.repair-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.repair-table th,
.repair-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.repair-table th {
    text-align: left;
    font-weight: 500;
    color: rgba(148,163,184,0.9);
}

.repair-table td.text-right {
    text-align: right;
}

.repair-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 10px;
}

.repair-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
