:root {
    --gb-bg: #0b1220;
    --gb-bg-soft: #111827;
    --gb-surface: rgba(17, 24, 39, 0.78);
    --gb-surface-strong: rgba(15, 23, 42, 0.92);
    --gb-border: rgba(148, 163, 184, 0.16);
    --gb-text: #e5e7eb;
    --gb-text-muted: #94a3b8;
    --gb-accent: #3b82f6;
    --gb-accent-2: #60a5fa;
    --gb-success: #22c55e;
    --gb-warning: #f59e0b;
    --gb-danger: #ef4444;
    --gb-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --gb-radius-xl: 1.25rem;
    --gb-radius-lg: 1rem;
}

html, body {
    min-height: 100%;
}

body.gb-body {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.10), transparent 22%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: var(--gb-text);
}

.gb-navbar {
    background: rgba(11, 18, 32, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--gb-border);
}

.gb-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.gb-brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--gb-accent), var(--gb-accent-2));
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.gb-shell {
    min-height: 100vh;
}

.gb-panel,
.gb-stat-card,
.gb-login-card,
.gb-feature-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    box-shadow: var(--gb-shadow);
    backdrop-filter: blur(18px);
}

.gb-panel,
.gb-login-card {
    border-radius: var(--gb-radius-xl);
}

.gb-stat-card,
.gb-feature-card {
    border-radius: var(--gb-radius-lg);
}

.gb-hero-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.gb-muted {
    color: var(--gb-text-muted);
}

.gb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #dbeafe;
    font-size: 0.875rem;
    font-weight: 600;
}

.gb-login-card {
    padding: 2rem;
}

.gb-login-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gb-border);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.gb-login-provider:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.gb-feature-card {
    padding: 1.25rem;
    height: 100%;
}

