/* MotoManager - Main Stylesheet */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --surface: #f4f6f8;
    --panel: #0f1720;
    --panel-soft: #18232f;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    color: #1f2937;
}

body.privacy-consent-pending {
    overflow: hidden;
}

main {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
}

.privacy-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.privacy-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 27, 0.62);
    backdrop-filter: blur(3px);
}

.privacy-consent-modal {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 1.5rem;
}

.catalog-import-loading {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 15, 28, 0.56);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.catalog-import-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.catalog-import-loading-active {
    overflow: hidden;
}

.catalog-import-loading-card {
    width: min(560px, 100%);
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.catalog-import-loading-card .progress {
    height: 0.9rem;
    background: rgba(15, 23, 42, 0.08);
}

.catalog-import-loading-card .progress-bar {
    background: linear-gradient(90deg, #0d6efd 0%, #4f8dfc 100%);
}

.catalog-import-inline-loading {
    display: none;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    color: #e5e7eb;
}

.catalog-import-inline-loading.is-visible {
    display: block;
}

.catalog-import-inline-loading .progress {
    height: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
}

.catalog-import-inline-loading .progress-bar {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.catalog-import-inline-loading .fw-semibold {
    color: #f8fafc;
}

.catalog-import-inline-loading .text-muted {
    color: rgba(226, 232, 240, 0.78) !important;
}

.catalog-import-inline-loading::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.7), rgba(37, 99, 235, 0.12));
}

.catalog-import-action-group .btn {
    border-radius: 999px;
    padding-inline: 1.15rem;
}

.catalog-import-action-group .btn-outline-secondary {
    border-color: rgba(15, 23, 42, 0.16);
}

.catalog-import-action-group .btn-outline-danger,
.catalog-import-action-group .btn-outline-success,
.catalog-import-action-group .btn-outline-primary {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.admin-models-page .model-row.is-trashed {
    background: rgba(245, 158, 11, 0.06);
}

.admin-models-page .model-row.is-trashed .model-title {
    color: #7c2d12;
}

.navbar .container-lg {
    min-height: 4.2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.app-mobile-menu-toggle {
    border-radius: 0.95rem;
    border-color: rgba(255, 255, 255, 0.16);
    padding: 0.55rem 0.75rem;
}

.app-mobile-drawer {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.24), transparent 28%),
        linear-gradient(180deg, #0f1720 0%, #131d28 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.app-mobile-profile-panel {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.app-mobile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.72));
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.app-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-mobile-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-mobile-stat-card {
    padding: 0.9rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-mobile-stat-card strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    color: #fff;
}

.app-mobile-stat-card span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-mobile-quick-actions {
    display: grid;
    gap: 0.65rem;
}

.pagination {
    row-gap: 0.4rem;
}

.pagination .page-link {
    border-radius: 0.8rem;
    min-width: 2.6rem;
    text-align: center;
}

.app-mobile-drawer-section {
    margin-top: 1.25rem;
}

.app-mobile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-mobile-nav-list,
.app-mobile-maintenance-list {
    display: grid;
    gap: 0.7rem;
}

.app-mobile-nav-link,
.app-mobile-maintenance-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.app-mobile-nav-link:hover,
.app-mobile-maintenance-item:hover {
    color: #fff;
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.app-mobile-nav-link i,
.app-mobile-maintenance-item i {
    color: #93c5fd;
    font-size: 1.05rem;
}

.app-mobile-nav-link span {
    font-weight: 600;
}

.app-mobile-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

.app-mobile-nav-link .badge {
    flex: 0 0 auto;
}

.app-mobile-maintenance-item {
    justify-content: space-between;
}

.app-mobile-maintenance-item strong,
.app-mobile-maintenance-item small {
    display: block;
}

.app-mobile-maintenance-item small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.66);
}

.app-mobile-drawer-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-mobile-bottom-nav {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 1.4rem;
    background: rgba(15, 23, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 40px rgba(15, 23, 32, 0.34);
    backdrop-filter: blur(14px);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.app-mobile-bottom-shell {
    position: relative;
    z-index: 1040;
}

.app-mobile-bottom-toggle {
    position: fixed;
    right: 1rem;
    bottom: 7rem;
    z-index: 1041;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.96);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(15, 23, 32, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
}

.app-mobile-bottom-toggle i {
    font-size: 0.95rem;
}

body.app-mobile-nav-collapsed .app-mobile-bottom-nav {
    transform: translateY(calc(100% + 3rem));
    opacity: 0;
    pointer-events: none;
}

body.app-mobile-nav-collapsed .app-mobile-bottom-toggle {
    bottom: 1rem;
}

.app-mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 58px;
    padding: 0.45rem 0.35rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-mobile-bottom-link i {
    font-size: 1.15rem;
}

.app-mobile-bottom-link span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-mobile-bottom-link.is-active {
    background: rgba(59, 130, 246, 0.18);
    color: #ffffff;
}

.app-mobile-bottom-link-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
}

.app-mobile-bottom-link:active {
    transform: translateY(1px);
}

.bike-photo-picker-card {
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 1.2rem;
    background: #fff9db;
}

.bike-photo-picker-status {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}

.bike-photo-picker-trigger {
    min-width: 220px;
    font-weight: 700;
}

.maintenance-card-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.maintenance-inline-photo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    padding: 0.7rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.maintenance-inline-photo img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.9rem;
    flex: 0 0 auto;
}

.maintenance-inline-photo span {
    font-weight: 600;
    color: #334155;
}

.maintenance-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.maintenance-photo-thumb-link {
    display: block;
}

.maintenance-photo-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 32, 0.08);
}

.maintenance-side-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.maintenance-empty-state {
    text-align: center;
    padding: 1rem 0.25rem;
    color: #64748b;
}

.maintenance-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: #f8fafc;
    color: #f59e0b;
    font-size: 1.4rem;
}

.maintenance-gallery-card img {
    transition: transform 0.2s ease;
}

