/* ═══════════════════════════════════════════════════════════════
   IOF Dealer Portal — shared styles
   Header/nav rules mirror the canonical IOF header.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --header-height: 80px;
  --announce-height: 42px;
  --total-top: calc(var(--header-height) + var(--announce-height));
  --primary-color: #2c5aa0;
  --secondary-color: #4682b4;
  --text-dark: #1a1a1a;
  --text-lighter: #999;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --iof-blue: #1A4F9C;
  --iof-blue-dark: #0F3370;
  --iof-blue-pale: #EBF0FA;
  --ink: #1A1A1A;
  --mid: #555;
  --light: #8A8A8A;
  --rule: #DEDEDE;
  --bg: #FAFAFA;
  --warm: #F5F3EF;
  --accent: #C8A96E;
  --accent-pale: #F7F1E6;
  --danger: #c0392b;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; color: var(--ink); background: var(--bg-white); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.serif { font-family: 'Cormorant Garamond', serif; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(135deg, #2c5aa0 0%, #4682b4 100%);
  color: white; padding: 0.75rem 2rem;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 500; height: var(--announce-height);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease;
  font-family: 'Outfit', sans-serif;
}
.announcement-bar.hidden { transform: translateY(-100%); }
.announcement-content { cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.announcement-content:hover { opacity: 0.9; }
.announcement-close { position: absolute; right: 1.5rem; background: none; border: none; color: white; font-size: 1.25rem; cursor: pointer; padding: 0.25rem 0.5rem; opacity: 0.8; transition: var(--transition); }
.announcement-close:hover { opacity: 1; }

/* ── Header ── */
.header { position: fixed; top: var(--announce-height); left: 0; right: 0; background: var(--bg-white); box-shadow: var(--shadow-sm); z-index: 1000; transition: var(--transition); font-family: 'Outfit', sans-serif; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header.announce-hidden { top: 0; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 1rem; }
.logo-section { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-section img { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); letter-spacing: -0.02em; }
.brand-subtitle { font-size: 0.75rem; color: var(--text-lighter); font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; padding: 0.5rem; z-index: 1001; }

/* ── Nav ── */
.main-nav { display: flex; gap: 0.5rem; }
.main-nav > ul { display: flex; list-style: none; gap: 0.5rem; align-items: center; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 6px; transition: var(--transition); position: relative; display: block; font-family: 'Outfit', sans-serif; }
.main-nav > ul > li > a:hover { background: var(--bg-light); color: var(--primary-color); }
.main-nav > ul > li:last-child > a { color: var(--secondary-color); font-weight: 600; }
.nav-classroom { font-weight: 600 !important; letter-spacing: 0.01em; }
.nav-classroom:hover { background: rgba(0,0,0,0.04) !important; }
.nav-classroom span { font-weight: inherit; }
.main-nav li { position: relative; }
.main-nav ul ul { position: absolute; top: 100%; left: 0; background: var(--bg-white); box-shadow: var(--shadow-lg); border-radius: 8px; min-width: 220px; padding: 0.5rem; list-style: none; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); z-index: 100; margin: 0; }
.main-nav li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul a { padding: 0.65rem 1rem; border-radius: 6px; font-size: 0.875rem; }
.main-nav ul ul a:hover { background: var(--bg-light); color: var(--primary-color); }
.main-nav ul ul ul { left: 100%; top: 0; margin-left: 0.5rem; }
.main-nav li:has(> ul) > a::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; margin-left: 0.4rem; display: inline-block; }
.main-nav ul ul li:has(> ul) > a::after { content: '\f105'; float: right; margin-left: auto; margin-right: -0.25rem; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; transition: var(--transition); }
.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 1280px) {
  .main-nav a { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--bg-white); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: var(--transition); overflow-y: auto; padding: calc(var(--total-top) + 1rem) 1rem 2rem; z-index: 1000; }
  .main-nav.active { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .main-nav ul ul, .main-nav ul ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 0 0 0 0.75rem; padding: 0; min-width: 0; }
  .main-nav li.open > ul { display: block; }
  .header-container { padding: 0 1rem; }
}

