/**
 * Buy or Sell — Frontend styles
 * Author: besterz.com
 *
 * Uses CSS custom properties injected by the plugin:
 *   --bos-primary, --bos-accent
 */

:root {
        --bos-primary: #0f766e;
        --bos-primary-dark: #0d5d57;
        --bos-primary-light: #14b8a6;
        --bos-accent: #f59e0b;
        --bos-accent-dark: #d97706;
        --bos-bg: #f8fafc;
        --bos-card-bg: #ffffff;
        --bos-border: #e2e8f0;
        --bos-text: #0f172a;
        --bos-text-muted: #64748b;
        --bos-text-light: #94a3b8;
        --bos-success: #16a34a;
        --bos-warning: #f59e0b;
        --bos-danger: #dc2626;
        --bos-info: #0ea5e9;
        --bos-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
        --bos-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
        --bos-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
        --bos-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
        --bos-radius-sm: 6px;
        --bos-radius: 10px;
        --bos-radius-lg: 16px;
        --bos-radius-xl: 24px;
}

.buy-or-sell-page,
.bos-virtual-page {
        background: var(--bos-bg);
}

/* Buttons */
.bos-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: var(--bos-radius-sm);
        border: 1px solid transparent;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        line-height: 1.4;
        white-space: nowrap;
}
.bos-btn:hover { transform: translateY(-1px); box-shadow: var(--bos-shadow-md); }
.bos-btn:active { transform: translateY(0); }
.bos-btn svg { flex-shrink: 0; }
.bos-btn-primary { background: var(--bos-primary); color: #fff; }
.bos-btn-primary:hover { background: var(--bos-primary-dark); color: #fff; }
.bos-btn-accent { background: var(--bos-accent); color: #fff; }
.bos-btn-accent:hover { background: var(--bos-accent-dark); color: #fff; }
.bos-btn-secondary { background: #fff; color: var(--bos-text); border-color: var(--bos-border); }
.bos-btn-secondary:hover { background: var(--bos-bg); color: var(--bos-text); }
.bos-btn-link { background: transparent; color: var(--bos-primary); padding: 8px 12px; }
.bos-btn-link:hover { background: rgba(15, 118, 110, 0.08); color: var(--bos-primary-dark); box-shadow: none; }
.bos-btn-danger { background: #fff; color: var(--bos-danger); border-color: #fecaca; }
.bos-btn-danger:hover { background: var(--bos-danger); color: #fff; }
.bos-btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--bos-radius); }
.bos-btn-sm { padding: 6px 12px; font-size: 12px; }
.bos-btn-block { width: 100%; }

/* Inputs */
.bos-input, .bos-filter-select, input[type="text"].bos-input, input[type="email"].bos-input,
input[type="number"].bos-input, input[type="search"].bos-input, input[type="tel"].bos-input,
textarea.bos-input, select.bos-input {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #cbd5e1;
        border-radius: var(--bos-radius-sm);
        font-size: 14px;
        color: var(--bos-text);
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s;
        font-family: inherit;
}
.bos-input:focus, .bos-filter-select:focus {
        border-color: var(--bos-primary);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
        outline: none;
}

.bos-required { color: var(--bos-danger); }

/* ---------------------------------------------------------------------------
 * LANDING PAGE
 * ------------------------------------------------------------------------- */

.bos-landing { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.bos-hero {
        position: relative;
        border-radius: var(--bos-radius-xl);
        overflow: hidden;
        padding: 80px 40px 60px;
        text-align: center;
        color: #fff;
        background: linear-gradient(135deg, var(--bos-primary-dark) 0%, var(--bos-primary) 50%, var(--bos-primary-light) 100%);
        box-shadow: var(--bos-shadow-lg);
        margin-bottom: 60px;
}
.bos-hero-bg {
        position: absolute; inset: 0;
        background-image:
                radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
        pointer-events: none;
}
.bos-hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.bos-hero-tagline {
        display: inline-block;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.2em;
        color: var(--bos-accent);
        background: rgba(245, 158, 11, 0.12);
        padding: 6px 16px;
        border-radius: 20px;
        margin-bottom: 20px;
}
.bos-hero-title {
        font-size: clamp(32px, 6vw, 56px);
        font-weight: 800;
        line-height: 1.1;
        margin: 0 0 20px;
        color: #fff;
}
.bos-hero-subtitle {
        font-size: clamp(15px, 2.4vw, 18px);
        line-height: 1.6;
        color: rgba(255,255,255,0.9);
        margin: 0 auto 32px;
        max-width: 620px;
}
.bos-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.bos-hero-stats {
        display: flex;
        justify-content: center;
        gap: 48px;
        flex-wrap: wrap;
        padding-top: 32px;
        border-top: 1px solid rgba(255,255,255,0.15);
}
.bos-hero-stat { text-align: center; }
.bos-hero-stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--bos-accent); }
.bos-hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
.bos-section { margin-bottom: 60px; }
.bos-section-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
}
.bos-section-grid-reverse .bos-section-text { order: 2; }
.bos-section-eyebrow {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--bos-primary);
        margin-bottom: 12px;
}
.bos-section-text h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 0 0 16px; color: var(--bos-text); line-height: 1.2; }
.bos-section-text p { font-size: 16px; line-height: 1.7; color: var(--bos-text-muted); margin: 0 0 16px; }
.bos-section-tagline { font-size: 18px !important; font-weight: 600 !important; color: var(--bos-primary) !important; font-style: italic; }
.bos-section-actions { margin-top: 24px; }

.bos-section-card {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius-lg);
        padding: 32px;
        box-shadow: var(--bos-shadow);
        border: 1px solid var(--bos-border);
}
.bos-buy-card { border-top: 4px solid var(--bos-primary); }
.bos-sell-card { border-top: 4px solid var(--bos-accent); }
.bos-card-heading { margin: 0 0 16px; font-size: 18px; color: var(--bos-text); }

