:root {
    --bs-primary: #b45309;
    --bs-primary-rgb: 180, 83, 9;
    --bs-secondary: #334155;
    --bs-secondary-rgb: 51, 65, 85;
    --bs-success: #15803d;
    --bs-success-rgb: 21, 128, 61;
    --bs-warning: #b45309;
    --bs-warning-rgb: 180, 83, 9;
    --bs-danger: #be123c;
    --bs-danger-rgb: 190, 18, 60;
    --bs-info: #2563eb;
    --bs-info-rgb: 37, 99, 235;
    --bs-body-color: #0f172a;
    --bs-body-bg: #f3f5f8;
    --bs-border-color: #e2e8f0;
    --bs-tertiary-bg: #f8fafc;
    --bs-secondary-color: #64748b;
    --panel-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 38px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--bs-body-color);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bs-body-bg);
}

a {
    text-decoration: none;
}

code {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.82rem;
}

.admin-layout {
    background:
        radial-gradient(circle at top left, rgba(180, 83, 9, 0.08), transparent 20rem),
        radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.07), transparent 24rem),
        #f3f5f8;
}

.public-layout {
    background:
        linear-gradient(180deg, #f7f4ee 0%, #f5f7fa 30%, #f5f7fa 100%);
}

.public-premium-dark {
    --public-bg: #eef2f7;
    --public-bg-deep: #e5ebf3;
    --public-surface: #1d273b;
    --public-surface-soft: #111827;
    --public-border: rgba(200, 211, 225, 0.82);
    --public-border-strong: rgba(155, 169, 190, 0.34);
    --public-text: #f8fafc;
    --public-muted: #9ba9be;
    --public-accent: #d63939;
    --public-accent-hover: #c33232;
    --public-accent-soft: rgba(214, 57, 57, 0.14);
    background:
        radial-gradient(circle at top right, rgba(214, 57, 57, 0.06), transparent 20rem),
        linear-gradient(180deg, #e9eef5 0%, var(--public-bg) 52%, #f5f7fa 100%);
}

.public-premium-dark .public-shell {
    color: #0f172a;
}

.public-premium-dark .public-topbar {
    padding: 1rem 1.4rem;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
}

.public-premium-dark .public-topbar-brand span {
    color: #9ba9be;
}

.public-premium-dark .public-topbar-link {
    color: #cbd5e1;
}

.public-premium-dark .public-topbar-link:hover,
.public-premium-dark .public-topbar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.public-premium-dark .public-main {
    gap: 0;
}

.public-premium-dark .public-banner-wrap {
    background: #0f172a;
    border-top: 0;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 22px 40px rgba(15, 23, 42, 0.18);
}

.public-premium-dark .public-banner-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.5) 34%, rgba(2, 6, 23, 0.12) 62%, rgba(2, 6, 23, 0) 82%);
}

.public-premium-dark .public-banner-logo {
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.38));
}

.public-premium-dark .app-card,
.public-premium-dark .vehicle-card {
    background: #ffffff;
    border-color: var(--public-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 34px rgba(15, 23, 42, 0.08);
}

.public-premium-dark #inventario.app-card {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(200, 211, 225, 0.86);
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 34px rgba(15, 23, 42, 0.08);
}

.public-premium-dark #inventario .card-body {
    background: #ffffff;
    border-radius: 0;
    padding-top: 1.5rem;
}

.public-premium-dark .public-detail-card {
    background: #ffffff;
    border-color: rgba(200, 211, 225, 0.86);
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 34px rgba(15, 23, 42, 0.08);
}

.public-premium-dark .public-detail-card .card-body {
    background: #ffffff;
    border-radius: 0;
}

.public-premium-dark .vehicle-card {
    background: #f8fafc;
    border-color: rgba(200, 211, 225, 0.7);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 30px rgba(2, 6, 23, 0.16);
}

.public-premium-dark .app-card .card-header,
.public-premium-dark .vehicle-card .card-header {
    border-bottom-color: rgba(155, 169, 190, 0.12);
}

