body.home {
    --home-bg: #090A09;
    --home-surface: #131413;
    --home-surface-2: #252525;
    --home-border: #333;
    --home-text: #e8e8e8;
    --home-text-muted: #888;
    --home-accent: #dd141d;
    --home-accent-gold: #feac01;
    --home-radius: 12px;
    --home-radius-sm: 8px;

    background: var(--home-bg);
    color: var(--home-text);
}

body.home.home--logged-in #logo-link {
    display: none;
}

body.home.home--logged-in {
    padding-bottom: 73px;
}

body.home .home-container {
    max-width: 1320px;
    width: 100%;
    padding: 0 16px 24px;
}

body.home .home-container > .alert {
    margin-top: 20px;
}

body.home .home-container > .alert ~ .alert {
    margin-top: 10px;
}

body.home .home-container > #alerts {
    margin-top: 20px;
}

body.home .home-container > .alert + #alerts {
    margin-top: 10px;
}

body.home .home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 16px;
    border-bottom: 1px solid var(--home-border);
}

body.home .home-topbar__logo {
    display: block;
    flex-shrink: 0;
    width: 140px;
    height: 28px;
    background: url('https://cache.lawless-street.fr/img/logo-small.png') left center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

body.home .home-topbar__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-family: "Redemption", serif;
    font-size: 16px;
}

body.home .home-topbar__nav a {
    color: var(--home-text);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--home-radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

body.home .home-topbar__nav a:hover {
    background: var(--home-surface-2);
    color: #fff;
    text-decoration: none;
}

body.home .home-topbar__nav a.home-topbar__nav-admin {
    color: var(--home-accent-gold);
}

body.home .home-topbar__sep {
    color: var(--home-border);
    user-select: none;
}

body.home .not-wl,
body.home .not-wl-warning {
    max-width: 100%;
    width: auto;
    margin: 16px 0;
    border-radius: var(--home-radius);
}

body.home .home-status-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 16px;
    padding: 18px 20px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
}

body.home .home-status-banner--danger {
    border-color: rgba(221, 20, 29, 0.45);
    background: linear-gradient(135deg, rgba(221, 20, 29, 0.12) 0%, var(--home-surface) 55%);
}

body.home .home-status-banner--warning {
    border-color: rgba(254, 172, 1, 0.45);
    background: linear-gradient(135deg, rgba(254, 172, 1, 0.1) 0%, var(--home-surface) 55%);
}

body.home .home-status-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--home-radius-sm);
    font-size: 18px;
}

body.home .home-status-banner--danger .home-status-banner__icon {
    color: var(--home-accent);
    background: rgba(221, 20, 29, 0.15);
}

body.home .home-status-banner--warning .home-status-banner__icon {
    color: var(--home-accent-gold);
    background: rgba(254, 172, 1, 0.12);
}

body.home .home-status-banner__content {
    flex: 1;
    min-width: 0;
}

body.home .home-status-banner__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

body.home .home-status-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--home-text-muted);
}

body.home .home-status-banner__text a {
    color: var(--home-accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.home .home-status-banner__text a:hover {
    color: #fff;
}

body.home .home-main .not-wl,
body.home .home-main .not-wl-warning {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    padding: 24px 28px;
}

body.home .home-main .not-wl a {
    color: #fff;
    text-decoration: underline;
}

body.home .home-guest-social > .not-wl-warning,
body.home .home-container > .not-wl-warning {
    background: var(--home-surface);
    border: 1px solid rgba(254, 172, 1, 0.45);
    color: var(--home-text);
    padding: 18px 24px;
    margin: 16px auto;
    max-width: 720px;
}

body.home .home-status-banner--guest {
    max-width: none;
    margin: 0 0 16px;
}

body.home .home-dashboard--guest {
    margin-top: 8px;
}

body.home .home-stat-card--login {
    width: 100%;
    margin-bottom: 16px;
}

body.home .home-stat-card__hint {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--home-text-muted);
}

body.home .home-stat-card__steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-surface-2);
    color: var(--home-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.home .home-stat-card__steam svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.9;
}