.bos-checklist { list-style: none; padding: 0; margin: 0; }
.bos-checklist li {
        display: flex; align-items: center; gap: 10px;
        padding: 8px 0;
        font-size: 15px;
        color: var(--bos-text);
}
.bos-check {
        width: 22px; height: 22px;
        border-radius: 50%;
        background: var(--bos-success);
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
}

.bos-steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.bos-steps li {
        display: flex; align-items: center; gap: 12px;
        padding: 10px 0;
        font-size: 15px;
        color: var(--bos-text);
        border-bottom: 1px dashed var(--bos-border);
}
.bos-steps li:last-child { border-bottom: none; }
.bos-step-num {
        width: 28px; height: 28px;
        border-radius: 50%;
        background: var(--bos-accent);
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
}

.bos-featured-section .bos-section-header,
.bos-related .bos-block-title {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 24px;
        flex-wrap: wrap; gap: 12px;
}
.bos-featured-section h2, .bos-related h2 { font-size: 26px; font-weight: 800; color: var(--bos-text); margin: 0; }
.bos-link { color: var(--bos-primary); font-weight: 600; text-decoration: none; }
.bos-link:hover { color: var(--bos-primary-dark); }

.bos-cta-section .bos-cta-card {
        background: linear-gradient(135deg, var(--bos-primary) 0%, var(--bos-primary-dark) 100%);
        color: #fff;
        border-radius: var(--bos-radius-lg);
        padding: 48px;
        text-align: center;
        box-shadow: var(--bos-shadow-lg);
}
.bos-cta-card h2 { color: #fff; font-size: 28px; margin: 0 0 16px; }
.bos-cta-card p { color: rgba(255,255,255,0.9); font-size: 16px; line-height: 1.6; max-width: 640px; margin: 0 auto 24px; }
.bos-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.bos-cta-card .bos-btn-primary { background: var(--bos-accent); }
.bos-cta-card .bos-btn-primary:hover { background: var(--bos-accent-dark); }

.bos-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bos-split-card {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius-lg);
        padding: 36px;
        box-shadow: var(--bos-shadow);
        border-top: 4px solid var(--bos-primary);
}
.bos-split-sellers { border-top-color: var(--bos-accent); }
.bos-split-eyebrow {
        font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
        text-transform: uppercase; color: var(--bos-primary);
}
.bos-split-sellers .bos-split-eyebrow { color: var(--bos-accent-dark); }
.bos-split-card h3 { font-size: 22px; font-weight: 700; margin: 8px 0 12px; color: var(--bos-text); }
.bos-split-card p { color: var(--bos-text-muted); line-height: 1.6; margin-bottom: 20px; }

.bos-final-cta { text-align: center; padding: 60px 20px; background: var(--bos-card-bg); border-radius: var(--bos-radius-lg); box-shadow: var(--bos-shadow); }
.bos-final-cta h2 { font-size: 32px; font-weight: 800; margin: 0 0 8px; color: var(--bos-text); }
.bos-final-tagline { font-size: 20px; font-weight: 700; color: var(--bos-primary); letter-spacing: 0.1em; margin: 0 0 4px; }
.bos-final-sub { color: var(--bos-text-muted); margin: 0 0 28px; }
.bos-final-actions { display: flex; justify-content: center; }

/* ---------------------------------------------------------------------------
 * VEHICLE CARDS (shared grid)
 * ------------------------------------------------------------------------- */

.bos-vehicles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
}

.bos-vehicle-card {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        overflow: hidden;
        box-shadow: var(--bos-shadow-sm);
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid var(--bos-border);
        display: flex;
        flex-direction: column;
}
.bos-vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--bos-shadow-lg); }

.bos-card-image {
        position: relative;
        display: block;
        aspect-ratio: 4/3;
        background: var(--bos-bg);
        overflow: hidden;
}
.bos-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bos-vehicle-card:hover .bos-card-image img { transform: scale(1.05); }
.bos-card-type {
        position: absolute; top: 10px; left: 10px;
        background: rgba(15, 23, 42, 0.75);
        color: #fff;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        backdrop-filter: blur(4px);
}
.bos-card-featured {
        position: absolute; top: 10px; right: 10px;
        background: var(--bos-accent);
        color: #fff;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
}