.public-premium-dark .panel-title,
.public-premium-dark .entity-title,
.public-premium-dark .meta-value,
.public-premium-dark .public-footer strong {
    color: #0f172a;
}

.public-premium-dark .page-kicker {
    color: var(--public-accent);
}

.public-premium-dark .price-tag {
    color: var(--public-text);
}

.public-premium-dark .panel-subtitle,
.public-premium-dark .entity-meta,
.public-premium-dark .meta-label,
.public-premium-dark .public-footer,
.public-premium-dark .public-footer p,
.public-premium-dark .public-detail-copy {
    color: #6c7a91;
}

.public-premium-dark .meta-item {
    background: var(--public-surface-soft);
    border-color: rgba(155, 169, 190, 0.12);
}

.public-premium-dark .detail-placeholder {
    background: linear-gradient(135deg, rgba(214, 57, 57, 0.2), rgba(15, 23, 42, 0.96));
    border-color: rgba(155, 169, 190, 0.16);
    color: var(--public-text);
}

.public-premium-dark .detail-placeholder span,
.public-premium-dark .detail-placeholder small {
    color: var(--public-muted);
}

.public-premium-dark .form-control,
.public-premium-dark .form-select {
    background: #ffffff;
    border-color: rgba(200, 211, 225, 0.92);
    color: #0f172a;
}

.public-premium-dark .form-control::placeholder {
    color: #6c7a91;
}

.public-premium-dark .form-select {
    color: #0f172a;
}

.public-premium-dark .btn-primary {
    background: var(--public-accent);
    border-color: var(--public-accent);
    box-shadow: none;
}

.public-premium-dark .btn-primary:hover,
.public-premium-dark .btn-primary:focus {
    background: var(--public-accent-hover);
    border-color: var(--public-accent-hover);
}

.public-premium-dark .btn-outline-secondary {
    border-color: var(--public-border-strong);
    color: #313c52;
    background: #ffffff;
}

.public-premium-dark .btn-outline-secondary:hover,
.public-premium-dark .btn-outline-secondary:focus {
    background: #f8fafc;
    border-color: rgba(155, 169, 190, 0.42);
    color: #0f172a;
}

.public-premium-dark .status-disponible {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.public-premium-dark .empty-inline {
    background: #ffffff;
    border-color: var(--public-border);
    color: #6c7a91;
}

.public-premium-dark .public-footer {
    margin-top: 0;
    padding: 1.35rem 1.5rem 1.6rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #0f172a;
    border-top: 0;
    border-radius: 0 0 24px 24px;
}

.public-premium-dark .vehicle-card {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.public-premium-dark .vehicle-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214, 57, 57, 0.24);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 18px 34px rgba(2, 6, 23, 0.18);
}

.app-card,
.public-stat-card,
.vehicle-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 20px;
    box-shadow: var(--panel-shadow);
    background: #ffffff;
}

.app-card .card-header,
.vehicle-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1rem 1.25rem;
}

.app-card .card-body,
.vehicle-card .card-body {
    padding: 1.25rem;
}

.media-preview-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: #f8fafc;
    padding: 0.75rem;
}

.media-preview-card.is-muted {
    opacity: 0.55;
}

.media-preview-card-compact {
    padding: 0.65rem;
}

.media-upload-stack {
    display: grid;
    gap: 1rem;
}

.media-slot-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.media-preview-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.media-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 0.92rem;
    color: #64748b;
}

.media-gallery-editor {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: #f8fafc;
    padding: 1rem;
}

.media-gallery-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.media-gallery-title {
    font-weight: 700;
    color: #0f172a;
}

.media-gallery-list {
    display: grid;
    gap: 0.9rem;
}

.media-gallery-item {
    display: grid;
    gap: 0.9rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: #ffffff;
}

.media-gallery-inputs {
    display: grid;
    gap: 0.7rem;
}

.media-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.media-gallery-empty {
    padding-top: 0.9rem;
    color: #64748b;
    font-size: 0.95rem;
}