body.home .home-stat-card__steam:hover,
body.home .home-stat-card__steam:focus {
    background: #171a21;
    border-color: #2a475e;
    color: #fff;
    text-decoration: none;
}

body.home .home-dashboard--guest .home-stat-card--status {
    margin-top: 0;
}

body.home .home-messages {
    margin-bottom: 16px;
}

body.home .home-messages:not(:has(.alert)) {
    display: none;
    margin: 0;
}

body.home .home-messages .alert {
    margin-top: 0;
    margin-bottom: 10px;
}

body.home .home-messages .alert:last-child {
    margin-bottom: 0;
}

body.home .home-messages #alerts:not(:empty) {
    margin-top: 0;
}

body.home .home-messages #alerts .alert {
    margin-top: 10px;
}

body.home .home-dashboard {
    margin-top: 8px;
}

body.home .home-licences {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

body.home .home-licences a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    border-radius: 999px;
    color: var(--home-accent-gold);
    text-decoration: none;
    font-family: "Redemption", serif;
    font-size: 15px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.home .home-licences a:hover {
    background: var(--home-surface);
    border-color: var(--home-accent-gold);
    text-decoration: none;
    color: #fff;
}

body.home .home-server-card {
    position: relative;
    overflow: hidden;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 24px;
    margin-bottom: 16px;
}

body.home .home-server-card__bg {
    position: absolute;
    inset: 0;
    background: url('../img/banner.png') center / cover no-repeat;
    opacity: 0.12;
    filter: blur(2px);
    pointer-events: none;
}

body.home .home-server-card__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

body.home .home-server-card__icon-wrap {
    flex-shrink: 0;
    text-align: center;
}

body.home .home-server-card__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--home-radius-sm);
    display: block;
    margin-bottom: 8px;
}

body.home .home-server-card__players {
    font-size: 14px;
    font-weight: 600;
    color: var(--home-text);
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

body.home .home-server-card__info {
    flex: 1;
    min-width: 200px;
}

body.home .home-server-card__title {
    font-family: "Redemption", serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}

body.home .home-server-card__endpoint {
    font-size: 13px;
    color: var(--home-text-muted);
    margin-bottom: 10px;
}

body.home .home-server-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.home .home-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    color: var(--home-text-muted);
}

body.home .home-badge--accent {
    border-color: var(--home-accent);
    color: #fff;
}

body.home .home-badge a {
    color: inherit;
    text-decoration: none;
}

body.home .home-badge a:hover {
    color: var(--home-accent-gold);
    text-decoration: none;
}

body.home .home-server-card__action {
    flex-shrink: 0;
    margin-left: auto;
}

body.home .home-server-card__connect {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.home .home-server-card__connect:hover {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
    text-decoration: none;
}

body.home .home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.home .home-stat-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    padding: 16px;
}

body.home .home-stat-card__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-text-muted);
    margin-bottom: 6px;
}

body.home .home-stat-card__value {
    font-size: 15px;
    line-height: 1.35;
    color: var(--home-text);
}

body.home .home-stat-card__value--placeholder {
    color: var(--home-text-muted);
}

body.home .home-stat-card--online-history {
    grid-column: 1 / -1;
}

body.home .home-stat-card--online-history .online-history-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 56px;
    width: 100%;
    margin-top: 2px;
}

body.home .home-stat-card--online-history .online-history-chart__bar {
    position: relative;
    flex: 1;
    min-width: 2px;
    min-height: 2px;
    background: rgba(221, 20, 29, 0.75);
    border-radius: 2px 2px 0 0;
    transition: background 0.15s ease;
}

body.home .home-stat-card--online-history .online-history-chart__bar:hover {
    background: var(--home-accent);
}

body.home .home-stat-card--online-history .online-history-chart__tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 4px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1;
}

body.home .home-stat-card--online-history .online-history-chart__bar:hover .online-history-chart__tooltip {
    visibility: visible;
    opacity: 1;
}

body.home .home-stat-card--status {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
}