.bos-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.bos-card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.bos-card-title a { color: var(--bos-text); text-decoration: none; }
.bos-card-title a:hover { color: var(--bos-primary); }
.bos-card-meta { font-size: 13px; color: var(--bos-text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bos-dot { color: var(--bos-text-light); }

.bos-card-specs { display: flex; gap: 14px; font-size: 12px; color: var(--bos-text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.bos-card-specs span { display: inline-flex; align-items: center; gap: 4px; }

.bos-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bos-border); }
.bos-card-price { font-size: 18px; font-weight: 800; color: var(--bos-primary); }

.bos-fav-btn {
        width: 36px; height: 36px;
        border-radius: 50%;
        border: 1px solid var(--bos-border);
        background: #fff;
        color: var(--bos-text-muted);
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s;
        padding: 0;
}
.bos-fav-btn:hover { border-color: var(--bos-danger); color: var(--bos-danger); }
.bos-fav-btn.is-favorited { background: var(--bos-danger); border-color: var(--bos-danger); color: #fff; }

.bos-no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        color: var(--bos-text-muted);
}
.bos-no-results svg { color: var(--bos-text-light); margin-bottom: 12px; }
.bos-no-results h3 { font-size: 20px; color: var(--bos-text); margin: 0 0 8px; }
.bos-no-results p { margin: 0 0 20px; }

/* ---------------------------------------------------------------------------
 * MARKETPLACE PAGE
 * ------------------------------------------------------------------------- */

/* Reset theme conflicts — themes often add margins/padding to form elements
   inside .entry-content which breaks our layout. These rules override that. */
.buy-or-sell-page .entry-content .bos-marketplace,
.buy-or-sell-page .bos-marketplace,
.bos-virtual-page .bos-marketplace {
        max-width: 1280px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
}
.buy-or-sell-page .bos-marketplace *,
.buy-or-sell-page .bos-marketplace *::before,
.buy-or-sell-page .bos-marketplace *::after {
        box-sizing: border-box;
}
/* Override theme form element styles */
.buy-or-sell-page .bos-marketplace form,
.buy-or-sell-page .bos-marketplace fieldset {
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
}
.buy-or-sell-page .bos-marketplace input,
.buy-or-sell-page .bos-marketplace select,
.buy-or-sell-page .bos-marketplace textarea,
.buy-or-sell-page .bos-marketplace button {
        margin: 0;
        font-family: inherit;
}
.buy-or-sell-page .bos-marketplace label {
        margin: 0;
}

.bos-marketplace-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
}
.bos-page-title { font-size: 28px; font-weight: 800; color: var(--bos-text); margin: 0 0 4px; line-height: 1.2; }
.bos-page-subtitle { color: var(--bos-text-muted); margin: 0; font-size: 14px; }

/* Filters — compact, single-row design */
.bos-filters {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        padding: 14px;
        box-shadow: var(--bos-shadow);
        margin-bottom: 20px;
        border: 1px solid var(--bos-border);
}

/* Main filter row: search + type + make + sort + more filters button */
.bos-filter-main-row {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
}
.bos-filter-main-row > * {
        flex: 1 1 auto;
        min-width: 0;
}
.bos-filter-main-row .bos-filter-search {
        flex: 2 1 240px;
        margin-bottom: 0;
}
.bos-filter-main-row .bos-filter-select {
        flex: 1 1 130px;
        min-width: 130px;
}
.bos-filter-main-row .bos-filter-sort {
        flex: 1 1 140px;
        min-width: 140px;
}
.bos-filter-main-row .bos-toggle-advanced {
        flex: 0 0 auto;
        white-space: nowrap;
}

.bos-filter-search {
        position: relative;
        display: flex;
        align-items: center;
}
.bos-filter-search svg {
        position: absolute;
        left: 12px;
        color: var(--bos-text-light);
        pointer-events: none;
}
.bos-filter-search input {
        padding-left: 38px !important;
        padding-right: 12px !important;
        width: 100%;
}

.bos-filter-select {
        padding: 10px 12px !important;
        font-size: 13px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: var(--bos-radius-sm) !important;
        background: #fff !important;
        color: var(--bos-text) !important;
        height: 42px;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        padding-right: 30px !important;
        cursor: pointer;
}
.bos-filter-select:focus {
        border-color: var(--bos-primary) !important;
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
        outline: none;
}

/* More Filters toggle button */
.bos-toggle-advanced {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px !important;
        height: 42px;
        font-size: 13px !important;
        white-space: nowrap;
}
.bos-toggle-advanced svg { width: 16px; height: 16px; }
.bos-toggle-advanced.is-active {
        background: var(--bos-primary);
        color: #fff;
        border-color: var(--bos-primary);
}

/* Advanced filters — collapsible */
.bos-filter-advanced {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--bos-border);
        animation: bos-fade-in 0.2s ease;
}
@keyframes bos-fade-in {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
}
.bos-filter-row-advanced {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        margin-bottom: 10px;
}
.bos-filter-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-end;
        margin-top: 8px;
}

.bos-results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding: 0 4px;
}
.bos-results-count { font-size: 14px; color: var(--bos-text); font-weight: 600; }
.bos-loading-indicator { display: flex; align-items: center; gap: 8px; color: var(--bos-primary); font-size: 13px; }
.bos-spinner {
        width: 16px; height: 16px;
        border: 2px solid rgba(15, 118, 110, 0.2);
        border-top-color: var(--bos-primary);
        border-radius: 50%;
        animation: bos-spin 0.7s linear infinite;
}
@keyframes bos-spin { to { transform: rotate(360deg); } }

