/* PFG Credit Union Marketing Portal — Styles
   Extracted from monolithic HTML and extended for Supabase auth */

:root {
  --trust-blue: #1B4D6E;
  --trust-blue-dark: #13344A;
  --trust-blue-light: #E8F0F4;
  --trust-blue-mid: #4A86A8;
  --heritage-gold: #C8963E;
  --heritage-gold-light: #F8F0E0;
  --heritage-gold-dark: #A07830;
  --orange: #E56123;
  --orange-light: #FDF0E6;
  --orange-dark: #B84A1A;
  --burgundy: #8E043A;
  --burgundy-light: #F5E6EC;
  --burgundy-dark: #5C0220;
  --deep-teal: #1A6B5A;
  --charcoal: #333333;
  --dark-gray: #555555;
  --med-gray: #888888;
  --light-gray: #F5F5F5;
  --warm-white: #FAFAF8;
  --white: #FFFFFF;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--charcoal); background: var(--warm-white); line-height: 1.5; font-size: 16px; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.2; }

/* ===== AUTH SCREENS ===== */
.auth-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--warm-white); padding: 20px; }
.auth-card { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 48px 40px; max-width: 440px; width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,0.08); text-align: center; }
.auth-logo { max-width: 280px; width: 80%; height: auto; margin-bottom: 24px; background: var(--trust-blue); border-radius: var(--radius); padding: 16px 24px; }
.auth-card h2 { font-size: 26px; color: var(--trust-blue); margin-bottom: 8px; }
.auth-card p { font-size: 14px; color: var(--dark-gray); margin-bottom: 24px; line-height: 1.5; }
.auth-card .form-group { margin-bottom: 20px; text-align: left; }
.auth-card .form-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--charcoal); display: block; }
.auth-card .form-input { width: 100%; padding: 12px 16px; border: 1.5px solid #d0d0d0; border-radius: var(--radius); font-size: 15px; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.auth-card .form-input:focus { outline: none; border-color: var(--trust-blue); box-shadow: 0 0 0 3px rgba(27,77,110,0.1); }
.btn-primary { background: var(--orange); color: #fff; border: none; padding: 14px 32px; font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; width: 100%; box-shadow: 0 4px 16px rgba(229,97,35,0.3); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:disabled { background: var(--med-gray); box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: var(--trust-blue); color: #fff; border: none; padding: 10px 24px; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.btn-secondary:hover { background: var(--trust-blue-dark); }
.auth-message { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.auth-message.success { background: #e6f9f0; color: #1a6b5a; border: 1px solid #b3e8d2; }
.auth-message.error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.auth-message.info { background: var(--trust-blue-light); color: var(--trust-blue); border: 1px solid #b8d4e3; }
.auth-help { font-size: 13px; color: var(--med-gray); margin-top: 16px; }
.auth-help a { color: var(--trust-blue); text-decoration: none; }
.auth-help a:hover { text-decoration: underline; }
.auth-resend { margin-top: 12px; }
.auth-resend button { background: none; border: 1px solid #d0d0d0; padding: 8px 16px; font-size: 13px; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; color: var(--dark-gray); }
.auth-resend button:hover { border-color: var(--trust-blue); color: var(--trust-blue); }
.auth-resend button:disabled { opacity: 0.5; cursor: not-allowed; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HERO ===== */
.hero { background: var(--trust-blue); color: #fff; padding: 56px 40px 48px; text-align: center; position: relative; }
.hero::after { content: ''; display: block; height: 5px; background: var(--heritage-gold); position: absolute; bottom: 0; left: 0; right: 0; }
.hero-logo-img { max-width: 340px; width: 80%; height: auto; margin-bottom: 32px; }
.hero-subhead { font-size: 20px; font-weight: 500; opacity: 0.9; margin-bottom: 12px; max-width: 620px; margin-left: auto; margin-right: auto; font-family: 'Inter', sans-serif; letter-spacing: 0.3px; }
.hero h1 { font-size: 42px; margin-bottom: 18px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 17px; max-width: 620px; margin: 0 auto; opacity: 0.9; line-height: 1.6; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.section { padding: 56px 0; }
.section-title { font-size: 30px; color: var(--trust-blue); margin-bottom: 8px; }
.section-subtitle { font-size: 15px; color: var(--dark-gray); margin-bottom: 36px; max-width: 640px; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--heritage-gold); color: #fff; border-radius: 50%; font-weight: 700; font-size: 14px; margin-right: 12px; vertical-align: middle; font-family: 'Inter', sans-serif; }

/* ===== FORM ===== */
.form-card { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--charcoal); }
.form-input { padding: 12px 16px; border: 1.5px solid #d0d0d0; border-radius: var(--radius); font-size: 15px; font-family: 'Inter', sans-serif; transition: border-color 0.2s; background: #fff; }
.form-input:focus { outline: none; border-color: var(--trust-blue); box-shadow: 0 0 0 3px rgba(27,77,110,0.1); }
.form-input::placeholder { color: var(--med-gray); }

.logo-upload-zone { border: 2px dashed #c0c0c0; border-radius: var(--radius); padding: 36px 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--light-gray); position: relative; }
.logo-upload-zone:hover { border-color: var(--trust-blue); background: var(--trust-blue-light); }
.logo-upload-zone.has-logo { border-style: solid; border-color: var(--deep-teal); background: #fff; padding: 20px; }
.logo-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-upload-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: block; }
.logo-upload-text { font-size: 15px; color: var(--dark-gray); }
.logo-upload-text strong { color: var(--trust-blue); }
.logo-upload-hint { font-size: 13px; color: var(--med-gray); margin-top: 6px; }
.logo-preview { max-height: 80px; max-width: 260px; object-fit: contain; display: block; margin: 0 auto; }
.logo-preview-name { font-size: 13px; color: var(--deep-teal); margin-top: 8px; font-weight: 500; }

/* ===== CATEGORY FILTERS ===== */
.category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.category-tab { background: #fff; border: 1.5px solid #d0d0d0; border-radius: 24px; padding: 8px 20px; font-size: 14px; font-weight: 500; font-family: 'Inter', sans-serif; color: var(--dark-gray); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.category-tab:hover { border-color: var(--trust-blue-mid); color: var(--trust-blue); }
.category-tab.active { background: var(--trust-blue); border-color: var(--trust-blue); color: #fff; }
.category-tab .cat-count { display: inline-block; background: rgba(0,0,0,0.08); border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.category-tab.active .cat-count { background: rgba(255,255,255,0.25); }

/* ===== ASSET GRID ===== */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.asset-card.hidden-by-filter { display: none; }
.asset-card { background: #fff; border: 2px solid #e2e2e2; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.asset-card:hover { border-color: var(--trust-blue-mid); box-shadow: 0 4px 16px rgba(27,77,110,0.12); transform: translateY(-2px); }
.asset-card.selected { border-color: var(--trust-blue); box-shadow: 0 4px 20px rgba(27,77,110,0.18); }
.asset-card-header { padding: 14px 18px; background: var(--trust-blue-light); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e2e2; }
.asset-card-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: var(--trust-blue); }
.asset-card-size { font-size: 12px; color: var(--dark-gray); font-weight: 500; }
.asset-checkbox { width: 22px; height: 22px; border: 2px solid #c0c0c0; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.asset-card.selected .asset-checkbox { background: var(--trust-blue); border-color: var(--trust-blue); }
.asset-card.selected .asset-checkbox svg { display: block; }
.asset-checkbox svg { display: none; width: 14px; height: 14px; }
.asset-card-thumb { aspect-ratio: 4/3; background: var(--warm-white); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }

/* ===== THUMBNAILS ===== */
.thumb-poster { width: 55%; height: 90%; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); display: flex; flex-direction: column; overflow: hidden; font-size: 6px; }
.tp-header { background: var(--trust-blue); padding: 6px 8px 5px; text-align: center; }
.tp-logo-placeholder { width: 40%; height: 10px; border: 1px solid rgba(255,255,255,0.5); border-radius: 2px; margin: 0 auto 3px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 4px; }
.tp-headline { color: #fff; font-family: 'Playfair Display', serif; font-size: 6px; font-weight: 700; line-height: 1.2; }
.tp-gold-bar { height: 2px; background: var(--heritage-gold); }
.tp-body { flex: 1; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tp-subtitle { font-weight: 700; font-size: 5.5px; text-align: center; margin-bottom: 4px; color: var(--charcoal); }
.tp-illustration { width: 80%; height: 40px; background: linear-gradient(135deg, var(--trust-blue-light) 0%, var(--heritage-gold-light) 50%, var(--orange-light) 100%); border-radius: 3px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; color: var(--med-gray); font-size: 5px; font-style: italic; }
.tp-callout { width: 100%; background: #F5E6EC; border-left: 2px solid #8E043A; padding: 3px 6px; border-radius: 0 2px 2px 0; font-size: 4px; margin-bottom: 4px; text-align: left; color: #333; }
.tp-cta-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 4px; }
.tp-contact { font-size: 4px; color: var(--dark-gray); line-height: 1.4; border: 0.5px solid #ddd; padding: 2px 4px; border-radius: 2px; flex: 1; }
.tp-cta { background: var(--orange); color: #fff; font-size: 4.5px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.tp-footer { background: var(--light-gray); padding: 3px 6px; font-size: 3px; color: var(--med-gray); text-align: center; line-height: 1.3; }

.thumb-generic { width: 88%; height: 85%; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); display: flex; flex-direction: column; overflow: hidden; }
.tg-header { background: var(--trust-blue); padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.tg-logo-dot { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,0.5); border-radius: 2px; flex-shrink: 0; }
.tg-headline { color: #fff; font-family: 'Playfair Display', serif; font-size: 7px; font-weight: 700; line-height: 1.1; }
.tg-gold-bar { height: 2px; background: var(--heritage-gold); }
.tg-body { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tg-text-line { height: 4px; border-radius: 2px; background: #e8e8e8; }
.tg-text-line.short { width: 60%; }
.tg-text-line.med { width: 85%; }
.tg-text-line.long { width: 100%; }
.tg-cta-btn { margin-top: 4px; background: var(--orange); color: #fff; font-size: 5px; font-weight: 700; padding: 3px 10px; border-radius: 3px; align-self: flex-start; }
.tg-footer { padding: 4px 8px; font-size: 3px; color: var(--med-gray); border-top: 1px solid #eee; }

.thumb-banner { width: 92%; height: 50%; background: var(--trust-blue); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); display: flex; align-items: center; padding: 8px 12px; gap: 10px; }
.tb-left { flex: 1; }
.tb-headline { color: #fff; font-family: 'Playfair Display', serif; font-size: 7px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.tb-cta { background: var(--orange); color: #fff; font-size: 5px; font-weight: 700; padding: 2px 8px; border-radius: 3px; display: inline-block; }
.tb-logo { width: 24px; height: 24px; border: 1px solid rgba(255,255,255,0.4); border-radius: 3px; flex-shrink: 0; }

.thumb-social { width: 75%; height: 85%; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); display: flex; flex-direction: column; overflow: hidden; }
.ts-image { flex: 1; background: linear-gradient(135deg, var(--trust-blue) 0%, var(--trust-blue-dark) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.ts-logo { width: 20px; height: 20px; border: 1px solid rgba(255,255,255,0.5); border-radius: 2px; margin-bottom: 5px; }
.ts-text { color: #fff; font-family: 'Playfair Display', serif; font-size: 6px; text-align: center; font-weight: 700; line-height: 1.3; }
.ts-gold-bar { height: 2px; background: var(--heritage-gold); }
.ts-bottom { padding: 6px 8px; display: flex; align-items: center; justify-content: space-between; }
.ts-contact { font-size: 4px; color: var(--dark-gray); }
.ts-cta { background: var(--orange); color: #fff; font-size: 4px; font-weight: 700; padding: 2px 6px; border-radius: 2px; }

.thumb-email { width: 75%; height: 90%; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); display: flex; flex-direction: column; overflow: hidden; }
.te-bar { height: 16px; background: #f0f0f0; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; padding: 0 6px; gap: 3px; }
.te-dot { width: 4px; height: 4px; border-radius: 50%; background: #ccc; }
.te-header { background: var(--trust-blue); padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.te-logo { width: 16px; height: 16px; border: 1px solid rgba(255,255,255,0.4); border-radius: 2px; flex-shrink: 0; }
.te-heading { color: #fff; font-family: 'Playfair Display', serif; font-size: 7px; font-weight: 700; }
.te-gold-bar { height: 2px; background: var(--heritage-gold); }
.te-body { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.te-line { height: 3px; border-radius: 2px; background: #e8e8e8; }
.te-line.short { width: 50%; }
.te-line.med { width: 80%; }
.te-line.long { width: 100%; }
.te-cta { margin-top: 4px; background: var(--orange); color: #fff; font-size: 5px; font-weight: 700; padding: 4px 10px; border-radius: 3px; align-self: center; text-align: center; }
.te-footer { padding: 5px 8px; background: var(--charcoal); font-size: 3.5px; color: rgba(255,255,255,0.6); }

/* ===== GENERATE ===== */
.generate-section { text-align: center; padding: 40px 0 20px; }
.btn-generate { background: var(--orange); color: #fff; border: none; padding: 16px 48px; font-size: 17px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 16px rgba(229,97,35,0.3); }
.btn-generate:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { background: var(--med-gray); box-shadow: none; cursor: not-allowed; transform: none; }
.generate-hint { font-size: 13px; color: var(--med-gray); margin-top: 10px; }

/* ===== PREVIEW ===== */
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.preview-item { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); animation: fadeInUp 0.4s ease-out both; }
.preview-item:nth-child(2) { animation-delay: 0.1s; }
.preview-item:nth-child(3) { animation-delay: 0.2s; }
.preview-item:nth-child(4) { animation-delay: 0.3s; }
.preview-item-header { padding: 16px 24px; background: var(--trust-blue-light); border-bottom: 1px solid #e2e2e2; display: flex; align-items: center; justify-content: space-between; }
.preview-item-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; color: var(--trust-blue); }
.btn-download { background: var(--trust-blue); color: #fff; border: none; padding: 8px 20px; font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.btn-download:hover { background: var(--trust-blue-dark); }
.preview-item-body { padding: 32px; display: flex; justify-content: center; background: var(--light-gray); }
.svg-preview-container svg { width: 100%; height: auto; max-height: 600px; display: block; }

/* ===== LIVE PREVIEWS ===== */
.live-poster { width: 540px; max-width: 100%; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); border-radius: 4px; overflow: hidden; }
.lp-header { background: var(--trust-blue); padding: 28px 32px 24px; text-align: center; }
.lp-logo-zone { margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.lp-logo-zone img { max-height: 52px; max-width: 200px; object-fit: contain; }
.lp-logo-placeholder { border: 1.5px solid rgba(255,255,255,0.5); border-radius: 4px; padding: 8px 24px; color: rgba(255,255,255,0.6); font-size: 13px; }
.lp-hero-text { color: #fff; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; line-height: 1.3; }
.lp-gold-bar { height: 4px; background: var(--heritage-gold); }
.lp-body { padding: 28px 32px; text-align: center; }
.lp-subtitle { font-weight: 700; font-size: 18px; color: var(--charcoal); margin-bottom: 16px; line-height: 1.3; }
.lp-illustration { width: 100%; height: 180px; background: linear-gradient(135deg, var(--trust-blue-light) 0%, var(--heritage-gold-light) 40%, var(--orange-light) 100%); border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--med-gray); font-style: italic; font-size: 14px; }
.lp-callout { background: var(--burgundy-light); border-left: 4px solid var(--burgundy); padding: 14px 18px; margin-bottom: 20px; text-align: left; font-size: 15px; color: var(--charcoal); border-radius: 0 var(--radius) var(--radius) 0; }
.lp-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.lp-contact-box { border: 1px solid #ddd; border-radius: var(--radius); padding: 10px 16px; text-align: left; font-size: 14px; color: var(--charcoal); flex: 1; line-height: 1.5; }
.lp-cta-btn { background: var(--orange); color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: var(--radius); white-space: nowrap; }
.lp-powered { text-align: right; font-size: 12px; color: var(--heritage-gold-dark); font-weight: 600; margin-top: 6px; }
.lp-footer { background: var(--light-gray); padding: 14px 24px; font-size: 9px; color: var(--med-gray); line-height: 1.5; text-align: center; }
.lp-footer .disclosure-divider { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ddd; }

.live-generic { width: 100%; max-width: 540px; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); border-radius: 4px; overflow: hidden; }
.lg-header { background: var(--trust-blue); padding: 20px 28px; display: flex; align-items: center; gap: 14px; }
.lg-header img { max-height: 36px; max-width: 120px; object-fit: contain; }
.lg-placeholder { border: 1.5px solid rgba(255,255,255,0.4); border-radius: 4px; padding: 6px 16px; color: rgba(255,255,255,0.5); font-size: 11px; flex-shrink: 0; }
.lg-header-text { color: #fff; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.2; }
.lg-gold-bar { height: 3px; background: var(--heritage-gold); }
.lg-body { padding: 24px 28px; }
.lg-body-text { font-size: 14px; color: var(--charcoal); line-height: 1.6; margin-bottom: 16px; }
.lg-body-text strong { color: var(--trust-blue); }
.lg-cta-btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 10px 28px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.lg-contact { font-size: 13px; color: var(--dark-gray); padding: 10px 14px; border: 1px solid #e2e2e2; border-radius: var(--radius); line-height: 1.5; }
.lg-footer { background: var(--charcoal); padding: 14px 24px; font-size: 8.5px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.live-banner { width: 100%; max-width: 728px; background: var(--trust-blue); border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); display: flex; align-items: center; padding: 16px 24px; gap: 20px; overflow: hidden; }
.lb-left { flex: 1; }
.lb-headline { color: #fff; font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.lb-sub { color: rgba(255,255,255,0.8); font-size: 12px; margin-bottom: 10px; }
.lb-cta { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 6px 18px; border-radius: var(--radius); font-size: 12px; }
.lb-right { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.lb-right img { max-height: 40px; max-width: 100px; object-fit: contain; }
.lb-placeholder { border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; padding: 6px 12px; color: rgba(255,255,255,0.5); font-size: 9px; }
.lb-contact { font-size: 9px; color: rgba(255,255,255,0.65); text-align: center; }

/* ===== FOOTER ===== */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 40px 32px; text-align: center; }
.footer-contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--heritage-gold); margin-bottom: 8px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; margin-bottom: 4px; }
.footer-title { font-size: 14px; margin-bottom: 6px; color: rgba(255,255,255,0.65); }
.footer-email a { color: var(--heritage-gold); text-decoration: none; font-weight: 500; }
.footer-email a:hover { text-decoration: underline; }
.footer-divider { width: 60px; height: 2px; background: var(--heritage-gold); margin: 24px auto; opacity: 0.5; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.4); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* ===== STEPS ===== */
.steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; padding: 32px 32px 0; max-width: 700px; margin: 0 auto; }
.step-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--med-gray); white-space: nowrap; }
.step-item.active { color: var(--trust-blue); }
.step-item.done { color: var(--deep-teal); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--light-gray); border: 2px solid var(--med-gray); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step-item.active .step-num { background: var(--trust-blue); border-color: var(--trust-blue); color: #fff; }
.step-item.done .step-num { background: var(--deep-teal); border-color: var(--deep-teal); color: #fff; }
.step-connector { flex: 1; height: 2px; background: #ddd; margin: 0 12px; min-width: 30px; }
.step-connector.done { background: var(--deep-teal); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== PORTAL USER BAR ===== */
.user-bar { background: var(--trust-blue-dark); color: #fff; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.user-bar-left { display: flex; align-items: center; gap: 12px; }
.user-bar-org { font-weight: 600; font-size: 14px; }
.user-bar-email { opacity: 0.7; }
.user-bar-right { display: flex; align-items: center; gap: 12px; }
.btn-invite { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 16px; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; }
.btn-invite:hover { background: rgba(255,255,255,0.25); }
.btn-logout { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 12px; font-family: 'Inter', sans-serif; cursor: pointer; padding: 6px; }
.btn-logout:hover { color: #fff; }

/* ===== INVITE MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 440px; width: 90%; box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.modal-box h3 { font-size: 22px; color: var(--trust-blue); margin-bottom: 8px; }
.modal-box p { font-size: 14px; color: var(--dark-gray); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions button { flex: 1; }

/* ===== DOWNLOAD HISTORY ===== */
.history-section { padding: 40px 0; border-top: 1px solid #e2e2e2; margin-top: 20px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.history-item { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.history-item-info { font-size: 14px; color: var(--charcoal); }
.history-item-date { font-size: 12px; color: var(--med-gray); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--deep-teal); color: #fff; padding: 14px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 2000; display: none; animation: fadeInUp 0.3s ease-out; }

/* ===== ADMIN PANEL ===== */
.admin-header { background: var(--burgundy); color: #fff; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h2 { font-size: 24px; margin: 0; }
.admin-header-actions { display: flex; gap: 12px; align-items: center; }
.btn-admin-back { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 20px; font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; }
.btn-admin-back:hover { background: rgba(255,255,255,0.25); }
.admin-badge { background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }

.admin-container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.admin-section { padding: 40px 0; }
.admin-section-title { font-size: 22px; color: var(--trust-blue); margin-bottom: 8px; }
.admin-section-subtitle { font-size: 14px; color: var(--dark-gray); margin-bottom: 24px; }

.admin-upload-card { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 32px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.admin-form-group { display: flex; flex-direction: column; }
.admin-form-group.full { grid-column: 1 / -1; }
.admin-form-group label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--charcoal); }
.admin-form-group input, .admin-form-group select { padding: 10px 14px; border: 1.5px solid #d0d0d0; border-radius: var(--radius); font-size: 14px; font-family: 'Inter', sans-serif; }
.admin-form-group input:focus, .admin-form-group select:focus { outline: none; border-color: var(--trust-blue); }

.admin-asset-upload-zone { border: 2px dashed #c0c0c0; border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer; background: var(--light-gray); position: relative; transition: border-color 0.2s, background 0.2s; }
.admin-asset-upload-zone:hover { border-color: var(--trust-blue); background: var(--trust-blue-light); }
.admin-asset-upload-zone.has-file { border-style: solid; border-color: var(--deep-teal); background: #fff; }
.admin-asset-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-asset-preview { max-height: 120px; max-width: 100%; object-fit: contain; border-radius: 4px; }
.admin-upload-label { font-size: 14px; color: var(--dark-gray); margin-top: 8px; }

.admin-placeholder-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; padding: 6px 10px; background: var(--light-gray); border: 1px solid #ddd; border-radius: var(--radius); }
.placeholder-hint { font-size: 12px; color: var(--med-gray); font-style: italic; }
.placeholder-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; font-family: 'Inter', monospace; }
.placeholder-tag.found { background: #d4edda; color: #155724; }
.placeholder-tag.not-found { background: #f0f0f0; color: #aaa; text-decoration: line-through; }

.btn-add-asset { background: var(--orange); color: #fff; border: none; padding: 12px 32px; font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.btn-add-asset:hover { background: var(--orange-dark); }
.btn-add-asset:disabled { background: var(--med-gray); cursor: not-allowed; }

.admin-asset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.admin-asset-item { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.admin-asset-item-thumb { height: 140px; background: var(--warm-white); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.admin-asset-item-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.admin-asset-item-info { padding: 14px 16px; border-top: 1px solid #e2e2e2; display: flex; align-items: center; justify-content: space-between; }
.admin-asset-item-details { flex: 1; }
.admin-asset-item-title { font-weight: 600; font-size: 14px; color: var(--trust-blue); }
.admin-asset-item-meta { font-size: 12px; color: var(--dark-gray); }
.btn-remove-asset { background: #c0392b; color: #fff; border: none; padding: 6px 14px; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: var(--radius); cursor: pointer; flex-shrink: 0; }
.btn-remove-asset:hover { background: #a93226; }

.admin-empty-state { text-align: center; padding: 40px; color: var(--med-gray); font-size: 15px; }

/* ===== ADMIN ORG MANAGEMENT ===== */
.admin-org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.admin-org-card { background: #fff; border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 20px; }
.admin-org-card h4 { font-size: 18px; color: var(--trust-blue); margin-bottom: 8px; }
.admin-org-card .org-meta { font-size: 13px; color: var(--dark-gray); margin-bottom: 12px; }
.admin-org-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-org-actions button { font-size: 12px; padding: 6px 14px; }
.invite-url-box { background: var(--light-gray); border: 1px solid #e2e2e2; border-radius: var(--radius); padding: 12px; font-size: 13px; word-break: break-all; margin-top: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-bar { gap: 0; padding: 24px 16px 0; }
  .step-item { font-size: 12px; }
}
@media (max-width: 700px) {
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .container { padding: 0 16px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr; }
  .lp-cta-row { flex-direction: column; }
  .live-banner { flex-direction: column; text-align: center; }
  .steps-bar { padding: 20px 12px 0; }
  .step-item { font-size: 11px; }
  .step-connector { min-width: 16px; margin: 0 6px; }
  .section-title { font-size: 24px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
  .admin-asset-list { grid-template-columns: 1fr; }
  .user-bar { flex-direction: column; gap: 8px; text-align: center; }
  .auth-card { padding: 32px 24px; }
}

#preview-section { display: none; }
#preview-section.visible { display: block; }