.maintenance-gallery-link:hover img {
    transform: scale(1.02);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.feature-card,
.brand-showcase-card {
    border-radius: 1.25rem;
}

.brand-family-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.brand-browser-shell {
    position: relative;
    z-index: 20;
    overflow: visible;
    isolation: isolate;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 250, 252, 0.985));
}

.brand-browser-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
}

.brand-browser-head {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-browser-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-browser-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 0.98;
}

.brand-browser-logo-wrap {
    width: 74px;
    height: 74px;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.brand-browser-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-browser-logo-fallback {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1d4ed8;
}

.brand-browser-description {
    max-width: 78rem;
    font-size: 1rem;
    line-height: 1.6;
}

.brand-browser-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.brand-browser-actions .btn {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 700;
}

.brand-browser-admin-action {
    min-width: 96px;
}

.brand-browser-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.brand-browser-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #475569;
}

.brand-browser-stat strong {
    font-size: 1rem;
    color: #0f172a;
}

.brand-browser-stat small {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.brand-browser-social {
    margin-top: 1rem;
}

.brand-browser-form {
    position: relative;
    z-index: 25;
    margin-top: 1.15rem;
}

.brand-browser-search-row {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.75rem;
    align-items: center;
}

.brand-browser-search-input .form-control {
    min-height: 58px;
    border-radius: 1.15rem;
    padding-inline: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-browser-search-input {
    position: relative;
}

.brand-browser-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.brand-browser-search-result {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 1rem;
    color: inherit;
    text-decoration: none;
}

.brand-browser-search-result:hover {
    background: #f8fafc;
    color: inherit;
}

.brand-browser-search-result.is-active {
    background: #eff6ff;
}

.brand-browser-search-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.9rem;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.brand-browser-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-browser-search-meta {
    min-width: 0;
}

.brand-browser-search-title {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-browser-search-title mark,
.brand-browser-search-subtitle mark {
    padding: 0;
    background: rgba(59, 130, 246, 0.18);
    color: inherit;
    border-radius: 0.3rem;
}

.brand-browser-search-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.brand-browser-search-btn,
.brand-browser-filter-btn,
.brand-browser-reset-btn {
    min-height: 58px;
    border-radius: 1.15rem;
    padding-inline: 1rem;
    font-weight: 700;
}

.brand-browser-filters {
    margin-top: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 1.35rem;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.brand-family-cover-link {
    display: block;
}

.brand-family-cover {
    position: relative;
    height: 248px;
    padding: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
}

.brand-family-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.22) 40%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.brand-family-cover-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 1rem 1rem 1.05rem;
    color: #ffffff;
}

.brand-family-cover-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.brand-family-cover-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.brand-family-cover-title {
    color: #ffffff;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.02;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.brand-family-cover-subtitle {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    font-size: 0.95rem;
}

.brand-family-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.brand-family-description {
    min-height: 2.8rem;
}

.brand-family-rating-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 1rem;
    background: rgba(239, 246, 255, 0.85);
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.brand-family-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    color: #f59e0b;
    font-size: 0.95rem;
}

.brand-family-rating-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.brand-family-rating-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.brand-family-rating-count {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.3;
}

.model-rating-stars-button {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.model-rating-stars-button:hover,
.model-rating-stars-button:focus {
    transform: translateY(-1px);
    opacity: 1;
}

.model-rating-stars-button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 4px;
    border-radius: 999px;
}

.model-rating-stars.is-hover-preview i,
.model-rating-stars-button:hover i {
    color: #f59e0b;
}

.model-vote-modal {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.model-vote-modal-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.model-vote-modal-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: #f59e0b;
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.model-vote-modal-copy {
    color: #1e293b;
    font-size: 1.02rem;
    line-height: 1.7;
}

.model-vote-modal-copy strong {
    color: #0f172a;
}

.model-vote-modal .modal-footer .btn {
    min-width: 144px;
}

.brand-family-selector {
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.brand-family-selector-label {
    margin-bottom: 0.7rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-family-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.brand-family-variant-pill {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.brand-family-variant-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.brand-family-variant-pill.is-active {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.brand-logo-frame {
    height: 170px;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-frame-placeholder {
    color: #94a3b8;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-family-card .brand-logo-frame {
    align-items: stretch;
    justify-content: stretch;
}

.brand-family-card .brand-logo-image {
    object-fit: cover;
}

.brand-family-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.brand-family-actions .btn {
    min-height: 46px;
    padding-inline: 0.55rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.brand-family-actions .btn-success {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.brand-family-actions .btn-success:hover,
.brand-family-actions .btn-success:focus {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.social-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-link-list.is-compact {
    gap: 0.45rem;
}

.social-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 100%;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-link-list.is-compact .social-link-chip {
    padding: 0.36rem 0.62rem;
    font-size: 0.8rem;
}

.social-link-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.social-link-chip-emoji {
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

.social-link-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-link-chip-more {
    cursor: default;
    background: #f8fafc;
    color: #475569;
}

.brand-header-socials {
    align-items: center;
}

.brand-header-socials .social-link-chip {
    background: #f8fafc;
}

.social-link-form-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.social-link-pending {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1.1rem;
}

.social-link-pending-list {
    display: grid;
    gap: 0.85rem;
}

.social-link-pending-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-icon {
    font-size: 3rem;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.section-heading {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker,
.home-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.section-kicker {
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.home-hero {
    padding-top: 2rem;
}

.home-hero-panel {
    border-radius: 2rem;
    padding: 3rem;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(25, 135, 84, 0.22), transparent 28%),
        linear-gradient(135deg, var(--panel) 0%, var(--panel-soft) 100%);
    color: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 32, 0.2);
}

.home-eyebrow {
    color: #7dd3fc;
    margin-bottom: 1rem;
}

.home-title {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.home-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.86);
}

.home-summary-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
}

.home-summary-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
}

.home-summary-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.home-summary-label {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 32, 0.08);
}

.analytics-hero-banner {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f6faff 58%, #eef6ff 100%);
}

.analytics-period-form {
    min-width: min(100%, 320px);
}

.analytics-period-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-section-tabs {
    gap: 0.65rem;
    row-gap: 0.75rem;
}

.admin-section-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: #334155;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 32, 0.05);
}

.admin-section-tabs .nav-link.active {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: transparent;
}

.admin-section-tab-content {
    min-height: 240px;
}

.analytics-summary-card {
    padding: 1.2rem 1.25rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 32, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.analytics-summary-card-primary {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.32), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #10233e 100%);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.2);
}

.analytics-summary-card-primary .analytics-summary-kicker,
.analytics-summary-card-primary .analytics-summary-meta {
    color: rgba(255, 255, 255, 0.76);
}

.analytics-summary-kicker {
    display: block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
}

.analytics-summary-value {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.analytics-summary-meta {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.92rem;
}

.analytics-online-list {
    display: grid;
    gap: 0.8rem;
}

.analytics-online-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #f8fbff;
    border: 1px solid rgba(191, 219, 254, 0.65);
}

.analytics-online-name-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.analytics-online-path {
    font-size: 0.92rem;
}

.analytics-online-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.analytics-online-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.analytics-online-meta {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    word-break: break-word;
}

.analytics-online-time {
    flex: 0 0 auto;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.analytics-device-row + .analytics-device-row,
.analytics-timeline-item + .analytics-timeline-item {
    margin-top: 1rem;
}

.analytics-meter {
    width: 100%;
    height: 0.85rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e5edf6;
}

.analytics-meter-soft {
    height: 0.72rem;
    background: #edf2f8;
}

.analytics-meter-fill {
    height: 100%;
    border-radius: inherit;
}

.analytics-meter-fill-app {
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
}

.analytics-meter-fill-mobile {
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.analytics-meter-fill-desktop {
    background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 100%);
}

.analytics-meter-fill-success {
    background: linear-gradient(90deg, #0f766e 0%, #22c55e 100%);
}

.analytics-meter-fill-other {
    background: linear-gradient(90deg, #475569 0%, #94a3b8 100%);
}

.analytics-timeline-list {
    display: grid;
    gap: 0.85rem;
}

.analytics-timeline-label {
    color: #334155;
    font-weight: 600;
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    gap: 1.25rem;
    justify-content: start;
}

.garage-card {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

.garage-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 32, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.garage-card-media {
    position: relative;
}

.garage-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 32, 0.14);
}

.garage-card-image,
.garage-card-placeholder {
    width: 100%;
    height: 200px;
}

.garage-card-image {
    display: block;
    object-fit: cover;
}

.garage-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbe4ec 0%, #eef3f7 100%);
    color: #6b7280;
    font-size: 2.6rem;
}

.garage-card-alert-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.35);
    animation: garage-alert-pulse 1.1s ease-in-out infinite;
}

@keyframes garage-alert-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.08);
    }
}

.garage-card-body {
    padding: 1rem 1rem 1.05rem;
}

.garage-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.garage-card-meta {
    font-size: 0.92rem;
    color: #6b7280;
    margin-bottom: 0;
}

.garage-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.garage-card-actions .btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
    border-radius: 1rem;
    padding: 0.82rem 1rem;
    font-weight: 700;
    text-align: center;
}

.community-share-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.82rem 1rem;
    border-radius: 1rem;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-weight: 700;
    flex: 1 1 calc(50% - 0.375rem);
    justify-content: center;
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
    gap: 1rem;
    justify-content: start;
}

.proposal-card {
    width: 100%;
    max-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 32, 0.08);
}