.bos-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.bos-page-btn {
        min-width: 40px; height: 40px;
        border: 1px solid var(--bos-border);
        background: #fff;
        color: var(--bos-text);
        border-radius: var(--bos-radius-sm);
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s;
}
.bos-page-btn:hover { border-color: var(--bos-primary); color: var(--bos-primary); }
.bos-page-btn.is-active { background: var(--bos-primary); color: #fff; border-color: var(--bos-primary); }

/* ---------------------------------------------------------------------------
 * SINGLE VEHICLE PAGE
 * ------------------------------------------------------------------------- */

.bos-single { max-width: 1200px; margin: 0 auto; padding: 20px; }

.bos-breadcrumb { font-size: 13px; color: var(--bos-text-muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bos-breadcrumb a { color: var(--bos-text-muted); text-decoration: none; }
.bos-breadcrumb a:hover { color: var(--bos-primary); }
.bos-crumb-sep { color: var(--bos-text-light); }

.bos-single-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.bos-gallery { margin-bottom: 24px; }
.bos-gallery-main {
        position: relative;
        aspect-ratio: 16/10;
        border-radius: var(--bos-radius-lg);
        overflow: hidden;
        background: var(--bos-bg);
        box-shadow: var(--bos-shadow);
}
.bos-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.bos-featured-flag, .bos-sold-flag {
        position: absolute; top: 16px;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}
.bos-featured-flag { left: 16px; background: var(--bos-accent); }
.bos-sold-flag { right: 16px; background: var(--bos-danger); font-size: 16px; padding: 8px 20px; }

.bos-gallery-thumbs {
        display: flex; gap: 10px; margin-top: 12px;
        overflow-x: auto; padding-bottom: 4px;
}
.bos-thumb-item {
        flex: 0 0 90px;
        aspect-ratio: 4/3;
        border-radius: var(--bos-radius-sm);
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s;
}
.bos-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.bos-thumb-item:hover { border-color: var(--bos-primary-light); }
.bos-thumb-item.is-active { border-color: var(--bos-primary); }

.bos-single-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--bos-border); }
.bos-single-type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bos-primary); background: rgba(15, 118, 110, 0.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.bos-single-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: var(--bos-text); line-height: 1.2; }
.bos-single-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--bos-text-muted); font-size: 14px; }
.bos-single-price { font-size: 32px; font-weight: 800; color: var(--bos-primary); white-space: nowrap; }

.bos-specs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
        margin-bottom: 32px;
}
.bos-spec {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        padding: 14px;
        text-align: center;
        border: 1px solid var(--bos-border);
}
.bos-spec-label { display: block; font-size: 11px; color: var(--bos-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.bos-spec-value { display: block; font-size: 14px; font-weight: 700; color: var(--bos-text); }

.bos-section-block { margin-bottom: 32px; }
.bos-block-title { font-size: 20px; font-weight: 700; color: var(--bos-text); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--bos-primary); display: inline-block; }
.bos-description { font-size: 15px; line-height: 1.7; color: var(--bos-text); }
.bos-description p { margin: 0 0 16px; }

.bos-features-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bos-feature-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bos-card-bg); border: 1px solid var(--bos-border); border-radius: var(--bos-radius-sm); font-size: 14px; }
.bos-feature-item svg { color: var(--bos-success); flex-shrink: 0; }

.bos-single-sidebar { position: sticky; top: 20px; }
.bos-contact-card {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius-lg);
        box-shadow: var(--bos-shadow);
        overflow: hidden;
}
.bos-contact-price { padding: 20px; background: linear-gradient(135deg, var(--bos-primary) 0%, var(--bos-primary-dark) 100%); color: #fff; }
.bos-contact-price-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.bos-contact-price-value { font-size: 28px; font-weight: 800; }

.bos-contact-form { padding: 20px; }
.bos-contact-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--bos-text); }
.bos-contact-greeting { font-size: 13px; color: var(--bos-text-muted); margin: 0 0 14px; }
.bos-contact-form .bos-field { margin-bottom: 12px; }
.bos-contact-form label { display: block; font-size: 12px; font-weight: 600; color: var(--bos-text); margin-bottom: 4px; }
.bos-contact-form input, .bos-contact-form textarea { font-size: 13px; padding: 8px 12px; }
.bos-contact-submit { margin-top: 4px; }
.bos-contact-disclaimer { font-size: 11px; color: var(--bos-text-light); margin: 10px 0 0; text-align: center; }

.bos-sold-banner { margin: 20px; display: flex; align-items: center; gap: 10px; }

.bos-seller-card {
        display: flex; align-items: center; gap: 12px;
        padding: 16px 20px;
        border-top: 1px solid var(--bos-border);
}
.bos-seller-avatar {
        width: 44px; height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--bos-primary), var(--bos-accent));
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 18px;
}
.bos-seller-name { font-weight: 700; font-size: 14px; color: var(--bos-text); }
.bos-seller-type { font-size: 12px; color: var(--bos-text-muted); }