body.home .home-stat-card--status .home-stat-card__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.home .home-stat-card__link {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--home-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.home .home-stat-card__link .fa {
    margin-left: 4px;
    font-size: 10px;
}

body.home .home-stat-card__link:hover {
    color: var(--home-accent-gold);
    text-decoration: none;
}

body.home .home-stat-card__status-badge {
    min-height: 30px;
    color-scheme: none;
}

body.home .home-stat-card__status-badge iframe {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}

body.home .home-feed-panel {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    max-height: calc(100vh - 160px);
    position: sticky;
    top: 16px;
}

body.home .home-feed-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--home-border);
    flex-shrink: 0;
}

body.home .home-feed-panel__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-text-muted);
    margin: 0;
}

body.home .home-feed-panel__tabs {
    display: flex;
    gap: 4px;
}

body.home .home-feed-panel__tab {
    padding: 5px 12px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    background: transparent;
    color: var(--home-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.home .home-feed-panel__tab:hover {
    color: var(--home-text);
    border-color: var(--home-text-muted);
}

body.home .home-feed-panel__tab.is-active {
    background: var(--home-surface-2);
    border-color: var(--home-accent);
    color: #fff;
}

body.home .home-feed-panel__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    min-height: 0;
}

body.home .home-feed-panel__pane--mastodon .mt-container {
    border: none;
    box-shadow: none;
    background: transparent;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.home .home-feed-panel__pane--mastodon .mt-body {
    padding: 0;
}

body.home .home-feed-panel__pane--mastodon .mt-toot {
    border-radius: var(--home-radius-sm);
    margin-bottom: 10px;
}

body.home .home-feed-panel__pane--mastodon .mt-footer-link {
    color: var(--home-accent-gold);
}

body.home .home-feed-panel__pane--mastodon .mt-footer-link:hover {
    color: #fff;
}

body.home .home-feed-panel__pane {
    min-height: 400px;
}

body.home .home-feed-panel__pane--hidden {
    display: none;
}

body.home .home-feed-panel__pane--tiktok .tiktok-embed {
    margin: 0 auto;
    max-width: 100% !important;
    min-width: 0 !important;
    border-left: none !important;
}

body.home .home-feed-panel__pane--tiktok iframe {
    max-width: 100% !important;
}

body.home .home-feed-panel--standalone {
    max-height: none;
    position: static;
    margin-top: 32px;
}

body.home .home-guest-social {
    margin-top: 32px;
}

/* User pages (sell, upload, map, …) */

body.home .login-container {
    margin: 24px 0;
}

body.home .login-container .login-inner {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: none;
    color: var(--home-text);
}

body.home .login-container .login-inner h2 {
    color: var(--home-accent);
}

body.home .form-control {
    background: var(--home-surface-2);
    border-color: var(--home-border);
    color: var(--home-text);
}

body.home .form-control:focus {
    border-color: var(--home-accent-gold);
    box-shadow: none;
}

body.home .input-prepend .add-on {
    background: var(--home-surface-2);
    border-color: var(--home-border);
    color: var(--home-text-muted);
}

body.home .btn {
    background: var(--home-surface-2);
    border-color: var(--home-border);
    color: var(--home-text);
}

body.home .btn:hover,
body.home .btn:focus {
    background: var(--home-surface);
    border-color: var(--home-text-muted);
    color: #fff;
}

body.home .btn.active,
body.home .btn:active {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
}

body.home .custom-file-upload {
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    color: var(--home-text);
}

body.home .table {
    background: var(--home-surface);
    color: var(--home-text);
    border-color: var(--home-border);
}

body.home .table > thead > tr > th,
body.home .table > tbody > tr > td {
    border-color: var(--home-border);
}

body.home .ng-table th.sortable {
    background: var(--home-surface-2);
    color: var(--home-text);
}

body.home .ng-table th.filter .input-filter {
    background: var(--home-surface);
    border-color: var(--home-border);
    color: var(--home-text);
}

body.home .ng-table-pager {
    color: var(--home-text-muted);
}

/* Sell page */

body.home .home-page {
    margin-top: 8px;
}

body.home .home-page-header {
    margin-bottom: 20px;
}

body.home .home-page-header__title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
}

body.home .home-page-header__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--home-text-muted);
}

