:root {
  --navy: #1B2D4A;
  --navy-light: #2E4A73;
  --navy-dark: #101B2D;
  --gold: #C9A24B;
  --gold-light: #DDBE73;
  --cream: #FDF8F0;
  --surface: #F7F3EA;
  --border: #E5DCC8;
  --text: #24211B;
  --text-muted: #6B6255;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); line-height: 1.6; }
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--white); position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.08); }

/* === COVER === */
.cover { position: relative; height: 100vh; max-height: 720px; overflow: hidden; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,27,45,0.45) 0%, rgba(16,27,45,0.2) 40%, rgba(16,27,45,0.7) 100%); }
.cover-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.cover-badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.cover-title { font-family: var(--serif); font-size: 64px; font-weight: 900; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); letter-spacing: 2px; line-height: 1; margin-bottom: 12px; }
.cover-sub { font-size: 14px; color: rgba(255,255,255,0.9); max-width: 320px; line-height: 1.5; }
.cover-qr { margin-top: 24px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.15); padding: 8px 14px; border-radius: 10px; backdrop-filter: blur(4px); }
.cover-qr .qr-box { width: 36px; height: 36px; background: var(--white); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.cover-qr span { font-size: 11px; color: rgba(255,255,255,0.85); text-align: left; line-height: 1.3; }

/* === NAVBAR === */
.navbar { position: sticky; top: 0; background: var(--navy); z-index: 50; padding: 12px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-brand { background: none; border: none; color: var(--white); font-family: var(--serif); font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.12); }

/* === HOME === */
.home-container { padding: 0 0 120px; }
.home-intro { text-align: center; padding: 40px 24px 24px; }
.home-intro h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.home-intro p { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto; }

.category-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.category-card { position: relative; height: 200px; overflow: hidden; cursor: pointer; }
.category-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.category-card:hover .category-img { transform: scale(1.05); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(16,27,45,0.75) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.category-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--white); }
.category-count { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.category-arrow { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--navy-dark); font-weight: 700; }

.cta-box { margin: 32px 24px 0; background: var(--navy); border-radius: 16px; padding: 28px; text-align: center; }
.cta-box h3 { font-family: var(--serif); font-size: 20px; color: var(--white); margin-bottom: 8px; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 8px; text-decoration: none; }

/* === CATEGORY LIST === */
.screen-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 49px; background: var(--white); z-index: 40; }
.screen-header .icon-btn { background: var(--surface); border: 1px solid var(--border); color: var(--navy); font-size: 14px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.screen-header .screen-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.screen-header .screen-sub { font-size: 12px; color: var(--text-muted); }

.list-container { padding: 16px 16px 40px; }
.business-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; cursor: pointer; transition: all 0.2s; }
.business-card:hover, .business-card:active { border-color: var(--navy-light); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.business-card .card-banner { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.business-card .card-body { padding: 16px; }
.business-card .biz-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.business-card .biz-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.business-card .biz-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.business-card .biz-hours { font-size: 11px; color: var(--navy); background: #E4EAF1; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.business-card .member-tag { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.business-card .tap-hint { font-size: 12px; color: var(--navy); font-weight: 600; margin-top: 8px; }

/* === DETAIL === */
.detail-container { padding: 0 0 40px; }
.detail-hero { background: var(--navy); color: var(--white); padding: 32px 24px; text-align: center; }
.detail-hero .biz-icon-lg { font-size: 48px; margin-bottom: 12px; }
.detail-hero h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.detail-hero .member-tag { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.detail-body { padding: 20px 24px; }
.detail-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.detail-section h3 { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-section p { font-size: 14px; color: var(--text); }
.detail-info-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-info-row:last-child { border-bottom: none; }
.detail-info-row .info-icon { font-size: 16px; width: 22px; flex-shrink: 0; text-align: center; }
.detail-info-row .info-text { font-size: 14px; color: var(--text); }
.detail-info-row a { color: var(--navy); font-weight: 600; text-decoration: none; }
.detail-actions { display: flex; gap: 10px; margin-top: 6px; }
.detail-actions a, .detail-actions button { flex: 1; text-align: center; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; }
.detail-actions .call-btn { background: var(--navy); color: var(--white); }
.detail-actions .web-btn { background: var(--surface); color: var(--navy); border: 1px solid var(--border); }
.back-link { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.back-link:hover { color: var(--navy); }

/* === FLOATING CHAT === */
.chat-fab { position: fixed; bottom: 22px; right: calc(50% - 360px + 20px); background: var(--navy); color: var(--white); border: none; border-radius: 30px; padding: 12px 18px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(27,45,74,0.35); cursor: pointer; display: flex; align-items: center; gap: 8px; z-index: 50; transition: transform 0.2s; }
.chat-fab:hover { transform: translateY(-2px); }
@media (max-width: 740px) { .chat-fab { right: 16px; } }

/* === CHAT OVERLAY === */
.chat-overlay { position: fixed; inset: 0; background: rgba(16,27,45,0.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.chat-panel { background: var(--white); width: 100%; max-width: 720px; border-radius: 20px 20px 0 0; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { background: var(--navy); color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.chat-header p { font-size: 12px; opacity: 0.8; }
.chat-close { background: rgba(255,255,255,0.15); border: none; color: var(--white); width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.chat-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.chat-suggestions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.chat-suggestion-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.chat-chip { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; text-align: left; padding: 11px 14px; border-radius: 10px; cursor: pointer; }
.chat-chip:hover { border-color: var(--navy-light); background: #EEF2F7; }
.chat-msg { margin-bottom: 14px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.chat-msg.user .bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg.bot .bubble { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.bot .bubble h4 { font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.chat-msg.bot .bubble ul { padding-left: 18px; margin-top: 6px; }
.chat-msg.bot .bubble li { margin-bottom: 4px; }
.chat-msg.bot .bubble .bot-label { font-size: 11px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.chat-input-row { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--white); }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 24px; padding: 12px 16px; font-size: 14px; outline: none; }
.chat-input-row input:focus { border-color: var(--navy-light); }
.chat-input-row button { background: var(--gold); color: var(--navy-dark); border: none; border-radius: 24px; padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer; }
.typing-indicator { font-size: 12px; color: var(--text-muted); font-style: italic; padding-left: 4px; }

/* === FOOTER === */
.footer { background: var(--navy-dark); color: var(--cream); padding: 24px 24px 100px; text-align: center; }
.footer p { font-size: 13px; opacity: 0.85; }
.footer .footer-powered { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.footer a { color: var(--gold-light); }
.hidden { display: none; }

@media (max-width: 480px) {
  .cover-title { font-size: 48px; }
  .home-intro h2 { font-size: 24px; }
  .category-card { height: 180px; }
}