.bos-safety-tips { padding: 16px 20px; background: #fffbeb; border-top: 1px solid #fde68a; }
.bos-safety-tips h4 { font-size: 13px; margin: 0 0 8px; color: #92400e; }
.bos-safety-tips ul { margin: 0; padding-left: 18px; font-size: 12px; color: #78350f; }
.bos-safety-tips li { margin-bottom: 4px; }

.bos-related { margin-top: 48px; }
.bos-related .bos-vehicles-grid { margin-top: 20px; }

.bos-not-found, .bos-success-page, .bos-login-required { text-align: center; padding: 60px 20px; max-width: 600px; margin: 40px auto; }
.bos-not-found-icon, .bos-success-icon, .bos-login-icon {
        display: inline-flex;
        width: 88px; height: 88px;
        border-radius: 50%;
        align-items: center; justify-content: center;
        margin-bottom: 20px;
}
.bos-not-found-icon { background: #fee2e2; color: var(--bos-danger); }
.bos-success-icon { background: #dcfce7; color: var(--bos-success); }
.bos-login-icon { background: rgba(15, 118, 110, 0.1); color: var(--bos-primary); }
.bos-success-page h2, .bos-not-found h2, .bos-login-required h3 { font-size: 24px; margin: 0 0 12px; color: var(--bos-text); }
.bos-success-page p, .bos-not-found p, .bos-login-required p { color: var(--bos-text-muted); margin: 0 0 24px; font-size: 15px; line-height: 1.6; }
.bos-success-actions, .bos-login-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Alerts */
.bos-alert { padding: 14px 18px; border-radius: var(--bos-radius-sm); margin-bottom: 16px; font-size: 14px; }
.bos-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bos-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bos-alert-info { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }
.bos-alert a { color: inherit; font-weight: 600; }
.bos-alert ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------------------------------------------------------------------------
 * SELL FORM
 * ------------------------------------------------------------------------- */

.bos-sell-form-wrap { max-width: 900px; margin: 0 auto; padding: 20px; }
.bos-sell-header { text-align: center; margin-bottom: 32px; }
.bos-sell-header .bos-page-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }

.bos-sell-form { background: transparent; }

.bos-form-section {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius-lg);
        padding: 28px;
        box-shadow: var(--bos-shadow);
        margin-bottom: 20px;
}
.bos-form-section-title {
        display: flex; align-items: center; gap: 12px;
        font-size: 18px; font-weight: 700; color: var(--bos-text);
        margin: 0 0 20px; padding-bottom: 14px;
        border-bottom: 1px solid var(--bos-border);
}
.bos-form-step {
        width: 30px; height: 30px;
        border-radius: 50%;
        background: var(--bos-primary);
        color: #fff;
        font-size: 14px; font-weight: 700;
        display: flex; align-items: center; justify-content: center;
}
.bos-form-help { font-size: 13px; color: var(--bos-text-muted); margin: 0 0 16px; }

.bos-form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
}
.bos-field { display: flex; flex-direction: column; gap: 6px; }
.bos-field-full { grid-column: 1 / -1; }
.bos-field label { font-size: 13px; font-weight: 600; color: var(--bos-text); }
.bos-field textarea { resize: vertical; min-height: 100px; }

/* Upload area */
.bos-upload-area {
        display: block;
        border: 2px dashed #cbd5e1;
        border-radius: var(--bos-radius);
        padding: 32px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        background: var(--bos-bg);
        position: relative;
}
.bos-upload-area:hover, .bos-upload-area.is-dragover {
        border-color: var(--bos-primary);
        background: rgba(15, 118, 110, 0.04);
}
.bos-upload-area:focus-within {
        border-color: var(--bos-primary);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Visually-hidden file input: accessible but invisible.
   This is the reliable alternative to display:none which some browsers
   block programmatic clicks on. With the <label> wrapper, the native
   label behavior handles the click → file picker trigger. */
.bos-file-input-visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        opacity: 0;
}

.bos-upload-prompt svg { color: var(--bos-text-light); margin-bottom: 8px; }
.bos-upload-prompt p { margin: 0 0 4px; color: var(--bos-text); font-size: 15px; }
.bos-upload-prompt strong { color: var(--bos-primary); }
.bos-upload-prompt span { font-size: 12px; color: var(--bos-text-muted); }

/* Upload message area (errors/success) */
.bos-upload-message {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
        border-radius: var(--bos-radius-sm);
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
}
.bos-upload-message.bos-msg-success {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
}
.bos-upload-message.bos-msg-error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
}
.bos-upload-message .bos-msg-icon { flex-shrink: 0; margin-top: 1px; }
.bos-upload-message .bos-msg-icon svg { width: 18px; height: 18px; display: block; }
.bos-upload-message.bos-msg-success .bos-msg-icon { color: #16a34a; }
.bos-upload-message.bos-msg-error .bos-msg-icon { color: #dc2626; }
.bos-upload-message .bos-msg-text { flex: 1; }

.bos-upload-preview {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        margin-top: 16px;
}
.bos-upload-item {
        position: relative;
        aspect-ratio: 4/3;
        border-radius: var(--bos-radius-sm);
        overflow: hidden;
        border: 2px solid var(--bos-border);
}
.bos-upload-item img { width: 100%; height: 100%; object-fit: cover; }
.bos-upload-item.is-featured { border-color: var(--bos-primary); }
.bos-upload-item.is-featured .bos-upload-cover { display: flex; }

/* Uploading state: show spinner overlay */
.bos-upload-item.is-uploading {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bos-bg);
}
.bos-upload-progress {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--bos-text-muted);
        text-align: center;
        padding: 8px;
}
.bos-upload-progress .bos-spinner {
        width: 24px;
        height: 24px;
        border: 3px solid rgba(15, 118, 110, 0.2);
        border-top-color: var(--bos-primary);
        border-radius: 50%;
        animation: bos-spin 0.7s linear infinite;
}
.bos-upload-progress span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}
.bos-upload-cover {
        display: none;
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: var(--bos-primary);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        text-align: center;
        padding: 3px 0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}