body.home .home-panel {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
}

body.home .home-panel__toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--home-border);
    background: var(--home-surface);
}

body.home .home-sell-toolbar.home-panel__toolbar,
body.home .home-panel--upload .home-panel__toolbar,
body.home .home-panel--gallery .home-panel__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.home .home-panel__body {
    padding: 0;
}

body.home .home-panel__body.scroll-x {
    border: none;
    border-radius: 0;
    background: transparent;
}

body.home .home-sell-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

body.home .home-sell-toolbar__modes .btn {
    min-width: 88px;
    padding: 8px 16px;
    font-weight: 600;
    border-color: var(--home-border);
}

body.home .home-sell-toolbar__modes .btn + .btn {
    margin-left: -1px;
}

body.home .home-sell-toolbar__modes .btn:first-child {
    border-radius: 999px 0 0 999px;
}

body.home .home-sell-toolbar__modes .btn:last-child {
    border-radius: 0 999px 999px 0;
}

body.home .home-sell-toolbar__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-left: auto;
}

body.home .home-sell-toolbar__date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
}

body.home .home-sell-toolbar__date-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-text-muted);
    white-space: nowrap;
}

body.home .home-sell-toolbar__date .form-control {
    width: auto;
    min-width: 150px;
    height: 36px;
    border-radius: var(--home-radius-sm);
}

body.home input[type="date"] {
    color-scheme: dark;
}

body.home .home-sell-table {
    margin-bottom: 0;
    border: none;
}

body.home .home-sell-table thead th {
    background: var(--home-surface-2);
    border-bottom: 1px solid var(--home-border);
    color: var(--home-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    white-space: nowrap;
}

body.home .home-sell-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-top: 1px solid var(--home-border);
}

body.home .home-sell-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

body.home .home-sell-table__amount {
    font-weight: 600;
    color: var(--home-accent-gold);
    white-space: nowrap;
}

body.home .home-sell-table .ng-table-filters th {
    background: var(--home-surface);
    padding: 8px 10px;
}

body.home .home-sell-table .ng-table-filters .input-filter {
    width: 100%;
    min-width: 80px;
    height: 32px;
    padding: 4px 10px;
    border-radius: var(--home-radius-sm);
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    color: var(--home-text);
}

body.home .home-sell-table .ng-table-filters .input-filter:focus {
    border-color: var(--home-accent-gold);
    outline: none;
}

body.home .home-sell-empty {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
    color: var(--home-text-muted);
    font-size: 14px;
    border-top: 1px solid var(--home-border);
}

/* Upload page */

body.home .home-panel__body--padded {
    padding: 20px 24px 24px;
}

body.home .home-panel__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

body.home .home-panel__meta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-text-muted);
}

body.home .home-panel--gallery {
    margin-top: 20px;
}

body.home .home-upload-alert {
    margin-bottom: 16px;
}

body.home .home-upload-form__pick {
    margin-bottom: 20px;
}

body.home .home-upload-form__file-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px dashed var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-surface-2);
    color: var(--home-text);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

body.home .home-upload-form__file-btn:hover {
    border-color: var(--home-accent-gold);
    background: var(--home-surface);
    color: #fff;
}

body.home .home-upload-form input[type="file"] {
    display: none;
}

body.home .home-upload-form__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--home-text-muted);
}

body.home .home-upload-form__submit {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: var(--home-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

body.home .home-upload-form__submit:hover:not(:disabled) {
    background: #f02530;
}

body.home .home-upload-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.home .home-upload-form__submit--secondary {
    margin-top: 12px;
    background: transparent;
    border: 2px solid #fff;
}

body.home .home-upload-form__submit--secondary:hover:not(:disabled),
body.home .home-upload-form__submit--secondary.is-copied {
    background: var(--home-accent-gold);
    border-color: var(--home-accent-gold);
    color: #111;
}

body.home .home-upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

body.home .home-upload-progress {
    padding: 14px 16px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-surface-2);
}

body.home .home-upload-progress--success {
    border-color: rgba(61, 154, 92, 0.55);
}

body.home .home-upload-progress--error {
    border-color: rgba(221, 20, 29, 0.55);
}

body.home .home-upload-progress__name {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--home-text);
    word-break: break-word;
}