/* ── Dealer account button (header) ── */
.dealer-slot { display: flex; align-items: center; flex-shrink: 0; }
.dealer-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; background: var(--iof-blue); color: #fff; border: none; border-radius: 2px; font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.dealer-btn:hover { background: var(--iof-blue-dark); }
.dealer-btn--in { background: var(--iof-blue-pale); color: var(--iof-blue); }
.dealer-btn--in:hover { background: #dce5f6; }
.dealer-caret { font-size: 0.65rem; }
.dealer-menu { position: relative; }
.dealer-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; box-shadow: var(--shadow-lg); border-radius: 4px; min-width: 230px; padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--transition); z-index: 1200; }
.dealer-menu.open .dealer-dropdown { opacity: 1; visibility: visible; transform: none; }
.dealer-dropdown-head { padding: 0.6rem 0.75rem 0.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.4rem; font-weight: 600; font-size: 0.88rem; }
.dealer-dropdown-head small { display: block; font-weight: 300; color: var(--light); font-size: 0.78rem; }
.dealer-dropdown a, .dealer-dropdown button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.6rem 0.75rem; border: none; background: none; border-radius: 3px; font-family: inherit; font-size: 0.86rem; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.dealer-dropdown a:hover, .dealer-dropdown button:hover { background: var(--bg-light); color: var(--iof-blue); }
.dealer-dropdown i { width: 16px; color: var(--iof-blue); }
@media (max-width: 600px) { .dealer-btn span { display: none; } .dealer-btn { padding: 0.6rem 0.8rem; } .logo-section img { width: 48px; height: 48px; } .brand-subtitle { display: none; } }