.bos-upload-remove {
        position: absolute; top: 4px; right: 4px;
        width: 24px; height: 24px;
        background: rgba(0,0,0,0.7); color: #fff;
        border: none; border-radius: 50%;
        cursor: pointer; padding: 0;
        display: flex; align-items: center; justify-content: center;
}
.bos-upload-remove:hover { background: var(--bos-danger); }

/* Features checklist */
.bos-features-check {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 8px;
}
.bos-feature-toggle {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 12px;
        border: 1px solid var(--bos-border);
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        background: #fff;
        transition: all 0.2s;
}
.bos-feature-toggle:hover { border-color: var(--bos-primary); }
.bos-feature-toggle.is-on { background: var(--bos-primary); color: #fff; border-color: var(--bos-primary); }
.bos-feature-toggle input { margin: 0; }

.bos-form-actions { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
 * PAYMENT SECTION (Sell form)
 * ------------------------------------------------------------------------- */

.bos-payment-section { border-top: 3px solid var(--bos-accent); }
.bos-payment-section .bos-form-step { background: var(--bos-accent); }

.bos-payment-info {
        display: flex;
        flex-direction: column;
        gap: 16px;
}
.bos-payment-amount {
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding: 16px 20px;
        background: linear-gradient(135deg, rgba(15, 118, 110, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
        border-radius: var(--bos-radius);
        border: 1px solid var(--bos-border);
}
.bos-payment-amount-value {
        font-size: 32px;
        font-weight: 800;
        color: var(--bos-primary);
        line-height: 1;
}
.bos-payment-amount-label {
        font-size: 13px;
        color: var(--bos-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
}

.bos-payment-mode-info {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
        border-radius: var(--bos-radius-sm);
        font-size: 14px;
        line-height: 1.5;
}
.bos-payment-mode-info .dashicons { flex-shrink: 0; margin-top: 2px; font-size: 18px; width: 18px; height: 18px; }
.bos-pay-mode-demo { background: #f0f9ff; color: #075985; border-left: 4px solid #0ea5e9; }
.bos-pay-mode-demo .dashicons { color: #0ea5e9; }
.bos-pay-mode-test { background: #f0fdf4; color: #166534; border-left: 4px solid #16a34a; }
.bos-pay-mode-test .dashicons { color: #16a34a; }
.bos-pay-mode-live { background: #fef2f2; color: #991b1b; border-left: 4px solid #dc2626; }
.bos-pay-mode-live .dashicons { color: #dc2626; }

.bos-payment-features {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 24px;
        padding: 12px 4px 0;
}
.bos-payment-features span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--bos-text-muted);
}
.bos-payment-features svg { color: var(--bos-success); flex-shrink: 0; }

/* Payment success page — paid vehicle card */
.bos-paid-vehicle {
        display: flex;
        align-items: center;
        gap: 16px;
        background: var(--bos-card-bg);
        border: 1px solid var(--bos-border);
        border-radius: var(--bos-radius);
        padding: 16px;
        margin: 24px auto;
        max-width: 400px;
        text-align: left;
}
.bos-paid-vehicle img {
        width: 80px;
        height: 60px;
        border-radius: var(--bos-radius-sm);
        object-fit: cover;
        flex-shrink: 0;
}
.bos-paid-vehicle strong { display: block; font-size: 15px; color: var(--bos-text); }
.bos-paid-vehicle span { font-size: 13px; color: var(--bos-text-muted); }

/* ---------------------------------------------------------------------------
 * MY ACCOUNT
 * ------------------------------------------------------------------------- */

.bos-account { max-width: 1100px; margin: 0 auto; padding: 20px; }

.bos-account-header {
        display: flex; justify-content: space-between; align-items: center;
        flex-wrap: wrap; gap: 16px;
        margin-bottom: 24px;
}
.bos-account-user { display: flex; align-items: center; gap: 16px; }
.bos-account-avatar {
        width: 60px; height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--bos-primary), var(--bos-accent));
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 26px; font-weight: 700;
}
.bos-account-name { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: var(--bos-text); }
.bos-account-email { color: var(--bos-text-muted); margin: 0; font-size: 14px; }

.bos-account-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 14px;
        margin-bottom: 24px;
}
.bos-account-stat {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        padding: 16px;
        text-align: center;
        box-shadow: var(--bos-shadow-sm);
        border-top: 3px solid var(--bos-primary);
}
.bos-account-stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--bos-text); }
.bos-account-stat-label { font-size: 12px; color: var(--bos-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.bos-account-tabs {
        display: flex; gap: 4px;
        border-bottom: 2px solid var(--bos-border);
        margin-bottom: 24px;
        flex-wrap: wrap;
}
.bos-tab {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        color: var(--bos-text-muted);
        text-decoration: none;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
}
.bos-tab:hover { color: var(--bos-primary); }
.bos-tab.is-active { color: var(--bos-primary); border-bottom-color: var(--bos-primary); }
.bos-tab-badge {
        background: var(--bos-accent);
        color: #fff;
        font-size: 11px;
        padding: 1px 8px;
        border-radius: 10px;
}

.bos-empty-card {
        text-align: center;
        padding: 60px 20px;
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        box-shadow: var(--bos-shadow);
}
.bos-empty-card svg { color: var(--bos-text-light); margin-bottom: 12px; }
.bos-empty-card h3 { font-size: 20px; margin: 0 0 8px; color: var(--bos-text); }
.bos-empty-card p { color: var(--bos-text-muted); margin: 0 0 20px; }

.bos-listings-table { background: var(--bos-card-bg); border-radius: var(--bos-radius); box-shadow: var(--bos-shadow); overflow: hidden; }
.bos-listing-row {
        display: grid;
        grid-template-columns: 80px 1fr auto auto;
        gap: 16px;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid var(--bos-border);
}
.bos-listing-row:last-child { border-bottom: none; }
.bos-listing-thumb { width: 80px; height: 60px; border-radius: var(--bos-radius-sm); object-fit: cover; }
.bos-listing-title a { color: var(--bos-text); text-decoration: none; font-size: 15px; }
.bos-listing-title a:hover { color: var(--bos-primary); }
.bos-listing-meta { font-size: 12px; color: var(--bos-text-muted); margin-top: 4px; }
.bos-listing-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.bos-account-messages { display: flex; flex-direction: column; gap: 12px; }
.bos-account-message {
        background: var(--bos-card-bg);
        border-radius: var(--bos-radius);
        padding: 16px 20px;
        box-shadow: var(--bos-shadow-sm);
        border-left: 3px solid var(--bos-border);
}
.bos-account-message.is-unread { border-left-color: var(--bos-accent); background: #fffbeb; }
.bos-account-message-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bos-account-message-time { font-size: 12px; color: var(--bos-text-muted); }
.bos-account-message-vehicle a { color: var(--bos-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.bos-account-message-text { font-size: 14px; color: var(--bos-text); margin: 8px 0 12px; line-height: 1.5; }

/* Search bar shortcode */
.bos-search-bar { background: var(--bos-card-bg); border-radius: var(--bos-radius); padding: 16px; box-shadow: var(--bos-shadow); }
.bos-search-bar-inner { display: flex; gap: 12px; flex-wrap: wrap; }
.bos-search-field { flex: 1; min-width: 180px; }
.bos-search-text { position: relative; flex: 2; }
.bos-search-text svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bos-text-light); }
.bos-search-text input { padding-left: 42px; }
.bos-search-bar select, .bos-search-bar input { padding: 10px 14px; }

/* ---------------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
        .bos-section-grid, .bos-section-grid-reverse .bos-section-text { grid-template-columns: 1fr; order: initial; }
        .bos-single-layout { grid-template-columns: 1fr; }
        .bos-single-sidebar { position: static; }
        .bos-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
        .bos-hero { padding: 48px 24px 36px; }
        .bos-hero-stats { gap: 24px; }
        .bos-section-card { padding: 24px; }
        .bos-marketplace-header { flex-direction: column; align-items: stretch; }
        .bos-marketplace-header .bos-btn { width: 100%; }
        /* On mobile, stack filters vertically */
        .bos-filter-main-row { flex-direction: column; align-items: stretch; }
        .bos-filter-main-row > * { width: 100%; flex: 1 1 100%; }
        .bos-filter-row-advanced { grid-template-columns: 1fr 1fr; }
        .bos-single-header { flex-direction: column; }
        .bos-single-price { font-size: 26px; }
        .bos-listing-row { grid-template-columns: 60px 1fr; }
        .bos-listing-status, .bos-listing-actions { grid-column: 1 / -1; }
        .bos-account-header { flex-direction: column; align-items: stretch; }
        .bos-cta-card { padding: 32px 24px; }
        .bos-form-section { padding: 20px; }
}

@media (max-width: 480px) {
        .bos-hero-title { font-size: 28px; }
        .bos-hero-cta { flex-direction: column; }
        .bos-hero-cta .bos-btn { width: 100%; }
        .bos-page-title { font-size: 24px; }
        .bos-vehicles-grid { grid-template-columns: 1fr; }
        .bos-form-grid { grid-template-columns: 1fr; }
        .bos-form-actions { flex-direction: column; }
        .bos-form-actions .bos-btn { width: 100%; }
}

/* Redirecting page (Stripe checkout) */
.bos-redirecting {
        text-align: center;
        padding: 80px 20px;
        max-width: 500px;
        margin: 40px auto;
}
.bos-spinner-lg {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(15, 118, 110, 0.2);
        border-top-color: var(--bos-primary);
        border-radius: 50%;
        animation: bos-spin 0.7s linear infinite;
        margin: 0 auto 20px;
}
.bos-redirecting p { color: var(--bos-text-muted); margin: 8px 0; }
.bos-redirecting a { color: var(--bos-primary); }

/* ---------------------------------------------------------------------------
 * AUTH PAGES (Login, Register, Forgot Password, Reset Password)
 * ------------------------------------------------------------------------- */

/* Override theme conflicts on auth pages */
.buy-or-sell-page .entry-content .bos-auth-wrap,
.buy-or-sell-page .bos-auth-wrap {
	max-width: 480px;
	margin: 40px auto;
	padding: 0;
	box-sizing: border-box;
}
.buy-or-sell-page .bos-auth-wrap *,
.buy-or-sell-page .bos-auth-wrap *::before,
.buy-or-sell-page .bos-auth-wrap *::after {
	box-sizing: border-box;
}
.buy-or-sell-page .bos-auth-wrap form {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}
.buy-or-sell-page .bos-auth-wrap input,
.buy-or-sell-page .bos-auth-wrap button {
	margin: 0;
	font-family: inherit;
}

.bos-auth-card {
	background: var(--bos-card-bg);
	border-radius: var(--bos-radius-lg);
	box-shadow: var(--bos-shadow-lg);
	padding: 36px 32px;
	border: 1px solid var(--bos-border);
}

.bos-auth-header {
	text-align: center;
	margin-bottom: 28px;
}
.bos-auth-header h2 {
	font-size: 24px;
	font-weight: 800;
	color: var(--bos-text);
	margin: 0 0 8px;
}
.bos-auth-header p {
	font-size: 14px;
	color: var(--bos-text-muted);
	margin: 0;
	line-height: 1.5;
}

.bos-auth-form .bos-field {
	margin-bottom: 16px;
}
.bos-auth-form .bos-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bos-text);
	margin-bottom: 6px;
}
.bos-auth-form .bos-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: var(--bos-radius-sm);
	font-size: 14px;
	color: var(--bos-text);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.bos-auth-form .bos-field input:focus {
	border-color: var(--bos-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
	outline: none;
}

.bos-auth-form .bos-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.bos-auth-form .bos-field-row-inline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.bos-auth-form .bos-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
	color: var(--bos-text-muted);
}
.bos-auth-form .bos-checkbox-row input {
	width: auto;
	margin: 0;
}
.bos-auth-link {
	font-size: 13px;
	color: var(--bos-primary);
	text-decoration: none;
	font-weight: 600;
}
.bos-auth-link:hover {
	color: var(--bos-primary-dark);
	text-decoration: underline;
}

.bos-auth-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--bos-border);
}
.bos-auth-footer p {
	font-size: 14px;
	color: var(--bos-text-muted);
	margin: 0;
}
.bos-auth-footer a {
	color: var(--bos-primary);
	text-decoration: none;
	font-weight: 600;
}
.bos-auth-footer a:hover {
	color: var(--bos-primary-dark);
}

.bos-auth-notice {
	text-align: center;
	padding: 60px 20px;
	max-width: 480px;
	margin: 40px auto;
	background: var(--bos-card-bg);
	border-radius: var(--bos-radius-lg);
	box-shadow: var(--bos-shadow);
}
.bos-auth-notice p {
	font-size: 16px;
	color: var(--bos-text);
	margin: 0 0 20px;
}

.bos-auth-success {
	text-align: center;
	padding: 60px 20px;
	max-width: 480px;
	margin: 40px auto;
}
.bos-auth-success p {
	font-size: 16px;
	color: var(--bos-text);
	margin: 16px 0 0;
}

.bos-spinner-lg {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(15, 118, 110, 0.2);
	border-top-color: var(--bos-primary);
	border-radius: 50%;
	animation: bos-spin 0.7s linear infinite;
	margin: 0 auto;
}

.bos-required {
	color: var(--bos-danger);
}

/* Mobile responsive for auth forms */
@media (max-width: 480px) {
	.bos-auth-card {
		padding: 24px 20px;
	}
	.bos-auth-form .bos-field-row {
		grid-template-columns: 1fr;
	}
}


/* PLAN SELECTION (Sell form) */

.bos-plans-section { border-top: 3px solid var(--bos-accent); }
.bos-plans-section .bos-form-step { background: var(--bos-accent); }

.bos-admin-bypass-notice {
	display: flex; align-items: center; gap: 8px;
	padding: 12px 16px; margin-bottom: 16px;
	background: #f0f9ff; border: 1px solid #bae6fd;
	border-radius: var(--bos-radius-sm); color: #075985; font-size: 13px;
}
.bos-admin-bypass-notice svg { flex-shrink: 0; color: #0ea5e9; }

.bos-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px; margin-top: 12px;
}
.bos-plan-card {
	position: relative; display: flex; flex-direction: column;
	align-items: center; gap: 4px; padding: 20px 12px;
	background: var(--bos-card-bg); border: 2px solid var(--bos-border);
	border-radius: var(--bos-radius); cursor: pointer;
	transition: all 0.2s ease; text-align: center;
}
.bos-plan-card:hover { border-color: var(--bos-primary); transform: translateY(-2px); box-shadow: var(--bos-shadow-md); }
.bos-plan-card.is-selected { border-color: var(--bos-primary); background: rgba(15,118,110,0.04); box-shadow: 0 0 0 3px rgba(15,118,110,0.12); }
.bos-plan-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.bos-plan-duration { font-size: 15px; font-weight: 700; color: var(--bos-text); }
.bos-plan-price { font-size: 22px; font-weight: 800; color: var(--bos-primary); line-height: 1.2; }
.bos-plan-pay-btn { display: inline-block; margin-top: 6px; padding: 4px 14px; font-size: 12px; font-weight: 600; border-radius: 20px; background: var(--bos-bg); color: var(--bos-text-muted); border: 1px solid var(--bos-border); transition: all 0.2s; }
.bos-plan-card.is-selected .bos-plan-pay-btn { background: var(--bos-primary); color: #fff; border-color: var(--bos-primary); }
.bos-card-expiry { position: absolute; bottom: 10px; left: 10px; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 12px; background: rgba(0,0,0,0.7); color: #fff; }
@media (max-width: 768px) { .bos-plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bos-plans-grid { grid-template-columns: 1fr; } }

.bos-badge-expired { background: #fef3c7; color: #92400e; }