.proposal-card-media {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
}

.proposal-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.proposal-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3.25rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 38%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.proposal-card-body {
    padding: 0.85rem;
}

.proposal-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.proposal-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: #1f2937;
}

.proposal-card-subtitle {
    margin: 0.22rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.proposal-card-text {
    margin: 0 0 0.75rem;
    color: #4b5563;
    line-height: 1.45;
    min-height: 2.7rem;
    font-size: 0.84rem;
}

.proposal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    margin-bottom: 0.85rem;
    color: #6b7280;
    font-size: 0.76rem;
}

.proposal-status-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
}

.proposal-status-draft {
    background: rgba(75, 85, 99, 0.88);
    color: #ffffff;
}

.proposal-status-pending {
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
}

.proposal-status-approved {
    background: rgba(22, 163, 74, 0.9);
    color: #ffffff;
}

.proposal-status-rejected {
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
}

.proposal-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.proposal-action-form {
    margin: 0;
}

.proposal-action-form .proposal-btn {
    width: 100%;
}

.proposal-btn {
    min-height: 36px;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.proposal-btn-view {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.proposal-btn-view:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.proposal-btn-edit {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.proposal-btn-edit:hover {
    background: #eef2f7;
    color: #334155;
    border-color: #94a3b8;
}

.proposal-btn-submit {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border-color: #15803d;
}

.proposal-btn-submit:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ffffff;
    border-color: #166534;
}

@media (max-width: 767.98px) {
    .proposal-card-media {
        height: 140px;
    }
}

.admin-proposal-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #eff6ff 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow: 0 10px 28px rgba(15, 23, 32, 0.06);
}

.admin-proposal-alert-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}

.admin-proposal-alert-title {
    font-size: 1.25rem;
    color: #1f2937;
}

.admin-proposal-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-proposal-queue {
    display: grid;
    gap: 0.9rem;
}

.admin-proposal-item {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: #fbfdff;
}

@media (max-width: 767.98px) {
    .admin-proposal-alert {
        align-items: flex-start;
        flex-direction: column;
    }
}

.forum-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.forum-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
}

.forum-avatar-md {
    width: 52px;
    height: 52px;
    font-size: 1rem;
}

.forum-avatar-lg {
    width: 84px;
    height: 84px;
    font-size: 1.5rem;
}

.forum-avatar-xl {
    width: 100px;
    height: 100px;
    font-size: 1.8rem;
}