.media-gallery-empty[hidden] {
    display: none !important;
}

.media-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.media-manage-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.media-manage-card .detail-thumb-card {
    border: 0;
    border-radius: 0;
}

.media-manage-card-footer {
    padding: 0.85rem 0.9rem 0.95rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 1.5rem 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18rem),
        #0f172a;
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-stack {
    display: grid;
    gap: 1.25rem;
}

.sidebar-brand,
.public-brand {
    display: grid;
    gap: 0.2rem;
    color: inherit;
}

.sidebar-brand strong,
.public-brand strong {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.sidebar-brand small,
.public-brand small {
    color: rgba(226, 232, 240, 0.68);
}

.sidebar-brand-kicker,
.page-kicker {
    display: inline-block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #cbd5e1;
}

.page-kicker {
    color: var(--bs-primary);
}

.sidebar-group {
    display: grid;
    gap: 0.55rem;
}

.sidebar-label {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #64748b;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 0.3rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.78rem 0.9rem;
    border-radius: 14px;
    color: #cbd5e1;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(1px);
}

.sidebar-footer {
    display: grid;
    gap: 0.9rem;
}

.sidebar-user,
.sidebar-note {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-user-name {
    display: block;
    font-weight: 700;
    color: #f8fafc;
}

.sidebar-user small,
.sidebar-note span {
    color: #94a3b8;
}

.sidebar-note {
    display: grid;
    gap: 0.55rem;
}

.sidebar-note code {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.admin-main {
    padding: 1.5rem 1.75rem 2rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-title {
    margin: 0.35rem 0 0.4rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.page-description,
.panel-subtitle,
.entity-meta,
.metric-footnote,
.public-copy,
.public-footer p {
    color: var(--bs-secondary-color);
}

.page-description {
    margin: 0;
    max-width: 58ch;
}

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

.user-pill {
    display: grid;
    gap: 0.12rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--panel-shadow);
}

.user-pill strong {
    font-size: 0.88rem;
    line-height: 1;
}

.user-pill span {
    font-size: 0.76rem;
    color: var(--bs-secondary-color);
    line-height: 1;
}

.admin-content {
    display: grid;
    gap: 1rem;
}

.app-alert {
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--panel-shadow);
}

.panel-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    font-weight: 700;
}

.metric-value {
    margin-top: 0.45rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.metric-value-sm {
    font-size: 1.35rem;
    line-height: 1.15;
}

.kpi-card .card-body,
.public-stat-card .card-body {
    display: grid;
    gap: 0.35rem;
}

.accent-kpi {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.accent-surface {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.08), rgba(15, 118, 110, 0.05));
}

.lane-card,
.surface-form,
.surface-stat,
.meta-item,
.note-block,
.empty-inline,
.detail-placeholder {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: #f8fafc;
}

.lane-card {
    display: grid;
    gap: 0.45rem;
    height: 100%;
    padding: 1rem;
}

.lane-card strong {
    font-size: 1.7rem;
    line-height: 1;
}

.lane-card p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.92rem;
}

.lane-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lane-label-success {
    color: #166534;
    background: rgba(21, 128, 61, 0.12);
}

.lane-label-warning {
    color: #9a3412;
    background: rgba(180, 83, 9, 0.12);
}

.lane-label-neutral {
    color: #334155;
    background: rgba(51, 65, 85, 0.1);
}

.activity-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: inherit;
}

.activity-row:last-child {
    border-bottom: 0;
}

.entity-title {
    font-weight: 700;
    color: #0f172a;
}

.entity-meta {
    font-size: 0.88rem;
}

.app-table {
    margin-bottom: 0;
}

.app-table thead th {
    padding: 0.9rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    font-weight: 700;
    border-bottom-color: var(--bs-border-color);
    white-space: nowrap;
}

.app-table tbody td {
    padding: 0.95rem 0.75rem;
    border-color: #eef2f7;
}

