/* © 2026 H.W. & H. Investments Pty Ltd. All rights reserved. */
/**
 * AYIO Sales — Design System Tokens & Base Styles
 *
 * AUTHORITATIVE source for all design tokens. Loaded FIRST, before all
 * other stylesheets. Every colour, spacing value, shadow, radius, and
 * font stack used anywhere on the site should reference these variables.
 *
 * Do NOT define :root variables in any other CSS file.
 */

:root {
    /* ══════════════════════════════════════════════════════════════
       BRAND COLOURS
       ══════════════════════════════════════════════════════════════ */
    --navy:          #0f1f3d;
    --navy-light:    #1a3258;
    --navy-dark:     #0a1528;
    --navy-mid:      #152d54;
    --gold:          #f0a500;
    --gold-hover:    #d99400;
    --gold-light:    #fbbf24;
    --gold-dark:     #b8860b;
    --gold-glow:     rgba(240, 165, 0, 0.15);

    /* ══════════════════════════════════════════════════════════════
       NEUTRALS
       ══════════════════════════════════════════════════════════════ */
    --white:         #ffffff;
    --off-white:     #f7f8fc;
    --gray-50:       #f8f9fa;
    --gray-100:      #f0f2f5;
    --gray-200:      #e4e7ec;
    --gray-300:      #d1d5db;
    --gray-400:      #9ca3af;
    --gray-500:      #6b7280;
    --gray-600:      #4b5563;
    --gray-700:      #374151;
    --gray-800:      #1f2937;
    --gray-900:      #111827;

    /* Legacy grey aliases (match existing variable usage across codebase) */
    --grey-50:       #f7f8fc;
    --grey-100:      #eef0f5;
    --grey-200:      #e2e5ed;
    --grey-300:      #d1d5e0;
    --grey-400:      #b0b7c8;
    --grey-500:      #8892a4;
    --grey-600:      #6b7385;
    --grey-700:      #4a5568;
    --grey-800:      #2d3748;
    --grey-900:      #1a202c;

    /* ══════════════════════════════════════════════════════════════
       SEMANTIC COLOUR ALIASES
       ══════════════════════════════════════════════════════════════ */
    --color-primary:       var(--navy);
    --color-primary-dark:  var(--navy-dark);
    --color-primary-light: var(--navy-light);
    --color-accent:        var(--gold);
    --color-accent-hover:  var(--gold-hover);
    --color-text:          var(--grey-900);
    --color-text-light:    var(--grey-700);
    --color-text-muted:    var(--grey-500);
    --color-bg:            var(--off-white);
    --color-bg-white:      var(--white);
    --color-border:        var(--grey-200);
    --color-border-light:  var(--grey-100);
    --color-gold:          var(--gold);
    --color-gold-hover:    var(--gold-hover);
    --color-white:         var(--white);

    /* Legacy brand aliases (overridden dynamically in layout head) */
    --brand-primary:       var(--gold);
    --brand-secondary:     var(--navy);
    --brand-accent:        var(--info);

    /* ══════════════════════════════════════════════════════════════
       SEMANTIC STATUS COLOURS
       ══════════════════════════════════════════════════════════════ */
    --success:       #10b981;
    --success-light: #d1fae5;
    --warning:       #f59e0b;
    --warning-light: #fef3c7;
    --error:         #ef4444;
    --error-light:   #fee2e2;
    --info:          #3b82f6;
    --info-light:    #dbeafe;

    /* Legacy status aliases */
    --color-success: var(--success);
    --color-warning: var(--warning);
    --color-danger:  var(--error);
    --color-info:    var(--info);

    /* ══════════════════════════════════════════════════════════════
       TYPOGRAPHY
       ══════════════════════════════════════════════════════════════ */
    --font-heading:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Legacy aliases */
    --font-family:   var(--font-body);
    --font-display:  var(--font-heading);

    /* Type scale */
    --text-xs:   0.75rem;    /* 12px */
    --text-sm:   0.875rem;   /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg:   1.125rem;   /* 18px */
    --text-xl:   1.25rem;    /* 20px */
    --text-2xl:  1.5rem;     /* 24px */
    --text-3xl:  1.875rem;   /* 30px */
    --text-4xl:  2.25rem;    /* 36px */
    --text-5xl:  3rem;       /* 48px */

    /* Legacy font-size aliases */
    --font-size-xs:   var(--text-xs);
    --font-size-sm:   var(--text-sm);
    --font-size-base: var(--text-base);
    --font-size-lg:   var(--text-lg);
    --font-size-xl:   var(--text-xl);
    --font-size-2xl:  var(--text-2xl);
    --font-size-3xl:  2rem;

    /* Line heights */
    --leading-tight:   1.25;
    --leading-normal:  1.5;
    --leading-relaxed: 1.625;

    /* ══════════════════════════════════════════════════════════════
       SPACING
       ══════════════════════════════════════════════════════════════ */
    --space-1:   0.25rem;    /* 4px  */
    --space-2:   0.5rem;     /* 8px  */
    --space-3:   0.75rem;    /* 12px */
    --space-4:   1rem;       /* 16px */
    --space-5:   1.25rem;    /* 20px */
    --space-6:   1.5rem;     /* 24px */
    --space-8:   2rem;       /* 32px */
    --space-10:  2.5rem;     /* 40px */
    --space-12:  3rem;       /* 48px */
    --space-16:  4rem;       /* 64px */
    --space-20:  5rem;       /* 80px */
    --space-24:  6rem;       /* 96px */

    /* Legacy spacing aliases */
    --sp-xs:  4px;
    --sp-sm:  8px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;
    --sp-4xl: 96px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* ══════════════════════════════════════════════════════════════
       SHADOWS
       ══════════════════════════════════════════════════════════════ */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm:  0 1px 3px rgba(15, 31, 61, 0.06);
    --shadow:     0 2px 8px rgba(15, 31, 61, 0.08);
    --shadow-md:  0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg:  0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl:  0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* ══════════════════════════════════════════════════════════════
       BORDER RADIUS
       ══════════════════════════════════════════════════════════════ */
    --radius-sm:   4px;
    --radius:      8px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    /* ══════════════════════════════════════════════════════════════
       TRANSITIONS
       ══════════════════════════════════════════════════════════════ */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition:      0.2s ease;
    --transition-slow: 300ms ease;

    /* ══════════════════════════════════════════════════════════════
       LAYOUT
       ══════════════════════════════════════════════════════════════ */
    --container-max:      1280px;
    --nav-height:         64px;
    --nav-height-mobile:  56px;
    --sidebar-width:      280px;

    /* ══════════════════════════════════════════════════════════════
       Z-INDEX SCALE
       Centralised z-index values to prevent layer conflicts.
       Use these tokens instead of arbitrary z-index numbers.
       ══════════════════════════════════════════════════════════════ */
    --z-dropdown:       100;    /* nav dropdowns, tooltips, popovers  */
    --z-sticky:         500;    /* sticky elements within page flow   */
    --z-filter-drawer:  998;    /* mobile filter drawer overlay       */
    --z-header:        1000;    /* site header, mobile bottom nav     */
    --z-search-overlay: 999;    /* search overlay below header        */
    --z-mobile-backdrop:1500;   /* mobile menu backdrop               */
    --z-mobile-menu:   1600;    /* mobile menu panel                  */
    --z-suggest:       9000;    /* search suggest dropdown            */
    --z-back-to-top:   9000;    /* back-to-top button                 */
    --z-cookie-banner: 9999;    /* cookie consent banner              */
    --z-toast:        10000;    /* toast notifications                */
    --z-flash:        10001;    /* flash messages (above toasts)      */
    --z-consent:      10000;    /* consent banner (polish.css)        */
    --z-skip-link:    99999;    /* skip-to-content accessibility      */
}


/* ═══════════════════════════════════════════════════════════════════════════
   BASE COMPONENT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Container ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
    color: var(--navy);
    font-weight: 700;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-base); font-weight: 600; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
}

/* ── Responsive heading scale ── */
@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl);  }
}

/* © 2026 H.W. & H. Investments Pty Ltd. All rights reserved. */
/**
 * AYIO Sales — Base Stylesheet
 *
 * Global reset, typography, layout container, buttons, forms,
 * site header/navigation, flash messages, footer, badges, and utilities.
 *
 * Color palette (navy-and-gold branding):
 *   --color-primary:      #0f1f3d  (navy — dominant brand)
 *   --color-primary-dark:  #0f1e35  (darker navy)
 *   --color-gold:          #f0a500  (gold — CTAs, highlights, matched to AYIO Jobs)
 *   --color-gold-hover:    #e5b228  (gold hover)
 *   --color-bg:            #f5f6f8  (page background)
 *   --color-white:         #ffffff
 *   --color-text:          #1a1a2e  (body text)
 *   --color-border:        #e2e8f0  (borders)
 *   Legacy aliases: --brand-primary, --brand-secondary, --brand-accent
 *   Success:       #22c55e
 *   Warning:       #f59e0b
 *   Error:         #ef4444
 */

/* :root design tokens have moved to design-system.css (loaded first).
   Do NOT re-declare design tokens here. */

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-900);
    background: var(--off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

/* ─── Accessibility ─── */

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--z-skip-link, 99999);
    padding: 12px 24px;
    background: var(--brand-primary);
    color: var(--brand-secondary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 0;
}

