:root {
    --bs-body-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --bs-body-bg: #111827;
    --bs-body-color: #e5e7eb;
    --bs-primary: #f97316;
    --bs-primary-rgb: 249, 115, 22;
    --bs-secondary: #334155;
    --bs-secondary-rgb: 51, 65, 85;
    --bs-link-color: #fb923c;
    --bs-link-hover-color: #fdba74;
    --bs-border-color: rgba(148, 163, 184, 0.2);
    --bs-card-bg: rgba(15, 23, 42, 0.88);
    --bs-card-border-color: rgba(148, 163, 184, 0.18);
    --bs-tertiary-bg: rgba(30, 41, 59, 0.75);
    --bs-light-rgb: 226, 232, 240;
    --bs-dark-rgb: 15, 23, 42;
    --hero-gradient: radial-gradient(circle at top, rgba(249, 115, 22, 0.24), transparent 35%),
        linear-gradient(145deg, #020617 0%, #111827 45%, #1e293b 100%);
}

body {
    background: var(--hero-gradient);
    min-height: 100vh;
}

.navbar,
.card,
.dropdown-menu,
.list-group-item,
.modal-content {
    backdrop-filter: blur(14px);
}

.navbar {
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-panel,
.glass-panel {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.hero-panel {
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% 30%;
    height: 220px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 60%);
    pointer-events: none;
}

.model-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.45);
}

.preview-tile {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.preview-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.spec-item {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

.spec-label {
    color: #94a3b8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
}

.form-control,
.form-select,
.form-check-input {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.18);
    color: #f8fafc;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.badge-soft {
    background: rgba(249, 115, 22, 0.14);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.section-label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.page-link {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.16);
    color: #e5e7eb;
}

.page-item.active .page-link {
    background-color: #f97316;
    border-color: #f97316;
}

.auth-shell {
    min-height: calc(100vh - 76px);
}