.forum-resource-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.forum-resource-avatar-xs {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

.forum-resource-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.forum-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.forum-author-name {
    font-weight: 700;
    line-height: 1.15;
}

.forum-author-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1rem;
    color: #d97706;
    font-size: 0.8rem;
    line-height: 1;
}

.forum-author-stars-empty {
    color: #94a3b8;
}

.forum-author-stars-label {
    color: #64748b;
    font-size: 0.76rem;
}

.app-admin-dropdown-menu {
    min-width: 23rem;
}

.app-admin-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.app-admin-dropdown-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex: 1 1 auto;
}

.app-admin-dropdown-label i {
    flex: 0 0 1.25rem;
    text-align: center;
}

.app-admin-dropdown-label span:last-child {
    min-width: 0;
}

.app-admin-dropdown-item .badge {
    flex: 0 0 auto;
}

.forum-brand-avatar {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.avatar-bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.avatar-bike-option input {
    display: none;
}

.avatar-bike-card {
    display: block;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-bike-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(15, 23, 32, 0.08);
}

.avatar-bike-option input:checked + .avatar-bike-card {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.avatar-bike-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.avatar-bike-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    color: #334155;
}

.avatar-bike-card-body small {
    color: #64748b;
}

.profile-stats-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-control,
.form-select,
.btn {
    border-radius: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.btn {
    font-weight: 600;
    padding: 0.72rem 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1d4ed8;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: 1px solid #475569;
    color: #fff;
}

.btn-secondary:hover {
    color: #fff;
}

.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    background: rgba(255, 255, 255, 0.94);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.82rem 1rem;
}

.btn-app-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #fff;
}

.btn-app-secondary {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    border-color: #1e293b;
    color: #fff;
}

.btn-app-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: #15803d;
    color: #fff;
}

.btn-app-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    color: #fff;
}

.btn-app-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.btn-app-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #0284c7;
    color: #fff;
}

.btn-app-dark {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    border-color: #0f172a;
    color: #fff;
}

.btn-app-neutral {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-app-primary:hover,
.btn-app-secondary:hover,
.btn-app-success:hover,
.btn-app-warning:hover,
.btn-app-danger:hover,
.btn-app-info:hover,
.btn-app-dark:hover {
    color: #fff;
}

.btn-app-neutral:hover {
    color: #0f172a;
    border-color: #94a3b8;
}

.model-hero-shell {
    position: relative;
}

.model-hero-card {
    padding: 1.15rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 60px rgba(15, 23, 32, 0.1);
}

.model-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 1.15rem;
    align-items: stretch;
}

.model-hero-media {
    position: relative;
    min-height: 520px;
    border-radius: 1.7rem;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #f8fafc 100%);
}

.model-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.model-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 4.25rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 38%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.model-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.12) 34%, rgba(15, 23, 42, 0.78) 100%);
}

.model-hero-floating-badges {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.model-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.model-hero-copy {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 1.6rem 1.6rem 1.75rem;
    color: #ffffff;
}

.model-hero-title {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 0.96;
    color: #ffffff;
    text-shadow: 0 16px 40px rgba(15, 23, 42, 0.36);
}

.model-hero-subtitle {
    font-size: 1.18rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.model-hero-rating {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.78rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.22);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.model-hero-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #fbbf24;
    font-size: 1rem;
}

.model-hero-rating strong {
    font-size: 1.08rem;
    font-weight: 800;
}

.model-hero-rating.is-vote-enabled {
    gap: 0.85rem;
}

.model-hero-rating .model-rating-stars-button {
    flex: 0 0 auto;
}

.model-rating-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.model-rating-meta span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.35;
}

.model-rating-leaderboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.model-rating-leaderboard-link:hover,
.model-rating-leaderboard-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(191, 219, 254, 0.38);
}

.model-review-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.model-review-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.model-review-action:hover,
.model-review-action:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.model-review-action-primary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(14, 165, 233, 0.22);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.16);
}

.model-review-action-primary:hover,
.model-review-action-primary:focus {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.32);
    border-color: rgba(255, 255, 255, 0.4);
}

.model-review-action-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.model-review-action-secondary:hover,
.model-review-action-secondary:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.model-review-panel {
    border-radius: 1.35rem;
    padding: 1.1rem 1.15rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(191, 219, 254, 0.24);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
}

.model-review-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.model-review-panel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.model-review-panel-title {
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 800;
}

.model-review-panel-copy {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 58ch;
}

.model-review-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.model-review-panel-link:hover,
.model-review-panel-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.model-review-label {
    color: #ffffff;
    font-weight: 700;
}

