:root {
    --brand-blue: #1a73e8;
    --brand-blue-dark: #0d47a1;
    --brand-orange: #ff9800;
    --brand-orange-dark: #f44336;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

#app, .blazor-server-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a, .btn-link {
    color: var(--brand-blue);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-blue);
    border-color: var(--brand-blue-dark);
}

.btn-primary:hover {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
}

.navbar-brand span[style*="color:#ff9800"] {
    font-weight: 900;
}

.navbar.navbar-dark {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #b32121;
    color: white;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    align-items: center;
    gap: 1rem;
}
#blazor-error-ui .reload {
    color: #ffe082;
    font-weight: 700;
    text-decoration: underline;
}
#blazor-error-ui .dismiss {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: .8;
}
#blazor-error-ui.blazor-error-ui-show {
    display: flex;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92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cuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ── HOME HERO ─────────────────────────────── */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1rem 2rem;
    transition: padding .3s ease;
}
.home-hero--compact {
    padding: 1.2rem 1rem 1rem;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}
.home-hero__brand {
    text-align: center;
    margin-bottom: 2rem;
}
.home-hero__logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 6px 16px #0003);
}
.home-hero__title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    white-space: nowrap;
    color: #1a1a2e;
    margin-bottom: .3rem;
}
.home-hero__accent {
    color: var(--brand-orange);
}
.home-hero__subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ── CATEGORY SELECTOR ─────────────────────── */
.category-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.2rem;
    transition: all .3s;
}
.category-selector--compact {
    margin-bottom: .6rem;
}
.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #dce3f5;
    color: #555;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.category-tab:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f0f6ff;
}
.category-tab--active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white !important;
    box-shadow: 0 3px 10px #1a73e840;
}
.home-hero--compact .category-tab {
    border-color: rgba(255,255,255,.35);
    color: rgba(255,255,255,.85);
}
.home-hero--compact .category-tab--active {
    background: white;
    border-color: white;
    color: var(--brand-blue) !important;
}
.home-hero--compact .category-tab:hover:not(.category-tab--active) {
    background: rgba(255,255,255,.15);
    color: white;
    border-color: white;
}

/* ── SEARCH BAR ─────────────────────────────── */
.home-search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 24px #0002, 0 1px 6px #0001;
    padding: 6px 8px 6px 20px;
    gap: 8px;
    transition: box-shadow .2s;
}
.home-search-bar:focus-within {
    box-shadow: 0 6px 32px #1a73e840, 0 1px 6px #0001;
}
.home-search-bar--page {
    border-radius: 14px;
    max-width: 100%;
    box-shadow: 0 2px 12px #0001;
}
.home-search-bar__back {
    flex-shrink: 0;
    padding: 4px;
    text-decoration: none;
}
.home-search-bar__input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}
.home-search-bar__icon {
    font-size: 1.1rem;
    color: #aaa;
    flex-shrink: 0;
}
.home-search-bar__input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    background: transparent;
    color: #222;
}
.home-search-bar__btn {
    flex-shrink: 0;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
}
.home-search-bar__btn:hover:not(:disabled) {
    background: var(--brand-blue-dark);
}
.home-search-bar__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── SHORTCUTS ─────────────────────────────── */
.home-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.6rem;
}
.shortcut-pill {
    background: #f0f4ff;
    border: 1.5px solid #d0daf5;
    color: var(--brand-blue-dark);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.shortcut-pill:hover {
    background: #dce8ff;
    border-color: var(--brand-blue);
}

/* ── SEARCH RESULTS ─────────────────────────── */
.search-results-wrapper {
    margin-top: 1rem;
}
.search-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.2rem;
}
.search-results-meta__status {
    font-size: .95rem;
}
.search-results-meta__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    background: #f4f6fb;
    border: 1.5px solid #d8dff0;
    color: #444;
    border-radius: 50px;
    padding: 5px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
}
.filter-btn:hover, .filter-btn--active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

/* ── LISTING CARD ───────────────────────────── */
.listing-card {
    background: white;
    border: 1.5px solid #eaecf4;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0000000d;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .18s, box-shadow .18s;
}
.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px #0000001a;
}
.listing-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.listing-card__provider {
    display: flex;
    align-items: center;
    gap: 6px;
}
.listing-card__provider-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
}
.listing-card__provider-text {
    font-size: .78rem;
    color: #888;
    font-weight: 600;
}
.listing-card__category {
    font-size: .75rem;
    background: #f0f4ff;
    color: var(--brand-blue-dark);
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 600;
}
.listing-card__img-wrap {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f9fc;
}
.listing-card__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.listing-card__body {
    flex: 1;
}
.listing-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card__tag--condition {
    display: inline-block;
    font-size: .72rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 600;
    margin-bottom: .25rem;
}
.listing-card__location {
    font-size: .8rem;
    color: #888;
    margin: 0;
}
.listing-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    color: var(--brand-orange);
    font-weight: 700;
}
.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .25rem;
    padding-top: .6rem;
    border-top: 1px solid #f0f0f0;
}
.listing-card__price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1a7a4a;
}
.listing-card__btn {
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s;
}
.listing-card__btn:hover {
    background: var(--brand-blue-dark);
    color: white;
}