body.home .home-upload-progress__bar {
    position: relative;
    width: 100%;
    height: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

body.home .home-upload-progress__fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--home-accent-gold);
    transition: width 0.3s ease;
}

body.home .home-upload-progress--success .home-upload-progress__fill {
    background: #3d9a5c;
}

body.home .home-upload-progress--error .home-upload-progress__fill {
    background: var(--home-accent);
}

body.home .home-upload-progress__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

body.home .home-upload-progress__alert {
    margin: 10px 0 0;
    padding: 8px 10px;
}

body.home .home-upload-link {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

body.home .home-upload-link:hover {
    border-color: var(--home-accent-gold);
}

body.home .home-upload-link small {
    display: block;
    margin-bottom: 4px;
    color: var(--home-text-muted);
}

body.home .home-upload-link__url {
    color: var(--home-accent-gold);
    word-break: break-all;
    font-size: 13px;
}

body.home .home-upload-results__summary {
    margin-top: 16px;
    margin-bottom: 0;
}

body.home .home-upload-empty {
    margin: 0;
    text-align: center;
    color: var(--home-text-muted);
    font-size: 14px;
    padding: 12px 0;
}

body.home .home-upload-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

body.home .home-upload-gallery__item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-surface-2);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

body.home .home-upload-gallery__item:hover {
    border-color: var(--home-accent-gold);
    transform: translateY(-2px);
    text-decoration: none;
}

body.home .home-upload-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home .home-container:has(#map-view) {
    max-width: none;
    width: 100%;
    padding: 0;
}

body.home.home--logged-in:has(#map-view) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
}

html:has(body.home.home--logged-in #map-view) {
    overflow: hidden;
    height: 100%;
}

body.home.home--logged-in:has(#map-view) .home-topbar {
    flex-shrink: 0;
    max-width: none;
    width: 100%;
}

body.home.home--logged-in:has(#map-view) .home-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

body.home.home--logged-in:has(#map-view) #map-view {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.home #map-view header {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    color: var(--home-text);
    height: 48px;
    padding: 7px 12px;
}

body.home #map-view header ul li {
    margin-top: 0;
    height: auto;
    vertical-align: middle;
}

body.home #map-view header ul li .btn {
    color: var(--home-text);
    background: var(--home-surface-2);
    border-color: var(--home-border);
    min-width: 36px;
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
}

body.home #map-view header ul li .btn:hover,
body.home #map-view header ul li .btn:focus {
    background: var(--home-surface);
    border-color: var(--home-text-muted);
    color: #fff;
}

body.home #map-view header ul li .btn.btn-info {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
}

body.home #map-view header .form-group {
    color: var(--home-text);
    margin-top: 0;
    margin-bottom: 0;
}

body.home #map-view header .form-control {
    height: 34px;
    min-width: 220px;
    padding-right: 32px;
}

body.home #map-view header .form-control-feedback {
    color: var(--home-text-muted);
    height: 34px;
    line-height: 34px;
}

body.home #map-view header .fa-search {
    padding-top: 0;
}

body.home #map-view .leaflet-control-zoom {
    margin-top: 58px;
    margin-left: 10px;
}

body.home #map-view .leaflet-top.leaflet-left {
    z-index: 400;
}

body.home #map-view .leaflet-top.leaflet-left .leaflet-control {
    margin-bottom: 0;
}

body.home #map-view .leaflet-control-zoom a,
body.home #map-view .leaflet-bar a {
    background: var(--home-surface);
    border-color: var(--home-border);
    color: var(--home-text);
}

body.home #map-view .leaflet-control-zoom a:hover,
body.home #map-view .leaflet-bar a:hover {
    background: var(--home-surface-2);
    color: #fff;
}

body.home #map-view .leaflet-bar {
    border: 1px solid var(--home-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.home #map-view .leaflet-control-attribution {
    display: none !important;
}

body.home #map-view .types {
    left: 52px;
    width: 260px;
    padding: 0;
    overflow: hidden;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    top: 58px;
    z-index: 401;
}