.model-review-textarea {
    min-height: 144px;
    border-radius: 1rem;
    border: 1px solid rgba(191, 219, 254, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

.model-review-textarea:focus {
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
}

.model-review-form-footer {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.model-review-note {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.model-review-submit {
    border-radius: 999px;
    font-weight: 700;
    padding-inline: 1rem;
}

.model-review-guest {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.model-hero-side {
    display: grid;
    gap: 1rem;
}

.model-hero-panel {
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 38px rgba(15, 23, 32, 0.06);
    padding: 1.15rem 1.2rem;
}

.model-hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.model-hero-panel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.model-hero-description {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}

.model-hero-description-empty {
    color: #64748b;
}

.model-hero-panel-stats .model-meta-grid {
    margin: 0;
}

.model-hero-panel-social .social-link-list {
    gap: 0.55rem;
}

.model-hero-panel-social .social-link-chip {
    background: #f8fafc;
}

.model-action-grid-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.model-action-grid-hero .btn,
.model-action-grid-hero > .dropdown,
.model-action-grid-hero > form {
    width: 100%;
}

.model-action-grid-hero > form .btn {
    width: 100%;
}

.model-mobile-nav-toggle {
    display: none;
}

.model-mobile-offcanvas {
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    box-shadow: -24px 0 60px rgba(15, 23, 32, 0.16);
}

.model-mobile-offcanvas .offcanvas-header {
    padding: 1.1rem 1.1rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.model-mobile-offcanvas .offcanvas-body {
    padding: 1rem 1.1rem 1.35rem;
}

.model-mobile-offcanvas-kicker {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.model-mobile-nav-list {
    display: grid;
    gap: 0.7rem;
}

.model-mobile-nav-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.model-mobile-nav-link i {
    font-size: 1rem;
    color: #2563eb;
}

.model-mobile-nav-link.is-active {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.model-mobile-nav-link.is-active i {
    color: #bfdbfe;
}

.model-mobile-nav-link-external i {
    color: #475569;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.table {
    margin-bottom: 0;
}

.table thead {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

.app-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(15, 23, 32, 0.98), rgba(12, 19, 29, 0.96));
    box-shadow: 0 -14px 32px rgba(9, 14, 27, 0.22);
}

.app-footer-inner {
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.01em;
}

.app-footer-copyright {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.text-muted {
    opacity: 1;
}

.app-footer-link {
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.app-footer-link:hover,
.app-footer-link:focus {
    color: #ffffff;
}

.app-footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.18rem;
    height: 1px;
    background: currentColor;
    opacity: 0.25;
    transform: scaleX(0.72);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-footer-link:hover::after,
.app-footer-link:focus::after {
    opacity: 0.65;
    transform: scaleX(1);
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.model-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.model-action-grid > .dropdown {
    min-width: 0;
}

.model-action-grid > .dropdown .dropdown-menu {
    width: 100%;
}

.model-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.85rem;
}

.model-meta-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.model-meta-card small {
    display: block;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.model-meta-card strong {
    font-size: 1.25rem;
    color: #0f172a;
}

.model-side-card {
    overflow: hidden;
}

.model-detail-tabs .nav-link {
    border-radius: 0.95rem 0.95rem 0 0;
    padding: 0.9rem 1.1rem;
    color: #334155;
    font-weight: 600;
}

.model-detail-tabs .nav-link.active {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.22) rgba(148, 163, 184, 0.22) #ffffff;
    color: #0f172a;
}

.model-panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.2rem;
    padding: 1.1rem;
}

.model-asset-card {
    border-radius: 1.1rem;
}

.model-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
}

.model-mini-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.model-mini-icon-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

@media (max-width: 768px) {
    .home-hero-panel {
        padding: 2rem 1.25rem;
    }

    #app-main {
        padding-top: 1.5rem !important;
        padding-bottom: 6.75rem !important;
    }

    body.app-mobile-nav-collapsed #app-main {
        padding-bottom: 2.5rem !important;
    }

    .dashboard-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.1rem;
    }

    .dashboard-banner .btn {
        width: 100%;
    }

    .brand-browser-shell {
        border-radius: 1.3rem;
    }

    .brand-browser-top {
        flex-direction: column;
        gap: 1rem;
    }

    .brand-browser-title {
        font-size: 2.2rem;
    }

    .brand-browser-description {
        font-size: 0.98rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-browser-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-browser-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .brand-browser-admin-action {
        grid-column: 1 / -1;
    }

    .brand-browser-social {
        display: none !important;
    }

    .brand-browser-stats {
        gap: 0.5rem;
    }

    .brand-browser-stat {
        padding: 0.48rem 0.72rem;
    }

    .brand-browser-search-row {
        grid-template-columns: 1fr 1fr;
    }

    .brand-browser-title-row {
        gap: 0.85rem;
    }

    .brand-browser-logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 1rem;
    }

    .brand-browser-search-input {
        grid-column: 1 / -1;
    }

    .brand-browser-search-btn,
    .brand-browser-filter-btn,
    .brand-browser-reset-btn {
        min-height: 52px;
        padding-inline: 0.85rem;
    }

    .brand-browser-filters {
        padding: 0.9rem;
    }

    .analytics-period-form {
        width: 100%;
    }

    .analytics-period-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .analytics-online-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .garage-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .garage-card {
        max-width: 100%;
    }

    .garage-card-actions .btn {
        flex-basis: calc(50% - 0.375rem);
    }

    .brand-logo-frame {
        height: 150px;
        padding: 0.85rem;
    }

    .brand-family-cover {
        height: 220px;
        padding: 0;
    }

    .brand-family-actions {
        gap: 0.5rem;
    }

    .brand-family-actions .btn {
        font-size: 0.84rem;
        min-height: 44px;
    }

    .social-link-pending-item {
        flex-direction: column;
    }

    .model-action-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        margin-right: -0.25rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .model-action-grid .btn {
        flex: 0 0 auto;
        min-width: 148px;
        padding: 0.82rem 0.95rem;
        font-size: 0.94rem;
        line-height: 1.25;
        border-radius: 1rem;
        scroll-snap-align: start;
    }

    .model-action-grid > .dropdown {
        flex: 0 0 auto;
        min-width: 148px;
        scroll-snap-align: start;
    }

    .model-hero-card {
        padding: 0.9rem;
        border-radius: 1.5rem;
    }

    .model-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-hero-media {
        min-height: 380px;
        border-radius: 1.35rem;
    }

    .model-hero-copy {
        padding: 1.15rem 1.15rem 1.25rem;
    }

    .model-hero-subtitle {
        font-size: 1rem;
    }

    .model-review-actions {
        width: 100%;
    }

    .model-review-action {
        flex: 1 1 220px;
    }

    .model-review-panel-header {
        flex-direction: column;
    }

    .model-review-panel-link {
        width: 100%;
    }

    .model-action-grid-hero {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        margin-right: -0.25rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .model-action-grid-hero .btn,
    .model-action-grid-hero > .dropdown,
    .model-action-grid-hero > form {
        flex: 0 0 auto;
        min-width: 156px;
        scroll-snap-align: start;
    }

    .model-action-grid-hero {
        display: none;
    }

    .model-detail-tabs {
        display: none;
    }

    .model-hero-shell {
        padding-top: 3.8rem;
    }

    .model-mobile-nav-toggle {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 67px);
        left: calc(env(safe-area-inset-left, 0px) + 12px);
        right: calc(env(safe-area-inset-right, 0px) + 12px);
        z-index: 1046;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: auto;
        gap: 0.8rem;
        padding: 0.82rem 0.98rem;
        border-radius: 0 0 1.15rem 1.15rem;
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(29, 78, 216, 0.94));
        border: 1px solid rgba(191, 219, 254, 0.18);
        border-top: 0;
        color: #ffffff;
        box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(12px);
    }

    .model-mobile-nav-toggle:hover,
    .model-mobile-nav-toggle:focus {
        color: #ffffff;
        border-color: rgba(191, 219, 254, 0.32);
    }

    .model-mobile-nav-toggle-icon {
        width: 36px;
        height: 36px;
        border-radius: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        font-size: 1rem;
        flex: 0 0 auto;
    }

    .model-mobile-nav-toggle-copy {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
    }

    .model-mobile-nav-toggle-copy strong {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.94rem;
        font-weight: 800;
    }

    .model-mobile-nav-toggle-label {
        color: rgba(255, 255, 255, 0.96);
    }

    .model-mobile-nav-toggle-separator {
        color: rgba(191, 219, 254, 0.72);
        flex: 0 0 auto;
    }

    #modelMobileCurrentLabel {
        color: #bfdbfe;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .model-mobile-nav-toggle-caret {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.92);
        flex: 0 0 auto;
    }

    .social-link-list.is-mobile-emoji-only {
        gap: 0.45rem;
    }

    .social-link-list.is-mobile-emoji-only .social-link-chip {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
    }

    .social-link-list.is-mobile-emoji-only .social-link-chip-label {
        display: none;
    }

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

    .model-detail-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.35rem;
    }

    .model-detail-tabs .nav-item {
        flex: 0 0 auto;
    }

    .model-detail-tabs .nav-link {
        padding: 0.75rem 0.95rem;
        border-radius: 0.9rem 0.9rem 0 0;
    }

    .model-side-card {
        margin-top: -0.5rem;
    }

    .app-footer {
        padding-bottom: 5.75rem !important;
    }

    body.app-mobile-nav-collapsed .app-footer {
        padding-bottom: 2rem !important;
    }

    .maintenance-photo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .maintenance-card-actions,
    .maintenance-side-actions {
        flex-direction: column;
    }

    .maintenance-card-actions .btn,
    .maintenance-side-actions .btn,
    .maintenance-inline-photo {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .brand-browser-title-row {
        align-items: flex-start;
    }

    .brand-browser-logo-wrap {
        width: 58px;
        height: 58px;
        padding: 0.5rem;
    }

    .model-hero-media {
        min-height: 320px;
    }

    .model-hero-shell {
        padding-top: 3.5rem;
    }

    .model-mobile-nav-toggle {
        top: calc(env(safe-area-inset-top, 0px) + 61px);
        left: calc(env(safe-area-inset-left, 0px) + 10px);
        right: calc(env(safe-area-inset-right, 0px) + 10px);
        padding: 0.72rem 0.86rem;
        gap: 0.6rem;
        border-radius: 0 0 1rem 1rem;
    }

    .model-mobile-nav-toggle-icon {
        width: 34px;
        height: 34px;
        border-radius: 0.8rem;
    }

    .model-mobile-nav-toggle-copy strong {
        font-size: 0.86rem;
    }

    .model-hero-floating-badges {
        top: 0.9rem;
        left: 0.9rem;
        right: 0.9rem;
    }

    .model-hero-pill {
        padding: 0.44rem 0.72rem;
        font-size: 0.8rem;
    }

    .model-hero-copy {
        padding: 1rem 1rem 1.1rem;
    }

    .model-hero-title {
        font-size: 2rem;
    }

    .model-hero-rating {
        width: 100%;
        justify-content: space-between;
    }

    .model-rating-leaderboard-link,
    .model-review-actions {
        width: 100%;
    }

    .model-review-action {
        width: 100%;
        flex: 1 1 100%;
    }

    .model-review-form-footer {
        align-items: stretch;
    }

    .model-review-submit {
        width: 100%;
    }

    .model-hero-panel {
        padding: 1rem;
        border-radius: 1.2rem;
    }

    .brand-family-cover {
        height: 208px;
    }

    .brand-family-cover-content {
        padding: 0.85rem 0.85rem 0.95rem;
    }

    .brand-family-cover-title {
        font-size: 1.32rem;
    }

    .brand-family-actions .btn {
        font-size: 0.78rem;
        min-height: 42px;
    }
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-models-page {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.admin-models-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.9));
    color: #fff;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.18);
}

.admin-models-hero h2,
.admin-models-hero .text-muted {
    color: rgba(255, 255, 255, 0.92) !important;
}

.admin-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
}