/* ── Page shell ── */
.page-top { margin-top: var(--total-top); transition: margin-top 0.3s ease; }
body.announce-off .page-top { margin-top: var(--header-height); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iof-blue); display: flex; align-items: center; gap: 10px; margin: 0 0 1.5rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ── Buttons & fields ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.5rem; border: 1px solid transparent; border-radius: 2px; font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: var(--transition); }
.btn-primary { background: var(--iof-blue); color: #fff; }
.btn-primary:hover { background: var(--iof-blue-dark); }
.btn-primary:disabled { background: var(--light); cursor: default; }
.btn-ghost { background: transparent; color: var(--iof-blue); border-color: rgba(26,79,156,0.3); }
.btn-ghost:hover { background: var(--iof-blue-pale); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: #b6965a; }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light); margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 2px; font-size: 14px; font-family: 'Outfit', sans-serif; color: var(--ink); background: #fff; outline: none; transition: border-color 0.18s, box-shadow 0.18s; }
.field input:focus, .field select:focus { border-color: var(--iof-blue); box-shadow: 0 0 0 3px rgba(26,79,156,0.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { display: none; border-radius: 2px; font-size: 13px; padding: 10px 12px; margin: 0 0 14px; }
.form-msg.show { display: block; }
.form-msg--error { background: #fff3f3; border: 1px solid #f5c0c0; color: var(--danger); }
.form-msg--ok { background: #f0f8f2; border: 1px solid #b9dfc3; color: #22713a; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--mid); margin: 4px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--iof-blue); }
.link { color: var(--iof-blue); text-decoration: none; font-weight: 500; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ── Login / Register ── */
.auth-wrap { min-height: calc(100vh - var(--total-top)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(160deg, var(--iof-blue-dark) 0%, var(--iof-blue) 100%); color: #fff; padding: 5rem 4.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border: 1px solid rgba(200,169,110,0.35); border-radius: 50%; }
.auth-aside::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border: 1px solid rgba(200,169,110,0.2); border-radius: 50%; }
.auth-aside h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1.05; margin: 0.75rem 0 1.25rem; }
.auth-aside h1 em { font-style: italic; color: var(--accent); }
.auth-aside p { font-weight: 300; opacity: 0.85; max-width: 440px; margin: 0 0 2.25rem; }
.perk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 440px; position: relative; z-index: 1; }
.perk-list li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.95rem; font-weight: 300; }
.perk-list i { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(200,169,110,0.55); color: var(--accent); border-radius: 50%; font-size: 0.8rem; }
.perk-list strong { display: block; font-weight: 500; }
.perk-soon { display: inline-block; margin-left: 6px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(200,169,110,0.5); padding: 1px 6px; border-radius: 2px; vertical-align: middle; }

.auth-main { background: var(--bg-light); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-card { background: #fff; border: 1px solid var(--rule); border-radius: 2px; width: 100%; max-width: 480px; padding: 2.25rem 2.25rem 2rem; box-shadow: var(--shadow-sm); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--rule); margin: -0.25rem 0 1.75rem; }
.auth-tab { flex: 1; background: none; border: none; padding: 0 0 0.9rem; font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.auth-tab.active { color: var(--iof-blue); border-bottom-color: var(--iof-blue); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeUp 0.25s ease; }
.auth-panel h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2rem; margin: 0 0 0.25rem; line-height: 1.1; }
.auth-panel .sub { color: var(--mid); font-size: 0.9rem; font-weight: 300; margin: 0 0 1.5rem; }
.auth-foot { text-align: center; font-size: 0.85rem; color: var(--mid); margin-top: 1.25rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--light); cursor: pointer; padding: 6px; }
.fieldset-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iof-blue); margin: 6px 0 12px; display: flex; gap: 10px; align-items: center; }
.fieldset-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.done-state { text-align: center; padding: 1rem 0; }
.done-state .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--accent-pale); color: var(--accent); font-size: 1.5rem; border: 1px solid rgba(200,169,110,0.5); }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { padding: 3rem 1.5rem; }
  .auth-aside .perk-list { display: none; }
  .auth-aside p { margin-bottom: 0; }
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* ── Dashboard ── */
.dash-hero { background: linear-gradient(160deg, var(--iof-blue-dark) 0%, var(--iof-blue) 100%); color: #fff; padding: 3.5rem 2rem 6rem; position: relative; overflow: hidden; }
.dash-hero::after { content: ''; position: absolute; right: 8%; top: -140px; width: 420px; height: 420px; border: 1px solid rgba(200,169,110,0.25); border-radius: 50%; }
.dash-hero-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.dash-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.4rem 0 0.3rem; line-height: 1.05; }
.dash-hero h1 em { color: var(--accent); }
.dash-hero p { margin: 0; font-weight: 300; opacity: 0.85; }
.dash-meta { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.dash-meta div { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.dash-meta strong { display: block; font-size: 1.05rem; letter-spacing: 0; text-transform: none; opacity: 1; font-weight: 500; color: #fff; }

.dash-body { max-width: 1400px; margin: -3.5rem auto 0; padding: 0 2rem 5rem; position: relative; z-index: 2; }
.status-banner { display: flex; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.status-banner .ring { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-pale); color: var(--accent); }
.status-banner h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.status-banner p { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--mid); font-weight: 300; }
.status-banner .grow { flex: 1; min-width: 220px; }
.status-banner--rejected { border-left-color: var(--danger); }
.status-banner--rejected .ring { background: #fff3f3; color: var(--danger); }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.tile { background: #fff; border: 1px solid var(--rule); padding: 1.5rem; text-decoration: none; color: var(--ink); transition: var(--transition); position: relative; display: block; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(26,79,156,0.3); }
.tile i.tile-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--iof-blue-pale); color: var(--iof-blue); border-radius: 50%; margin-bottom: 1rem; }
.tile h4 { margin: 0 0 0.2rem; font-size: 1rem; font-weight: 600; }
.tile p { margin: 0; font-size: 0.85rem; color: var(--mid); font-weight: 300; }
.tile .tile-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--iof-blue); position: absolute; right: 1.5rem; top: 1.4rem; }
.tile--soon { background: var(--bg); }
.tile--soon i.tile-icon { background: var(--accent-pale); color: var(--accent); }
.tile .soon-tag { position: absolute; top: 1rem; right: 1rem; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(200,169,110,0.5); padding: 2px 7px; }
.tile--locked { opacity: 0.55; pointer-events: none; }

.dash-cols { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--rule); padding: 1.5rem; }
.panel h4 { margin: 0 0 1rem; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iof-blue); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; font-size: 0.88rem; margin: 0; }
.kv dt { color: var(--light); font-weight: 400; }
.kv dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.pill { display: inline-block; padding: 2px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; }
.pill--approved { background: #e8f5ec; color: #22713a; }
.pill--pending { background: var(--accent-pale); color: #94733a; }
.pill--rejected, .pill--suspended { background: #fff3f3; color: var(--danger); }
.panel + .panel { margin-top: 1.25rem; }
.help-line { display: flex; gap: 0.75rem; align-items: center; font-size: 0.88rem; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
.help-line i { color: var(--iof-blue); width: 16px; }

.empty { text-align: center; padding: 3.5rem 1.5rem; background: #fff; border: 1px dashed var(--rule); }
.empty i { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.75rem; }
.empty h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; margin: 0 0 0.35rem; }
.empty p { color: var(--mid); font-weight: 300; margin: 0 0 1.25rem; font-size: 0.92rem; }

.demo-bar { position: fixed; left: 16px; bottom: 16px; z-index: 1500; background: var(--ink); color: #fff; font-size: 12px; padding: 10px 14px; border-radius: 3px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); flex-wrap: wrap; }
.demo-bar b { color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.demo-bar button { background: rgba(255,255,255,0.12); color: #fff; border: none; padding: 5px 10px; border-radius: 2px; font: inherit; cursor: pointer; }
.demo-bar button:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } .dash-body, .dash-hero { padding-left: 1rem; padding-right: 1rem; } }

/* ── Gallery cards (canonical IOF pattern) ── */
.gallery-section { background: var(--bg-light); padding: 3rem 2rem 5rem; }
.gallery-container { max-width: 1400px; margin: 0 auto; }
.gallery-section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iof-blue); display: flex; align-items: center; gap: 10px; margin-bottom: 2rem; }
.gallery-section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.gallery-item { background: white; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; transition: var(--transition); position: relative; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-img-wrap { position: relative; overflow: hidden; background: var(--warm); }
.gallery-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.45s ease; }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-hover-overlay { position: absolute; top: 0; left: 0; right: 0; height: 0; background: rgba(15, 51, 112, 0.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; transition: height 0.3s ease; cursor: pointer; z-index: 2; }
.gallery-item:hover .gallery-hover-overlay { height: 100%; }
.hover-price { color: #fff; font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 300; letter-spacing: 0.04em; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.22s ease 0.08s, transform 0.22s ease 0.08s; pointer-events: none; }
.hover-price strong { font-size: 16px; font-weight: 600; display: block; margin-top: 3px; letter-spacing: 0; }
.gallery-item:hover .hover-price { opacity: 1; transform: translateY(0); }
.hover-cta { color: rgba(255,255,255,0.7); font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 10px; width: 72%; opacity: 0; transform: translateY(8px); transition: opacity 0.22s ease 0.14s, transform 0.22s ease 0.14s; pointer-events: none; }
.gallery-item:hover .hover-cta { opacity: 1; transform: translateY(0); }
.gallery-caption { padding: 12px 14px 14px; }
.gallery-code { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iof-blue); margin-bottom: 3px; }
.gallery-finish-text { font-size: 11px; font-weight: 300; color: var(--light); margin-bottom: 10px; line-height: 1.4; }
.gallery-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; background: var(--iof-blue); color: white; font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 500; border-radius: 2px; letter-spacing: 0.05em; border: none; cursor: pointer; transition: background 0.2s; text-decoration: none; }
.gallery-btn:hover { background: var(--iof-blue-dark); }
.gallery-btn--ghost { background: transparent; color: var(--light); padding-left: 6px; padding-right: 6px; }
.gallery-btn--ghost:hover { background: transparent; color: var(--danger); }
.gallery-actions { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.gallery-date { font-size: 10.5px; color: var(--light); font-weight: 300; }

/* Favorite heart — sits above the hover overlay */
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.94); color: var(--iof-blue); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 0.18s ease, background 0.18s, color 0.18s; font-size: 15px; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.is-fav { background: var(--accent); color: #fff; }
.fav-btn.pop { animation: heartPop 0.35s ease; }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (max-width: 768px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .gallery-section { padding: 2rem 1rem 3rem; } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* ── Page intro (gallery page) ── */
.page-intro { padding: 4rem 2rem 2.5rem; text-align: center; background: #fff; }
.page-intro h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0.5rem 0 0.75rem; line-height: 1.05; }
.page-intro p { color: var(--mid); font-weight: 300; max-width: 620px; margin: 0 auto; }
.login-nudge { max-width: 1400px; margin: 0 auto 1.5rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 0.9rem 1.25rem; font-size: 0.9rem; flex-wrap: wrap; }
.login-nudge i { color: var(--accent); margin-right: 0.5rem; }

/* ── Toast ── */
.iof-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 3px; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.3s ease; z-index: 2000; pointer-events: none; max-width: calc(100vw - 32px); }
.iof-toast.show { opacity: 1; transform: translate(-50%, 0); }
.iof-toast--gold { background: var(--iof-blue-dark); border-left: 3px solid var(--accent); }

/* ── Footer ── */
.portal-footer { background: var(--ink); color: rgba(255,255,255,0.6); font-size: 0.82rem; padding: 2rem; text-align: center; }
.portal-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loading-veil { min-height: 50vh; display: grid; place-items: center; color: var(--light); }

/* ── My Files ── */
.files-block { margin-bottom: 2.5rem; }
.file-list { display: grid; gap: 0.75rem; }
.file-row { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--rule); padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); transition: var(--transition); }
.file-row:hover { border-color: rgba(26,79,156,0.35); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.file-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 3px; background: var(--iof-blue-pale); color: var(--iof-blue); font-size: 1.15rem; }
.file-icon--pdf { background: #fdeeee; color: #c0392b; }
.file-icon--xlsx { background: #e8f5ec; color: #22713a; }
.file-text { flex: 1; min-width: 0; }
.file-text strong { display: block; font-weight: 600; font-size: 0.98rem; }
.file-text small { display: block; color: var(--light); font-size: 0.8rem; font-weight: 300; }
.file-action { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iof-blue); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 480px) { .file-action { font-size: 0; gap: 0; } .file-action i { font-size: 13px; } }

/* ── Saved quotes ── */
.quote-row { cursor: default; }
.quote-row .file-text { text-decoration: none; color: var(--ink); }
.quote-row .file-text:hover strong { color: var(--iof-blue); }
.quote-row .file-action { text-decoration: none; }
.quote-total { flex-shrink: 0; text-align: right; font-weight: 600; color: var(--iof-blue); font-size: 0.98rem; }
.quote-total small { display: block; font-size: 10px; font-weight: 400; color: var(--light); letter-spacing: 0.04em; }
.quote-del { flex-shrink: 0; background: none; border: none; color: var(--light); cursor: pointer; padding: 6px; font-size: 14px; transition: color 0.2s; }
.quote-del:hover { color: var(--danger); }
@media (max-width: 560px) { .quote-total small { display: none; } .quote-row { gap: 0.6rem; padding: 0.85rem; } }

/* ── Dealer Tools ── */
.dash-section { margin-bottom: 2.75rem; }
.section-more { margin-left: auto; order: 3; font-size: 11px; letter-spacing: 0.1em; color: var(--iof-blue); text-decoration: none; font-weight: 600; white-space: nowrap; }
.section-label .section-more { padding-left: 10px; }
.section-more:hover { text-decoration: underline; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.tool-card { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--rule); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); transition: var(--transition); }
.tool-card:hover { border-color: rgba(26,79,156,0.35); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tool-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--iof-blue-pale); color: var(--iof-blue); font-size: 1rem; transition: var(--transition); }
.tool-card:hover .tool-icon { background: var(--iof-blue); color: #fff; }
.tool-text { flex: 1; min-width: 0; }
.tool-text strong { display: block; font-weight: 600; font-size: 0.93rem; line-height: 1.3; }
.tool-text small { display: block; color: var(--light); font-size: 0.8rem; font-weight: 300; }
.tool-go { color: var(--rule); font-size: 0.8rem; transition: var(--transition); }
.tool-card:hover .tool-go { color: var(--iof-blue); transform: translateX(3px); }

/* ── What's New ── */
.news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); overflow: hidden; transition: var(--transition); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--warm); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.2rem; flex: 1; }
.news-card--text { border-top: 3px solid var(--accent); }
.news-card--text .news-body { padding-top: 1.35rem; }
.news-meta { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.news-body strong { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.news-body small { font-size: 0.85rem; color: var(--mid); font-weight: 300; line-height: 1.5; }
.news-read { margin-top: auto; padding-top: 0.6rem; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iof-blue); }
.news-read i { font-size: 10px; transition: transform 0.2s; }
.news-card:hover .news-read i { transform: translateX(3px); }
@media (max-width: 900px) { .news-strip { grid-template-columns: 1fr; } }

/* ── Tile tabs ── */
.tab-tile { font: inherit; text-align: left; cursor: pointer; width: 100%; border-bottom-width: 3px; border-bottom-color: transparent; }
.tab-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(26,79,156,0.3); }
.tab-tile:focus-visible { outline: 2px solid var(--iof-blue); outline-offset: 2px; }
.tab-tile.active { border-color: var(--iof-blue); border-bottom-color: var(--iof-blue); box-shadow: var(--shadow-md); transform: translateY(-3px); background: #fff; }
.tab-tile.active i.tile-icon { background: var(--iof-blue); color: #fff; }
.tab-tile.active::after { content: ''; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--iof-blue); border-bottom: 0; }
.tab-tile.tile--soon.active { background: #fff; }
.tab-tile.tile--soon.active i.tile-icon { background: var(--accent); color: #fff; }
.tile--dim { opacity: 0.7; }
.tab-panels { min-height: 320px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.28s ease; }
.dash-lower { margin-top: 3rem; }
.gallery-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.gallery-btn--outline { background: #fff; color: var(--iof-blue); border: 1px solid rgba(26,79,156,0.35); }
.gallery-btn--outline:hover { background: var(--iof-blue-pale); color: var(--iof-blue); }
.gallery-btn:disabled { opacity: 0.6; cursor: default; }