body.home #map-view .types h3 {
    margin: 0;
    padding: 12px 14px;
    padding-left: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-text-muted);
    border-bottom: 1px solid var(--home-border);
    background: var(--home-surface);
}

body.home #map-view .types h3 .back {
    color: var(--home-text-muted);
    margin-right: 4px;
    text-decoration: none;
}

body.home #map-view .types h3 .back:hover {
    color: #fff;
}

body.home #map-view .types h3 .all {
    color: var(--home-accent-gold);
    background: transparent;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    padding: 2px 10px;
    margin-top: -2px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

body.home #map-view .types h3 .all:hover {
    border-color: var(--home-accent-gold);
    color: #fff;
}

body.home #map-view .types ul {
    margin: 0;
    padding: 6px 0;
    max-height: min(360px, calc(100vh - 240px));
    overflow-y: auto;
}

body.home #map-view .types ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--home-text);
    transition: background 0.15s ease;
}

body.home #map-view .types ul li label:hover {
    background: rgba(255, 255, 255, 0.04);
}

body.home #map-view .types ul li input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--home-accent);
}

body.home #map-view .types ul li .only {
    position: static;
    top: auto;
    right: auto;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--home-text-muted);
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    display: none;
}

body.home #map-view .types ul li label:hover .only {
    display: inline-block;
}

body.home #map-view .types ul li .only:hover {
    border-color: var(--home-accent-gold);
    color: var(--home-accent-gold);
}

/* Map location modal */

body.home .home-map-modal .modal-content {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: var(--home-text);
    overflow: hidden;
}

body.home .home-map-modal .modal-header {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    padding: 16px 20px;
}

body.home .home-map-modal .modal-header .modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 28px;
}

body.home .home-map-modal .modal-header .close {
    color: var(--home-text-muted);
    opacity: 1;
    text-shadow: none;
}

body.home .home-map-modal .modal-header .close:hover {
    color: #fff;
}

body.home .home-map-modal .modal-body {
    background: var(--home-surface);
    color: var(--home-text);
    padding: 18px 20px;
}

body.home .home-map-modal__category {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-accent-gold);
}

body.home .home-map-modal__coords {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--home-text-muted);
    font-family: monospace;
}

body.home .home-map-modal__icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--home-text-muted);
}

body.home .home-map-modal__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

body.home .home-map-modal__description {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--home-text);
    white-space: pre-wrap;
}

body.home .home-map-modal__image {
    display: block;
    max-width: 100%;
    border-radius: var(--home-radius-sm);
    border: 1px solid var(--home-border);
}

body.home .home-map-modal .modal-footer {
    background: var(--home-surface);
    border-top: 1px solid var(--home-border);
    padding: 14px 20px;
}

body.home .home-map-modal .modal-footer .btn-info {
    background: var(--home-accent-gold);
    border-color: var(--home-accent-gold);
    color: #111;
    font-weight: 600;
}

body.home .home-map-modal .modal-footer .btn-info:hover {
    background: #ffc233;
    border-color: #ffc233;
    color: #111;
}

body.home .home-map-modal .modal-footer .btn-warning {
    background: transparent;
    border: 1px solid var(--home-accent);
    color: var(--home-accent);
    font-weight: 600;
}

body.home .home-map-modal .modal-footer .btn-warning:hover {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
}

body.home .modal-backdrop.in {
    opacity: 0.72;
}

body.home #map-view .sidebar {
    position: absolute;
    top: 48px;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 100%;
    padding: 12px 14px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 402;
    background: var(--home-surface);
    border-left: 1px solid var(--home-border);
    color: var(--home-text);
    -webkit-overflow-scrolling: touch;
}

body.home #map-view .sidebar label {
    color: var(--home-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.home #map-view .sidebar .btn.pull-right {
    color: var(--home-text-muted);
    background: transparent;
    border: none;
    box-shadow: none;
}

body.home #map-view .sidebar .btn.pull-right:hover {
    color: #fff;
}

body.home #map-view .sidebar .btn-default {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
}