.admin-action-button {
    border-radius: 999px;
    padding-inline: 1.1rem;
}

.admin-models-toolbar {
    margin-bottom: 0.5rem;
}

.admin-select {
    min-height: 3.25rem;
    border-radius: 1rem;
}

.admin-models-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.admin-models-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.admin-models-table tbody td {
    vertical-align: middle;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.bulk-col {
    width: 56px;
}

.model-row {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.model-row.is-selected {
    background: rgba(37, 99, 235, 0.06);
}

.model-title {
    font-size: 1.02rem;
    color: #0f172a;
}

.model-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.model-thumb-placeholder {
    color: #94a3b8;
    font-size: 1.1rem;
}

.model-actions .btn {
    min-width: 3rem;
    border-radius: 0.9rem;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.scraping-admin-page .display-6 {
    font-size: 2.1rem;
}

.process-monitor-header {
    display: grid;
    gap: 0.75rem;
}

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

.process-toolbar .btn {
    width: 100%;
    white-space: nowrap;
    font-size: 0.92rem;
    line-height: 1.2;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    box-shadow: none;
}

.process-toolbar .btn:hover {
    transform: none;
}

.scrape-help-trigger {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    padding: 0;
}

.scrape-help-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.scrape-help-section:last-child {
    border-bottom: 0;
}

.scrape-brand-picker {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(30, 64, 175, 0.02));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.scrape-analyze-feedback {
    border-radius: 1rem;
    border: 1px solid rgba(13, 202, 240, 0.18);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(232, 250, 255, 0.96) 100%);
}

.scrape-analyze-feedback .fw-semibold {
    color: #0f172a;
}

.scrape-analyze-feedback .small {
    color: #334155;
}

.btn.is-busy {
    pointer-events: none;
    opacity: 0.92;
}

.scrape-brand-grid {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

.scrape-brand-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.scrape-brand-item .form-check-input {
    margin-top: 0;
}

.scrape-brand-card {
    margin: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    min-height: 100%;
}

.scrape-brand-actions .btn {
    white-space: nowrap;
}

.scrape-discovery-panel {
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.scrape-discovery-stat {
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.scrape-console-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.scrape-console-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.scrape-console-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.scrape-console-card-kicker {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scrape-console-card-value {
    color: #0f172a;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1;
}

.scrape-console-card-meta {
    color: #475569;
    font-size: 0.9rem;
    margin-top: 0.45rem;
}

.scrape-console-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.scrape-console-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.scrape-console-chip strong {
    color: #0f172a;
    font-weight: 800;
}

.scrape-console-chip.is-success {
    background: rgba(240, 253, 244, 0.98);
    border-color: rgba(34, 197, 94, 0.22);
}

.scrape-console-chip.is-warning {
    background: rgba(255, 251, 235, 0.98);
    border-color: rgba(245, 158, 11, 0.22);
}

.scrape-console-chip.is-danger {
    background: rgba(254, 242, 242, 0.98);
    border-color: rgba(239, 68, 68, 0.22);
}

.scrape-brand-card.is-loading {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.06);
}

.scrape-brand-card.is-complete {
    border-color: rgba(34, 197, 94, 0.35);
}

.scrape-brand-card.is-error {
    border-color: rgba(239, 68, 68, 0.4);
}

@media (max-width: 576px) {
    .process-toolbar {
        grid-template-columns: 1fr;
    }
}

.scrape-log-list {
    display: grid;
    gap: 0.8rem;
    max-height: 560px;
    overflow: auto;
    padding-right: 0.3rem;
}

.job-runtime-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.86));
}

.job-runtime-banner.is-running,
.job-runtime-banner.is-completed {
    border-color: rgba(34, 197, 94, 0.22);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.88));
}