.app-table-dense tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.empty-cell,
.empty-inline {
    color: var(--bs-secondary-color);
    text-align: center;
    padding: 1.2rem;
}

.table-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.table-chip {
    background: rgba(180, 83, 9, 0.12);
    color: #9a3412;
}

.table-chip.muted {
    background: rgba(51, 65, 85, 0.1);
    color: #334155;
}

.status-disponible {
    background: rgba(21, 128, 61, 0.12);
    color: #166534;
}

.status-reservado {
    background: rgba(180, 83, 9, 0.12);
    color: #9a3412;
}

.status-reparacion {
    background: rgba(190, 24, 93, 0.12);
    color: #9d174d;
}

.status-transito {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.status-vendido {
    background: rgba(51, 65, 85, 0.12);
    color: #334155;
}

.detail-media,
.vehicle-media {
    overflow: hidden;
    border-radius: 18px;
    background: #e2e8f0;
    border: 1px solid var(--bs-border-color);
}

.detail-media {
    aspect-ratio: 16 / 11;
}

.vehicle-media {
    aspect-ratio: 16 / 10;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.detail-media img,
.vehicle-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-placeholder {
    display: grid;
    place-content: center;
    gap: 0.2rem;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    color: #9a3412;
    text-align: center;
    padding: 1rem;
}

.detail-placeholder strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.detail-placeholder span,
.detail-placeholder small {
    color: #9a3412;
}

.detail-gallery,
.public-detail-panel {
    display: grid;
    gap: 1rem;
}

.detail-gallery-main {
    overflow: hidden;
    border-radius: 24px;
    background: #e2e8f0;
    border: 1px solid var(--bs-border-color);
    aspect-ratio: 16 / 10;
}

.detail-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: opacity 140ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    transform: translateY(-2px);
}

.gallery-thumb:hover img,
.gallery-thumb.is-active img {
    opacity: 1;
}

.gallery-thumb.is-active {
    border-color: rgba(180, 83, 9, 0.5);
    box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.2);
}

.public-detail-copy {
    line-height: 1.7;
}

.public-detail-title,
.vehicle-card-title {
    color: #0f172a;
}

.vehicle-card-facts,
.public-detail-facts p {
    margin: 0;
    color: var(--bs-secondary-color);
    line-height: 1.7;
}

.vehicle-card-facts span,
.public-detail-facts span {
    color: #9ba9be;
    font-weight: 600;
}

.public-detail-facts {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.25rem;
}

.public-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.detail-thumb-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--bs-border-color);
    background: #e2e8f0;
    aspect-ratio: 4 / 3;
}

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

.detail-thumb-card.is-primary {
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.18);
}

.public-premium-dark .detail-gallery-main {
    background: #f8fafc;
    border-color: rgba(200, 211, 225, 0.92);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 28px rgba(15, 23, 42, 0.12);
}