/* ── SKELETON CARD ──────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton-card {
    cursor: default;
    pointer-events: none;
}
.skeleton-badge,
.skeleton-img,
.skeleton-line,
.skeleton-price,
.skeleton-btn {
    border-radius: 8px;
    background: linear-gradient(90deg, #eef0f5 25%, #e0e4ef 50%, #eef0f5 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}
.skeleton-badge  { width: 80px;  height: 18px; }
.skeleton-img    { width: 100%;  height: 110px; border-radius: 10px; margin-top: .5rem; }
.skeleton-line   { height: 14px; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-price  { width: 80px;  height: 22px; }
.skeleton-btn    { width: 100%;  height: 34px; border-radius: 50px; }

/* ── ORIZON FOOTER ──────────────────────────── */
.orizon-footer {
    width: 100%;
    background: #08080f;
    border-top: 1px solid rgba(0,212,255,.10);
    margin-top: auto;
    padding: .9rem 1.5rem;
}
.orizon-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
.orizon-footer__nav {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.orizon-footer__link {
    font-size: .75rem;
    color: rgba(255,255,255,.38);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}
.orizon-footer__link:hover { color: #00d4ff; }
.orizon-footer__sep { color: rgba(255,255,255,.18); font-size: .75rem; }
.orizon-footer__copy {
    font-size: .72rem;
    color: rgba(255,255,255,.22);
    white-space: nowrap;
}
.orizon-footer__brand {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,.15);
    background: rgba(0,212,255,.04);
    transition: border-color .25s, background .25s, transform .2s;
    white-space: nowrap;
}
.orizon-footer__brand:hover {
    border-color: rgba(139,92,246,.55);
    background: rgba(139,92,246,.08);
    transform: translateY(-2px);
}
.orizon-footer__logo {
    width: 32px; height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(0,212,255,.5));
    transition: filter .3s;
}
.orizon-footer__brand:hover .orizon-footer__logo {
    filter: drop-shadow(0 0 12px rgba(139,92,246,.9));
}
.orizon-footer__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.orizon-footer__o {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .18em;
    background: linear-gradient(90deg, #00d4ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.orizon-footer__s {
    font-size: .52rem;
    font-weight: 400;
    letter-spacing: .32em;
    color: rgba(0,212,255,.6);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .orizon-footer__row {
        justify-content: center;
        text-align: center;
        gap: .6rem;
    }
    .orizon-footer__nav { justify-content: center; }
}

/* ── ABOUT PAGE ─────────────────────────────── */
.about-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.2rem 3rem;
}
.about-hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
}
.about-hero__logo {
    width: 90px; height: 90px;
    filter: drop-shadow(0 6px 18px #0003);
    margin-bottom: 1rem;
}
.about-hero__title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: .4rem;
}
.about-hero__accent { color: var(--brand-orange); }
.about-hero__sub {
    color: #777;
    font-size: 1.05rem;
}
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.about-card {
    background: white;
    border: 1.5px solid #eaecf4;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 2px 12px #0000000d;
    transition: transform .18s, box-shadow .18s;
}
.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px #0000001a;
}
.about-card__icon { font-size: 2rem; margin-bottom: .6rem; }
.about-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: .5rem;
}
.about-card__text {
    font-size: .88rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
.about-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
    border-radius: 16px;
    padding: 1.8rem 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.about-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
    padding: .5rem;
}
.about-trust__num {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
}
.about-trust__label {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    text-align: center;
}
.about-trust__divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
}
.about-orizon {
    background: #08080f;
    border-radius: 18px;
    border: 1px solid rgba(0,212,255,.15);
    padding: 2rem;
    margin-bottom: 2rem;
}
.about-orizon__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.about-orizon__link { flex-shrink: 0; }
.about-orizon__logo {
    width: 60px; height: 60px;
    filter: drop-shadow(0 0 10px rgba(0,212,255,.6));
    transition: filter .3s, transform .25s;
}
.about-orizon__logo:hover {
    filter: drop-shadow(0 0 20px rgba(139,92,246,.9));
    transform: scale(1.08);
}
.about-orizon__text { flex: 1; }
.about-orizon__by {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 .3rem;
}
.about-orizon__name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    margin-bottom: .8rem;
}
.about-orizon__o {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .18em;
    background: linear-gradient(90deg, #00d4ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-orizon__s {
    font-size: .75rem;
    letter-spacing: .35em;
    color: rgba(0,212,255,.65);
    text-transform: uppercase;
}
.about-orizon__desc {
    font-size: .84rem;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin: 0 0 1rem;
}
.about-orizon__cta {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
    border: 1px solid rgba(0,212,255,.35);
    border-radius: 50px;
    padding: 6px 18px;
    transition: background .2s, border-color .2s, color .2s;
}
.about-orizon__cta:hover {
    background: rgba(0,212,255,.1);
    border-color: #00d4ff;
    color: white;
}
.about-copy {
    text-align: center;
    font-size: .78rem;
    color: #999;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.about-copy a { color: var(--brand-blue); text-decoration: none; }
.about-copy a:hover { text-decoration: underline; }