.job-runtime-banner.is-queued,
.job-runtime-banner.is-pending,
.job-runtime-banner.is-paused {
    border-color: rgba(245, 158, 11, 0.22);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.9));
}

.job-runtime-banner.is-stopped,
.job-runtime-banner.is-stopping,
.job-runtime-banner.is-error,
.job-runtime-banner.is-failed,
.job-runtime-banner.is-completed_with_errors {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.9));
}

.job-runtime-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.42);
    animation: scrapePulse 1.8s infinite;
}

.job-runtime-banner.is-running .job-runtime-icon,
.job-runtime-banner.is-completed .job-runtime-icon {
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
}

.job-runtime-banner.is-stopped .job-runtime-icon,
.job-runtime-banner.is-stopping .job-runtime-icon,
.job-runtime-banner.is-error .job-runtime-icon,
.job-runtime-banner.is-failed .job-runtime-icon,
.job-runtime-banner.is-completed_with_errors .job-runtime-icon {
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
}

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

.job-runtime-text,
.job-runtime-meta {
    color: #475569;
    font-size: 0.94rem;
}

.scraping-job-page .progress {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

.scraping-job-page .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

@keyframes scrapePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.scrape-log-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem 0.85rem;
}

.scrape-log-item pre {
    white-space: pre-wrap;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.65rem;
}

.scrape-terminal {
    background: #0b1220;
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #dbeafe;
    border-radius: 0.85rem;
    padding: 0.85rem;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

.terminal-line {
    padding: 0.22rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.terminal-line:last-child {
    border-bottom: 0;
}

.terminal-time {
    color: #93c5fd;
    margin-right: 0.45rem;
}

.terminal-level {
    margin-right: 0.45rem;
    font-weight: 700;
}

.terminal-level.level-info {
    color: #93c5fd;
}

.terminal-level.level-warning {
    color: #fbbf24;
}

.terminal-level.level-error {
    color: #f87171;
}

.terminal-context {
    color: #cbd5e1;
    opacity: 0.9;
    margin-top: 0.18rem;
    padding-left: 1.3rem;
    white-space: pre-wrap;
}

.scrape-live-stat {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.9rem 1rem;
    height: 100%;
}

.scrape-live-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scrape-live-stat strong {
    font-size: 1.55rem;
    color: #0f172a;
}

.scrape-live-feed {
    display: grid;
    gap: 0.75rem;
    max-height: 420px;
    overflow: auto;
    padding-right: 0.25rem;
}

.scrape-live-feed-item {
    border: 1px solid #dbeafe;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.94));
    padding: 0.85rem 0.95rem;
}

.scrape-live-feed-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.scrape-live-feed-meta {
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.scrape-live-feed-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

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

.scraping-side-tabs {
    border-bottom: 0;
    gap: 0.35rem;
}

.scraping-side-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 0;
    border-top-left-radius: 0.95rem;
    border-top-right-radius: 0.95rem;
    color: #475569;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.9);
}

.scraping-side-tabs .nav-link.active {
    color: #0f172a;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.22);
}

.process-health-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 0.95rem 1rem;
    min-height: 100%;
}

.process-health-label {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.process-health-value {
    display: block;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.process-health-meta {
    color: #475569;
    font-size: 0.85rem;
}

.process-worker-list {
    display: grid;
    gap: 0.8rem;
}

.process-worker-empty {
    border-radius: 0.95rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
    font-size: 0.92rem;
    padding: 1rem;
}

.process-worker-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 0.95rem 1rem;
}

.process-worker-card.is-running {
    border-color: rgba(34, 197, 94, 0.22);
}

.process-worker-card.is-warning {
    border-color: rgba(245, 158, 11, 0.22);
}

.process-worker-card.is-error,
.process-worker-card.is-stopped {
    border-color: rgba(239, 68, 68, 0.18);
}

.process-worker-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.process-worker-title {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}

.process-worker-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.process-worker-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(241, 245, 249, 0.95);
    color: #334155;
}

.process-worker-status.is-running {
    background: rgba(240, 253, 244, 0.98);
    color: #166534;
}

.process-worker-status.is-warning {
    background: rgba(255, 251, 235, 0.98);
    color: #92400e;
}

.process-worker-status.is-error,
.process-worker-status.is-stopped {
    background: rgba(254, 242, 242, 0.98);
    color: #b91c1c;
}

.process-worker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.process-worker-grid span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.18rem;
}

