:root {
    --black: #0a0a0a;
    --orange: #FF5C00;
    --orange-light: #FF7A2F;
    --orange-muted: #FF5C0022;
    --white: #FAFAF8;
    --gray: #1a1a1a;
    --gray-mid: #2e2e2e;
    --gray-light: #888;
    --border: #2a2a2a;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
  }

  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--black); }
  ::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px;
    height: 70px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; color: var(--white); }
  .nav-logo span { color: var(--orange); }
  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a { color: var(--gray-light); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
  .nav-links a:hover { color: var(--orange); }
  .nav-cta { background: var(--orange); color: var(--black); padding: 10px 24px; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; transition: background 0.2s; text-decoration: none; display: inline-block; }
  .nav-cta:hover { background: var(--orange-light); }

  .cidade-badge { background: transparent; border: 1px solid var(--border); color: var(--white); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px; transition: border-color 0.2s, color 0.2s; }
  .cidade-badge:hover { border-color: var(--orange); color: var(--orange); }

  .cidade-modal-input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--gray); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 14px; margin-bottom: 14px; }
  .cidade-modal-input:focus { outline: none; border-color: var(--orange); }
  .cidade-modal-lista { max-height: 280px; overflow-y: auto; text-align: left; }
  .cidade-modal-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: background 0.15s; }
  .cidade-modal-item:hover { background: var(--gray-mid); }
  .cidade-modal-item.ativa { background: var(--orange-muted); color: var(--orange); font-weight: 700; }
  .cidade-modal-empty { text-align: center; color: var(--gray-light); font-size: 13px; padding: 16px 0; }

  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 100px 48px 60px; text-align: center;
  }
  .hero-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,92,0,0.15) 0%, transparent 60%),
      repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,92,0,0.03) 60px, rgba(255,92,0,0.03) 61px),
      repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,92,0,0.03) 60px, rgba(255,92,0,0.03) 61px);
  }
  .hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-muted); border: 1px solid rgba(255,92,0,0.3); padding: 6px 16px; margin-bottom: 32px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; }
  .hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
  .hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(64px, 10vw, 140px); line-height: 0.95; letter-spacing: -1px; margin-bottom: 24px; position: relative; }
  .hero h1 .line-orange { color: var(--orange); }
  .hero h1 .line-stroke { -webkit-text-stroke: 2px var(--white); color: transparent; }
  .hero-desc { max-width: 520px; font-size: 17px; font-weight: 300; color: var(--gray-light); line-height: 1.7; margin-bottom: 48px; }
  .hero-search { display: flex; gap: 0; width: 100%; max-width: 560px; border: 1px solid var(--border); }
  .hero-search input { flex: 1; padding: 16px 24px; background: var(--gray); border: none; outline: none; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px; }
  .hero-search input::placeholder { color: var(--gray-light); }
  .hero-search button { padding: 16px 28px; background: var(--orange); border: none; cursor: pointer; color: var(--black); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; transition: background 0.2s; }
  .hero-search button:hover { background: var(--orange-light); }
  .hero-stats { display: flex; gap: 48px; margin-top: 64px; position: relative; }
  .stat { text-align: center; }
  .stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--orange); line-height: 1; }
  .stat-label { font-size: 12px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
  .hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray-light); font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; }
  .hero-scroll::after { content: ''; width: 1px; height: 40px; background: var(--orange); }
  @keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

  .section { padding: 0px 48px; }
  .section-label { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--orange); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
  .section-label::before { content: ''; width: 32px; height: 1px; background: var(--orange); }
  .section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 5vw, 60px); line-height: 1; margin-bottom: 48px; }

  .filter-type { display: flex; gap: 0; margin-bottom: 48px; border: 1px solid var(--border); width: 100%; max-width: fit-content; position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-type::-webkit-scrollbar { display: none; }
  .filter-type-btn { padding: 14px 36px; background: transparent; border: none; cursor: pointer; color: var(--gray-light); font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; transition: all 0.3s; position: relative; z-index: 1; border-right: 1px solid var(--border); }
  .filter-type-btn:last-child { border-right: none; }
  .filter-type-btn.active { color: var(--black); background: var(--orange); }
  .filter-type-btn:not(.active):hover { color: var(--orange); }

  .sub-tabs-wrap { min-height: 60px; margin-bottom: 48px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sub-tabs-wrap::-webkit-scrollbar { display: none; }
  .sub-tabs { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
  .sub-tabs.visible { opacity: 1; transform: translateY(0); }
  .sub-tab { padding: 10px 22px; background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--gray-light); font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 13px; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
  .sub-tab .emoji { font-size: 16px; }
  .sub-tab:hover { border-color: var(--orange); color: var(--orange); }
  .sub-tab.active { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 700; }

  .estab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; animation: fadeIn 0.5s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  .estab-card { background: var(--gray); border: 1px solid var(--border); cursor: pointer; transition: all 0.3s; overflow: hidden; position: relative; }
  .estab-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(255,92,0,0.15); }
  .estab-card:hover .card-img-overlay { opacity: 1; }
  .card-img-bg { width: 100%; height: 200px; background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
  .card-img-bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
  .card-img-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,0.8) 100%); }
  .card-img-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,92,0,0.15); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
  .card-img-overlay span { background: var(--orange); color: var(--black); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px; padding: 10px 20px; letter-spacing: 0.5px; }
  .card-tag { position: absolute; top: 16px; left: 16px; background: var(--orange); color: var(--black); font-family: 'Space Mono', monospace; font-size: 10px; padding: 4px 10px; letter-spacing: 1px; text-transform: uppercase; }
  .card-badge-new { position: absolute; top: 16px; right: 16px; background: var(--black); border: 1px solid var(--orange); color: var(--orange); font-family: 'Space Mono', monospace; font-size: 9px; padding: 4px 8px; letter-spacing: 1px; text-transform: uppercase; }
  .card-body { padding: 20px 24px 24px; }
  .card-name { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 0.5px; margin-bottom: 8px; color: var(--white); }
  .card-info { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .card-info-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-light); }
  .card-info-row svg { flex-shrink: 0; }
  .card-rating { display: flex; align-items: center; gap: 6px; }
  .stars { color: var(--orange); font-size: 14px; }
  .rating-val { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--white); }
  .card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: rgba(255,92,0,0.05); border-top: 1px solid var(--border); }
  .card-footer-label { font-size: 11px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 1px; font-family: 'Space Mono', monospace; }
  .card-open { font-size: 11px; font-weight: 700; padding: 4px 10px; font-family: 'Space Mono', monospace; letter-spacing: 0.5px; }
  .open { color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
  .closed { color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
  .closing { color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
  .opening { color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }

  .modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal { background: var(--gray); border: 1px solid var(--border); width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; transform: translateY(30px) scale(0.97); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
  .modal-header { display: flex; height: 240px; position: relative; overflow: hidden; }
  .modal-img-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
  .modal-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--gray) 100%); }
  .modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; background: rgba(10,10,10,0.8); border: 1px solid var(--border); color: var(--white); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 2; }
  .modal-close:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
  .modal-body { padding: 0 32px 32px; }
  .modal-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; margin-top: -20px; position: relative; }
  .modal-name { font-family: 'Bebas Neue', sans-serif; font-size: 46px; line-height: 1; color: var(--white); }
  .modal-category { background: var(--orange); color: var(--black); font-family: 'Space Mono', monospace; font-size: 10px; padding: 4px 12px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; margin-top: 8px; display: inline-block; }
  .modal-rating-big { background: var(--black); border: 1px solid var(--orange); padding: 12px 20px; text-align: center; flex-shrink: 0; }
  .modal-rating-big .num { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--orange); line-height: 1; }
  .modal-rating-big .stars-sm { color: var(--orange); font-size: 12px; }
  .modal-rating-big .label-sm { font-size: 10px; color: var(--gray-light); font-family: 'Space Mono', monospace; letter-spacing: 0.5px; }
  .modal-divider { height: 1px; background: var(--border); margin: 20px 0; }
  .modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
  .info-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
  .info-icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--orange-muted); border: 1px solid rgba(255,92,0,0.2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .info-label { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--orange); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
  .info-value { font-size: 14px; color: var(--white); font-weight: 500; }
  .modal-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
  .action-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--gray-light); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
  .action-btn .action-icon { font-size: 22px; }
  .action-btn:hover { border-color: var(--orange); color: var(--orange); }
  .action-btn.primary { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 700; }
  .action-btn.primary:hover { background: var(--orange-light); }
  .qr-section { background: var(--black); border: 1px solid var(--border); padding: 24px; display: flex; align-items: center; gap: 24px; }
  .qr-code-wrap { flex-shrink: 0; width: 100px; height: 100px; background: var(--white); padding: 8px; display: flex; align-items: center; justify-content: center; position: relative; }
  .qr-fake { width: 84px; height: 84px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 1px; }
  .qr-fake-cell { background: var(--black); }
  .qr-fake-cell.w { background: var(--white); }
  .qr-promo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--orange); margin-bottom: 4px; }
  .qr-desc { font-size: 13px; color: var(--gray-light); line-height: 1.5; }
  .qr-badge { display: inline-block; margin-top: 8px; background: rgba(255,92,0,0.15); border: 1px solid rgba(255,92,0,0.3); color: var(--orange); font-family: 'Space Mono', monospace; font-size: 10px; padding: 3px 10px; letter-spacing: 1px; }
  .modal-fechar-btn { width: 100%; margin-top: 20px; padding: 14px; background: transparent; border: 1px solid var(--border); color: var(--gray-light); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
  .modal-fechar-btn:hover { border-color: var(--orange); color: var(--orange); }

.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.db-table-header { background: var(--orange); color: var(--black); padding: 14px 24px; display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; }
.db-row { display: flex; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--border); gap: 12px; }
.db-row:hover { background: rgba(255,92,0,0.05); }
.db-field-name { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--white); flex: 1; }
.db-pk { color: #FFD700; }

  footer { padding: 48px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; }
  .footer-logo span { color: var(--orange); }
  .footer-copy { font-size: 12px; color: var(--gray-light); font-family: 'Space Mono', monospace; }
  .footer-links { display: flex; gap: 24px; list-style: none; }
  .footer-links a { font-size: 12px; color: var(--gray-light); text-decoration: none; transition: color 0.2s; font-family: 'Space Mono', monospace; }
  .footer-links a:hover { color: var(--orange); }

  .empty-state { text-align: center; padding: 80px 48px; display: none; }
  .empty-state.show { display: block; }
  .empty-emoji { font-size: 64px; margin-bottom: 16px; }
  .empty-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--gray-light); margin-bottom: 8px; }
  .empty-desc { color: var(--gray-light); font-size: 15px; }

  .results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .results-count { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--gray-light); }
  .results-count span { color: var(--orange); }
  .sort-select { background: var(--gray); border: 1px solid var(--border); color: var(--white); padding: 8px 16px; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; cursor: pointer; }

  @media (max-width: 768px) {
    .filter-type { max-width: 100%; }
    .sub-tabs { flex-wrap: nowrap; }
    .filter-type-btn { padding: 14px 24px; white-space: nowrap; flex-shrink: 0; }
    .sub-tab { white-space: nowrap; flex-shrink: 0; }
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero { padding: 90px 20px 60px; }
    .hero-stats { gap: 24px; }
    .section { padding: 60px 20px; }
  .modal-info-grid { grid-template-columns: 1fr; }
    .modal-actions { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
    .modal-top { flex-direction: column; }
    .qr-section { flex-direction: column; }
  }