.gb-feature-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.gb-dashboard-wrap {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.gb-page-header {
    margin-bottom: 1.2rem;
}

.gb-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.gb-stat-card {
    padding: 1.25rem;
    height: 100%;
}

.gb-stat-label {
    color: var(--gb-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.gb-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.gb-stat-trend {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.gb-empty-state {
    padding: 2rem;
}

.gb-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.gb-list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gb-list-clean li + li {
    border-top: 1px solid var(--gb-border);
}

.gb-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.gb-badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-size: 0.8rem;
    font-weight: 600;
}

.gb-footer-note {
    color: var(--gb-text-muted);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .gb-login-card {
        padding: 1.35rem;
    }

    .gb-dashboard-wrap {
        padding-top: 2.0rem;
    }
}

.gb-form-header {
    margin-bottom: 1.5rem;
}

.gb-form-header-copy {
    max-width: 48rem;
}

.gb-form-progress {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gb-form-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gb-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.gb-form-progress-item.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
}

.gb-form-progress-number {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.gb-onboarding-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gb-onboarding-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.gb-onboarding-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.gb-onboarding-step-badge {
    min-width: 4.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

.gb-onboarding-section-title {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.gb-onboarding-section-copy {
    color: var(--gb-text-muted);
    font-size: 0.95rem;
}

.gb-onboarding-card {
    padding: 1.25rem;
    border-radius: var(--gb-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gb-border);
}

.gb-onboarding-card-soft {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(96, 165, 250, 0.16);
}

.gb-vin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.gb-input-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.04em;
}

.gb-field-help {
    margin-top: 0.4rem;
    color: var(--gb-text-muted);
    font-size: 0.82rem;
}

.gb-checkbox-card {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
}

.gb-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.gb-spec-sidebar {
    position: relative;
    align-self: start;
}

.gb-spec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: var(--gb-preview-height, auto);
    max-height: var(--gb-preview-height, none);
}

.gb-spec-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

#spec-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

.gb-spec-card > .d-flex:first-child {
    flex: 0 0 auto;
}

#spec-placeholder,
#spec-panel {
    min-height: 0;
}

#spec-hero-wrap,
#spec-title,
#spec-description {
    flex: 0 0 auto;
}

.gb-spec-eyebrow {
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.gb-spec-placeholder {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.gb-spec-placeholder-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.85rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 1.2rem;
}

.gb-spec-hero {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
}

#spec-hero-wrap {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.gb-spec-description {
    margin-bottom: 1rem;
}

.gb-spec-item {
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    min-width: 0;
}

.gb-spec-item-wide {
    grid-column: 1 / -1;
}

.gb-spec-label {
    color: var(--gb-text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.gb-spec-value {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
}

.gb-form-alert {
    margin-bottom: 1rem;
}

.input-group-text {
    border-color: var(--gb-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gb-text-muted);
}

@media (max-width: 1199.98px) {
    .gb-spec-sidebar {
        position: static;
        top: auto;
    }

    .gb-spec-card {
        height: auto;
        max-height: none;
    }

    #spec-panel {
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .gb-vin-toolbar {
        grid-template-columns: 1fr;
    }

    .gb-onboarding-section-head {
        flex-direction: column;
        gap: 0.65rem;
    }

    .gb-spec-grid {
        grid-template-columns: 1fr;
    }
}

.gb-form-progress-sticky {
    position: sticky;
    top: 5.8rem;
    z-index: 20;
    padding: 0.35rem 0;
    backdrop-filter: blur(10px);
}

.gb-form-progress-item.is-complete {
    color: #fff;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.gb-form-progress-item.is-complete .gb-form-progress-number {
    background: rgba(34, 197, 94, 0.22);
}

button[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.text-danger.small.mt-1 {
    display: block;
}

.gb-uppercase-input {
    text-transform: uppercase;
}

.gb-vehicle-card {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--gb-radius-lg);
    background-clip: padding-box;
}

.gb-vehicle-card-has-image {
    border-color: rgba(148, 163, 184, 0.16);
}

.gb-vehicle-card-has-image::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
            180deg,
            rgba(8, 15, 28, 0.28) 0%,
            rgba(8, 15, 28, 0.62) 36%,
            rgba(8, 15, 28, 0.88) 70%,
            rgba(8, 15, 28, 0.97) 100%
    );
    pointer-events: none;
}

.gb-vehicle-card-content,
.gb-vehicle-card .gb-feature-icon,
.gb-vehicle-card .badge {
    position: relative;
    z-index: 1;
}

.gb-vehicle-card-has-image {
    box-shadow: inset 0 0 0 1px rgba(8, 15, 28, 0.22);
}

.gb-vehicle-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.gb-vehicle-card .gb-muted {
    color: rgba(226, 232, 240, 0.88);
}

.gb-vehicle-card .gb-feature-icon {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.gb-vehicle-card .badge {
    backdrop-filter: blur(8px);
}

#ownership-section.d-none,
#form-actions-wrap.d-none {
    display: none !important;
}

#ownership-section-anchor {
    scroll-margin-top: 4.5rem;
}

/* nicer internal scrollbar */
#spec-panel::-webkit-scrollbar {
    width: 8px;
}

#spec-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

#spec-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

#spec-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

#spec-placeholder {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1400px) {
    #preview-column .gb-spec-card {
        min-width: 0;
    }

    .gb-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .gb-spec-item {
        padding: 1rem 1rem;
    }

    .gb-spec-value {
        font-size: 0.96rem;
    }
}

.gb-app-shell {
    width: min(1920px, calc(100vw - 3rem));
    max-width: none;
    margin-inline: auto;
}

@media (min-width: 1600px) {
    .gb-app-shell {
        width: min(2100px, calc(100vw - 4rem));
    }
}

@media (max-width: 991.98px) {
    .gb-app-shell {
        width: min(100%, calc(100vw - 1.5rem));
    }
}

@media (min-width: 1200px) {
    .gb-vehicle-card {
        min-height: 210px;
    }
}

/* Global interactive affordance */
.gb-vehicle-card {
    transition: transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
    will-change: transform;
}

.gb-vehicle-card:hover,
.gb-vehicle-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(96, 165, 250, 0.08);
}

.gb-vehicle-card:hover .gb-feature-icon,
.gb-vehicle-card:focus-within .gb-feature-icon {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.58);
}