.process-worker-grid strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    word-break: break-word;
}

.process-worker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scrape-side-note {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1rem;
}

.maintenance-inline-upload {
    background: linear-gradient(135deg, #fff9db 0%, #fffdf4 100%);
    border-radius: 1.1rem;
}

.maintenance-upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.maintenance-capture-shell {
    align-items: center;
}

.maintenance-capture-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.maintenance-upload-trigger {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
}

.maintenance-app-media-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.maintenance-app-media-choice[hidden] {
    display: none;
}

.maintenance-app-media-choice .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.maintenance-upload-filename {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
}

.maintenance-audio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.maintenance-audio-status {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.96rem;
}

.audio-recorder-form .js-audio-stop[hidden],
.audio-recorder-form .js-audio-cancel[hidden] {
    display: none !important;
}

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

@media (max-width: 768px) {
    .process-health-grid,
    .scrape-console-grid,
    .process-worker-grid {
        grid-template-columns: 1fr;
    }

    .job-runtime-banner {
        grid-template-columns: auto 1fr;
    }

    .job-runtime-meta {
        grid-column: 1 / -1;
        padding-left: 2rem;
    }
}

.media-gallery-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
}

.media-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.media-stat-card span {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.media-stat-card strong {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.media-gallery-panel {
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

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

.media-album-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.9rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.7rem;
}

.media-album-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.85rem;
}

.media-album-card small,
.media-album-card span {
    display: block;
    color: #64748b;
}

.media-maintenance-album {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    overflow: hidden;
    height: 100%;
}

.media-maintenance-cover {
    position: relative;
}

.media-maintenance-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.media-maintenance-cover .badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.media-maintenance-copy {
    padding: 0.95rem 1rem 1rem;
}

.media-maintenance-copy strong,
.media-maintenance-copy span,
.media-maintenance-copy small {
    display: block;
}

.media-maintenance-copy span,
.media-maintenance-copy small,
.media-detail-photo-copy span {
    color: #64748b;
}

.media-detail-photo {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.media-detail-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.media-detail-photo-copy {
    padding: 0.75rem 0.85rem 0.9rem;
}

.media-detail-photo-copy strong,
.media-detail-photo-copy span {
    display: block;
}

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

    .maintenance-upload-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .maintenance-capture-shell {
        align-items: stretch;
    }

    .maintenance-audio-actions {
        align-items: flex-start;
    }
}

.community-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.community-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1f2a44;
    font-weight: 600;
}

.community-top-grid,
.community-bike-grid {
    display: grid;
    justify-content: center;
    align-items: start;
}

.community-top-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    gap: 1rem;
}

.community-bike-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    gap: 1.25rem;
}

.community-top-card,
.community-bike-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.community-top-link,
.community-bike-media {
    display: block;
    color: inherit;
    text-decoration: none;
}

.community-top-image,
.community-bike-image,
.community-detail-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.community-top-link,
.community-bike-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #eef3fb, #dfe9f6);
}

.community-top-image,
.community-bike-image {
    height: 100%;
}

.community-detail-image {
    min-height: 320px;
    height: 100%;
}

.community-top-placeholder,
.community-bike-placeholder,
.community-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef3fb, #dfe9f6);
    color: #6b7280;
}

.community-top-placeholder,
.community-bike-placeholder {
    height: 100%;
    font-size: 3rem;
}

.community-detail-placeholder {
    min-height: 320px;
    font-size: 4rem;
}

.community-top-body,
.community-bike-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem 1.15rem 1.2rem;
}

.community-top-body h3,
.community-bike-title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
    color: #172033;
}

.community-top-body p,
.community-bike-meta,
.community-bike-owner {
    color: #667085;
    margin-bottom: 0.35rem;
}

.community-vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, #ffe08a, #ffc533);
    color: #6a4700;
    font-weight: 700;
    white-space: nowrap;
}

.community-vote-badge-lg {
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

.community-bike-story {
    min-height: 3.5rem;
    color: #344054;
    margin-bottom: 1rem;
}

.community-bike-actions,
.community-detail-votes {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.community-bike-actions {
    margin-top: auto;
}

.community-detail-story h3 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.btn-community-vote {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
}

.btn-community-vote:hover {
    color: #fff;
    opacity: 0.95;
}

@media (max-width: 767.98px) {
    .community-top-grid,
    .community-bike-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .community-detail-image,
    .community-detail-placeholder {
        min-height: 240px;
    }
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
    max-width: 280px;
}

.site-brand-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 120px;
    object-fit: contain;
}

.site-brand-logo-mobile {
    max-width: 190px;
    max-height: 48px;
}

.site-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
}

.site-brand-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f6f9fc);
}

.settings-logo-preview {
    min-width: min(100%, 320px);
    padding: 1.4rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #111820, #17324a);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.settings-logo-preview img {
    display: block;
    max-width: 260px;
    max-height: 90px;
    margin: 0 auto 0.8rem;
    object-fit: contain;
}

.settings-logo-preview small {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991.98px) {
    .site-brand-tagline {
        display: none;
    }

    .site-brand-logo {
        max-width: 190px;
    }
}
