:root {
    --accent-color: #0047FF;
    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F7FA;
    --text-primary: #0F1923;
    --text-muted:   #6B82A0;
    --border-color: #DDE3EC;
}

/* ── iOS Overflow Lock ─────────────────────────────────────── */
html {
    max-width: 100%;
}
body {
    max-width: 100%;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}
/* ============================================================
   SCMist Public Site — public.css
   4 themes: light | dark | warm | slate
   Theme saved in localStorage key: scmist_theme
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/assets/fonts/syne-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('/assets/fonts/syne-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('/assets/fonts/syne-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('/assets/fonts/syne-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    font-display: block;
    src: url('/assets/fonts/syne-800.ttf') format('truetype');
}

/* ── Theme Variables ──────────────────────────────────────── */

/* LIGHT — Clean, professional, corporate */
:root,
[data-theme="light"] {
    --bg:             #FFFFFF;
    --bg-subtle:      #F5F7FA;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F0F4FF;
    --surface:        #EEF2F7;
    --surface-2:      #E2E8F0;
    --border:         #DDE3EC;
    --border-strong:  #B8C4D4;

    --text:           #0F1923;
    --text-2:         #3D5166;
    --text-3:         #6B82A0;
    --text-inv:       #FFFFFF;

    --accent:         #0047FF;
    --accent-hover:   #0035CC;
    --accent-subtle:  #EEF2FF;
    --accent-text:    #0047FF;

    --success:        #059669;
    --success-subtle: #ECFDF5;
    --warning:        #D97706;
    --warning-subtle: #FFFBEB;
    --danger:         #DC2626;
    --danger-subtle:  #FEF2F2;

    --nav-bg:         rgba(255,255,255,0.92);
    --nav-border:     rgba(0,71,255,0.08);
    --nav-shadow:     0 1px 24px rgba(0,0,0,0.06);

    --card-shadow:    0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 32px rgba(0,71,255,0.12), 0 2px 8px rgba(0,0,0,0.06);

    --badge-bg:       #EEF2FF;
    --badge-text:     #0047FF;

    --tag-bg:         #F0F4FF;
    --tag-text:       #3D5166;

    --gradient-hero:  linear-gradient(135deg, #EEF2FF 0%, #F5F7FA 50%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #0047FF, #0099FF);
    --gradient-card:  linear-gradient(145deg, #FFFFFF, #F5F7FA);

    --input-bg:       #F5F7FA;
    --input-border:   #DDE3EC;
    --input-focus:    #0047FF;

    --footer-bg:      #0F1923;
    --footer-text:    #94A8BF;
    --footer-heading: #FFFFFF;
    --footer-border:  #1E2D3D;

    --toggle-bg:      #E2E8F0;
    --toggle-knob:    #FFFFFF;
    --theme-icon:     '☀️';
    /* Aliases */
    --accent-color: #0047FF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --text-primary: #0F1923;
    --text-muted: #6B82A0;
    --border-color: #DDE3EC;
}

/* DARK — Bold, modern, tech-forward */
[data-theme="dark"] {
    --bg:             #080E1A;
    --bg-subtle:      #0D1526;
    --bg-card:        #111827;
    --bg-card-hover:  #162035;
    --surface:        #1A2540;
    --surface-2:      #243050;
    --border:         #1E2D47;
    --border-strong:  #2A3E5E;

    --text:           #E8F0FF;
    --text-2:         #94AACF;
    --text-3:         #5C7AA0;
    --text-inv:       #080E1A;

    --accent:         #00C8FF;
    --accent-hover:   #00A8D8;
    --accent-subtle:  #001F2E;
    --accent-text:    #00C8FF;

    --success:        #10B981;
    --success-subtle: #022C22;
    --warning:        #F59E0B;
    --warning-subtle: #2D1B00;
    --danger:         #EF4444;
    --danger-subtle:  #2D0808;

    --nav-bg:         rgba(8,14,26,0.92);
    --nav-border:     rgba(0,200,255,0.08);
    --nav-shadow:     0 1px 24px rgba(0,0,0,0.4);

    --card-shadow:    0 2px 12px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 8px 32px rgba(0,200,255,0.15), 0 2px 8px rgba(0,0,0,0.3);

    --badge-bg:       #001F2E;
    --badge-text:     #00C8FF;

    --tag-bg:         #1A2540;
    --tag-text:       #94AACF;

    --gradient-hero:  linear-gradient(135deg, #001220 0%, #080E1A 50%, #0D1526 100%);
    --gradient-accent: linear-gradient(135deg, #0047FF, #00C8FF);
    --gradient-card:  linear-gradient(145deg, #111827, #0D1526);

    --input-bg:       #0D1526;
    --input-border:   #1E2D47;
    --input-focus:    #00C8FF;

    --footer-bg:      #040810;
    --footer-text:    #5C7AA0;
    --footer-heading: #E8F0FF;
    --footer-border:  #0D1526;

    --toggle-bg:      #1A2540;
    --toggle-knob:    #00C8FF;
    --theme-icon:     '🌙';
    /* Aliases */
    --accent-color: #2979FF;
    --bg-primary: #080E1A;
    --bg-secondary: #0D1526;
    --text-primary: #E8EDF5;
    --text-muted: #6B82A0;
    --border-color: #1A2540;
}

/* WARM — Friendly, approachable, amber/cream */
[data-theme="warm"] {
    --bg:             #FDF8F0;
    --bg-subtle:      #FAF3E7;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #FEF9F0;
    --surface:        #F5ECD8;
    --surface-2:      #EDE0C8;
    --border:         #E5D5B8;
    --border-strong:  #CDB898;

    --text:           #2C1810;
    --text-2:         #6B3D28;
    --text-3:         #9C6B50;
    --text-inv:       #FFFFFF;

    --accent:         #C2590A;
    --accent-hover:   #A04808;
    --accent-subtle:  #FEF3E0;
    --accent-text:    #C2590A;

    --success:        #16803C;
    --success-subtle: #F0FDF4;
    --warning:        #B45309;
    --warning-subtle: #FFFBEB;
    --danger:         #C81E1E;
    --danger-subtle:  #FEF2F2;

    --nav-bg:         rgba(253,248,240,0.94);
    --nav-border:     rgba(194,89,10,0.1);
    --nav-shadow:     0 1px 24px rgba(100,50,10,0.08);

    --card-shadow:    0 2px 12px rgba(100,50,10,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 32px rgba(194,89,10,0.15), 0 2px 8px rgba(0,0,0,0.06);

    --badge-bg:       #FEF3E0;
    --badge-text:     #C2590A;

    --tag-bg:         #F5ECD8;
    --tag-text:       #6B3D28;

    --gradient-hero:  linear-gradient(135deg, #FEF3E0 0%, #FDF8F0 50%, #FAF3E7 100%);
    --gradient-accent: linear-gradient(135deg, #C2590A, #E8820A);
    --gradient-card:  linear-gradient(145deg, #FFFFFF, #FAF3E7);

    --input-bg:       #FAF3E7;
    --input-border:   #E5D5B8;
    --input-focus:    #C2590A;

    --footer-bg:      #2C1810;
    --footer-text:    #9C6B50;
    --footer-heading: #FDF8F0;
    --footer-border:  #3D2218;

    --toggle-bg:      #F5ECD8;
    --toggle-knob:    #C2590A;
    --theme-icon:     '🌅';
    /* Aliases */
    --accent-color: #C2590A;
    --bg-primary: #FDF6EC;
    --bg-secondary: #F5ECD8;
    --text-primary: #2C1A0E;
    --text-muted: #8A7060;
    --border-color: #E8D8C0;
}

/* SLATE — Luxury, refined, cool blue-grey */
[data-theme="slate"] {
    --bg:             #0F1620;
    --bg-subtle:      #141E2C;
    --bg-card:        #1A2332;
    --bg-card-hover:  #1F2B3D;
    --surface:        #243040;
    --surface-2:      #2E3C50;
    --border:         #2A3850;
    --border-strong:  #384A66;

    --text:           #CBD5E8;
    --text-2:         #8898B0;
    --text-3:         #5A6E88;
    --text-inv:       #0F1620;

    --accent:         #38BDF8;
    --accent-hover:   #0EA5E9;
    --accent-subtle:  #0C2340;
    --accent-text:    #38BDF8;

    --success:        #34D399;
    --success-subtle: #022C22;
    --warning:        #FBBF24;
    --warning-subtle: #2D1B00;
    --danger:         #F87171;
    --danger-subtle:  #2D0808;

    --nav-bg:         rgba(15,22,32,0.94);
    --nav-border:     rgba(56,189,248,0.08);
    --nav-shadow:     0 1px 24px rgba(0,0,0,0.4);

    --card-shadow:    0 2px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
    --card-shadow-hover: 0 8px 32px rgba(56,189,248,0.12), 0 2px 8px rgba(0,0,0,0.25);

    --badge-bg:       #0C2340;
    --badge-text:     #38BDF8;

    --tag-bg:         #243040;
    --tag-text:       #8898B0;

    --gradient-hero:  linear-gradient(135deg, #0C1828 0%, #0F1620 50%, #141E2C 100%);
    --gradient-accent: linear-gradient(135deg, #0EA5E9, #38BDF8);
    --gradient-card:  linear-gradient(145deg, #1A2332, #141E2C);

    --input-bg:       #141E2C;
    --input-border:   #2A3850;
    --input-focus:    #38BDF8;

    --footer-bg:      #080E18;
    --footer-text:    #5A6E88;
    --footer-heading: #CBD5E8;
    --footer-border:  #141E2C;

    --toggle-bg:      #243040;
    --toggle-knob:    #38BDF8;
    --theme-icon:     '🌊';
    /* Aliases */
    --accent-color: #38BDF8;
    --bg-primary: #0F1923;
    --bg-secondary: #162032;
    --text-primary: #E2EAF4;
    --text-muted: #6B82A0;
    --border-color: #243040;
}


/* TURKUAZ — Turkish teal, vibrant & fresh */
[data-theme="turkuaz"] {
    --bg:             #F0FAFE;
    --bg-subtle:      #E4F6FC;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #E0F7FB;
    --surface:        #CCF0F8;
    --surface-2:      #B0E6F4;
    --border:         #90D8EE;
    --border-strong:  #60C4E0;

    --text:           #042A36;
    --text-2:         #0A5068;
    --text-3:         #2A8090;
    --text-inv:       #FFFFFF;

    --accent:         #00A8C8;
    --accent-hover:   #0090AA;
    --accent-subtle:  #CCF0F8;
    --accent-text:    #00A8C8;

    --success:        #059669;
    --success-subtle: #ECFDF5;
    --warning:        #D97706;
    --warning-subtle: #FFFBEB;
    --danger:         #DC2626;
    --danger-subtle:  #FEF2F2;

    --nav-bg:         rgba(240,250,254,0.94);
    --nav-border:     rgba(0,168,200,0.12);
    --nav-shadow:     0 1px 24px rgba(0,100,140,0.08);

    --card-shadow:    0 2px 12px rgba(0,100,140,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 32px rgba(0,168,200,0.18), 0 2px 8px rgba(0,0,0,0.06);

    --badge-bg:       #CCF0F8;
    --badge-text:     #00A8C8;
    --tag-bg:         #E4F6FC;
    --tag-text:       #0A5068;

    --gradient-hero:  linear-gradient(135deg, #CCF0F8 0%, #F0FAFE 50%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #00A8C8, #00D4FF);
    --gradient-card:  linear-gradient(145deg, #FFFFFF, #E4F6FC);

    --input-bg:       #E4F6FC;
    --input-border:   #90D8EE;
    --input-focus:    #00A8C8;

    --footer-bg:      #042A36;
    --footer-text:    #2A8090;
    --footer-heading: #FFFFFF;
    --footer-border:  #0A3D50;

    --toggle-bg:      #CCF0F8;
    --toggle-knob:    #00A8C8;
    --theme-icon:     '💎';
    /* Aliases */
    --accent-color: #00A8C8;
    --bg-primary: #F0FAFE;
    --bg-secondary: #E4F6FC;
    --text-primary: #042A36;
    --text-muted:   #2A8090;
    --border-color: #90D8EE;
}

/* BURGUNDY — Deep, sophisticated, wine red */
[data-theme="burgundy"] {
    --bg:             #FDF5F6;
    --bg-subtle:      #FAF0F1;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #FEF2F3;
    --surface:        #F5E0E2;
    --surface-2:      #EDD0D3;
    --border:         #E0B8BC;
    --border-strong:  #C89098;

    --text:           #2A0810;
    --text-2:         #6B1E28;
    --text-3:         #9C5060;
    --text-inv:       #FFFFFF;

    --accent:         #8B1A2F;
    --accent-hover:   #701525;
    --accent-subtle:  #F8E8EA;
    --accent-text:    #8B1A2F;

    --success:        #059669;
    --success-subtle: #ECFDF5;
    --warning:        #D97706;
    --warning-subtle: #FFFBEB;
    --danger:         #DC2626;
    --danger-subtle:  #FEF2F2;

    --nav-bg:         rgba(253,245,246,0.94);
    --nav-border:     rgba(139,26,47,0.1);
    --nav-shadow:     0 1px 24px rgba(80,10,20,0.08);

    --card-shadow:    0 2px 12px rgba(80,10,20,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 32px rgba(139,26,47,0.15), 0 2px 8px rgba(0,0,0,0.06);

    --badge-bg:       #F8E8EA;
    --badge-text:     #8B1A2F;
    --tag-bg:         #F5E0E2;
    --tag-text:       #6B1E28;

    --gradient-hero:  linear-gradient(135deg, #F8E8EA 0%, #FDF5F6 50%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #8B1A2F, #C0304A);
    --gradient-card:  linear-gradient(145deg, #FFFFFF, #FAF0F1);

    --input-bg:       #FAF0F1;
    --input-border:   #E0B8BC;
    --input-focus:    #8B1A2F;

    --footer-bg:      #2A0810;
    --footer-text:    #9C5060;
    --footer-heading: #FFFFFF;
    --footer-border:  #3D1018;

    --toggle-bg:      #F5E0E2;
    --toggle-knob:    #8B1A2F;
    --theme-icon:     '🪷';
    /* Aliases */
    --accent-color: #8B1A2F;
    --bg-primary: #FDF5F6;
    --bg-secondary: #FAF0F1;
    --text-primary: #2A0810;
    --text-muted:   #9C5060;
    --border-color: #E0B8BC;
}

/* IRISH — Deep forest green, natural & bold */
[data-theme="irish"] {
    --bg:             #F2FAF5;
    --bg-subtle:      #E6F5EC;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #E0F4E8;
    --surface:        #C8EAD4;
    --surface-2:      #AEDEBE;
    --border:         #88CCA0;
    --border-strong:  #5CB580;

    --text:           #062010;
    --text-2:         #0F4020;
    --text-3:         #2A7045;
    --text-inv:       #FFFFFF;

    --accent:         #169B62;
    --accent-hover:   #117A4E;
    --accent-subtle:  #C8EAD4;
    --accent-text:    #169B62;

    --success:        #059669;
    --success-subtle: #ECFDF5;
    --warning:        #D97706;
    --warning-subtle: #FFFBEB;
    --danger:         #DC2626;
    --danger-subtle:  #FEF2F2;

    --nav-bg:         rgba(242,250,245,0.94);
    --nav-border:     rgba(22,155,98,0.1);
    --nav-shadow:     0 1px 24px rgba(6,50,20,0.08);

    --card-shadow:    0 2px 12px rgba(6,50,20,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 32px rgba(22,155,98,0.18), 0 2px 8px rgba(0,0,0,0.06);

    --badge-bg:       #C8EAD4;
    --badge-text:     #169B62;
    --tag-bg:         #E6F5EC;
    --tag-text:       #0F4020;

    --gradient-hero:  linear-gradient(135deg, #C8EAD4 0%, #F2FAF5 50%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #169B62, #22C880);
    --gradient-card:  linear-gradient(145deg, #FFFFFF, #E6F5EC);

    --input-bg:       #E6F5EC;
    --input-border:   #88CCA0;
    --input-focus:    #169B62;

    --footer-bg:      #062010;
    --footer-text:    #2A7045;
    --footer-heading: #FFFFFF;
    --footer-border:  #0F3018;

    --toggle-bg:      #C8EAD4;
    --toggle-knob:    #169B62;
    --theme-icon:     '🍀';
    /* Aliases */
    --accent-color: #169B62;
    --bg-primary: #F2FAF5;
    --bg-secondary: #E6F5EC;
    --text-primary: #062010;
    --text-muted:   #2A7045;
    --border-color: #88CCA0;
}
/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-2); line-height: 1.7; }
small { font-size: 0.85rem; color: var(--text-3); }

.display { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 1.2rem; color: var(--text-2); line-height: 1.7; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.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; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── Navigation ───────────────────────────────────────────── */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pub-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.pub-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.pub-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

.pub-logo-text span {
    color: var(--accent);
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.pub-nav-links a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.pub-nav-links a:hover,
.pub-nav-links a.active {
    color: var(--text);
    background: var(--surface);
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border-radius: 8px;
    padding: 0.3rem;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.theme-btn:hover { background: var(--surface-2); }
.theme-btn.active { border-color: var(--accent); background: var(--accent-subtle); }

/* Mobile menu toggle */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .15s;
}
.nav-mobile-toggle:hover { background: var(--surface); }
.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
    transform-origin: center;
}
.nav-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0,71,255,0.25);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,71,255,0.35);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
}

.btn-accent {
    background: var(--accent-subtle);
    color: var(--accent-text);
    border-color: transparent;
}
.btn-accent:hover {
    background: var(--accent);
    color: #fff;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; border-radius: 6px; }
.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card-body { padding: 1.75rem; }
.card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.card-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

/* ── Badges & Tags ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    letter-spacing: 0.02em;
}

.badge-success { background: var(--success-subtle); color: var(--success); }
.badge-warning { background: var(--warning-subtle); color: var(--warning); }
.badge-danger  { background: var(--danger-subtle);  color: var(--danger); }
.badge-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-2);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 5px;
    background: var(--tag-bg);
    color: var(--tag-text);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-focus) 15%, transparent);
}

.form-control::placeholder { color: var(--text-3); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B82A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 0.3rem;
}

.form-error {
    font-size: 0.82rem;
    color: var(--danger);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    margin-top: 2px;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-info    { background: var(--accent-subtle);  color: var(--accent-text); border-color: var(--accent); }
.alert-success { background: var(--success-subtle); color: var(--success);     border-color: var(--success); }
.alert-warning { background: var(--warning-subtle); color: var(--warning);     border-color: var(--warning); }
.alert-danger  { background: var(--danger-subtle);  color: var(--danger);      border-color: var(--danger); }

/* ── Section Headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: var(--gradient-hero);
    padding: 6rem 0 6rem;
    position: relative;
    overflow: visible;
}

.hero::before {
    overflow: hidden;
}

.hero h1 {
    line-height: 1.25;
    padding-bottom: 0.2em;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.03);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.pricing-tagline {
    font-size: 0.88rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-price .amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.pricing-price .currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-2);
    vertical-align: super;
    font-family: 'Syne', sans-serif;
}

.pricing-price .period {
    font-size: 0.88rem;
    color: var(--text-3);
}

.pricing-saving {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-2);
    padding: 0.4rem 0;
}

.pricing-features li .check {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-features li .cross {
    color: var(--text-3);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-features li.muted { opacity: 0.5; }

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

/* ── Spinner / Loading ────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 14px; }
.w-full { width: 100%; }

/* ── Footer ───────────────────────────────────────────────── */
.pub-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 0;
    margin-top: auto;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2rem;
}

.pub-footer-brand .pub-logo-text {
    color: var(--footer-heading);
}

.pub-footer-brand p {
    color: var(--footer-text);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.pub-footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--footer-heading);
    margin-bottom: 1.25rem;
}

.pub-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pub-footer-links a {
    font-size: 0.9rem;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-footer-links a:hover { color: var(--footer-heading); }

.pub-footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--footer-heading);
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Page transition ──────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeup {
    animation: fadeUp 0.5s ease forwards;
}

.animate-fadeup:nth-child(1) { animation-delay: 0.05s; }
.animate-fadeup:nth-child(2) { animation-delay: 0.1s;  }
.animate-fadeup:nth-child(3) { animation-delay: 0.15s; }
.animate-fadeup:nth-child(4) { animation-delay: 0.2s;  }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pub-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pub-nav-links { display: none; }
    .pub-nav-controls { display: none; }
    .nav-mobile-toggle { display: flex; }
    .pub-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pub-footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding: 4rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .pricing-card.featured { transform: scale(1); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .btn-lg { padding: 0.75rem 1.5rem; }
}

/* Compare table highlight column */
.compare-table th.highlight {
    background: var(--accent);
    color: #fff;
}
.compare-table td.highlight {
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    color: var(--text);
    font-weight: 500;
}
.compare-table tr:last-child td.highlight {
    border-bottom: 2px solid var(--accent);
}
.compare-table .price-row th.highlight {
    background: var(--accent);
    color: #fff;
    border-top: 3px solid var(--accent);
}

/* Fix compare table overflow */
.compare-table {
    min-width: 700px;
}

/* ── Mobile Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    /* Fix 1 — Hide theme switcher on mobile navbar, show in hamburger */
    .theme-switcher { display: none; }
    .mobile-theme-li { display: block !important; }
    .nav-mobile-toggle { display: flex !important; }
    .pub-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--nav-border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: .25rem;
    }
    .mobile-theme-row { display: flex; gap: .5rem; padding: .75rem 1.5rem; border-top: 1px solid var(--border-color); }
    .pub-nav-links.open { display: flex; }
    .pub-nav-inner { position: relative; }

    /* Fix 2 — Trade ticker card width on mobile */
    .tb-card { min-width: 160px; max-width: 200px; }
    .tb-card-title { font-size: .75rem; }

    /* Fix 3 — Browse list stacks vertically on mobile */
    .container [style*="grid-template-columns:220px"] ,
    .container [style*="grid-template-columns: 220px"] {
        display: block !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .tb-wall { border-radius: 10px; margin-left: 0; margin-right: 0; }
    .tb-track-outer { max-width: 100vw; }
}




/* ============================================================
   SCMist Chat 26i — Missing UI Classes
   Appended to existing public.css — do not remove above styles
   ============================================================ */

/* ── Browse pages (companies, catalog, events, articles, trade) ── */
.browse-page { padding: 2rem 0 4rem; }
.browse-header { margin-bottom: 1.5rem; }
.browse-title { font-size: 2.5rem; font-weight: 800; margin: 0 0 .5rem; line-height: 1.1; }
.browse-subtitle { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* ── Chip navigation bar ── */
.chip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}
.chip-bar-sub { margin-top: -.25rem; }
.chip-bar-l3  { margin-top: -.25rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.chip:hover { background: var(--border-color); }
.chip-active { font-weight: 600; }
.chip-sm { font-size: .78rem; padding: .25rem .7rem; }
.chip-count {
    background: var(--border-color);
    border-radius: 999px;
    font-size: .7rem;
    padding: 0 .4rem;
}

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-bottom: 1rem;
}
.filter-search {
    flex: 1;
    min-width: 160px;
    padding: .45rem .75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: .9rem;
}
.filter-search:focus { outline: none; border-color: var(--accent-color, #2563eb); }
.filter-select {
    padding: .45rem .75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: .9rem;
    cursor: pointer;
}
.filter-cas { max-width: 160px; }
.results-count { color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* ── Company browse grid & cards ── */
.companies-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.co-browse-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color, #2563eb);
    border-radius: 8px;
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow .15s, border-color .15s;
}
.co-browse-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.co-browse-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.co-browse-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-browse-body { flex: 1; min-width: 0; }
.co-browse-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
.co-browse-name { font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; }
.co-browse-tagline { font-size: .85rem; color: var(--text-muted); margin: 0 0 .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-browse-meta { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Logo initials ── */
.logo-initials {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}
.logo-xs { width: 28px; height: 28px; font-size: .7rem; border-radius: 4px; }
.logo-sm { width: 36px; height: 36px; font-size: .8rem; border-radius: 6px; }
.logo-lg { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 12px; }

/* ── Meta tags & badges ── */
.meta-tag {
    font-size: .75rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--border-color);
    color: var(--text-muted);
}
.badge-verified {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}
.badge-spotlight {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #fef9c3;
    color: #854d0e;
    font-weight: 600;
}
.badge-role, .badge-featured {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}
.badge-upcoming { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #f0fdf4; color: #166534; font-weight: 600; }
.badge-online   { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.badge-free     { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #f0fdf4; color: #15803d; font-weight: 600; }
.badge-paid     { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #fef3c7; color: #92400e; font-weight: 600; }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.page-btn {
    padding: .45rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s;
}
.page-btn:hover { background: var(--border-color); }
.page-info { font-size: .875rem; color: var(--text-muted); }

/* ── Product browse grid & cards ── */
.tb-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px,100%), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.product-browse-card {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: box-shadow .15s;
}
.product-browse-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.product-browse-header { margin-bottom: .2rem; }
.product-browse-name { font-size: .975rem; font-weight: 700; margin: 0; }
.product-browse-cas  { font-size: .8rem; color: var(--text-muted); margin: 0; }
.product-browse-grade { font-size: .8rem; color: var(--text-muted); margin: 0; }
.product-browse-desc { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.product-browse-supplier {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .5rem;
    font-size: .8rem;
    color: var(--text-muted);
}
.supplier-mini-logo { width: 20px; height: 20px; border-radius: 3px; object-fit: contain; }

/* ── Product type badges ── */
.product-type-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 4px;
}
.product-type-chemical    { background: #eff6ff; color: #1d4ed8; }
.product-type-finished_good { background: #f0fdf4; color: #166534; }
.product-type-equipment   { background: #fef3c7; color: #92400e; }
.product-type-service     { background: #fdf4ff; color: #7e22ce; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb-back { display: inline-block; font-size: .875rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1rem; }
.breadcrumb-back:hover { color: var(--text-primary); }

/* ── Auth pages ── */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo a { text-decoration: none; }
.auth-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 .4rem; text-align: center; }
.auth-subtitle { color: var(--text-muted); text-align: center; margin: 0 0 1.5rem; font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    margin-bottom: .5rem;
}
.auth-alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.auth-alt { text-align: center; font-size: .875rem; color: var(--text-muted); margin-top: 1.25rem; }
.auth-link { color: var(--accent-color, #2563eb); text-decoration: none; font-weight: 500; }
.auth-body { font-size: .9rem; line-height: 1.6; color: var(--text-muted); text-align: center; }
.auth-icon { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.auth-icon-success { color: #16a34a; }
.auth-icon-warning { color: #d97706; }
.auth-icon-error   { color: #dc2626; }

/* ── Form elements ── */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text-primary); }
.form-label-row { display: flex; justify-content: space-between; align-items: center; }
.form-input {
    padding: .55rem .8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: .9rem;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--accent-color, #2563eb); }
.form-required { color: #dc2626; }
.form-link-sm  { font-size: .8rem; color: var(--accent-color, #2563eb); text-decoration: none; }
.form-inline   { flex-direction: row; align-items: center; }
.form-checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.btn-full { width: 100%; justify-content: center; }

/* ── Company profile page ── */
.co-header-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
}
.co-header-logo { flex-shrink: 0; }
.co-header-logo img { width: 72px; height: 72px; border-radius: 10px; object-fit: contain; }
.co-header-info { flex: 1; }
.co-header-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.co-header-name { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3rem; }
.co-header-tagline { color: var(--text-muted); margin: 0 0 .5rem; }
.co-header-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--text-muted); }
.co-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.co-tab {
    padding: .65rem 1.1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.co-tab:hover { color: var(--text-primary); }
.co-tab-active { color: var(--accent-color, #2563eb); border-bottom-color: var(--accent-color, #2563eb); font-weight: 600; }
.co-tab-content { min-height: 200px; }
.co-about { margin-bottom: 1.5rem; }
.co-esg { padding: 1rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 1.5rem; }
.co-sidebar { position: sticky; top: 80px; }
.co-sidebar-card, .prod-sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.sidebar-card-title { font-size: .875rem; font-weight: 700; margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.sidebar-address { font-size: .875rem; color: var(--text-muted); }
.sidebar-link { color: var(--accent-color, #2563eb); text-decoration: none; font-size: .875rem; }
.phone-gated { font-size: .875rem; color: var(--text-muted); }
.gate-hint { font-size: .8rem; color: var(--text-muted); }
.gate-inline {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.gate-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}
.lock-icon { font-size: 1.5rem; }
.section-subhead { font-size: 1.1rem; font-weight: 700; margin: 0 0 .75rem; }

/* ── Team grid ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px,100%),1fr)); gap: 1rem; }
.team-card { text-align: center; padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); }
.team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto .5rem; display: block; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; margin: 0 auto .5rem; }
.team-name  { font-size: .9rem; font-weight: 600; margin: 0 0 .2rem; }
.team-title { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* ── Docs & certs lists ── */
.docs-list, .certs-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-row, .cert-row { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--border-color); border-radius: 6px; background: var(--card-bg); font-size: .875rem; flex-wrap: wrap; }
.doc-type-badge { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: var(--border-color); font-weight: 600; }
.doc-title, .cert-name { flex: 1; font-weight: 500; }
.cert-issuer, .cert-validity { font-size: .8rem; color: var(--text-muted); }
.doc-download-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Reviews ── */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.review-card { padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.review-stars { color: #f59e0b; font-size: 1rem; }
.review-date  { font-size: .8rem; color: var(--text-muted); }
.review-text  { font-size: .9rem; line-height: 1.6; margin: 0 0 .4rem; }
.review-author { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* ── Similar / related widgets ── */
.co-similar, .prod-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.similar-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px,100%),1fr)); gap: .75rem; }
.similar-card {
    padding: .85rem 1rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color, #2563eb);
    border-radius: 6px;
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .85rem;
    transition: box-shadow .15s;
}
.similar-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.similar-logo { width: 32px; height: 32px; margin-bottom: .3rem; }
.similar-logo img { width: 100%; height: 100%; border-radius: 4px; object-fit: contain; }
.similar-name    { font-weight: 600; font-size: .875rem; }
.similar-country { font-size: .75rem; color: var(--text-muted); }

/* ── Catalog product detail ── */
.prod-header { margin-bottom: 1.5rem; }
.prod-title  { font-size: 1.8rem; font-weight: 800; margin: .5rem 0; }
.prod-cas    { font-size: .9rem; color: var(--text-muted); margin: 0; }
.prod-section { margin-bottom: 2rem; }
.prod-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border-color); }
.prod-grade-badge { font-size: .75rem; padding: .2rem .6rem; border-radius: 4px; background: var(--border-color); font-weight: 600; }
.prod-header-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.info-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.info-table th, .info-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border-color); text-align: left; }
.info-table th { width: 40%; font-weight: 600; color: var(--text-muted); background: var(--card-bg); }
.info-table td { color: var(--text-primary); }
.supplier-link-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .75rem; border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none; color: var(--text-primary); margin-bottom: .75rem; }
.supplier-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.supplier-name { font-size: .875rem; font-weight: 600; text-align: center; }
.products-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px,100%),1fr)); gap: .5rem; margin-bottom: .75rem; }
.product-mini-card { padding: .65rem .85rem; border: 1px solid var(--border-color); border-radius: 6px; background: var(--card-bg); text-decoration: none; color: var(--text-primary); font-size: .85rem; }

/* ── Trade board detail ── */
.trade-ticker-wall { margin-bottom: 1.5rem; overflow: hidden; border-radius: 8px; }
.trade-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%),1fr)); gap: 1rem; margin-bottom: 2rem; }
.trade-post-card { padding: 1.1rem 1.25rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); }
.trade-post-sell { border-left: 4px solid #3b82f6; }
.trade-post-buy  { border-left: 4px solid #22c55e; }
.trade-post-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.trade-post-name   { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.trade-post-details { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }
.trade-post-details p { margin: .2rem 0; }
.trade-post-country { font-size: .8rem; color: var(--text-muted); }
.trade-post-gated { text-align: center; padding: 1rem; color: var(--text-muted); font-size: .875rem; }
.tb-type-badge { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .04em; }
.tb-sell { background: #dbeafe; color: #1d4ed8; }
.tb-buy  { background: #dcfce7; color: #166534; }
.post-detail-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 2rem; }
.post-detail-header { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.post-detail-title   { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; }
.post-detail-subtitle { color: var(--text-muted); margin: 0 0 1rem; }
.post-expires { font-size: .8rem; color: var(--text-muted); }
.post-supplier { font-size: .875rem; }

/* ── Events ── */
.events-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%),1fr)); gap: 1rem; margin-bottom: 2rem; }
.event-browse-card { border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); overflow: hidden; }
.event-card-cover img { width: 100%; height: 160px; object-fit: cover; display: block; }
.event-card-body  { padding: 1.1rem 1.25rem; }
.event-card-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.event-card-title    { font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; }
.event-card-subtitle { font-size: .875rem; color: var(--text-muted); margin: 0 0 .5rem; }
.event-card-meta { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.event-detail-cover img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.event-detail-meta { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; padding: 1rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; margin: 1rem 0; }
.event-detail-body { font-size: .95rem; line-height: 1.7; }

/* ── Articles ── */
.articles-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%),1fr)); gap: 1rem; margin-bottom: 2rem; }
.article-browse-card { border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); overflow: hidden; text-decoration: none; color: var(--text-primary); display: flex; flex-direction: column; transition: box-shadow .15s; }
.article-browse-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.article-browse-img { position: relative; }
.article-browse-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.article-browse-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.article-browse-title { font-size: 1rem; font-weight: 700; margin: 0; }
.article-browse-excerpt { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.article-browse-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; font-size: .8rem; color: var(--text-muted); }
.article-author { display: flex; align-items: center; gap: .4rem; }
.author-mini-logo { width: 20px; height: 20px; border-radius: 3px; object-fit: contain; }
.article-date { font-size: .8rem; color: var(--text-muted); }
.article-read-more { font-size: .8rem; color: var(--accent-color, #2563eb); font-weight: 500; }
.article-cat-badge { font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; background: var(--border-color); color: var(--text-muted); }
.article-page-layout { padding: 2rem 0 4rem; }
.article-body { min-width: 0; }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.article-meta-top { display: flex; gap: .4rem; margin-bottom: .75rem; }
.article-title { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; line-height: 1.2; }
.article-byline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.article-author-info { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.article-name-link { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.article-pub-date { font-size: .82rem; color: var(--text-muted); }
.article-content { font-size: .975rem; line-height: 1.75; }
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; align-items: center; font-size: .875rem; }
.tag-pill { padding: .2rem .65rem; border-radius: 999px; background: var(--border-color); font-size: .78rem; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.related-articles-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.related-articles-list a { text-decoration: none; color: var(--text-primary); display: flex; flex-direction: column; gap: .15rem; font-size: .875rem; }
.related-articles-list a:hover strong { color: var(--accent-color, #2563eb); }
.related-date { font-size: .78rem; color: var(--text-muted); }
.sidebar-author-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; margin-bottom: .5rem; }
.banner-slot { border: 1px dashed var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .8rem; min-height: 100px; }
.banner-300x250 { width: 100%; aspect-ratio: 300/250; }

/* ── Pricing page ── */
.pricing-page { padding: 2rem 0 4rem; }
.pricing-billing-note { text-align: center; font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }
.pricing-gate { display: flex; justify-content: center; padding: 4rem 1rem; }
.pricing-gate .gate-card { max-width: 420px; }
.pricing-section { margin-bottom: 3rem; }
.pricing-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-color); }
.pricing-grid { display: grid; gap: 1rem; }
.pricing-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); }
.pricing-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(200px,100%),1fr)); }
.pricing-card-featured { border-color: var(--accent-color, #2563eb); box-shadow: 0 0 0 2px var(--accent-color, #2563eb); }
.pricing-card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.plan-name  { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; }
.price-amount { font-size: 1.8rem; font-weight: 800; }
.price-period { font-size: .85rem; color: var(--text-muted); }
.pricing-card-body { flex: 1; }
.pricing-includes { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .5rem; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.pricing-card-footer { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border-color); }
.pricing-upsell { text-align: center; padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: .875rem; color: var(--text-muted); }

/* ── Language switcher (added in pub_header.php) ── */
.lang-switcher {
    display: flex;
    gap: 2px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
}
.lang-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    line-height: 1.6;
}
.lang-btn:hover { background: var(--border-color); color: var(--text-primary); }
.lang-active { background: var(--accent-color, #2563eb) !important; color: #fff !important; }
.mobile-lang-li { display: none; padding: 8px 16px; border-top: 1px solid var(--border-color); }
@media (max-width: 768px) {
    .lang-switcher { display: none; }
    .mobile-lang-li { display: block !important; }
    .mobile-lang-li .lang-switcher { display: flex !important; width: 100%; justify-content: center; }
    .companies-browse-grid, .tb-browse-grid, .events-browse-grid, .articles-browse-grid, .trade-posts-grid { grid-template-columns: 1fr; }
    .browse-title { font-size: 1.75rem; }
    .co-header-card { flex-direction: column; }
    .article-page-layout { grid-template-columns: 1fr !important; }
    .product-page, .company-page { grid-template-columns: 1fr !important; }
    .co-sidebar, .prod-sidebar, .article-sidebar { position: static; }
}

/* ── Homepage additions ── */
.home-section { padding: 3rem 0; }
.home-section-alt { background: var(--card-bg); }
.home-trade { background: #0f172a; color: #fff; }
.home-trade .section-title { color: #fff; }
.home-trade .section-link { color: #60a5fa; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.section-title  { font-size: 1.5rem; font-weight: 800; margin: 0; }
.section-link   { font-size: .875rem; color: var(--accent-color, #2563eb); text-decoration: none; }
.section-link:hover { text-decoration: underline; }
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 1rem; }
.company-card { display: flex; gap: .85rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary, #fff); text-decoration: none; color: var(--text-primary); transition: box-shadow .15s; }
.company-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.company-card-logo { flex-shrink: 0; width: 44px; height: 44px; }
.company-card-logo img { width: 100%; height: 100%; border-radius: 6px; object-fit: contain; }
.company-card-body { flex: 1; min-width: 0; }
.company-card-name    { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; }
.company-card-tagline { font-size: .8rem; color: var(--text-muted); margin: 0 0 .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card-meta { display: flex; gap: .3rem; flex-wrap: wrap; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px,100%),1fr)); gap: 1rem; }
.product-card { padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary, #fff); text-decoration: none; color: var(--text-primary); display: flex; flex-direction: column; gap: .3rem; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.product-card-header { margin-bottom: .2rem; }
.product-card-name   { font-size: .9rem; font-weight: 700; margin: 0; }
.product-card-cas    { font-size: .78rem; color: var(--text-muted); margin: 0; }
.product-card-grade  { font-size: .78rem; color: var(--text-muted); margin: 0; }
.product-card-supplier { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .35rem; font-size: .78rem; color: var(--text-muted); }
.supplier-mini-logo { width: 18px; height: 18px; border-radius: 3px; object-fit: contain; }
.trade-empty { text-align: center; padding: 2rem; color: #94a3b8; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 1rem; }
.event-card { padding: 1.1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); }
.event-card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .8rem; color: #94a3b8; }
.event-date { font-weight: 600; }
.event-type-badge { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: rgba(255,255,255,.1); color: #e2e8f0; }
.event-badge-online { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #1e40af; color: #bfdbfe; }
.event-badge-free   { font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: #166534; color: #bbf7d0; }
.event-card-title    { font-size: .975rem; font-weight: 700; margin: 0 0 .3rem; color: #f1f5f9; }
.event-card-subtitle { font-size: .85rem; color: #94a3b8; margin: 0 0 .5rem; }
.event-card-location { font-size: .82rem; color: #94a3b8; margin: 0 0 .75rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 1rem; }
.article-card { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary, #fff); text-decoration: none; color: var(--text-primary); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.article-card-img img { width: 100%; height: 160px; object-fit: cover; display: block; }
.article-card-body    { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.article-card-title   { font-size: .9rem; font-weight: 700; margin: 0 0 .3rem; }
.article-card-excerpt { font-size: .82rem; color: var(--text-muted); margin: 0 0 .5rem; flex: 1; line-height: 1.5; }
.article-card-footer  { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-muted); margin-top: auto; }
.home-cta-section { background: var(--accent-color, #2563eb); color: #fff; padding: 4rem 1rem; text-align: center; }
.home-cta-inner  { max-width: 600px; margin: 0 auto; }
.home-cta-title  { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; }
.home-cta-subtitle { font-size: 1rem; opacity: .9; margin: 0 0 1.5rem; }
.home-cta-btns   { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.stats-bar  { background: var(--card-bg); border-bottom: 1px solid var(--border-color); padding: .75rem 0; }
.stats-inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-item  { text-align: center; }
.stat-num   { display: block; font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.hero-section { padding: 4rem 1rem 3rem; }
.hero-inner   { max-width: 700px; }
.hero-title   { font-size: 3rem; font-weight: 800; line-height: 1.1; margin: 0 0 1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1.5rem; }
.hero-search-form { margin-bottom: 1.5rem; }
.hero-search-scope { display: flex; gap: 1rem; margin-bottom: .75rem; }
.scope-opt  { display: flex; align-items: center; gap: .35rem; font-size: .875rem; cursor: pointer; }
.hero-search-bar { display: flex; gap: .5rem; }
.hero-search-input { flex: 1; padding: .65rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); color: var(--text-primary); font-size: .95rem; }
.hero-ctas  { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* ── Nav additions ── */
.nav-link { text-decoration: none; color: var(--text-primary); font-size: .9rem; font-weight: 500; padding: .25rem 0; transition: color .15s; }
.nav-link:hover, .nav-active { color: var(--accent-color, #2563eb); }
.pub-nav-controls { display: flex; align-items: center; gap: .75rem; }
.pub-search-form  { display: flex; gap: 0; flex: 1; max-width: 320px; }
.pub-search-input { flex: 1; padding: .4rem .75rem; border: 1px solid var(--border-color); border-radius: 6px 0 0 6px; background: var(--card-bg); color: var(--text-primary); font-size: .875rem; }
.pub-search-btn   { padding: .4rem .75rem; border: 1px solid var(--border-color); border-left: none; border-radius: 0 6px 6px 0; background: var(--card-bg); color: var(--text-muted); cursor: pointer; }
.nav-mobile-menu  { position: fixed; top: 64px; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--nav-border); z-index: 999; box-shadow: 0 4px 24px rgba(0,0,0,.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-mobile-links { list-style: none; padding: 0; margin: 0; }
.nav-mobile-link  { display: block; padding: .85rem 1.25rem; text-decoration: none; color: var(--text-primary); font-size: .95rem; border-bottom: 1px solid var(--border-color); }
.nav-mobile-link:hover { background: var(--border-color); }
.pub-footer-lang  { display: flex; flex-direction: column; gap: .3rem; }
.btn-ghost { padding: .4rem .75rem; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-muted); cursor: pointer; font-size: .875rem; text-decoration: none; display: inline-flex; align-items: center; transition: background .15s; }
.btn-ghost:hover { background: var(--border-color); }
.btn-outline { padding: .4rem .9rem; background: transparent; border: 1px solid var(--accent-color, #2563eb); border-radius: 6px; color: var(--accent-color, #2563eb); cursor: pointer; font-size: .875rem; text-decoration: none; display: inline-flex; align-items: center; transition: background .15s; }
.btn-outline:hover { background: var(--accent-color, #2563eb); color: #fff; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.mt-1 { margin-top: .5rem; }
.mb-1 { margin-bottom: .5rem; }