/* Focus-visible ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ─── Container ─── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-feature-settings: 'cv11' 1, 'ss01' 1;
}

h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.5em; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5em; }

p {
    margin-bottom: 12px;
    color: var(--grey-700);
}

/* ─── Main Content ─── */
.site-main {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BUTTONS                                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #f0a500;
    color: #0f1f3d;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 20px;
    min-height: 44px;
    box-shadow: 0 4px 14px rgba(240,165,0,0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d99400;
    color: #0f1f3d;
    box-shadow: 0 6px 20px rgba(240,165,0,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: 0 4px 14px rgba(15,31,61,0.25);
}

.btn-secondary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: #fff;
    box-shadow: 0 4px 16px rgba(15,31,61,0.2);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--color-gold, var(--brand-primary));
    color: var(--color-text, #1a1a2e);
    border-color: var(--color-gold, var(--brand-primary));
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--color-gold-hover, #e5b228);
    border-color: var(--color-gold-hover, #e5b228);
    color: var(--color-text, #1a1a2e);
}

.btn-outline {
    background: transparent;
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.btn-outline:hover {
    background: rgba(15,31,61,0.04);
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.btn-success {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled, .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── BEM Button Aliases (map to existing variants) ── */
.btn--primary  { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; box-shadow: 0 2px 12px rgba(240,165,0,0.25); }
.btn--primary:hover { background: var(--gold-hover); color: var(--navy); box-shadow: 0 4px 16px rgba(240,165,0,0.35); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--secondary:hover { background: rgba(15,31,61,0.04); color: var(--navy); border-color: var(--navy); }
.btn--danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn--danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; transform: translateY(-1px); }
.btn--success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn--success:hover { background: #15803d; border-color: #15803d; color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); min-height: 36px; }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); min-height: 48px; }

/* ─── Interactive element transitions ─── */
button, input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.12);
    outline: none;
}

/* ─── Touch-friendly button targets ─── */
.btn {
    min-height: 44px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FORMS                                                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 6px;
}

/* Required field asterisk */
.form-group label .required,
.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Helper / hint text below fields */
.field-hint,
.form-hint,
.form-help-text {
    display: block;
    font-size: 13px;
    color: var(--grey-500);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Error text below fields */
.field-error,
.form-error {
    display: block;
    font-size: 13px;
    color: #e53935;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Has-error state */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53935;
}

/* Live validation — valid state */
.form-group.is-valid input,
.form-group.is-valid select,
.form-group.is-valid textarea {
    border-color: #22c55e;
}
.form-group.is-valid input:focus,
.form-group.is-valid select:focus,
.form-group.is-valid textarea:focus {
    box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

/* Live validation — error state (client-side) */
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
    border-color: #ef4444;
}
.form-group.is-invalid input:focus,
.form-group.is-invalid select:focus,
.form-group.is-invalid textarea:focus {
    box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

/* Inline validation icon */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}
.validation-icon-valid { color: #22c55e; }
.validation-icon-invalid { color: #ef4444; }

/* Fieldset styling */
fieldset.form-fieldset,
fieldset.form-section {
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
}

fieldset.form-fieldset legend,
fieldset.form-section legend {
    font-weight: 600;
    font-size: 15px;
    color: var(--grey-900);
    padding: 0 0.5rem;
}

/* Optional label suffix */
.optional {
    font-weight: 400;
    font-size: 13px;
    color: var(--grey-400);
}

/* Helper / optional text */
.form-help {
    font-size: 13px;
    color: var(--grey-400);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--grey-900);
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 12px;
    color: var(--grey-500);
    margin-top: 4px;
}

/* ── Design System Form Aliases ── */
.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 32px 10px 12px;
    font-size: 0.9375rem;
    color: var(--grey-900);
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--grey-900);
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius);
    background: var(--white);
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

/* ── Consistent Badge Variants (BEM) ── */
.badge--success { background: #dcfce7; color: #166534; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--danger  { background: #fee2e2; color: #991b1b; }
.badge--info    { background: #dbeafe; color: #1e40af; }

/* ── Alert Variants (BEM) ── */
.alert--success { background: #f0fdf4; border-color: var(--color-success); color: #166534; }
.alert--error   { background: #fef2f2; border-color: var(--color-danger); color: #991b1b; }
.alert--warning { background: #fffbeb; border-color: var(--color-warning); color: #92400e; }
.alert--info    { background: #eff6ff; border-color: var(--color-info); color: #1e40af; }

/* .form-error — consolidated into .field-error,.form-error block above */

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Global Input Styles (consistent sizing & focus) ─── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    background: var(--white, #fff);
    color: var(--grey-900, #1a202c);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #f0a500;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ─── Workspace Toggle (Personal / Business) ─── */
.ws-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ws-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--grey-200);
    background: var(--white);
    color: var(--grey-800);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.ws-toggle-btn:hover {
    border-color: var(--grey-400);
}
.ws-toggle--personal.ws-active {
    border-color: #0d9488;
    background: #f0fdfa;
    color: #0d9488;
}
.ws-toggle--business.ws-active {
    border-color: #0f1f3d;
    background: #f0f2f7;
    color: #0f1f3d;
}
.ws-toggle-btn svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TOP BAR                                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.topbar {
    background: #08152a;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    line-height: 1;
    border-bottom: 1px solid rgba(240,165,0,0.15);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    max-width: 1400px;
    margin: 0 auto;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.topbar-nav {
    display: flex;
    gap: 8px;
}

.topbar-brand {
    color: var(--gold);
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.topbar-brand:hover { color: var(--gold); text-decoration: none; }

.topbar-sep {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    margin: 0 10px;
}

.topbar-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    transition: color 0.15s;
}

.topbar-link:hover { color: var(--gold, #f0a500); text-decoration: none; }
.topbar-link--active { color: var(--gold, #f0a500); font-weight: 700; }

.topbar-tagline {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SITE HEADER                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
    background: linear-gradient(135deg, #0f2040 0%, #1e3d6e 100%);
    position: sticky;
    top: 0;
    z-index: var(--z-header, 1000);
    border-bottom: 2px solid var(--gold, #f0a500);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header--scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    background: rgba(8,21,42,0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    min-height: 64px;
    gap: 2rem;
}

/* Logo */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    font-weight: 400;
    font-family: var(--font-display), var(--font-body), sans-serif;
}

.site-logo:hover { color: #fff; text-decoration: none; }

.site-logo .logo-ayio,
.site-logo strong {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.site-logo .logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: super;
    margin: 0 3px 0 2px;
    flex-shrink: 0;
}

.site-logo .logo-product {
    font-weight: 600;
    color: var(--gold);
}

/* ─── Nav Links ─── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.nav-link-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold, #f0a500);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.nav-link--active,
.nav-link.nav-link--active {
    color: var(--gold);
    font-weight: 600;
    position: relative;
}

.nav-link--active::after,
.nav-link.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.nav-link--signin {
    color: #fff;
    font-weight: 600;
    padding: 6px 16px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link--signin:hover {
    border-color: var(--gold, #f0a500);
    color: var(--gold, #f0a500);
    background: rgba(240,165,0,0.08);
}

.nav-link--signin::after {
    display: none;
}

/* ─── Mega Dropdown ─── */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: var(--z-dropdown, 100);
}

.nav-link-item--has-dropdown:hover > .nav-dropdown,
.nav-link-item--has-dropdown.nav-dropdown--open > .nav-dropdown {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown--mega {
    left: 0;
    transform: translateY(8px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 24px;
    min-width: 680px;
}

.nav-link-item--has-dropdown:hover > .nav-dropdown--mega,
.nav-link-item--has-dropdown.nav-dropdown--open > .nav-dropdown--mega {
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mega-heading {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey-400);
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--grey-100);
}

.mega-link {
    display: block;
    padding: 6px 0;
    color: var(--grey-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.mega-link:hover {
    color: var(--gold);
    text-decoration: none;
    padding-left: 4px;
}

.mega-col--promo {
    display: flex;
    align-items: stretch;
}

.mega-promo {
    background: linear-gradient(135deg, #0f1f3d 0%, #1a3260 100%);
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.mega-promo-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 700;
}

.mega-promo strong {
    font-size: 16px;
    font-weight: 700;
}

.mega-promo p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.15s;
}

.btn-gold:hover {
    background: #d99400;
    color: #fff;
    text-decoration: none;
}

/* ─── Nav Actions (right side) ─── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: scale(1.05);
}

.nav-action-btn:active {
    transform: scale(0.95);
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.nav-icon-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

.nav-icon-link:active {
    transform: scale(0.95);
}

.nav-icon-link .badge,
.nav-action-btn .badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    border: 2px solid var(--white);
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(220,53,69,0.3);
}

/* ─── Avatar Button & Account Dropdown ─── */
.nav-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
}

.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-avatar--lg {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.nav-avatar-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(220,53,69,0.3);
    pointer-events: none;
}

.nav-dropdown--account {
    right: 0;
    left: auto;
    transform: translateY(8px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 260px;
    overflow: hidden;
}

.nav-account-wrap:hover > .nav-dropdown--account,
.nav-account-wrap.nav-dropdown--open > .nav-dropdown--account {
    transform: translateY(0);
}

/* ─── Notification Dropdown ─── */
.nav-dropdown--notifications {
    right: 0;
    left: auto;
    transform: translateY(8px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 360px;
    max-width: 420px;
    overflow: hidden;
}
.nav-dropdown--notifications.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.notif-dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--grey-100);
}
.notif-dd-header strong {
    font-size: 15px;
    color: var(--navy);
}
.notif-dd-mark-all {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--brand-primary, #2563eb);
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}
.notif-dd-mark-all:hover {
    background: #f0f5ff;
}
.notif-dd-list {
    max-height: 400px;
    overflow-y: auto;
}
.notif-dd-loading,
.notif-dd-empty {
    padding: 32px 16px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}
.notif-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
}
.notif-dd-item:hover {
    background: #f8fafc;
}
.notif-dd-unread {
    background: #f0f7ff;
}
.notif-dd-unread:hover {
    background: #e8f2ff;
}
.notif-dd-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-dd-icon--listings { background: #eff6ff; color: #2563eb; }
.notif-dd-icon--listings svg { stroke: #2563eb; }
.notif-dd-icon--messages { background: #f0fdf4; color: #16a34a; }
.notif-dd-icon--messages svg { stroke: #16a34a; }
.notif-dd-icon--offers { background: #fff7ed; color: #ea580c; }
.notif-dd-icon--offers svg { stroke: #ea580c; }
.notif-dd-icon--bids { background: #faf5ff; color: #9333ea; }
.notif-dd-icon--bids svg { stroke: #9333ea; }
.notif-dd-icon--system { background: #f8fafc; color: #94a3b8; }
.notif-dd-icon--system svg { stroke: #94a3b8; }
.notif-dd-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.notif-dd-title {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-dd-time {
    font-size: 11px;
    color: #94a3b8;
}
.notif-dd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary, #2563eb);
    flex-shrink: 0;
    margin-top: 8px;
}
.notif-dd-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary, #2563eb);
    text-decoration: none;
    border-top: 1px solid var(--grey-100);
    transition: background 0.12s;
}
.notif-dd-footer:hover {
    background: #f8fafc;
}
/* Prevent hover-open, use click only for notifications */
.nav-notif-wrap:hover > .nav-dropdown--notifications {
    display: none;
}
.nav-notif-wrap > .nav-dropdown--notifications.open {
    display: block;
}
@media (max-width: 768px) {
    .nav-dropdown--notifications {
        min-width: 300px;
        right: -60px;
    }
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--grey-100);
}

.nav-dropdown-header strong {
    display: block;
    font-size: 14px;
    color: var(--navy);
}

.nav-dropdown-header small {
    display: block;
    font-size: 12px;
    color: var(--grey-500);
    margin-top: 2px;
}

.nav-dropdown-body {
    padding: 8px;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--grey-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-link:hover {
    background: var(--grey-50);
    color: var(--navy);
    text-decoration: none;
}

.nav-dropdown-link svg {
    color: var(--grey-400);
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--grey-100);
    margin: 4px 8px;
}

.nav-dropdown-footer {
    padding: 8px 16px 12px;
    border-top: 1px solid var(--grey-100);
}

.nav-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
}

.nav-logout-btn:hover { color: #dc2626; }

.logout-form { margin: 0; }

/* Post a Listing button */
.btn-post-listing {
    border-radius: var(--radius-full);
    padding: 9px 22px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    background: var(--gold);
    color: var(--navy);
    border: none;
    box-shadow: 0 2px 8px rgba(240,165,0,0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.btn-post-listing:hover {
    box-shadow: 0 4px 16px rgba(240,165,0,0.4);
    background: var(--color-gold-hover, #d99400);
    color: var(--navy);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-post-listing:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(240,165,0,0.25);
}

/* ─── Hamburger (mobile) ─── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold, #f0a500);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.nav-hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger--open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Search Bar (slide down below nav) ─── */
.search-overlay {
    position: relative;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: var(--z-search-overlay, 999);
    padding: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--grey-200);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay--open {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.search-overlay-inner {
    padding: 20px 0;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.search-overlay-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.1);
}

.search-overlay-icon {
    color: var(--grey-400);
    flex-shrink: 0;
}

.search-overlay-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    outline: none;
    font-family: inherit;
}

.search-overlay-input::placeholder {
    color: var(--grey-400);
    font-weight: 400;
}

.search-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--grey-100);
    color: var(--grey-600);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.search-overlay-btn {
    border-radius: 8px;
    padding: 8px 20px;
}

.search-overlay-close:hover {
    background: var(--grey-200);
    color: var(--navy);
    transform: scale(1.08);
}

/* ─── Search Suggest Dropdown ─── */
.search-suggest-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-suggest-dropdown {
    position: absolute;
    z-index: var(--z-suggest, 9000);
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    gap: 0.5rem;
}

.search-suggest-item:hover,
.search-suggest-item--active {
    background: #f3f4f6;
}

.search-suggest-badge {
    font-size: 0.7rem;
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.search-suggest-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Mobile Menu ─── */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-mobile-backdrop, 1500);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-backdrop--open {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #0f1f3d;
    color: #fff;
    z-index: var(--z-mobile-menu, 1600);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu--open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mobile-menu-header .site-logo {
    color: #fff;
    font-size: 20px;
}

.mobile-menu-header .site-logo .logo-ayio,
.mobile-menu-header .site-logo strong {
    color: #fff;
}

.mobile-menu-header .site-logo .logo-dot {
    width: 7px;
    height: 7px;
    margin: 0 2px 0 1px;
}

.mobile-menu-header .site-logo .logo-product {
    color: var(--gold);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.mobile-menu-body {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.mobile-menu-user strong {
    display: block;
    font-size: 15px;
}

.mobile-menu-user small {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    min-height: 48px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
}

.mobile-menu-link .badge--sm {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
    margin-left: auto;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 20px;
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mobile-menu-footer .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.mobile-menu-footer .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* Gold CTA in mobile menu footer */
.mobile-menu-footer .btn-gold {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-menu-footer .btn-gold:hover {
    background: #d99400;
    color: var(--navy);
    text-decoration: none;
}

.mobile-menu-signin {
    margin-bottom: 8px;
}

.mobile-menu-post {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FLASH MESSAGES                                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.flash-message {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: var(--z-flash, 10001);
    border-left: 4px solid transparent;
    max-width: 480px;
    width: calc(100% - 48px);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    line-height: 1;
    color: inherit;
    border-radius: 4px;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08);
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BADGES                                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-info    { background: #d1ecf1; color: #0c5460; }

/* ─── Status Badges (unified design system) ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.status-active, .status-approved     { background: #dcfce7; color: #166534; }
.status-expired, .status-rejected,
.status-declined                     { background: #fee2e2; color: #991b1b; }
.status-pending, .status-review      { background: #fef3c7; color: #92400e; }
.status-sold, .status-completed      { background: #dbeafe; color: #1e40af; }
.status-draft, .status-inactive      { background: #f3f4f6; color: var(--grey-600); }
.status-suspended, .status-banned    { background: #fce7f3; color: #9d174d; }
.status-featured                     { background: #fef9e7; color: #b8941f; }
.status-paid, .status-accepted       { background: #dcfce7; color: #166534; }
.status-failed                       { background: #fee2e2; color: #991b1b; }
.status-refunded                     { background: #fef3c7; color: #92400e; }
.status-countered                    { background: #dbeafe; color: #1e40af; }
.status-info                         { background: #e3f0ff; color: #1976d2; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CARDS (base)                                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--sp-lg);
}

.card-header {
    padding: var(--sp-md) var(--sp-lg);
    border-bottom: 1px solid var(--grey-200);
    font-weight: 600;
    color: var(--navy);
}

/* ── BEM Card Aliases ── */
.card__header { padding: var(--sp-md) var(--sp-lg); border-bottom: 1px solid var(--grey-200); font-weight: 600; color: var(--navy); }
.card__body   { padding: var(--sp-lg); }
.card__footer { padding: var(--sp-md) var(--sp-lg); border-top: 1px solid var(--grey-200); }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PAGE HEADER (consistent top header for all page types)                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.page-header {
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--grey-200);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0 0 4px;
}

.page-header p {
    color: var(--grey-600);
    margin: 0;
}

.page-header .page-subtitle {
    color: var(--grey-600);
    font-size: 15px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TABLES                                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--grey-200);
    font-size: 14px;
}

.table th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--brand-secondary);
}

.table tbody tr:hover {
    background: var(--off-white);
}

/* Responsive table wrapper — horizontal scroll on mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .table-responsive {
        border: 1px solid var(--grey-200);
        border-radius: var(--radius-sm);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* NEWSLETTER BAND                                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FOOTER                                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
    background: #08152a;
    color: #cbd5e1;
    padding: 48px 0 0;
    font-size: 14px;
    margin-top: auto;
    border-top: 2px solid rgba(240,165,0,0.2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Upper grid: Brand (2fr) + Quick Links (1fr) + Support (1fr) + Connect (1.5fr) ── */
.footer-upper {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

.footer-grid {
    display: grid;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Brand column ── */
.footer-brand {}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
    font-family: var(--font-display), var(--font-body), sans-serif;
}

.footer-logo:hover { color: #fff; text-decoration: none; }

.footer-logo .logo-ayio,
.footer-logo strong {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.footer-logo .logo-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold, #f0a500);
    vertical-align: super;
    margin: 0 2px 0 1px;
    flex-shrink: 0;
}

.footer-logo .logo-product {
    font-weight: 600;
    color: var(--gold, #f0a500);
}

.footer-tagline {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
    max-width: 340px;
}

.footer-abn {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* ── Column headings ── */
.footer-heading {
    display: block;
    color: var(--gold, #f0a500);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Support legacy h4 inside .footer-col */
.footer-col h4 {
    color: var(--gold, #f0a500);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Link lists ── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold, #f0a500);
}

/* ── Social icons ── */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--gold, #f0a500);
    color: #0f1f3d;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Newsletter form (inside footer) ── */
.footer-newsletter-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.footer-newsletter input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-newsletter input::placeholder {
    color: var(--grey-500);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

.footer-newsletter button {
    background: #f0a500;
    color: #0f1f3d;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: background 0.2s;
}

.footer-newsletter button:hover {
    background: #d99400;
}

.footer-newsletter-status { font-size: 13px; margin-top: 8px; }
.newsletter-success { color: #4caf50; }
.newsletter-error { color: #ef5350; }

/* ── Trust badges ── */
.footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
}

.footer-trust-badge svg {
    color: var(--gold, #f0a500);
    flex-shrink: 0;
}

/* ── Bottom bar ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    border-top: 1px solid rgba(240,165,0,0.1);
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: #f0a500;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* UTILITIES                                                                  */
/* ═══════════════════════════════════════════════════════════════════════════ */

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--grey-500); }
.text-small   { font-size: 13px; }
.text-success { color: #22c55e; }
.text-danger  { color: #ef4444; }
.text-warning { color: #f59e0b; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* (Ecosystem bar CSS removed — replaced by topbar in SITE HEADER section) */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HOMEPAGE ECOSYSTEM SECTION — moved to home.css (definitive version)       */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-subtitle {
    color: #777;
    font-size: 15px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CROSS-PROMO & FINANCE CARDS — moved to listing-detail.css                  */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* STD CROSS-LINKS                                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */

.std-cross-links {
    padding: 32px 0;
}

.cross-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.cross-link-card {
    background: var(--off-white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.cross-link-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cross-link-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TRADE FINANCE BANNER                                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

.trade-finance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #2c3e6b 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
    gap: 20px;
}

.trade-finance-banner-content h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 4px;
}

.trade-finance-banner-content p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin-bottom: 0;
}

.trade-finance-banner .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Contact feedback card */
.contact-feedback-card {
    border-top: 3px solid var(--brand-primary);
}

.contact-feedback-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* AUTH PAGES — Premium Login / Register / Forgot Password                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 3rem 1.5rem;
}

.auth-page-login,
.auth-page-register {
    /* Page-specific overrides — extend .auth-page */
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--grey-200);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #6b7385;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-700, #495057);
    margin-bottom: 0.4rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="url"],
.auth-form select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    border: 1.5px solid var(--grey-300, #dee2e6);
    border-radius: var(--radius);
    font-family: inherit;
    background: var(--white, #fff);
    color: var(--grey-800, #343a40);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
    outline: none;
}

.auth-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}

.auth-form .btn-full,
.auth-form .btn-block,
.btn-full {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius);
}

.field-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold, #f0a500);
    text-decoration: none;
}

.field-link:hover {
    text-decoration: underline;
    color: var(--gold-hover, #e09515);
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--grey-600, #6c757d);
}

.auth-footer-text a {
    color: var(--gold, #f0a500);
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.field-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--grey-500);
    margin-top: 4px;
}

.char-count {
    font-size: 12px;
    color: var(--grey-500, #9ca3af);
    text-align: right;
    margin-top: 4px;
}

.has-error input,
.has-error select {
    border-color: #ef4444;
}

.required {
    color: #ef4444;
}

/* Checkbox/radio custom styles */
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="radio"] {
    border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked,
.checkbox-label input[type="radio"]:checked {
    background: #0f1f3d;
    border-color: #0f1f3d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.checkbox-label input[type="radio"]:checked {
    background-image: none;
    box-shadow: inset 0 0 0 3px #fff;
}

.checkbox-label input[type="checkbox"]:focus-visible,
.checkbox-label input[type="radio"]:focus-visible {
    outline: 2px solid #0f1f3d;
    outline-offset: 2px;
}

.form-terms {
    margin: 20px 0 8px;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    color: var(--grey-600, #6c757d) !important;
    cursor: pointer;
    font-size: 0.9rem !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.form-remember {
    margin-bottom: 1.5rem !important;
}

.form-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1e40af;
    margin: 16px 0;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--color-border, #e2e8f0);
    margin: 24px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* REGISTRATION — 3-Step Wizard                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.auth-card-register {
    max-width: 640px;
    padding: 2.5rem;
}

/* Progress bar */
.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-progress-bar {
    height: 4px;
    background: var(--grey-200, #e9ecef);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold, #f0a500), #f7c948);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 33%;
}

.wizard-steps-label {
    font-size: 0.8rem;
    color: var(--grey-600, #6c757d);
    text-align: center;
}

.wizard-steps-label span:first-child {
    font-weight: 600;
    color: var(--gold, #f0a500);
}

/* Steps show/hide */
.wizard-step {
    display: none;
}

.wizard-step-active {
    display: block;
    animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-step-heading {
    font-size: 18px;
    color: var(--color-primary, #0f1f3d);
    margin: 0 0 20px;
    text-align: center;
}

/* Account type cards (Step 1) */
.account-type-cards {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.account-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--grey-200, #e9ecef);
    border-radius: var(--radius-lg, 12px);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    background: var(--white, #fff);
}

.account-type-card:hover {
    border-color: var(--grey-400, #ced4da);
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}

.account-type-card:focus-visible {
    outline: 2px solid var(--navy, #0f1f3d);
    outline-offset: 2px;
}

.account-type-card-active {
    border-color: var(--gold, #f0a500) !important;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15), var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}

.account-type-card-active:hover {
    border-color: var(--gold, #f0a500);
}

.account-type-card-icon {
    color: var(--navy, #0f1f3d);
    flex-shrink: 0;
}

.account-type-card-active .account-type-card-icon {
    color: var(--gold, #f0a500);
}

.account-type-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-type-card-text strong {
    display: block;
    font-size: 1rem;
    color: var(--navy, #0f1f3d);
    margin-bottom: 0.15rem;
}

.account-type-card-text span {
    font-size: 0.82rem;
    color: var(--grey-600, #6c757d);
}

/* Wizard navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-200);
}

.btn-wizard-next,
.btn-wizard-submit {
    background: var(--color-gold, #f0a500);
    border: 1px solid var(--color-gold, #f0a500);
    color: var(--color-text, #1a1a2e);
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
    background: var(--color-gold-hover, #e5b228);
    border-color: var(--color-gold-hover, #e5b228);
}

.btn-wizard-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-wizard-back,
.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--grey-700);
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btn-wizard-back:hover,
.btn-outline:hover {
    border-color: #94a3b8;
    background: var(--off-white);
}

.wizard-arrow {
    display: inline-block;
    margin: 0 2px;
}

/* Password strength meter */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.password-strength-bar {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-fill {
    width: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.password-strength-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Password requirements checklist */
.password-requirements {
    margin-top: 8px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}
.password-requirements li {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.password-requirements li .req-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    transition: all 0.2s;
}
.password-requirements li.req-met {
    color: #16a34a;
}
.password-requirements li.req-met .req-icon {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
@media (max-width: 480px) {
    .password-requirements {
        grid-template-columns: 1fr;
    }
}

/* Password match indicator */
.password-confirm-wrapper {
    position: relative;
}

.password-match-indicator {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.match-yes {
    color: #22c55e;
}

.match-no {
    color: #ef4444;
}

/* ABN input */
.abn-input-wrapper {
    position: relative;
}

.abn-input-wrapper input {
    padding-right: 140px;
}

.abn-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abn-status-checking {
    color: var(--grey-500);
}

.abn-status-valid {
    color: #22c55e;
}

.abn-status-error {
    color: #ef4444;
}

/* Wizard errors */
.wizard-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: var(--radius, 8px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #991b1b;
}

.wizard-errors ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0;
}

.wizard-errors li {
    margin-bottom: 0.25rem;
}

.wizard-inline-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #991b1b;
}

.wizard-inline-errors ul {
    margin: 0 0 0 16px;
    padding: 0;
}

/* Type-specific fields section */
.wizard-type-fields {
    animation: wizardFadeIn 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* AUTH SPLIT — Two-Column Layout (Login & Register)                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

.auth-split {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: calc(100vh - 104px);
    background: var(--white);
}

.auth-split-brand {
    background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-split-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.03) 40px,
        rgba(255,255,255,0.03) 42px
    );
    pointer-events: none;
}

.auth-split-brand-inner {
    max-width: 360px;
}

.auth-brand-logo {
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.auth-brand-logo strong {
    color: var(--gold);
    font-weight: 900;
}

.auth-split-brand h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
}

.auth-split-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-brand-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-benefit svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-benefit strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.auth-benefit span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.auth-brand-stats {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.auth-brand-stats strong {
    color: #f0a500;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.auth-split-form {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-split-form-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-split-form-inner h1,
.auth-split-form h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-split-form .auth-subtitle {
    color: var(--grey-500);
    margin-bottom: 2rem;
    text-align: left;
}

/* Password eye toggle */
.password-input-wrapper {
    position: relative;
}
.password-input-wrapper input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
}
.password-toggle:hover {
    color: var(--grey-700);
}

/* Login divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.75rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-divider span {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* SSO button */
.btn-ayio-jobs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: #0f1f3d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}
.btn-ayio-jobs:hover {
    background: #162d5a;
    color: #fff;
}

/* Auth split responsive */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
    }
    .auth-split-brand {
        padding: 2rem;
        min-height: auto;
    }
    .auth-split-brand h2 {
        font-size: 1.35rem;
    }
    .auth-brand-benefits,
    .auth-benefits {
        display: none;
    }
    .auth-split-form,
    .auth-right {
        padding: 2rem 1.5rem;
    }
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .form-row-two,
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    .auth-split-brand,
    .auth-left {
        display: none;
    }
}

/* ─── New auth page elements ─── */
.auth-split {
    min-height: 100vh;
}
.auth-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    margin-bottom: 2rem;
}
.logo-ayio { color: #fff; font-weight: 900; }
.logo-sales { color: var(--gold); font-weight: 600; }
.auth-logo .logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: super;
    margin: 0 3px 0 2px;
    flex-shrink: 0;
}

.auth-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-social-proof {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
}

.proof-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--grey-500);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

/* Account type selector (new layout) */
.account-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.account-type-selector .account-type-card {
    padding: 16px 12px;
    text-align: center;
}

.account-type-selector .account-type-card input[type="radio"] {
    display: none;
}

.atc-icon {
    color: var(--grey-400);
    margin-bottom: 8px;
    transition: color 0.2s;
}
.account-type-card.active .atc-icon,
.account-type-card-active .atc-icon { color: var(--gold); }

.atc-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.atc-sub { font-size: 11px; color: var(--grey-500); margin-top: 2px; }

/* Password wrapper (new pattern) */
.input-password { position: relative; }
.input-password .form-control { padding-right: 48px; }
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
}
.password-toggle-btn:hover { color: var(--navy); }

/* Password strength */
.password-strength-wrap {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ABN lookup */
.btn-link {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    margin-left: 8px;
}
.btn-link:hover { text-decoration: underline; }

.abn-status-valid { color: #16a34a; font-weight: 600; }
.abn-status-error { color: #dc2626; }
.abn-status-checking { color: var(--grey-500); }

/* Auth footer links */
.auth-switch-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--grey-500);
}
.auth-switch-link a { color: var(--gold); font-weight: 600; }
.auth-switch-link a:hover { text-decoration: underline; }

.auth-secure {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Form row two (used in auth pages) */
.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.required { color: #ef4444; }

.extra-fields {
    border-top: 1px solid var(--grey-100);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Password match indicator */
.password-confirm-wrapper { position: relative; }
.password-match-indicator {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}
.match-yes { color: #16a34a; }
.match-no { color: #ef4444; }

/* Auth large button */
.auth-page .btn-lg,
.auth-page .btn-full.btn-primary {
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .account-type-selector {
        gap: 8px;
    }
    .account-type-selector .account-type-card {
        padding: 12px 8px;
    }
    .atc-label { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MICRO-INTERACTIONS & ANIMATIONS                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed,
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flash messages slide-in */
.flash-message {
    animation: slideInRight 0.3s ease-out;
}

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.flash-message.flash-dismissing {
    animation: flashSlideOut 0.25s ease-in forwards;
}

@keyframes flashSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-toast, 10000);
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    max-width: 400px;
}

.toast { display: flex; align-items: center; gap: 10px; }
.toast-icon-wrap { flex-shrink: 0; display: flex; align-items: center; }
.toast-icon { width: 18px; height: 18px; }
.toast-text { flex: 1; }
.toast-close {
    background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px;
    cursor: pointer; padding: 0 2px; line-height: 1; flex-shrink: 0;
}
.toast-close:hover { color: #fff; }
.toast-success { border-left: 4px solid #4caf50; }
.toast-error   { border-left: 4px solid #e53935; }
.toast-info    { border-left: 4px solid var(--brand-accent, #2563eb); }
.toast-warning { border-left: 4px solid #ff9800; }

.toast.toast-out {
    animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: var(--z-back-to-top, 9000);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--brand-primary);
    color: var(--brand-secondary);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete],
img:not([loading="lazy"]) {
    opacity: 1;
}

/* Smooth page transitions */
.page-content {
    animation: pageIn 0.25s ease-out;
}

/* ─── Page Transition ─── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-main {
    animation: pageIn 0.3s ease-out;
}

/* ─── Skeleton Loading Enhancement ─── */
.skeleton-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e5e5);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}
.skeleton-card .skeleton-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-200) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-card .skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-200) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin: 10px 16px;
}
.skeleton-card .skeleton-line:first-child {
    width: 75%;
    height: 16px;
    margin-top: 16px;
}
.skeleton-card .skeleton-line:nth-child(2) {
    width: 40%;
}
.skeleton-card .skeleton-line:last-child {
    width: 60%;
    margin-bottom: 16px;
}
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .site-main { animation: none; }
    .page-content { animation: none; }
    .skeleton-card .skeleton-image,
    .skeleton-card .skeleton-line { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE RESPONSIVE                                                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    .nav-inner {
        gap: 16px;
    }
    .nav-links {
        gap: 0;
    }
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    .nav-dropdown--mega {
        min-width: 560px;
    }
    .footer-upper {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 768px: Tablet portrait / mobile ── */
@media (max-width: 768px) {
    /* Hide desktop nav elements, show hamburger */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .topbar { display: none; }
    .nav-link--signin { display: none; }
    .nav-account-wrap { display: none; }
    .btn-post-listing { display: none; }

    .nav-inner { height: 56px; min-height: 56px; }

    .footer-upper {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col--connect { grid-column: 1 / -1; }

    .footer-trust { gap: 12px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .footer-bottom-links { justify-content: center; }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }

    .btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .btn-lg {
        padding: 12px 22px;
        font-size: 15px;
    }

    .page-section {
        padding: 48px 0;
    }

    /* Ecosystem cards mobile */
    .ecosystem-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Trade finance banner mobile */
    .trade-finance-banner {
        flex-direction: column;
        text-align: center;
    }

    /* Cross-links mobile */
    .cross-links-grid {
        grid-template-columns: 1fr;
    }

    /* Toast container mobile */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        max-width: 100%;
    }

    /* Flash messages mobile: full-width top bar */
    .flash-message {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        top: 70px;
    }
}

/* ── 480px: Small mobile ── */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .footer-upper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-brand { grid-column: auto; }
    .footer-col--connect { grid-column: auto; }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 6px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .site-footer {
        padding: 32px 0 0;
    }

    .footer-inner {
        padding: 0 16px;
    }
}

/* ─── Newsletter Signup Section ─── */
.newsletter-section {
    background: var(--brand-secondary);
    padding: 48px 0;
}

.newsletter-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 8px;
}

.newsletter-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    border-color: var(--brand-primary);
}

.newsletter-btn {
    padding: 12px 24px;
    white-space: nowrap;
    font-weight: 600;
}

.newsletter-msg {
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.newsletter-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* COOKIE CONSENT BANNER                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: #fff;
    z-index: var(--z-cookie-banner, 9999);
    box-shadow: 0 -4px 20px rgba(15,31,61,0.2);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
    flex: 1;
}
.cookie-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }
    .cookie-banner-text {
        font-size: 13px;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Breadcrumb (global) ─── */
.breadcrumb { padding: 12px 0 8px; font-size: 14px; margin-bottom: 20px; color: var(--grey-600); }
.breadcrumb a { color: #3b82f6; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { margin: 0 6px; color: #d1d5db; }
.bc-current { color: var(--grey-800); }
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0;
}
.breadcrumb-list li { display: flex; align-items: center; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE: TOUCH-FRIENDLY & iOS ZOOM PREVENTION                              */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure buttons meet minimum touch target (44px) */
.btn {
    min-height: 44px;
}

.btn-sm {
    min-height: 36px;
}

.btn-lg {
    min-height: 48px;
}

.btn-xs {
    min-height: 32px;
}

/* iOS zoom prevention: inputs/selects/textareas need 16px font on mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="search"],
    select,
    textarea,
    .form-control {
        font-size: 16px;
    }
}

/* Empty state styling enhancements */
.dash-empty h3 {
    margin-bottom: 8px;
    color: var(--brand-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE BOTTOM NAVIGATION BAR                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header, 1000);
    background: var(--navy, #0f1f3d);
    border-top: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 -4px 20px rgba(15,31,61,0.2);
    transition: transform 0.3s ease;
}

.mobile-bottom-nav.nav-hidden {
    transform: translateY(100%);
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    gap: 3px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}

.mobile-bottom-nav-item:hover {
    text-decoration: none;
    color: #fff;
}

.mobile-bottom-nav-item.active {
    color: var(--color-gold, var(--brand-primary));
}

.mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.mobile-bottom-nav-item .nav-label {
    display: block;
    white-space: nowrap;
}

/* Post button (center) gets accent styling */
.mobile-bottom-nav-item.nav-post-btn {
    color: #ffffff;
}

.mobile-bottom-nav-item.nav-post-btn .nav-post-icon {
    width: 40px;
    height: 40px;
    background: var(--color-gold, var(--brand-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -14px;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
}

.mobile-bottom-nav-item.nav-post-btn .nav-post-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-text, #1a1a2e);
}

.mobile-bottom-nav-item.nav-post-btn .nav-label {
    color: var(--color-gold, var(--brand-primary));
    font-weight: 600;
}

/* Badge on nav items */
.mobile-bottom-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Add padding so content doesn't hide behind nav */
    body {
        padding-bottom: 64px;
    }

    /* Adjust cookie/consent banner position above bottom nav */
    .cookie-banner,
    .ayio-consent-banner {
        bottom: 60px;
    }

    /* Ensure consent banner body padding accounts for bottom nav */
    body.has-consent-banner {
        padding-bottom: 140px;
    }

    /* Adjust toast container above bottom nav */
    .toast-container {
        bottom: 76px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FLOATING ACTION BUTTON (FAB) — Mobile only, search/browse pages           */
/* ═══════════════════════════════════════════════════════════════════════════ */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-gold, var(--brand-primary));
    color: var(--color-text, #1a1a2e);
    border: none;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.mobile-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
    text-decoration: none;
    color: var(--color-text, #1a1a2e);
}

.mobile-fab svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    body.page-search .mobile-fab,
    body.page-category .mobile-fab,
    body.page-home .mobile-fab {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FULL-SCREEN MODALS ON MOBILE                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Generic modal patterns */
    .modal-card,
    .report-modal,
    .offer-modal {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .modal-overlay,
    .report-modal-overlay,
    .offer-modal-overlay {
        align-items: stretch !important;
        padding: 0 !important;
    }

    /* Ensure close button is always visible */
    .modal-close,
    .report-modal-close,
    .offer-modal-close,
    .modal-header button,
    .report-modal-header button {
        position: sticky;
        top: 0;
        z-index: 10;
        min-width: 44px;
        min-height: 44px;
    }

    /* Modal body scrolls */
    .modal-body,
    .report-modal .form-group:last-of-type {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Form Validation States
   ═══════════════════════════════════════════════════════════════════════════ */

/* Valid field */
.field-valid input,
.field-valid select,
.field-valid textarea {
    border-color: #22c55e;
}

.field-valid .validation-check {
    color: #22c55e;
    font-size: 14px;
    margin-left: 6px;
    font-weight: 700;
}

/* Invalid field */
.field-invalid input,
.field-invalid select,
.field-invalid textarea {
    border-color: #ef4444;
}

.field-invalid .validation-error {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Shake animation for invalid fields on submit */
@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

.field-shake {
    animation: field-shake 0.3s ease-in-out;
}

/* ABN lookup result boxes */
.abn-result {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.abn-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.abn-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.abn-loading {
    background: var(--off-white);
    border: 1px solid var(--grey-200);
    color: var(--grey-500);
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* PUBLIC USER PROFILE                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

.profile-header {
    background: linear-gradient(145deg, var(--navy-dark, #0a1628) 0%, var(--navy, #0f1f3d) 100%);
    color: #fff;
    padding: 48px 0 40px;
    margin-bottom: 32px;
}

.profile-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar-wrap {
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
}

.profile-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold, #f0a500);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px;
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-gold, #f0a500);
    color: var(--color-primary, #0f1f3d);
}

.profile-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-verify-badge svg {
    color: #22c55e;
}

.profile-verify-badge-abn svg {
    color: var(--color-gold, #f0a500);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.85;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-meta-item svg {
    opacity: 0.7;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.profile-stars .star {
    font-size: 18px;
}

.star-filled {
    color: var(--color-gold, #f0a500);
}

.star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.profile-rating-text {
    font-size: 14px;
    opacity: 0.9;
}

/* Contact bar */
.profile-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: var(--color-white, #fff);
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
}

.profile-contact-item:hover {
    color: var(--color-gold, #f0a500);
    text-decoration: none;
}

.profile-contact-item svg {
    color: var(--color-primary, #0f1f3d);
    opacity: 0.6;
}

/* Bio */
.profile-bio {
    background: var(--color-white, #fff);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text, #1a1a2e);
}

/* Stats bar */
.profile-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px;
    background: var(--color-white, #fff);
    border-radius: 8px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary, #0f1f3d);
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 13px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile sections */
.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary, #0f1f3d);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border, #e2e8f0);
}

/* Reviews */
.profile-reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-review-card {
    background: var(--color-white, #fff);
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-review-stars .star {
    font-size: 16px;
}

.profile-review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text, #1a1a2e);
}

.profile-review-date {
    font-size: 13px;
    color: #94a3b8;
}

.profile-review-verified {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
}

.profile-review-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey-700);
}

.profile-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.profile-review-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--grey-700);
}

.profile-review-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--off-white);
    border-left: 3px solid var(--color-gold, #f0a500);
    border-radius: 0 6px 6px 0;
    font-size: 14px;
}

.profile-review-reply p {
    margin-top: 4px;
    color: var(--grey-700);
}

.profile-report-section {
    padding-top: 16px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.profile-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--off-white, #f7f8fc);
    border-radius: 12px;
    border: 1px dashed var(--grey-200, #e2e5ed);
}
.profile-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.6;
}
.profile-empty-state p {
    color: var(--grey-600);
    font-size: 0.95rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PROFILE EDIT — PHOTO UPLOAD, TOGGLES, CHAR COUNTER                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Photo upload */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--brand-primary, #f0a500);
    transition: box-shadow 0.2s;
}

.profile-photo-preview:hover {
    box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.18);
}

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

.profile-photo-preview .profile-avatar-initials {
    width: 100%;
    height: 100%;
    font-size: 36px;
}

.profile-photo-dropzone {
    flex: 1;
    min-width: 200px;
    border: 2px dashed var(--color-border, #e2e8f0);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.profile-photo-dropzone:hover,
.profile-photo-dropzone.dropzone-active,
.profile-photo-dropzone.dragover {
    border-color: var(--brand-primary, #f0a500);
    background: #fffbeb;
}

.profile-photo-dropzone p {
    font-size: 14px;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 4px;
}

.profile-photo-dropzone small {
    font-size: 12px;
    color: #94a3b8;
}

/* Character counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.char-counter-over {
    color: #ef4444;
    font-weight: 600;
}

/* Toggle switches */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    cursor: pointer;
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label strong {
    font-size: 14px;
    color: var(--color-text, #1a1a2e);
}

.toggle-label small {
    font-size: 13px;
    color: #94a3b8;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background 0.25s;
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-gold, #f0a500);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

/* Button link style */
.btn-link {
    background: none;
    border: none;
    color: var(--color-gold, #f0a500);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--color-gold-hover, #e5b228);
}

/* Danger outline button */
.btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: #fff;
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PROFILE RESPONSIVE                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .profile-header {
        padding: 32px 0 28px;
    }

    .profile-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-avatar-initials {
        font-size: 36px;
    }

    .profile-name {
        font-size: 22px;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-rating {
        justify-content: center;
    }

    .profile-stats-bar {
        gap: 24px;
        padding: 20px 16px;
    }

    .profile-stat-value {
        font-size: 22px;
    }

    .profile-contact-bar {
        flex-direction: column;
        gap: 12px;
    }

    .profile-photo-upload {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo-dropzone {
        width: 100%;
    }
}

/* ─── Global Mobile Fixes ─── */
@media (max-width: 768px) {
    .container { padding-left:1rem; padding-right:1rem; }
    .btn, button { min-height:44px; min-width:44px; }
    .card-grid-4 { grid-template-columns:1fr 1fr; }
    .card-grid-3 { grid-template-columns:1fr; }
    .hero-search { flex-direction:column; }
    .hero-search-select, .hero-search-input { width:100%; }
    .hero-ctas { flex-wrap:wrap; }
    .hero-ctas .btn { flex:1 1 45%; }
    .stats-bar-grid { grid-template-columns:repeat(2, 1fr); gap:0.75rem; }
    body { overflow-x:hidden; }
}
@media (max-width: 480px) {
    .card-grid-4, .card-grid-3 { grid-template-columns:1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TESTIMONIALS                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */
.home-testimonials { background: var(--brand-secondary, #0f1f3d); padding: 64px 0; }
.home-testimonials .section-title { color: #fff; text-align: center; margin-bottom: 40px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; border: 1px solid rgba(255,255,255,0.1); }
.testimonial-stars { color: var(--brand-primary, #f0a500); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-quote { color: rgba(255,255,255,0.9); line-height: 1.6; font-style: italic; margin-bottom: 16px; }
.testimonial-author strong { color: #fff; display: block; }
.testimonial-author span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TRUST STRIP                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */
.trust-strip { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px; background: #f0f7ff; border-radius: 10px; margin-top: 16px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--brand-secondary, #0f1f3d); }
.trust-icon { font-size: 1rem; }

/* (Footer trust styles are in the main FOOTER section above) */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HTML SITEMAP                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 24px; }
.sitemap-section h3 { color: var(--brand-secondary, #0f1f3d); font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-primary, #f0a500); }
.sitemap-section ul { list-style: none; padding: 0; }
.sitemap-section li { margin-bottom: 8px; }
.sitemap-section a { color: #444; text-decoration: none; font-size: 0.95rem; }
.sitemap-section a:hover { color: var(--brand-primary, #f0a500); }

@media (max-width: 768px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .trust-strip { justify-content: center; text-align: center; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sitemap-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* UTILITY CLASSES                                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--grey-600) !important; }
.bg-navy { background: var(--navy) !important; color: var(--white); }
.bg-gold { background: var(--gold) !important; }
.bg-grey { background: var(--grey-50) !important; }

/* Card component (utility) */
.card-elevated { box-shadow: var(--shadow-md); }
.card-elevated:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Page Hero Banner */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: var(--sp-3xl) 0;
    margin-bottom: var(--sp-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(240,165,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.75rem; position: relative; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; }
@media (max-width: 768px) { .page-hero { padding: var(--sp-2xl) var(--sp-md); } .page-hero h1 { font-size: 1.75rem; } }

/* Responsive grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

/* Alert styles */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; border-left: 4px solid; }
.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* Auth success card (email verification sent, password reset sent) */
.auth-success-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.auth-success-card .auth-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #16a34a;
}
.auth-success-card h3 {
    font-size: 1.1rem;
    color: #166534;
    margin: 0 0 0.5rem;
}
.auth-success-card p {
    font-size: 0.9rem;
    color: #15803d;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.auth-success-card .spam-hint {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #d1fae5;
}
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }

/* Badge styles live in listing-card.css (single source of truth) */

/* Divider */
.divider { border: none; border-top: 1px solid var(--grey-200); margin: 2rem 0; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FORM INPUT — Shared input class for calculators & general forms             */
/* ═══════════════════════════════════════════════════════════════════════════ */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--grey-300, #d1d5e0);
    border-radius: var(--radius, 10px);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--grey-900, #1a202c);
    background: var(--white, #fff);
    transition: border-color var(--transition, 0.2s ease), box-shadow var(--transition, 0.2s ease);
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 4px rgba(240,165,0,0.12);
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}

/* ─── Search History Dropdown ─── */
.search-history-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100; margin-top: 2px; overflow: hidden;
}
.search-history-label {
    padding: 8px 12px 4px; font-size: 11px; color: var(--grey-400);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.search-history-item {
    padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--grey-800);
}
.search-history-item:hover { background: #f3f4f6; }

/* ─── Quick Bid Buttons ─── */
.quick-bid-buttons { display: flex; gap: 6px; margin-bottom: 10px; }
.quick-bid-btn { font-size: 13px; padding: 4px 10px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MICRO-INTERACTIONS — Card Hovers, Animations, Utilities                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Card hover effects */
/* .listing-card hover is defined in listing-card.css (authoritative) — not duplicated here */
.listing-card-sm, .blog-preview-card, .dealer-card, .testimonial-card, .category-tile {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.listing-card-sm:hover, .blog-preview-card:hover, .dealer-card:hover, .testimonial-card:hover, .category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Gold glow utility */
.gold-glow {
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.15);
}

/* Toast / flash slide-in from right */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Auction countdown pulse when under 1hr */
.card-sm-countdown.urgent {
    animation: urgentPulse 1.5s ease-in-out infinite;
}
@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DARK SECTION UTILITY                                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-dark { color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark a { color: var(--gold); }

/* Mobile nav CTA button */
@media (max-width: 768px) {
    .main-nav .btn-primary {
        margin-top: auto;
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: var(--radius);
        background: var(--gold);
        color: var(--navy);
        font-weight: 700;
    }
}

/* (Footer social link styles are in the main FOOTER section above) */

/* ─── Live Dot (auction indicator) ─── */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 6px;
    vertical-align: middle;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.4);
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ─── Ultra-narrow mobile (375px and below) ─── */
@media (max-width: 400px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }

    .page-header {
        padding: 16px 0;
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .dash-header h1 {
        font-size: 1.25rem;
    }

    .footer-trust-badge {
        font-size: 11px;
    }
}

/* ─── Print Styles ─── */
@media print {
    body { background: var(--white); color: #000; font-size: 12pt; }
    .topbar, .site-header, .site-footer, .footer, .footer-newsletter-band,
    .mobile-bottom-nav, .mobile-fab, .mobile-menu, .mobile-menu-backdrop, .search-overlay,
    .flash-messages, .cookie-consent, .cookie-banner,
    .dash-sidebar, .breadcrumbs,
    .btn, .back-link, .share-bar, .watchlist-btn, .contact-seller-bar,
    .listing-boost, .listing-actions, .similar-listings,
    .toast-container, .chat-widget,
    #mobileFilterToggle, .search-filters, .pagination { display: none !important; }
    .container { max-width: 100%; padding: 0; margin: 0; }
    .dashboard { display: block; }
    .dash-content { padding: 0; }
    a { color: #000; text-decoration: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    a[href^="/"]::after, a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
    img { max-width: 100% !important; page-break-inside: avoid; }
    h1, h2, h3 { page-break-after: avoid; }
    .listing-gallery { max-height: 400px; overflow: hidden; }
    .dash-table { width: 100%; border-collapse: collapse; }
    .dash-table th, .dash-table td { border: 1px solid #ccc; padding: 6px 8px; }
}

/* Focus indicators for keyboard navigation */
:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE RESPONSIVENESS AUDIT FIXES (375px iPhone SE + 768px iPad)          */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Lock body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 2. Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
}

/* 3. Ensure all images respect container bounds */
img, video, iframe, embed, object {
    max-width: 100%;
}

/* 4. Tables: prevent layout breakage */
table {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ── 768px iPad fixes ── */
@media (max-width: 768px) {
    /* Mobile menu: ensure full-screen coverage */
    .mobile-menu {
        width: 320px;
        max-width: 85vw;
    }

    /* Search overlay: full width on mobile */
    .search-overlay-form {
        padding: 10px 12px;
    }

    /* Container: consistent padding */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Ensure no horizontal scroll from full-bleed elements */
    .hero,
    .newsletter-section,
    .page-hero,
    .site-footer {
        overflow-x: hidden;
    }

    /* Testimonial grid: stack on tablet */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Sitemap: 2 columns on tablet */
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ── 375px iPhone SE fixes ── */
@media (max-width: 375px) {
    /* Smaller container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Nav inner: consistent mobile height */
    .nav-inner {
        height: 56px;
        min-height: 56px;
        gap: 8px;
    }

    /* Site logo: smaller on tiny screens */
    .site-logo {
        font-size: 20px;
    }
    .site-logo .logo-dot {
        width: 7px;
        height: 7px;
        margin: 0 2px 0 1px;
    }

    /* Hamburger: ensure touch target */
    .nav-hamburger {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    /* Mobile menu: full width on smallest screens */
    .mobile-menu {
        width: 100vw;
        max-width: 100vw;
    }

    /* Mobile bottom nav: compact */
    .mobile-bottom-nav-item {
        font-size: 9px;
        padding: 6px 2px 5px;
    }

    .mobile-bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    /* Headings: readable at 375px */
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 15px; }

    /* Buttons: full width where appropriate */
    .btn-lg {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Footer: single column */
    .footer-upper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-col--connect {
        grid-column: auto;
    }

    /* Footer bottom: stack */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 0;
    }

    /* Newsletter: stack */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .newsletter-section {
        padding: 32px 0;
    }

    /* Cookie banner: compact */
    .cookie-banner-inner {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        text-align: center;
    }

    .cookie-banner-text {
        font-size: 12px;
    }

    /* Auth pages: full width forms */
    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-split-form,
    .auth-right {
        padding: 1.5rem 1rem;
    }

    /* Account type selector: 3 cols still but tighter */
    .account-type-selector {
        gap: 6px;
    }

    .account-type-selector .account-type-card {
        padding: 10px 6px;
    }

    .atc-label {
        font-size: 10px;
    }

    .atc-sub {
        font-size: 9px;
    }

    /* Form rows: single column */
    .form-row,
    .form-row-two,
    .form-row-2col {
        grid-template-columns: 1fr;
    }

    /* Workspace toggle: stack if needed */
    .ws-toggle {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* Ecosystem grid: single column */
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    /* Cross-links grid */
    .cross-links-grid {
        grid-template-columns: 1fr;
    }

    /* Toast: full width on small screens */
    .toast-container {
        left: 8px;
        right: 8px;
        bottom: 72px;
    }

    .toast {
        max-width: 100%;
    }

    /* Flash message: compact */
    .flash-message {
        right: 8px;
        left: 8px;
        top: 60px;
        padding: 0.75rem 1rem;
        font-size: 13px;
    }

    /* Page hero: tighter */
    .page-hero {
        padding: 2rem 1rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    /* Sitemap: single column */
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    /* Table responsive: ensure no overflow */
    .table-responsive {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VISUAL POLISH & CONSISTENCY LAYER
   (merged from polish.css)

   Normalises visual inconsistencies across all pages:
   cards, buttons, forms, tables, badges, empty states, loading states,
   transitions, spacing, and typography.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CARDS — Unified border-radius, shadow, padding, hover ── */

/* Base card token — all cards should inherit this pattern */
.card,
.auction-card,
.dash-card,
.stat-card,
.quick-action,
.feature-item,
.pricing-card,
.sell-option-card,
.tip-item,
.benefit-item,
.contact-info-card,
.insights-stat-card,
.upgrade-item,
.bid-history-card,
.auction-bid-card,
.review-section,
.listing-form .form-section,
.dash-info-card,
.dash-chart-container,
.faq-item {
    border-radius: var(--radius-lg, 16px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Consistent resting shadow for elevated cards */
.card,
.auction-card,
.dash-card,
.pricing-card,
.sell-option-card,
.feature-item,
.insights-stat-card {
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,31,61,0.06));
}

/* Consistent hover lift — subtle scale removed, translateY used instead */
.card:hover,
.auction-card:hover,
.dash-card:hover,
.pricing-card:hover,
.sell-option-card:hover,
.feature-item:hover,
.insights-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(15,31,61,0.12);
}

/* Stat cards, quick actions — lighter hover (no lift, just shadow bump) */
.stat-card:hover,
.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow, 0 2px 8px rgba(15,31,61,0.08));
}

/* ── 2. BUTTONS — Consistent sizing, radii, transitions, disabled state ── */

/* Ensure all button variants share the same border-radius */
.btn,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-outline,
.btn-success,
.btn-danger,
.btn--primary,
.btn--secondary,
.btn--danger,
.btn--success,
.btn-ghost {
    border-radius: var(--radius, 10px);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* btn-sm override */
.btn-sm, .btn--sm {
    border-radius: var(--radius-sm, 6px);
}

/* btn-lg override */
.btn-lg, .btn--lg {
    border-radius: var(--radius, 10px);
}

/* Consistent disabled state */
.btn:disabled,
.btn.disabled,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Primary button gold consistency — ensure all .btn-primary use same gold */
.btn-primary,
.btn--primary {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
    border-color: var(--gold, #f0a500);
}

.btn-primary:hover,
.btn--primary:hover {
    background: var(--gold-hover, #d99400);
    color: var(--navy, #0f1f3d);
}

/* Secondary outline consistency */
.btn-outline,
.btn--secondary {
    background: transparent;
    color: var(--navy, #0f1f3d);
    border: 2px solid var(--navy, #0f1f3d);
}

.btn-outline:hover,
.btn--secondary:hover {
    background: rgba(15,31,61,0.04);
    color: var(--navy, #0f1f3d);
    border-color: var(--navy, #0f1f3d);
}

/* Danger button consistency */
.btn-danger,
.btn--danger {
    background: var(--color-danger, #ef4444);
    color: #fff;
    border-color: var(--color-danger, #ef4444);
}

.btn-danger:hover,
.btn--danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* Button loading spinner for dark-bg buttons */
.btn-primary.btn-loading::after,
.btn--primary.btn-loading::after,
.btn-accent.btn-loading::after {
    border-color: rgba(15,31,61,0.2);
    border-top-color: var(--navy, #0f1f3d);
}

/* ── 3. FORMS — Consistent height, border, focus ring, labels, placeholders ── */

/* Unified input sizing */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea,
.form-control,
.form-select,
.form-textarea {
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-300, #d1d5e0);
    border-radius: var(--radius, 10px);
    font-size: 0.9375rem;
    color: var(--grey-900, #1a202c);
    background: var(--white, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

/* Consistent focus ring */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
    outline: none;
}

/* Consistent placeholder colour */
::placeholder {
    color: var(--grey-400, #b0b7c8);
    opacity: 1;
}

/* Consistent labels */
.form-group label,
.form-label,
.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grey-800, #2d3748);
    margin-bottom: 6px;
}

/* Consistent form group spacing */
.form-group {
    margin-bottom: 1.25rem;
}

/* ── 4. TABLES — Consistent header, rows, hover, border ── */

.table th,
.dash-table th,
.bid-history-table th,
.insights-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--grey-200, #e2e5ed);
    background: var(--grey-50, #f7f8fc);
    white-space: nowrap;
}

.table td,
.dash-table td,
.bid-history-table td,
.insights-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--grey-100, #eef0f5);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--grey-800, #2d3748);
}

/* Last row — no bottom border */
.table tbody tr:last-child td,
.dash-table tbody tr:last-child td,
.bid-history-table tbody tr:last-child td,
.insights-table tbody tr:last-child td {
    border-bottom: none;
}

/* Consistent row hover */
.table tbody tr:hover,
.dash-table tbody tr:hover,
.bid-history-table tbody tr:hover,
.insights-table tbody tr:hover {
    background: var(--grey-50, #f7f8fc);
}

/* Alternating row stripe */
.dash-table tbody tr:nth-child(even),
.insights-table tbody tr:nth-child(even) {
    background: rgba(247,248,252,0.5);
}

/* ── 5. BADGES — Unified sizing, padding, border-radius, font ── */

/* Normalise all badge types to a single visual pattern.
   Card-specific badges (.badge-featured, .badge-auction, etc.)
   live in listing-card.css — single source of truth. */
.badge,
.status-badge,
.auction-badge,
.badge-pending,
.badge-active,
.badge-accepted,
.badge-declined,
.badge-rejected,
.badge-expired,
.badge-countered,
.badge-sold,
.badge-inactive,
.badge-paid,
.badge-failed,
.badge-success,
.badge-warning,
.badge-danger,
.badge-info,
.badge--success,
.badge--warning,
.badge--danger,
.badge--info,
.badge-tender,
.badge-sell-to-dealer,
.badge-dealer,
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full, 9999px);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Status badge colour consistency */
.status-active, .status-approved, .badge-active, .badge-accepted, .badge-paid {
    background: #dcfce7;
    color: #166534;
}

.status-pending, .status-review, .badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-sold, .status-completed, .badge-sold {
    background: #dbeafe;
    color: #1e40af;
}

.status-expired, .status-rejected, .status-declined,
.badge-declined, .badge-rejected, .badge-failed, .badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-draft, .status-inactive, .badge-inactive {
    background: var(--grey-100, #eef0f5);
    color: var(--grey-600, #6b7385);
}

/* ── 6. EMPTY STATES — Consistent pattern for all empty grids/lists ── */

/* Universal empty state pattern */
.dash-empty,
.search-empty-state,
.no-results {
    text-align: center;
    padding: 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--grey-50, #f7f8fc);
    border: 2px dashed var(--grey-200, #e2e5ed);
    border-radius: var(--radius-lg, 16px);
}

.dash-empty h3,
.search-empty-state h3,
.no-results h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin: 0 0 0.5rem;
}

.dash-empty p,
.search-empty-state p,
.no-results p {
    font-size: 0.9375rem;
    color: var(--grey-600, #6b7385);
    margin: 0 0 1.25rem;
    max-width: 400px;
    line-height: 1.6;
}

/* Empty state icon container */
.dash-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy, #0f1f3d);
    color: var(--gold, #f0a500);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ── 7. LOADING STATES — Spinners, button loading, skeleton cards ── */

/* Generic spinner utility */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--grey-200, #e2e5ed);
    border-top-color: var(--gold, #f0a500);
    border-radius: 50%;
    animation: spin-anim 0.6s linear infinite;
}

.spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner--lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

@keyframes spin-anim {
    to { transform: rotate(360deg); }
}

/* Centered spinner block */
.spinner-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Button loading — dark-bg consistency */
.btn-secondary.btn-loading::after,
.btn--secondary.btn-loading::after {
    border-color: rgba(15,31,61,0.2);
    border-top-color: var(--navy, #0f1f3d);
}

.btn-danger.btn-loading::after,
.btn--danger.btn-loading::after {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

/* ── 8. TRANSITIONS — Smooth interactions everywhere ── */

/* Ensure all interactive elements have smooth transitions */
a,
button,
.btn,
input,
select,
textarea,
.nav-link,
.nav-action-btn,
.nav-icon-link,
.dash-nav-item,
.dash-tab,
.auction-tab,
.filter-checkbox,
.filter-radio {
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Links — smooth colour change */
a {
    transition: color 0.2s ease;
}

/* Smooth focus ring transitions */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── 9. SPACING — Consistent section padding, card gaps, form groups ── */

/* Section spacing */
.page-section,
.page-content {
    padding-top: var(--sp-2xl, 48px);
    padding-bottom: var(--sp-2xl, 48px);
}

/* Card grid gap consistency */
.listing-grid,
.auction-grid,
.dash-card-grid,
.feature-grid,
.pricing-grid,
.sell-options-grid,
.tips-grid,
.benefits-list,
.insights-stats-grid,
.upgrade-grid {
    gap: var(--sp-lg, 24px);
}

/* Stats grid — tighter for KPI cards */
.stats-grid {
    gap: var(--sp-md, 16px);
}

/* Dashboard section consistent bottom margin */
.dash-section {
    margin-bottom: var(--sp-xl, 32px);
}

/* ── 10. TYPOGRAPHY — Consistent page titles, headings, body, labels ── */

/* Page titles (h1 in page headers) */
.page-header h1,
.dash-header h1,
.page-content h1 {
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Section headings */
.dash-section-header h2,
.section-title-center {
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    line-height: 1.3;
}

/* Body text — consistent line-height */
p,
.page-content p,
.dash-description {
    line-height: 1.6;
}

/* Small text / labels */
.stat-label,
.filter-label,
.form-text,
.form-help,
.photo-count,
.photo-reorder-hint,
.field-hint,
.form-hint,
.form-help-text {
    font-size: 0.8125rem;
    color: var(--grey-500, #8892a4);
    line-height: 1.4;
}

/* ── 11. ERROR PAGES — Consistent premium styling ── */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
    text-align: center;
}

.error-page-inner {
    max-width: 560px;
}

.error-icon {
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--gold, #f0a500);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    letter-spacing: -0.04em;
}

.error-heading {
    font-size: 1.75rem;
    color: var(--navy, #0f1f3d);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.error-message {
    font-size: 1rem;
    color: var(--grey-600, #6b7385);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.error-search-input {
    flex: 1;
    min-height: 44px;
    padding: 12px 16px;
    border: 2px solid var(--grey-200, #e2e5ed);
    border-radius: var(--radius, 10px);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-search-input:focus {
    outline: none;
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

.error-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── 12. MISCELLANEOUS FIXES ── */

/* Dashboard tabs — consistent underline weight */
.dash-tab,
.auction-tab {
    border-bottom-width: 3px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.dash-tab-active {
    color: var(--gold, #f0a500);
    border-bottom-color: var(--gold, #f0a500);
}

.auction-tab-active {
    color: var(--navy, #0f1f3d);
    border-bottom-color: var(--gold, #f0a500);
}

/* Pagination — consistent sizing */
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius, 10px);
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pagination .pagination-current {
    background: var(--navy, #0f1f3d);
    color: #fff;
    border-color: var(--navy, #0f1f3d);
    font-weight: 700;
}

/* Flash messages — ensure consistent border-radius */
.flash-message {
    border-radius: var(--radius, 10px);
}

/* Conversation list — consistent border-radius */
.conversation-list,
.message-preview-list {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}

/* Filter sidebar — consistent with card system */
.search-sidebar,
.search-filters,
.filter-sidebar {
    border-radius: var(--radius-lg, 16px);
}

/* Category/listing type cards — consistent border-radius */
.category-card,
.listing-type-card {
    border-radius: var(--radius, 10px);
}

/* Photo items — consistent border-radius */
.photo-item {
    border-radius: var(--radius, 10px);
}

/* Review sections — match form section radius */
.review-section {
    border-radius: var(--radius-lg, 16px);
}

/* Dashboard welcome banner — ensure consistent radius */
.dash-welcome {
    border-radius: var(--radius-lg, 16px);
}

/* Breadcrumb bar — no gap/overlap with gallery */
.listing-breadcrumb + .gallery-wrap {
    margin-top: 0;
}

/* ── 13. RESPONSIVE POLISH ── */

@media (max-width: 600px) {
    /* Error pages: compact */
    .error-code {
        font-size: 4rem;
    }

    .error-heading {
        font-size: 1.35rem;
    }

    .error-search {
        flex-direction: column;
    }

    .error-links {
        flex-direction: column;
        align-items: stretch;
    }

    .error-links .btn {
        width: 100%;
        text-align: center;
    }

    /* Empty states: compact */
    .dash-empty,
    .search-empty-state,
    .no-results {
        padding: 2.5rem 1.25rem;
    }

    .dash-empty h3,
    .search-empty-state h3,
    .no-results h2 {
        font-size: 1.1rem;
    }

    /* Page headings */
    .page-header h1,
    .dash-header h1 {
        font-size: 1.35rem;
    }
}

@media (max-width: 375px) {
    .error-code {
        font-size: 3.5rem;
    }

    .error-heading {
        font-size: 1.15rem;
    }

    .error-message {
        font-size: 0.875rem;
    }

    .page-header h1,
    .dash-header h1 {
        font-size: 1.2rem;
    }
}

/* ── 14. REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .auction-card:hover,
    .dash-card:hover,
    .pricing-card:hover,
    .sell-option-card:hover,
    .feature-item:hover,
    .stat-card:hover,
    .quick-action:hover,
    .insights-stat-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .spinner,
    .spinner--sm,
    .spinner--lg {
        animation: none;
    }
}

/* ── Cookie Consent Banner ── */
.ayio-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-secondary, #0f1f3d);
    color: #fff;
    z-index: var(--z-consent, 10000);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.ayio-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ayio-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
    flex: 1;
}
.ayio-consent-text a {
    color: #93c5fd;
    text-decoration: underline;
}
.ayio-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
body.has-consent-banner {
    padding-bottom: 80px;
}
@media (max-width: 600px) {
    .ayio-consent-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }
    .ayio-consent-text { font-size: 13px; }
    .ayio-consent-actions {
        width: 100%;
        justify-content: center;
    }
    body.has-consent-banner {
        padding-bottom: 160px;
    }
}

/* ── Footer utility classes ── */
.footer-heading--newsletter {
    margin-top: 20px;
}
.footer-newsletter-status {
    display: none;
}

/* ==================== Tooltip ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: var(--z-dropdown, 100);
}
[data-tooltip]:hover::after { opacity: 1; }

/* © 2026 H.W. & H. Investments Pty Ltd. All rights reserved. */
/* ═══════════════════════════════════════════════════
   LISTING CARD — Single source of truth
   Every card style is here. NO other file should
   define .listing-card* or card badge selectors.
   ═══════════════════════════════════════════════════ */

/* ─── Card Container ─── */
.listing-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #f0a500;
}

/* Featured card — gold border accent */
.listing-card--featured {
    border-color: rgba(240, 165, 0, 0.35);
    box-shadow: 0 1px 3px rgba(15, 31, 61, 0.06),
                0 0 0 1px rgba(240, 165, 0, 0.15);
}
.listing-card--featured:hover {
    border-color: #f0a500;
    box-shadow: 0 12px 32px rgba(240, 165, 0, 0.18);
}

/* Clearance card */
.listing-card--clearance {
    border-color: #dc2626;
}

/* Finance sale card */
.listing-card--finance-sale {
    border-color: #7c3aed;
}
.listing-card--finance-sale:hover {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

/* ─── Card Link (fills entire card) ─── */
.listing-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ─── Image Area ─── */
.listing-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f2f5;
}
.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.listing-card:hover .listing-card__image img {
    transform: scale(1.03);
}

/* ─── Badges ─── */
.card-badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #0f1f3d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.card-badge-auction {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #f0a500;
    color: #0f1f3d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}
.card-badge-auction--ended {
    background: #6b7280;
    color: #fff;
}
.card-featured-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    width: 110px;
    padding: 3px 0;
    background: #f0a500;
    color: #0f1f3d;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.card-condition-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.9);
    color: #374151;
    backdrop-filter: blur(4px);
}
.condition--new { background: #dcfce7; color: #166534; }
.condition--demo { background: #dbeafe; color: #1e40af; }
.condition--parts { background: #f3f4f6; color: #6b7280; }
.condition--writeoff { background: #ffedd5; color: #c2410c; }
.condition--salvage { background: #fee2e2; color: #991b1b; }
.condition--engine { background: #fef3c7; color: #92400e; }
.condition--repaired { background: #dbeafe; color: #1e40af; }
.card-bid-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(15,31,61,0.8);
    color: #fff;
}

/* ─── Legacy badge classes (used in non-card contexts too) ─── */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.badge-featured {
    background: #0f1f3d;
    color: #f0a500;
    box-shadow: 0 2px 8px rgba(240,165,0,0.3);
}
.badge-new {
    background: #16a34a;
    color: #fff;
}
.badge-auction {
    background: #f0a500;
    color: #0f1f3d;
}
.badge-auction-ended {
    background: #6b7280;
    color: #fff;
}
.badge-clearance {
    background: #dc2626;
    color: #fff;
}
.badge-finance-sale {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.badge-work-sourcing {
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
}
.badge-lender {
    background: rgba(240,165,0,0.1);
    color: #b37700;
}

/* ─── Card Body ─── */
.listing-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 12px;
}

/* ─── Price ─── */
.listing-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.listing-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0a500;
    margin: 0;
    line-height: 1.2;
}
.listing-card__gst {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}
.listing-card__seller-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}
.listing-card__seller-badge--dealer {
    background: #dbeafe;
    color: #1e40af;
}
.listing-card__seller-badge--verified {
    background: #d1fae5;
    color: #065f46;
}
.listing-card__seller-badge--lender {
    background: #fef3c7;
    color: #92400e;
}

/* ─── Title ─── */
.listing-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    max-height: 2.7em;
}

/* ─── Meta Row ─── */
.listing-card__meta-row {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card__dot {
    margin: 0 4px;
    color: #d1d5db;
}

/* ─── Legacy specs row (kept for backward compat) ─── */
.listing-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}
.listing-card__specs span + span::before {
    content: '\00B7';
    margin-right: 6px;
    color: #d1d5db;
    font-weight: 700;
}
.listing-card__specs-full {
    display: none;
}

/* ─── Footer ─── */
.listing-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e4e7ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #6b7280;
}
.listing-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
}
.listing-card__location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.listing-card__time {
    font-size: 0.75rem;
    color: #9ca3af;
}
.listing-card__distance {
    font-size: 0.75rem;
    color: #f0a500;
    font-weight: 600;
}

/* ─── Countdown (auction cards) ─── */
.card-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,31,61,0.85);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}
.card-countdown.countdown-urgent {
    background: rgba(220,38,38,0.9);
}
.card-countdown.countdown-ended {
    background: rgba(107,114,128,0.85);
}

/* ─── Watchlist Heart ─── */
.card-watchlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.card-watchlist:hover {
    background: #fff;
    transform: scale(1.1);
}
.card-watchlist svg {
    width: 18px;
    height: 18px;
}
.card-watchlist--active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Watchlist moves down when featured ribbon present */
.listing-card--featured .card-watchlist {
    top: 40px;
}

/* ─── Legacy hidden elements ─── */
.listing-card__badges,
.listing-card__badge,
.listing-card__category,
.listing-card__featured-ribbon {
    display: none;
}
.listing-card--featured::after,
.listing-card--featured::before {
    display: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .listing-card__image { height: 180px; }
    .listing-card__title { font-size: 0.875rem; min-height: 2.7em; max-height: 2.7em; }
    .listing-card__price { font-size: 1.1rem; }
    .listing-card__body { padding: 12px 14px 10px; }
    .card-badge-category,
    .card-badge-auction { font-size: 0.5625rem; padding: 2px 8px; }
    .card-featured-ribbon { font-size: 0.5625rem; top: 12px; right: -30px; width: 100px; }
    .card-condition-badge,
    .card-bid-count { font-size: 0.5625rem; padding: 2px 6px; }
}

@media (max-width: 375px) {
    .listing-card { border-radius: 12px; }
    .listing-card__price { font-size: 1rem; }
    .listing-card__title { font-size: 13.5px; min-height: 2.7em; }
    .listing-card__footer { font-size: 11px; gap: 3px 8px; }
    .listing-card__body { padding: 10px 12px 12px; }
    .card-badge { font-size: 10px; padding: 3px 8px; top: 8px; left: 8px; }
    .card-featured-ribbon { width: 100px; font-size: 0.5rem; top: 8px; right: -32px; padding: 3px 0; }
    .card-badge-auction { font-size: 10px; padding: 3px 8px; }
    .card-bid-count { font-size: 9px; padding: 2px 6px; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    .listing-card { transition: none; }
    .listing-card:hover { transform: none; }
    .listing-card__image img { transition: none; }
    .listing-card:hover .listing-card__image img { transform: none; }
    .card-watchlist { transition: none; }
}
/* polish.css merged into style.css — this file kept for backward compatibility */