.gb-vehicle-card .gb-feature-icon {
    transition: transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

/* Slightly stronger text clarity on hover */
.gb-vehicle-card:hover .gb-muted,
.gb-vehicle-card:focus-within .gb-muted {
    color: rgba(241, 245, 249, 0.94);
}

/* Optional: make provider/login cards feel clickable too */
.gb-login-provider,
.gb-brand {
    cursor: pointer;
}

.gb-vehicle-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--gb-radius-lg);
    border: 1px solid var(--gb-border);
    min-height: 320px;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.72) 0%, rgba(8, 15, 28, 0.9) 100%),
    rgba(255, 255, 255, 0.03);
}

.gb-vehicle-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.gb-vehicle-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.18) 0%, rgba(8, 15, 28, 0.62) 45%, rgba(8, 15, 28, 0.94) 100%);
    z-index: 1;
}

.gb-vehicle-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.gb-spec-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gb-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.gb-spec-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gb-spec-row-label {
    color: var(--gb-text-muted);
    font-size: 0.88rem;
}

.gb-spec-row-value {
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}

.gb-danger-panel {
    border-color: rgba(239, 68, 68, 0.18);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.1) 0%, rgba(8, 15, 28, 0.58) 100%);
}

.gb-modal-card {
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
}

@media (max-width: 767.98px) {
    .gb-vehicle-hero-content {
        padding: 1.25rem;
        min-height: 280px;
    }

    .gb-spec-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

.gb-status-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: var(--gb-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.14);
    margin-bottom: 0.25rem;
    backdrop-filter: blur(10px);
}

.gb-status-banner-icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
    line-height: 1;
}

.gb-status-banner-content {
    color: #fff;
    font-weight: 500;
}

.gb-status-banner-warning {
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.22) 0%, rgba(67, 20, 7, 0.18) 100%);
    border-color: rgba(245, 158, 11, 0.24);
}

.gb-status-banner-warning .gb-status-banner-icon {
    color: #fbbf24;
}

.gb-status-banner-success {
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.24) 0%, rgba(6, 95, 70, 0.18) 100%);
    border-color: rgba(16, 185, 129, 0.24);
}

.gb-status-banner-success .gb-status-banner-icon {
    color: #34d399;
}

.gb-status-banner-error {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.24) 0%, rgba(69, 10, 10, 0.18) 100%);
    border-color: rgba(239, 68, 68, 0.24);
}

.gb-status-banner-error .gb-status-banner-icon {
    color: #f87171;
}

.gb-status-banner-info {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.22) 0%, rgba(30, 41, 59, 0.18) 100%);
    border-color: rgba(96, 165, 250, 0.24);
}

.gb-status-banner-info .gb-status-banner-icon {
    color: #60a5fa;
}

.gb-inline-error {
    margin-top: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(127, 29, 29, 0.16);
    color: #fca5a5;
    font-size: 0.9rem;
    line-height: 1.4;
}

.gb-event-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gb-event-card:hover,
.gb-event-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.gb-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: rgba(148, 163, 184, 0.12);
}