.public-premium-dark .public-detail-panel {
    gap: 1.25rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(200, 211, 225, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.public-premium-dark .gallery-thumb {
    background: #ffffff;
    border-color: rgba(200, 211, 225, 0.92);
}

.public-premium-dark .gallery-thumb img {
    opacity: 0.78;
}

.public-premium-dark .gallery-thumb:hover,
.public-premium-dark .gallery-thumb.is-active {
    border-color: var(--public-accent);
    box-shadow: 0 0 0 1px var(--public-accent-soft);
}

.public-premium-dark .detail-thumb-card {
    background: var(--public-surface-soft);
    border-color: rgba(155, 169, 190, 0.12);
}

.public-premium-dark .detail-thumb-card.is-primary {
    box-shadow: 0 0 0 2px rgba(214, 57, 57, 0.18);
}

.public-premium-dark .public-detail-title {
    color: #0f172a;
}

.public-premium-dark .vehicle-card .card-body {
    background: #ffffff;
    color: #0f172a;
}

.public-premium-dark .vehicle-card-title {
    color: #0f172a;
}

.public-premium-dark .vehicle-card .entity-meta {
    color: #49566c;
}

.public-premium-dark .vehicle-card .price-tag {
    color: var(--public-accent);
}

.public-premium-dark .vehicle-card-facts,
.public-premium-dark .vehicle-card-facts {
    color: #313c52;
}

.public-premium-dark .vehicle-card-facts span {
    color: #6c7a91;
}

.public-premium-dark .public-detail-copy,
.public-premium-dark .public-detail-facts p {
    color: #313c52;
}

.public-premium-dark .public-detail-facts span {
    color: #6c7a91;
}

.public-premium-dark .public-detail-card .price-tag {
    color: var(--public-accent);
}

.public-premium-dark .public-footer strong {
    color: #ffffff;
}

.public-premium-dark .public-footer p {
    color: #9ba9be;
}

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

.meta-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-item {
    padding: 0.8rem 0.9rem;
}

.meta-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    font-weight: 700;
}

.meta-value {
    font-weight: 600;
    color: #0f172a;
}

.note-block,
.surface-form {
    padding: 1rem;
}

.surface-stat {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    height: 100%;
    background: #ffffff;
}

.surface-stat span {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.surface-stat strong {
    font-size: 1.1rem;
}

.surface-stat-accent {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.table-actions .btn-link {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.form-label {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.form-control,
.form-select {
    min-height: 2.95rem;
    border-radius: 14px;
    border-color: #d8dee8;
    padding: 0.75rem 0.9rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(180, 83, 9, 0.16);
    border-color: rgba(180, 83, 9, 0.4);
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #9a4608;
    border-color: #9a4608;
}

.btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155;
}

.btn-link {
    color: #334155;
    text-decoration: none;
}

.public-shell {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.public-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.public-topbar-brand,
.public-topbar-nav {
    display: flex;
    align-items: center;
}

.public-topbar-brand {
    gap: 0.8rem;
    color: inherit;
}

.public-topbar-brand strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.public-topbar-brand span {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.public-topbar-nav {
    gap: 0.35rem;
}

.public-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-topbar-link {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 600;
}

.public-topbar-login {
    white-space: nowrap;
}

.public-main {
    display: grid;
    gap: 1rem;
}

.public-hero {
    background:
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 18rem),
        linear-gradient(180deg, #ffffff, #fcfcfd);
}

.public-banner-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--panel-shadow);
    background: #ffffff;
}

.public-banner-image {
    display: block;
    width: 100%;
    height: clamp(220px, 30vw, 420px);
    object-fit: cover;
    object-position: center center;
}

.public-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(1rem, 3vw, 2rem);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.05) 38%, rgba(15, 23, 42, 0) 65%);
    pointer-events: none;
}

.public-banner-logo {
    width: clamp(110px, 14vw, 170px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18));
}

.public-copy {
    max-width: 56ch;
}

.public-stat-card {
    border: 1px solid #e7e5e4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.public-filter {
    margin: 0;
}

.vehicle-card {
    overflow: hidden;
}

.price-tag {
    color: #9a3412;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.detail-price {
    font-size: 1.7rem;
}

.auth-card {
    margin-top: 3rem;
}

.demo-note {
    padding: 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--bs-border-color);
}

.demo-note p {
    margin: 0.25rem 0 0;
    color: var(--bs-secondary-color);
}

.public-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0 0;
    color: var(--bs-secondary-color);
}

@media (min-width: 768px) {
    .media-upload-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-gallery-item {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: start;
    }
}

@media (max-width: 1199px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        gap: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .admin-topbar,
    .public-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        justify-content: flex-start;
    }

    .public-banner-image {
        height: clamp(180px, 36vw, 260px);
    }

    .public-banner-overlay {
        padding: 1rem;
    }

    .public-topbar,
    .public-topbar-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .admin-main {
        padding: 1rem;
    }

    .public-shell {
        padding-top: 1rem;
    }

    .sidebar-nav,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.55rem;
    }

    .detail-placeholder {
        min-height: 12rem;
    }

    .detail-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