body.home #map-view .sidebar .btn-default:hover {
    background: #f02530;
    border-color: #f02530;
    color: #fff;
}

/* Chosen (map sidebar + user pages) */

body.home .chosen-container-single .chosen-single,
body.home .chosen-container-single a.chosen-single {
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    box-shadow: none;
    height: 34px;
    line-height: 32px;
}

body.home .chosen-container-single .chosen-single span {
    color: var(--home-text);
}

body.home .chosen-container-active.chosen-with-drop .chosen-single {
    border-color: var(--home-accent-gold);
    background: var(--home-surface-2);
}

body.home .chosen-container .chosen-drop {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

body.home .chosen-container .chosen-results {
    color: var(--home-text);
}

body.home .chosen-container .chosen-results li {
    color: var(--home-text);
}

body.home .chosen-container .chosen-results li.highlighted {
    background: rgba(254, 172, 1, 0.15);
    color: var(--home-accent-gold);
}

body.home .chosen-container .chosen-results li.no-results {
    background: var(--home-surface);
    color: var(--home-text-muted);
}

body.home .chosen-container-single .chosen-single div {
    width: 28px;
}

body.home .chosen-container-single .chosen-single div b {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    filter: none;
}

body.home .chosen-container-single .chosen-single div b::before {
    font-family: FontAwesome;
    font-size: 12px;
    color: var(--home-text-muted);
    content: "\f107";
    line-height: 1;
}

body.home .chosen-container-active.chosen-with-drop .chosen-single div b::before {
    content: "\f106";
}

body.home .chosen-container-single .chosen-single abbr {
    top: 50%;
    right: 28px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: none !important;
    font-size: 0;
}

body.home .chosen-container-single .chosen-single abbr::before {
    font-family: FontAwesome;
    font-size: 12px;
    color: var(--home-text-muted);
    content: "\f00d";
    line-height: 1;
}

body.home .chosen-container-single .chosen-single abbr:hover::before {
    color: var(--home-text);
}

body.home .chosen-container .chosen-search {
    position: relative;
}

body.home .chosen-container .chosen-search input[type="text"] {
    background: var(--home-surface-2);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    padding-right: 28px;
    background-image: none !important;
}

body.home .chosen-container .chosen-search::after {
    font-family: FontAwesome;
    content: "\f002";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--home-text-muted);
    font-size: 12px;
    pointer-events: none;
}

/* Map empty state (/map without id) */

body.home .home-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 57px - 73px);
    padding: 40px 16px;
}

body.home .home-map-empty__panel {
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 32px;
    text-align: center;
}

body.home .home-map-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: var(--home-radius);
    background: rgba(221, 20, 29, 0.12);
    border: 1px solid rgba(221, 20, 29, 0.35);
    color: var(--home-accent);
    font-size: 32px;
}

body.home .home-map-empty__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
}

body.home .home-map-empty__lead {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--home-text-muted);
}

body.home .home-map-empty__features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: inline-block;
}

body.home .home-map-empty__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--home-text);
}

body.home .home-map-empty__features li:last-child {
    margin-bottom: 0;
}

body.home .home-map-empty__features .fa {
    width: 18px;
    text-align: center;
    color: var(--home-accent-gold);
}

body.home .home-map-empty__form {
    margin: 0;
}

body.home .home-map-empty__submit {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    background: var(--home-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

body.home .home-map-empty__submit:hover {
    background: #f02530;
}

body.home .home-map-empty__hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--home-text-muted);
}

body.home #logo-link {
    min-height: 200px;
}

body.home #logo {
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    body.home .home-feed-panel {
        position: static;
        max-height: 520px;
        margin-top: 16px;
    }

    body.home .home-server-card__action {
        margin-left: 0;
        width: 100%;
    }

    body.home .home-server-card__connect {
        display: block;
        text-align: center;
    }

    body.home .home-topbar {
        justify-content: center;
    }

    body.home .home-topbar__nav {
        justify-content: center;
    }

    body.home .home-sell-toolbar__dates {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.home .home-server-card__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    body.home .home-topbar__logo {
        width: 100%;
        background-position: center;
    }
}