.gb-table thead th {
    color: var(--gb-text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gb-empty-inline {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.gb-support-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.gb-support-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
    flex: 0 0 auto;
    font-size: 1rem;
}

.gb-support-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.gb-support-meta-item {
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.gb-support-meta-label {
    color: var(--gb-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.gb-support-meta-value {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .gb-support-meta-grid {
        grid-template-columns: 1fr;
    }
}

.gb-icon-economy {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.gb-icon-chassis {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
}

.gb-icon-ownership {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fde68a;
}

.gb-maintenance-header {
    margin-bottom: 1.5rem;
}

.gb-maintenance-progress {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gb-maintenance-progress-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gb-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.gb-maintenance-progress-item.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
}

.gb-maintenance-progress-number {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.gb-maintenance-card {
    padding: 1.25rem;
    border-radius: var(--gb-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gb-border);
    box-shadow: var(--gb-shadow);
    backdrop-filter: blur(18px);
}

.gb-maintenance-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gb-type-guidance {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.16);
    color: #dbeafe;
    font-size: 0.92rem;
    line-height: 1.45;
}

.gb-line-items-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gb-line-items-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.gb-line-items-mode.is-required {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.gb-line-item-editor {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.gb-line-item-editor .form-label {
    margin-bottom: 0.35rem;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.1;
}

.gb-line-item-total {
    height: 2.625rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.9rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.gb-maintenance-summary-panel {
    position: static;
    padding: 1.25rem;
    border-radius: var(--gb-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gb-border);
    box-shadow: var(--gb-shadow);
    backdrop-filter: blur(18px);
}

.gb-maintenance-summary-head {
    margin-bottom: 1rem;
}

.gb-maintenance-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gb-maintenance-totals-card {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.gb-maintenance-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.gb-maintenance-total-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gb-maintenance-total-row.is-strong {
    padding-top: 0.85rem;
}

.gb-maintenance-total-label {
    color: var(--gb-text-muted);
    font-size: 0.88rem;
}

.gb-maintenance-total-value {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .gb-maintenance-sidebar-column {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .gb-maintenance-progress {
        flex-direction: column;
        align-items: flex-start;
    }

    .gb-maintenance-card-head {
        flex-direction: column;
    }

    .gb-maintenance-summary-grid {
        grid-template-columns: 1fr;
    }
}

.gb-event-examples {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.gb-event-legend {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.gb-event-legend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    color: var(--gb-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.gb-line-item-editor .gb-field-help,
.gb-line-item-editor small {
    display: none;
}

.gb-line-meta-field.d-none {
    display: none !important;
}

@media (min-width: 1200px) {
    .gb-maintenance-summary-panel {
        max-height: calc(100vh - 7rem);
        overflow: auto;
    }
}

.gb-line-item-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 0.25rem;
}

.gb-line-item-actions .gb-remove-line-item-btn {
    margin-left: auto;
}

.gb-line-items-add-wrap {
    width: 100%;
}

.gb-line-items-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.06);
    color: #fff;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.gb-line-items-add-btn:hover,
.gb-line-items-add-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    color: #fff;
    outline: none;
}

.gb-line-items-add-icon {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-size: 1rem;
}

.gb-line-items-add-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gb-line-items-add-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.gb-line-items-add-text {
    color: var(--gb-text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.gb-maintenance-sidebar-column {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
}

.gb-selected-documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 19rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.gb-selected-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.gb-selected-document-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1 1 auto;
}

.gb-selected-document-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    flex: 0 0 auto;
}

.gb-selected-document-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.gb-selected-document-name {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-selected-document-meta {
    color: var(--gb-text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-document-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #fff;
    text-decoration: none;
}

.gb-document-pill:hover {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.gb-document-pill-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-document-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gb-document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.gb-document-card-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.gb-document-card-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    flex: 0 0 auto;
}

.gb-document-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.gb-document-card-name {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-document-card-meta {
    color: var(--gb-text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.gb-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.gb-nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.3rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gb-nav-back-btn:hover,
.gb-nav-back-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.gb-nav-back-btn .bi {
    color: #bfdbfe;
    font-size: 0.95rem;
}

.gb-nav-back-btn-label {
    color: var(--gb-text-muted);
    font-weight: 500;
}

.gb-nav-back-btn-text {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .gb-nav-back-btn-label {
        display: none;
    }
}

.gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.72rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.gb-btn:hover,
.gb-btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
}

.gb-btn .bi {
    font-size: 0.98rem;
}

.gb-btn-sm {
    min-height: 2.2rem;
    padding: 0.58rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.88rem;
}

.gb-btn-lg {
    min-height: 2.9rem;
    padding: 0.9rem 1.15rem;
    border-radius: 1rem;
    font-size: 0.98rem;
}

.gb-btn-primary {
    background: linear-gradient(135deg, var(--gb-accent), var(--gb-accent-2));
    border-color: rgba(96, 165, 250, 0.32);
    color: #fff;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.26);
}

.gb-btn-primary:hover,
.gb-btn-primary:focus-visible {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.4);
    box-shadow: 0 18px 34px rgba(59, 130, 246, 0.32);
}

.gb-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

.gb-btn-secondary:hover,
.gb-btn-secondary:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.26);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.gb-btn-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.92) 0%, rgba(220, 38, 38, 0.92) 100%);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fff;
    box-shadow: 0 14px 30px rgba(127, 29, 29, 0.24);
}

.gb-btn-danger:hover,
.gb-btn-danger:focus-visible {
    color: #fff;
    border-color: rgba(252, 165, 165, 0.28);
    box-shadow: 0 18px 34px rgba(127, 29, 29, 0.3);
}

.gb-btn[aria-disabled="true"],
.gb-btn:disabled,
.gb-btn.is-disabled {
    opacity: 0.58;
    pointer-events: none;
    box-shadow: none;
}

.gb-btn-group-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.gb-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.gb-upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.15rem;
    border-radius: 1rem;
    border: 1px dashed rgba(96, 165, 250, 0.28);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gb-upload-dropzone:hover,
.gb-upload-dropzone:focus-visible,
.gb-upload-dropzone.is-dragover {
    border-color: rgba(96, 165, 250, 0.46);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
    outline: none;
}

.gb-upload-dropzone.is-has-files {
    border-style: solid;
}

.gb-upload-dropzone-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    flex: 0 0 auto;
    font-size: 1.15rem;
}

.gb-upload-dropzone-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.gb-upload-dropzone-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}

.gb-upload-dropzone-text {
    color: var(--gb-text-muted);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.gb-upload-dropzone-actions {
    flex: 0 0 auto;
}

.gb-selected-document-topline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.gb-upload-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    padding: 0.26rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.gb-upload-status-chip.is-queued {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.18);
}

.gb-upload-status-chip.is-uploading {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.18);
}

.gb-upload-status-spinner {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: currentColor;
    animation: gb-spin 0.8s linear infinite;
}

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

.gb-document-card-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.gb-document-preview-frame {
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
    border-radius: 0.9rem;
    background: #111827;
}

.gb-document-preview-empty {
    min-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-text-muted);
    text-align: center;
    padding: 2rem;
    border-radius: 0.9rem;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767.98px) {
    .gb-upload-dropzone {
        flex-direction: column;
        align-items: flex-start;
    }

    .gb-upload-dropzone-actions {
        width: 100%;
    }

    .gb-upload-dropzone-actions .gb-btn {
        width: 100%;
    }

    .gb-selected-document-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .gb-document-card-actions {
        width: 100%;
    }

    .gb-document-card-actions .gb-btn {
        flex: 1 1 auto;
    }
}

.gb-upload-input {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.gb-upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.15rem;
    border-radius: 1rem;
    border: 1px dashed rgba(96, 165, 250, 0.28);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gb-upload-dropzone:hover,
.gb-upload-dropzone:focus-visible {
    border-color: rgba(96, 165, 250, 0.38);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    outline: none;
}

.gb-upload-dropzone.is-dragover {
    transform: scale(1.01);
    border-color: rgba(96, 165, 250, 0.58);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 20px 36px rgba(37, 99, 235, 0.18);
}

.gb-upload-dropzone.is-dragover .gb-upload-dropzone-icon {
    transform: scale(1.04);
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
}

.gb-upload-dropzone.is-has-files {
    border-style: solid;
}

.gb-upload-dropzone-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    flex: 0 0 auto;
    font-size: 1.15rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.gb-upload-dropzone-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.gb-upload-dropzone-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}

.gb-upload-dropzone-text {
    color: var(--gb-text-muted);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.gb-upload-dropzone-actions {
    flex: 0 0 auto;
}

.gb-selected-document-progress {
    --gb-upload-progress: 0%;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    padding: 2px;
    background: conic-gradient(var(--gb-accent) var(--gb-upload-progress), rgba(148, 163, 184, 0.18) 0);
    flex: 0 0 auto;
}

.gb-selected-document-progress-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fca5a5;
    font-size: 0.95rem;
}

.gb-selected-document-check {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gb-success);
    color: #fff;
    font-size: 0.65rem;
    box-shadow: 0 0 0 2px #111827;
}

.gb-document-icon-btn {
    width: 2.2rem;
    min-width: 2.2rem;
    padding: 0;
}

.gb-document-card-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.gb-document-preview-frame {
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
    border-radius: 0.9rem;
    background: #111827;
}

.gb-document-preview-empty {
    min-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-text-muted);
    text-align: center;
    padding: 2rem;
    border-radius: 0.9rem;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767.98px) {
    .gb-upload-dropzone {
        flex-direction: column;
        align-items: flex-start;
    }

    .gb-upload-dropzone-actions {
        width: 100%;
    }

    .gb-upload-dropzone-actions .gb-btn {
        width: 100%;
    }
}

.gb-documents-card {
    position: relative;
    overflow: hidden;
}

.gb-documents-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 15, 28, 0.72);
    backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.gb-documents-card-overlay.d-none {
    opacity: 0;
}

.gb-documents-card-overlay-inner {
    text-align: center;
    max-width: 24rem;
}

.gb-documents-card-overlay-inner .bi {
    display: inline-flex;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: #bfdbfe;
}

.gb-documents-card-overlay-title {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.gb-documents-card-overlay-text {
    margin-top: 0.35rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
}

.gb-documents-card.is-dragover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.gb-upload-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.gb-inline-error {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gb-documents-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gb-documents-card.is-dragover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

#documents-browse-btn {
    cursor: pointer;
}

.gb-documents-notices {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.gb-upload-notice {
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.gb-upload-notice.is-warning {
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(120, 53, 15, 0.18);
    color: #fcd34d;
}

.gb-upload-notice.is-error {
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(127, 29, 29, 0.16);
    color: #fca5a5;
}

.gb-documents-notices {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    max-height: 12.5rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.gb-documents-notices::-webkit-scrollbar {
    width: 8px;
}

.gb-documents-notices::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.gb-documents-notices::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.gb-documents-notices::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.gb-upload-notice {
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.gb-upload-notice-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.gb-upload-notice-text {
    min-width: 0;
    flex: 1 1 auto;
}

.gb-upload-notice-close {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.gb-upload-notice-close:hover,
.gb-upload-notice-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.04);
    outline: none;
}

.gb-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.gb-actions form {
    margin: 0;
}

.gb-icon-btn i {
    font-size: 0.95rem;
}

/* Hover behavior */
.gb-icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Variants */

.gb-icon-btn-success {
    border-color: rgba(34, 197, 94, 0.25);
}

.gb-icon-btn-success:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.gb-icon-btn-warning {
    border-color: rgba(245, 158, 11, 0.25);
}

.gb-icon-btn-warning:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
}

.gb-icon-btn-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.gb-icon-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

@media (max-width: 768px) {
    .gb-actions {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .gb-icon-btn {
        width: 2rem;
        height: 2rem;
    }
}

.gb-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.gb-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s ease;
    padding: 0;
}

/* COLORS */

.gb-icon-btn-success {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.gb-icon-btn-success:hover {
    background: #198754;
    color: white;
}

.gb-icon-btn-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.gb-icon-btn-warning:hover {
    background: #ffc107;
    color: black;
}

.gb-icon-btn-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.gb-icon-btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* MOBILE IMPROVEMENT */

@media (max-width: 768px) {
    .gb-actions {
        justify-content: flex-start;
    }
}

.gb-icon-btn-secondary {
    background: rgba(108, 117, 125, 0.15);
    color: #adb5bd;
}

.gb-icon-btn-secondary:hover {
    background: #6c757d;
    color: white;
}

.copy-btn {
    transition: all 0.15s ease;
}

.copy-btn:active {
    transform: scale(0.9);
}

.copy-btn.copied {
    background: #198754; /* success green */
    color: white;
}

.gb-navbar {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gb-user-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.gb-user-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.gb-user-menu {
    background: transparent;
    border: none;
    padding: 0;
}

.gb-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.gb-user-avatar:hover {
    transform: scale(1.05);
}

.gb-dropdown {
    min-width: 220px;
    border-radius: 12px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
}

.gb-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.gb-dropdown .dropdown-item i {
    font-size: 1rem;
}

.gb-navbar {
    position: relative;
    z-index: 1050;
}

.gb-navbar {
    position: relative;
    z-index: 1050;
}

.alert {
    position: relative;
    z-index: 1;
}
