/* ════════════════════════════════════════════
       RESET & TOKENS
    ════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    a    { text-decoration: none; color: inherit; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }
    /* touch-action: manipulation — desliga double-tap-zoom nos clicaveis, corta a
       janela residual de ~300ms de deteccao de toque. Nao afeta scroll/swipe (tratados
       no JS com pan-y/none onde necessario). */
    button, a, .store-card, .store-info, .cat-item, .pill-btn,
    .nav-item, [role="button"], .detail-btn-wpp, .detail-btn-tel,
    .btn-wpp, .btn-tel { touch-action: manipulation; }

    :root {
      --bg:       #0d0d0d;
      --surface:  #181818;
      --surface2: #222222;
      --border:   rgba(255,255,255,0.08);
      --text:     #f0f0f0;
      --muted:    #9a9a9a; /* #6: era #7a7a7a (~4.1:1 nas surfaces) → agora ~6:1 AA */
      --green:    #00d084;
      --red:      #ff4444;
      --zap:      #f59e0b;
      --blue:     #4285f4;
      /* Item 12: cores canônicas de plano (antes espalhadas em vários hex divergentes:
         PLUS aparecia como #6366f1, #a5b4fc, #818cf6; PRO com âmbares variados). */
      --plano-plus-1: #6366f1;
      --plano-plus-2: #4f46e5;
      --plano-plus-txt: #a5b4fc;
      --plano-pro-1: #f59e0b;
      --plano-pro-2: #d97706;
      --plano-pro-txt: #fbbf24;
      --font-h:   'Syne', sans-serif;
      --font-b:   'DM Sans', sans-serif;
      --r-lg:     18px;
      --r-md:     12px;
      /* skeleton tokens — adaptam ao tema */
      --sk-base:  #2a2a2a;
      --sk-shine: #333333;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-b);
      font-size: 14px;
      line-height: 1.5;
      padding-bottom: calc(90px + env(safe-area-inset-bottom));
      -webkit-font-smoothing: antialiased;
      -webkit-text-size-adjust: 100%;
    }

    .scroll-x { display: flex; overflow-x: auto; scrollbar-width: none; }
    .scroll-x::-webkit-scrollbar { display: none; }

    /* ════════════════════════════════════════════
       HEADER
    ════════════════════════════════════════════ */
    .header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(14,14,14,0.65);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: none;
      padding: 14px 16px 0;
    }
    .header-top {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      /* Igreja Matriz aparece SO atras desta faixa (logo + cidade) */
      position: relative;
      margin: -14px -16px 10px;
      padding: 14px 16px 12px;
      border-radius: 0;
      background-size: cover;
      background-position: center 35%;
      transition: background-image 0.8s ease;
    }
    /* Foto da Igreja — troca dia/noite, apenas no header-top */
    .header-top.htop-dia {
      background:
        linear-gradient(to bottom, rgba(10,20,40,0.35) 0%, rgba(14,14,14,0.85) 100%),
        url('/img/igreja-dia.jpg') center 35% / cover no-repeat;
    }
    .header-top.htop-noite {
      background:
        linear-gradient(to bottom, rgba(5,5,20,0.45) 0%, rgba(14,14,14,0.88) 100%),
        url('/img/igreja-noite.jpg') center 35% / cover no-repeat;
    }
    /* Tema DIA: gradiente da foto clareia p/ fundir com o fundo azul-céu */
    body.light-mode .header-top.htop-dia {
      background:
        linear-gradient(to bottom, rgba(120,150,195,0.10) 0%, rgba(194,205,221,0.94) 100%),
        url('/img/igreja-dia.jpg') center 35% / cover no-repeat;
    }
    /* Sobre a foto clara, o logo escurece p/ manter contraste */
    body.light-mode .header-top.htop-dia .logo {
      text-shadow: 0 1px 3px rgba(255,255,255,0.7), 0 1px 8px rgba(255,255,255,0.5);
    }
    body.light-mode .header-top.htop-dia .logo-city {
      background: rgba(255,255,255,0.55);
      border-color: rgba(30,58,95,0.18);
      color: rgba(22,35,58,0.9);
    }
    .logo {
      font-family: var(--font-h);
      font-size: 1.55rem; font-weight: 800;
      letter-spacing: -0.03em; line-height: 1;
    }
    .logo span { color: var(--red); }
    /* Legibilidade do logo sobre a foto da Igreja */
    .header-top.htop-dia .logo,
    .header-top.htop-noite .logo {
      text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
    }
    .header-top.htop-dia .logo-city,
    .header-top.htop-noite .logo-city {
      background: rgba(0,0,0,0.45);
      border-color: rgba(255,255,255,0.15);
      backdrop-filter: blur(4px);
      color: rgba(255,255,255,0.85);
    }
    .logo-city {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 9px; color: var(--muted);
      text-transform: uppercase; letter-spacing: 1px;
      margin-top: 4px;
      background: var(--surface2);
      border: 1px solid var(--border);
      padding: 2px 8px; border-radius: 20px;
      width: fit-content;
    }

    /* ════════ OWL BADGE animado ════════ */
    .owl-badge-anim {
      width: 48px; height: 48px;
      border-radius: 50%;
      flex-shrink: 0;
      image-rendering: auto;
    }


    /* ════════════════════════════════════════════
       BUSCA  (font-size 16px → sem zoom no iOS)
    ════════════════════════════════════════════ */
    .search-wrap { position: relative; }
    .search-wrap input {
      width: 100%; background: var(--surface2);
      border: 1px solid var(--border); border-radius: var(--r-md);
      padding: 11px 14px 11px 40px;
      color: var(--text); font-family: var(--font-b); font-size: 16px;
      outline: none; transition: border-color 0.2s;
    }
    .search-wrap input::placeholder { color: var(--muted); font-size: 14px; }
    .search-wrap input:focus {
      border-color: rgba(255,68,68,0.55);
      outline: none;
      box-shadow: 0 0 0 3px rgba(255,68,68,0.14);
    }
    .search-icon {
      position: absolute; left: 14px; top: 50%;
      transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none;
    }

    /* ════════════════════════════════════════════
       CATEGORIAS
    ════════════════════════════════════════════ */
    .categories {
      background: transparent; border-bottom: none;
      padding: 8px 16px 12px 4px; gap: 10px;
    }
    .cat-item {
      display: flex; flex-direction: column; align-items: center;
      gap: 7px; min-width: 68px; padding: 2px 0;
      min-height: 44px;
      -webkit-tap-highlight-color: transparent;
    }
    .cat-icon {
      width: 56px; height: 56px; border-radius: 18px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.35rem;
      background: var(--surface2);
      border: 1px solid rgba(255,255,255,0.05);
      transition: transform 0.18s cubic-bezier(0.32,0.72,0,1),
                  box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s;
      position: relative;
    }
    /* Ativo: fundo preenchido sutil na cor da categoria + glow + leve scale */
    .cat-icon.active {
      transform: translateY(-2px) scale(1.04);
      border-color: transparent;
      background: var(--surface2); /* fallback */
      background: color-mix(in srgb, var(--cat-accent, var(--red)) 14%, var(--surface2));
      box-shadow: 0 6px 18px rgba(0,0,0,0.35),
                  0 0 0 1.5px var(--cat-accent, var(--red)) inset,
                  0 4px 16px -2px var(--cat-accent, var(--red));
    }
    .cat-label {
      font-size: 11px; font-weight: 600; color: var(--muted);
      line-height: 1.15; text-align: center;
      width: 100%; max-width: 72px;
      display: -webkit-box; -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; overflow: hidden;
      word-break: break-word; overflow-wrap: anywhere;
      min-height: calc(2 * 1.15em);
      transition: color 0.2s, font-weight 0.2s;
    }
    .cat-icon.active + .cat-label { color: var(--text); font-weight: 700; }

    .cat-badge {
      position: absolute; top: -4px; right: -4px;
      min-width: 16px; height: 16px;
      background: var(--green); color: #000;
      font-size: 8px; font-weight: 800; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      padding: 0 4px; border: 2px solid var(--bg);
      box-shadow: 0 2px 6px rgba(0,208,132,0.4);
      opacity: 0; transform: scale(0.5);
      transition: opacity 0.2s, transform 0.2s;
    }
    .cat-badge.visible { opacity: 1; transform: scale(1); }
    /* ── Skeleton Categorias ────────────────────────────────── */
    .skeleton-cat {
      display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 68px;
    }
    .skeleton-cat-icon {
      width: 54px; height: 54px; border-radius: 16px;
      background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.2s infinite linear;
    }
    .skeleton-cat-label {
      width: 44px; height: 9px; border-radius: 5px;
      background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.2s infinite linear;
    }


    /* ════════════════════════════════════════════
       SEÇÃO RECOMENDADOS (lojas destaque/pagas)
    ════════════════════════════════════════════ */

    /* ════════════════════════════════════════════
       MAIN
    ════════════════════════════════════════════ */
    .main { padding: 16px 16px 20px; }

    .section-header {
      display: flex; align-items: center;
      justify-content: space-between; margin-bottom: 14px;
    }
    .section-title { font-family: var(--font-h); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
    .filter-info { font-size: 11px; color: var(--muted); transition: color 0.2s; }
    .filter-info.has-open { color: var(--green); }

    /* ════════════════════════════════════════════
       STORE CARDS
    ════════════════════════════════════════════ */
    .store-list { display: flex; flex-direction: column; gap: 12px; }

    .store-card {
      display: flex; align-items: center; gap: 12px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--r-lg); padding: 12px 12px 12px 16px;
      position: relative; overflow: hidden;
      transform: translateZ(0); transition: transform 0.15s, border-color 0.3s;
    }
    .store-card:active { transform: scale(0.984) translateZ(0); }

    /* ── Favoritos: coração só no modal de detalhes ── */
    .fav-btn-big {
      width: 40px; height: 40px; flex-shrink: 0; margin-left: auto;
      border-radius: 50%; padding: 0; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      background: var(--surface2); border: 1px solid var(--border);
      -webkit-tap-highlight-color: transparent;
      transition: transform .15s, background .2s, border-color .2s;
    }
    .fav-btn-big i { font-size: 18px; color: var(--muted); transition: color .2s; }
    .fav-btn-big:active { transform: scale(0.88); }
    .fav-btn-big.is-fav { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.4); }
    .fav-btn-big.is-fav i { color: #ef4444; animation: favPop .32s ease; }
    @keyframes favPop {
      0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); }
    }

    /* ── Pill de Favoritos no filtro ── */
    .pill-fav-btn.active { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.45); color: #ef4444; }
    .pill-fav-btn.active .pill-fav-count { background: #ef4444; color: #fff; }
    .pill-fav-count {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 16px; height: 16px; padding: 0 4px; margin-left: 4px;
      border-radius: 999px; background: rgba(239,68,68,0.25); color: #ef4444;
      font-size: 10px; font-weight: 800; line-height: 1;
    }

    .store-card::before {
      content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
      width: 4px; border-radius: 0 4px 4px 0;
    }
    .store-card[data-status="open"]   { border-color: rgba(0,208,132,0.2); }
    .store-card[data-status="open"]::before   { background: var(--green); }
    .store-card[data-status="zap"]    { border-color: rgba(245,158,11,0.2); }
    .store-card[data-status="zap"]::before    { background: var(--zap); }
    /* loja fechada: mais legível com saturação reduzida */
    .store-card[data-status="closed"] { opacity: 0.68; filter: saturate(0.55); }
    .store-card[data-status="closed"]::before { background: #555; }
    .store-card[data-status="closed"] .store-thumb { filter: grayscale(45%); }
    .store-card[data-status="closed"] .store-name  { opacity: 0.85; }
    .store-card[data-status="closed"].plano-pro  { opacity: 0.60; }
    .store-card[data-status="closed"].plano-plus { opacity: 0.55; }

    .store-thumb {
      width: 58px; height: 58px; min-width: 58px;
      border-radius: 14px; display: flex; align-items: center;
      justify-content: center; font-size: 1.7rem;
      flex-shrink: 0; overflow: hidden;
      background: #1a1a1a; /* fundo escuro — evita ilha branca no dark mode */
      border: 1px solid rgba(255,255,255,0.08);
    }
    /* Em cards Pro com foto, o thumb ganha borda para destacar do fundo */
    .store-card.plano-pro.has-cover .store-thumb {
      border: 1.5px solid rgba(255,255,255,0.25);
      box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }
    .store-thumb img { width:100%; height:100%; object-fit:cover; border-radius:14px; display:block; }
    /* Logo real da loja — cover para preencher sem bordas brancas */
    .store-thumb .store-logo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 14px;
    }

    .store-info {
      flex: 1 1 0; min-width: 0;
      display: flex; flex-direction: column; gap: 2px;
      overflow: hidden;
    }
    .store-name-row {
      display: flex; align-items: center; gap: 5px;
      min-width: 0; flex-wrap: nowrap;
      overflow: hidden; /* garante que badge não estoure o card */
    }
    .store-name {
      font-family: var(--font-h); font-size: 0.82rem; font-weight: 800;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      min-width: 0; flex: 1 1 0; letter-spacing: 0.01em; line-height: 1.15;
    }
    .store-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 1px; line-height: 1.3; }
    .store-row { display: flex; align-items: center; gap: 5px; margin-top: 7px; flex-wrap: nowrap; }

    /* badges de status */
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.03em; padding: 3px 7px;
      border-radius: 6px; white-space: nowrap; line-height: 1;
    }
    .badge-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; }
    .badge-open   { background:rgba(0,208,132,0.12); color:var(--green); }
    .badge-open   .badge-dot { background:var(--green); animation:blink 1.5s infinite; }
    .badge-closed { background:rgba(255,68,68,0.14);  color:#ff8585; }
    .badge-closed .badge-dot { background:#ff8585; }
    /* Em cards com foto, badges ganham fundo sólido para legibilidade */
    .store-card.plano-pro.has-cover .badge {
      backdrop-filter: blur(4px);
    }
    .store-card.plano-pro.has-cover .badge-closed { background:rgba(255,68,68,0.25); color:#ffb0b0; }
    .store-card.plano-pro.has-cover .badge-open   { background:rgba(0,208,132,0.25); color:#5dffba; }
    .store-card.plano-pro.has-cover .badge-zap    { background:rgba(245,158,11,0.25); color:#ffce7a; }
    .badge-zap    { background:rgba(245,158,11,0.12); color:var(--zap); }
    .badge-zap    .badge-dot { background:var(--zap); animation:blink 2s infinite; }

    /* ── Agendamento: texto e selo no modal de detalhes ── */
    .detail-agendamento-txt {
      display:inline-flex; align-items:center; font-weight:700;
      color:var(--zap); font-size:13px;
    }
    .detail-agendamento-selo {
      display:inline-flex; align-items:center; gap:5px; margin-top:6px;
      font-size:11px; font-weight:700; color:var(--zap);
      background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.25);
      padding:3px 9px; border-radius:20px;
    }
    .detail-agendamento-selo i { font-size:10px; }

    /* pill TEL / WPP */
    .contact-tag {
      font-size: 9px; font-weight: 700; padding: 2px 5px;
      border-radius: 4px; white-space: nowrap; flex-shrink: 0;
    }
    .contact-tag.tel { color:var(--blue); background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.2); }
    .contact-tag.wpp { color:#25d366; background:rgba(37,211,102,0.1); border:1px solid rgba(37,211,102,0.2); }

    /* botão mapa */
    .btn-map {
      display: inline-flex; align-items: center; justify-content: center;
      width:26px; height:26px; border-radius:8px;
      background:rgba(66,133,244,0.12); border:1px solid rgba(66,133,244,0.18);
      color:var(--blue); font-size:11px; flex-shrink:0;
    }

    /* botão WhatsApp */
    .btn-wpp {
      width:46px; height:46px; min-width:46px; border-radius:14px;
      display:flex; align-items:center; justify-content:center;
      font-size:1.2rem; flex-shrink:0;
      transform:translateZ(0); transition:transform 0.1s;
      -webkit-tap-highlight-color:transparent;
    }
    .btn-wpp:active { transform:scale(0.88) translateZ(0); }
    .btn-wpp.open   { background:linear-gradient(135deg,#25d366,#128c7e); color:#fff; box-shadow:0 2px 12px rgba(37,211,102,0.4); }
    .btn-wpp.zap    { background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff; box-shadow:0 2px 12px rgba(245,158,11,0.35); }
    .btn-wpp.disabled { background:var(--surface2); color:#333; cursor:not-allowed; pointer-events:none; opacity:0.4; }
    .btn-wpp.closed   { background:rgba(37,211,102,0.12); color:#25d366; border:1px solid rgba(37,211,102,0.3); cursor:pointer; pointer-events:auto; }
    /* Em cards Pro com foto, o WPP precisa de fundo sólido para não sumir */
    .store-card.plano-pro.has-cover .btn-wpp.open { box-shadow:0 2px 16px rgba(37,211,102,0.55); }
    .store-card.plano-pro.has-cover .btn-wpp.closed {
      background:rgba(0,0,0,0.5); border:1px solid rgba(37,211,102,0.45);
      color:#25d366; backdrop-filter:blur(4px);
    }

    /* botão telefone */
    .btn-tel {
      width:46px; height:46px; min-width:46px; border-radius:14px;
      display:flex; align-items:center; justify-content:center;
      font-size:1.1rem; flex-shrink:0;
      transform:translateZ(0); transition:transform 0.1s;
      -webkit-tap-highlight-color:transparent;
    }
    .btn-tel:active { transform:scale(0.88) translateZ(0); }
    .btn-tel.open   { background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; }
    .btn-tel.closed { background:var(--surface2); color:#8a8a8a; cursor:pointer; pointer-events:auto; }
    .btn-tel.disabled { background:var(--surface2); color:#333; cursor:not-allowed; pointer-events:none; opacity:0.4; }

    /* ════════════════════════════════════════════
       FILTER PILLS
    ════════════════════════════════════════════ */
    .filter-pills {
      display: flex;
      gap: 7px;
      padding: 8px 16px 10px;
      margin: 0 -16px;
      overflow-x: auto;
      scrollbar-width: none;
      background: transparent;
      border-top: 1px solid rgba(255,255,255,0.05);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .filter-pills::-webkit-scrollbar { display: none; }

    .pill-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 7px 13px;
      min-height: 34px;
      border-radius: 18px;
      font-family: var(--font-b);
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--muted);
      transition: color 0.18s ease,
                  background 0.18s ease,
                  border-color 0.18s ease,
                  transform 0.12s ease,
                  box-shadow 0.18s ease;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .pill-btn:hover {
      background: var(--surface2);
      color: var(--text);
      border-color: rgba(255,255,255,0.15);
    }

    .pill-btn:active {
      transform: scale(0.94);
    }

    .pill-btn.active[data-filter="all"] {
      background: rgba(255,68,68,0.15);
      border-color: rgba(255,68,68,0.4);
      color: var(--red);
      box-shadow: 0 0 0 1px rgba(255,68,68,0.15) inset;
    }
    .pill-btn.active[data-filter="open"] {
      background: rgba(0,208,132,0.12);
      border-color: rgba(0,208,132,0.4);
      color: var(--green);
      box-shadow: 0 0 0 1px rgba(0,208,132,0.12) inset;
    }
    .pill-btn.active[data-filter="featured"] {
      background: rgba(245,158,11,0.12);
      border-color: rgba(245,158,11,0.4);
      color: var(--zap);
      box-shadow: 0 0 0 1px rgba(245,158,11,0.12) inset;
    }

    .pill-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: currentColor;
      flex-shrink: 0;
    }
    .pill-btn.active[data-filter="open"] .pill-dot {
      animation: blink 1.4s infinite;
    }

    /* ════════════════════════════════════════════
       CHIP DE BAIRRO
    ════════════════════════════════════════════ */
    .pill-btn.active[data-filter="bairro"] {
      background: rgba(99,179,237,0.12);
      border-color: rgba(99,179,237,0.4);
      color: #63b3ed;
      box-shadow: 0 0 0 1px rgba(99,179,237,0.12) inset;
    }
    .bairro-dropdown {
      position: fixed;
      min-width: 220px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      z-index: 9000;
      box-shadow: 0 8px 32px rgba(0,0,0,0.7);
      overflow: hidden;
    }
    .bairro-search {
      width: 100%;
      box-sizing: border-box;
      padding: 10px 14px;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border);
      color: var(--text);
      font-size: 13px;
      outline: none;
      font-family: var(--font);
    }
    .bairro-search::placeholder { color: var(--muted); }
    .bairro-list {
      max-height: 240px;
      overflow-y: auto;
    }
    .bairro-item {
      padding: 9px 14px;
      font-size: 13px;
      cursor: pointer;
      color: var(--text);
      transition: background 0.12s;
    }
    .bairro-item:hover, .bairro-item-active { background: rgba(255,255,255,0.06); }
    .bairro-item-active { color: #63b3ed; font-weight: 600; }
    .bairro-item-clear { color: var(--red); font-size: 12px; border-bottom: 1px solid var(--border); }
    .bairro-item-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 16px; }

    /* Autocomplete de bairro no cadastro — posicionado via JS (position:fixed) */
    .bairro-cad-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      margin-top: 4px;
      z-index: 9100;
      max-height: 220px;
      background: #222;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      overflow-y: auto;
      box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    }

    /* ════════════════════════════════════════════
       EMPTY STATE
    ════════════════════════════════════════════ */
    .empty-state { text-align:center; padding:48px 24px 40px; color:var(--muted); display:none; }
    #saudacao-noturna:hover { border-color:rgba(120,120,200,0.4) !important; }
    #saudacao-noturna:active { transform:scale(0.985); }
    .empty-state .empty-owl { width:120px; height:120px; object-fit:contain; margin:0 auto 14px; display:block;
      filter:drop-shadow(0 8px 18px rgba(0,0,0,0.45)); animation:emptyOwlFloat 3.4s ease-in-out infinite; }
    @keyframes emptyOwlFloat { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-8px) } }
    @media (prefers-reduced-motion: reduce){ .empty-state .empty-owl{ animation:none } }
    .empty-state .empty-icon { font-size:2.8rem; margin-bottom:16px; display:block; opacity:0.55; }
    .empty-state .empty-title { font-family:var(--font-h); font-size:1rem; font-weight:700; color:var(--text); margin-bottom:6px; }
    .empty-state p    { font-size:13px; line-height:1.6; margin-bottom:18px; }
    .empty-state small { font-size:11px; color:#8a8a8a; margin-top:4px; display:block; }
    .empty-action {
      display:inline-flex; align-items:center; gap:6px;
      padding:10px 20px; border-radius:10px;
      background:var(--surface2); border:1px solid var(--border);
      color:var(--text); font-size:13px; font-weight:600;
      cursor:pointer; -webkit-tap-highlight-color:transparent;
      transition:background 0.15s; font-family:var(--font-b);
    }
    .empty-action:active { background:rgba(255,255,255,0.1); transform:scale(0.97); }
    .empty-indicar {
      display:inline-flex; align-items:center; gap:6px; margin-top:10px;
      padding:10px 20px; border-radius:10px;
      background:rgba(37,211,102,0.12); border:1px solid rgba(37,211,102,0.35);
      color:#25d366; font-size:13px; font-weight:700;
      cursor:pointer; -webkit-tap-highlight-color:transparent; text-decoration:none;
      transition:background 0.15s, transform 0.15s; font-family:var(--font-b);
    }
    .empty-indicar:active { background:rgba(37,211,102,0.2); transform:scale(0.97); }

    /* ════════════════════════════════════════════
       FOOTER
    ════════════════════════════════════════════ */
    .footer {
      border-top: 1px solid var(--border);
      padding: 24px 0 8px; text-align: center; margin-top: 12px;
    }
    .footer-logo { font-family:var(--font-h); font-size:1rem; font-weight:800; }
    .footer-logo span { color:var(--red); }
    .footer-sub  { font-size:11px; color:var(--muted); margin-top:4px; }

    /* ════════════════════════════════════════════
       BOTTOM NAV
    ════════════════════════════════════════════ */
    .bottom-nav {
      position:fixed; bottom:0; left:0; right:0;
      background:rgba(13,13,13,0.97); border-top:1px solid var(--border);
      display:flex; justify-content:space-around;
      padding:10px 0 calc(10px + env(safe-area-inset-bottom));
      z-index:1000; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    }
    .nav-item {
      display:flex; flex-direction:column; align-items:center;
      gap:3px; font-size:10px; font-weight:500; color:var(--muted);
      min-width:60px; -webkit-tap-highlight-color:transparent;
      transition: color 0.15s, transform 0.12s;
    }
    .nav-item i { font-size:1.1rem; display:block; transition: filter 0.15s; }
    .nav-item.active { color:var(--red); }
    .nav-item.active i { filter: drop-shadow(0 0 4px rgba(255,68,68,0.35)); }
    .nav-item:active { transform: scale(0.88); }
    .nav-item.hidden { display: none !important; }

    /* ════════════════════════════════════════════
       TOAST
    ════════════════════════════════════════════ */
    #toast {
      position:fixed; bottom:88px; left:50%;
      transform:translateX(-50%) translateY(20px);
      z-index:9999; display:flex; align-items:center; gap:10px;
      background:#1e1e1e; border:1px solid rgba(255,255,255,0.1);
      border-left:3px solid var(--zap); border-radius:14px;
      padding:12px 16px; box-shadow:0 8px 32px rgba(0,0,0,0.6);
      font-size:13px; line-height:1.4; color:var(--text);
      white-space:normal; max-width:min(380px,calc(100vw - 32px));
      opacity:0; pointer-events:none;
      transition:opacity 0.25s ease, transform 0.25s ease;
      will-change:opacity,transform;
    }
    #toast.show { opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
    .toast-icon { font-size:1.1rem; color:var(--zap); flex-shrink:0; }
    .toast-owl { width:38px; height:38px; object-fit:contain; flex-shrink:0; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
    .toast-body strong { display:block; font-weight:600; font-size:13px; }
    .toast-body span   { font-size:11px; color:var(--muted); }
    #toast-close {
      margin-left:4px; padding:2px 7px; border-radius:6px;
      background:rgba(255,255,255,0.06); color:var(--muted);
      font-size:12px; flex-shrink:0; cursor:pointer; border:none;
    }

    /* ════════════════════════════════════════════
       ANIMAÇÕES
    ════════════════════════════════════════════ */
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
    @keyframes fadeUp {
      from { opacity:0; transform:translateY(10px) translateZ(0); }
      to   { opacity:1; transform:translateY(0) translateZ(0); }
    }
    .fade-in { animation:fadeUp 0.32s ease both; }

    /* ════════════════════════════════════════════
       MODAL CADASTRO
    ════════════════════════════════════════════ */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 2000;
      background: rgba(0,0,0,0.85);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s ease;
      backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .modal-overlay.open { opacity: 1; pointer-events: auto; }

    .modal-sheet {
      width: 100%; max-width: 520px;
      background: var(--surface);
      border-radius: 24px 24px 0 0;
      border: 1px solid var(--border);
      border-bottom: none;
      padding: 0 0 calc(24px + env(safe-area-inset-bottom));
      max-height: 92vh;
      overflow-y: auto;
      scrollbar-width: none;
      transform: translateY(40px);
      transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    }
    .modal-sheet::-webkit-scrollbar { display: none; }
    .modal-overlay.open .modal-sheet { transform: translateY(0); }

    .modal-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: var(--border); margin: 12px auto 0;
    }
    .modal-header {
      padding: 20px 20px 0;
      display: flex; align-items: flex-start; justify-content: space-between;
    }
    .modal-title {
      font-family: var(--font-h); font-size: 1.15rem; font-weight: 800;
      letter-spacing: -0.02em; line-height: 1.2;
    }
    .modal-title span { color: var(--red); }
    .modal-subtitle { font-size: 12px; color: var(--muted); margin-top: 4px; }
    .modal-close {
      width: 38px; height: 38px; border-radius: 50%;
      background: var(--surface2); color: var(--muted);
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; flex-shrink: 0; cursor: pointer;
      border: 1px solid var(--border);
      transition: background 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .modal-close:active { background: rgba(255,255,255,0.1); transform: scale(0.9); }

    .modal-body { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 14px; }

    .field-group { display: flex; flex-direction: column; gap: 6px; }
    .field-label {
      font-size: 11px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
    }
    .field-label span { color: var(--red); }

    .field-input, .field-select, .field-textarea {
      width: 100%; background: var(--surface2);
      border: 1px solid var(--border); border-radius: var(--r-md);
      padding: 11px 14px; color: var(--text);
      font-family: var(--font-b); font-size: 16px;
      outline: none; transition: border-color 0.2s;
      -webkit-appearance: none;
    }
    .field-input::placeholder,
    .field-textarea::placeholder { color: var(--muted); font-size: 13px; }
    .field-input:focus,
    .field-select:focus,
    .field-textarea:focus {
      border-color: rgba(255,255,255,0.25);
      box-shadow: 0 0 0 3px rgba(255,68,68,0.08);
    }
    .field-select { cursor: pointer; }
    .field-textarea { resize: none; height: 80px; font-size: 14px; line-height: 1.5; }

    /* ── Tags de busca: caixa de balões (chips) ── */
    .tags-box {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
      width: 100%; background: var(--surface2);
      border: 1px solid var(--border); border-radius: var(--r-md);
      padding: 8px 10px; min-height: 48px;
      transition: border-color 0.2s, box-shadow 0.2s; cursor: text;
      box-sizing: border-box;
    }
    .tags-box.is-focused {
      border-color: rgba(255,255,255,0.25);
      box-shadow: 0 0 0 3px rgba(245,158,11,0.10);
    }
    .tags-box.is-full { border-color: rgba(245,158,11,0.45); }
    .tags-chips { display: contents; }
    .tag-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(245,158,11,0.12); color: var(--zap);
      border: 1px solid rgba(245,158,11,0.25);
      border-radius: 999px; padding: 4px 6px 4px 11px;
      font-family: var(--font-b); font-size: 13px; font-weight: 600;
      line-height: 1; max-width: 100%; animation: chipIn 0.16s ease;
    }
    .tag-chip.is-default {
      background: rgba(255,255,255,0.05); color: var(--text);
      border-color: var(--border);
    }
    .tag-chip-txt {
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      max-width: 180px;
    }
    .tag-chip-x {
      display: inline-flex; align-items: center; justify-content: center;
      width: 17px; height: 17px; border-radius: 999px;
      background: rgba(0,0,0,0.18); color: inherit;
      font-size: 11px; cursor: pointer; flex-shrink: 0;
      border: none; padding: 0; transition: background 0.15s;
    }
    .tag-chip-x:hover { background: rgba(0,0,0,0.38); }
    .tag-chip-x:active { transform: scale(0.88); }
    .tags-input {
      flex: 1; min-width: 90px; border: none; outline: none;
      background: transparent; color: var(--text);
      font-family: var(--font-b); font-size: 14px; padding: 4px 2px;
      -webkit-appearance: none;
    }
    .tags-input::placeholder { color: var(--muted); font-size: 13px; }
    .tags-input:disabled { cursor: not-allowed; }
    @keyframes chipIn {
      from { opacity: 0; transform: scale(0.82); }
      to   { opacity: 1; transform: scale(1); }
    }

    /* ── Painel: Informações da loja (edição inline) ── */
    .ml-info-row {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 11px 0; border-bottom: 1px solid var(--border);
    }
    .ml-info-row:last-child { border-bottom: none; }
    .ml-info-icon {
      flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
      background: var(--surface); display: flex; align-items: center;
      justify-content: center; font-size: 13px; color: var(--muted);
      margin-top: 1px;
    }
    .ml-info-body { flex: 1; min-width: 0; }
    .ml-info-label {
      font-size: 9px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
    }
    .ml-info-value {
      font-size: 13px; color: var(--text); line-height: 1.4;
      word-break: break-word; font-family: var(--font-b);
    }
    .ml-info-value.is-empty { color: var(--muted); font-style: italic; }
    .ml-info-edit-btn {
      flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
      background: var(--surface); border: 1px solid var(--border);
      color: var(--muted); font-size: 12px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: color .15s, border-color .15s; margin-top: 1px;
      position: relative; -webkit-tap-highlight-color: transparent;
    }
    /* Item 5: hit-area de 44px sem alterar o tamanho visual (30px). */
    .ml-info-edit-btn::before {
      content: ""; position: absolute; top: 50%; left: 50%;
      width: 44px; height: 44px; transform: translate(-50%, -50%);
    }
    .ml-info-edit-btn:hover { color: var(--zap); border-color: rgba(245,158,11,0.4); }
    .ml-info-edit-btn:active { transform: scale(0.9); }
    /* Modo edição: ocupa a linha toda */
    .ml-info-editor { flex: 1; min-width: 0; animation: mlEditIn .18s ease; }
    .ml-info-editor .ml-info-label { margin-bottom: 6px; }
    .ml-info-input {
      width: 100%; background: var(--surface); color: var(--text);
      border: 1px solid rgba(245,158,11,0.35); border-radius: 9px;
      padding: 10px 12px; font-size: 14px; font-family: var(--font-b);
      outline: none; box-sizing: border-box;
      transition: border-color .15s, box-shadow .15s;
    }
    .ml-info-input:focus {
      border-color: rgba(245,158,11,0.6);
      box-shadow: 0 0 0 3px rgba(245,158,11,0.10);
    }
    textarea.ml-info-input { resize: none; line-height: 1.5; min-height: 64px; }
    select.ml-info-input {
      -webkit-appearance: none; appearance: none; cursor: pointer;
      background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%204%205'%3E%3Cpath%20fill%3D'%23f59e0b'%20d%3D'M2%205L0%200h4z'%2F%3E%3C%2Fsvg%3E");
      background-repeat: no-repeat; background-position: right 12px center;
      background-size: 10px; padding-right: 32px;
    }
    .ml-info-actions { display: flex; gap: 8px; margin-top: 8px; }
    .ml-info-btn {
      padding: 8px 14px; border-radius: 8px; font-family: var(--font-h);
      font-size: 11px; font-weight: 800; border: none; cursor: pointer;
      transition: opacity .15s; -webkit-tap-highlight-color: transparent;
    }
    .ml-info-btn:active { opacity: 0.8; }
    .ml-info-btn-save { flex: 1; background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a1206; }
    .ml-info-btn-cancel { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
    .ml-info-msg { font-size: 10px; margin-top: 6px; min-height: 13px; }
    .ml-info-hint { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
    /* Flash de confirmacao apos salvar um campo */
    .ml-info-row.salvou { animation: mlSalvouFlash 1.1s ease; }
    @keyframes mlSalvouFlash {
      0%   { background: rgba(34,197,94,0.18); }
      100% { background: transparent; }
    }
    @keyframes mlEditIn {
      from { opacity: 0; transform: translateY(-4px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Schedule do painel (turnos) — reaproveita visual do cadastro */
    .mle-sched-presets {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px;
    }
    .mle-sched-preset {
      display: flex; align-items: center; justify-content: center; gap: 5px;
      padding: 12px 6px; min-height: 44px; box-sizing: border-box; border-radius: 9px; background: var(--surface);
      border: 1px solid var(--border); color: var(--muted);
      font-family: var(--font-b); font-size: 11px; font-weight: 700;
      cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
    }
    .mle-sched-preset.active {
      background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.5); color: var(--zap);
    }
    .mle-sched-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px; margin-bottom: 8px; position: relative;
    }
    .mle-sched-card-title { font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
    .mle-sched-days { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
    .mle-sched-day {
      flex: 1; min-width: 38px; padding: 11px 2px; min-height: 40px; box-sizing: border-box; border-radius: 7px;
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--muted); font-family: var(--font-b); font-size: 11px;
      font-weight: 700; cursor: pointer; transition: all .12s;
      -webkit-tap-highlight-color: transparent;
    }
    .mle-sched-day.active { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.5); color: var(--zap); }
    .mle-sched-times { display: flex; align-items: center; gap: 8px; }
    .mle-sched-times input[type=time] {
      flex: 1; background: var(--surface2); border: 1px solid var(--border);
      border-radius: 7px; padding: 8px; color: var(--text);
      font-family: var(--font-b); font-size: 13px; -webkit-appearance: none;
    }
    .mle-sched-times span { font-size: 11px; color: var(--muted); }
    .mle-sched-remove {
      position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
      border-radius: 6px; background: rgba(239,68,68,0.12); border: none;
      color: #ef4444; font-size: 11px; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    /* Item 5: hit-area de 44px sem alterar o tamanho visual (22px). */
    .mle-sched-remove::before {
      content: ""; position: absolute; top: 50%; left: 50%;
      width: 44px; height: 44px; transform: translate(-50%, -50%);
    }
    .mle-sched-add {
      width: 100%; padding: 9px; border-radius: 8px;
      background: rgba(245,158,11,0.07); border: 1px dashed rgba(245,158,11,0.4);
      color: var(--zap); font-family: var(--font-h); font-size: 11px;
      font-weight: 700; cursor: pointer; margin-bottom: 8px;
    }
    /* Endereço: sugestões no painel */
    .mle-addr-suggestions {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 9px; margin-top: 4px; max-height: 180px; overflow-y: auto;
    }
    .mle-addr-item {
      padding: 9px 11px; font-size: 12px; color: var(--text); cursor: pointer;
      display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border);
    }
    .mle-addr-item:last-child { border-bottom: none; }
    .mle-addr-item:hover { background: var(--surface2); }
    .mle-addr-item i { color: var(--zap); font-size: 11px; flex-shrink: 0; }
    .mle-addr-item-sub { font-size: 10px; color: var(--muted); }

    .field-input.invalid {
      border-color: rgba(255,68,68,0.6);
      box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
    }
    .field-error {
      font-size: 11px; color: var(--red);
      margin-top: 2px; display: none;
    }
    .field-error.show { display: block; }

    .field-row { display: flex; gap: 10px; }
    .field-row .field-group { flex: 1; }

    .field-hint { font-size: 11px; color: var(--muted); line-height: 1.5; }

    /* ════════════════ LOGIN LOJA — visual moderno ════════════════ */
    /* subtítulo mais legível só no login */
    #modal-login-loja .modal-subtitle { color: #9a9a9a; }

    /* input de WhatsApp com ícone */
    .ll-input-wrap { position: relative; }
    .ll-input-icon {
      position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
      color: #25d366; font-size: 17px; pointer-events: none; z-index: 1;
    }
    .ll-wpp-input {
      padding-left: 42px !important;
      font-size: 17px !important; font-weight: 600; letter-spacing: 0.01em;
    }
    #modal-login-loja .ll-wpp-input:focus {
      border-color: rgba(37,211,102,0.55);
      box-shadow: 0 0 0 3px rgba(37,211,102,0.14);
    }

    /* CTAs com gradiente */
    .ll-submit-zap { background: linear-gradient(135deg,#25d366,#128c7e) !important; }
    .ll-submit-go  { background: linear-gradient(135deg,#6366f1,#4f46e5) !important; }

    /* card de identidade da loja */
    .ll-loja-card {
      position: relative; border-radius: 18px; overflow: hidden;
      margin-bottom: 18px; min-height: 90px;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 8px 28px rgba(0,0,0,0.35);
      animation: llCardIn 0.4s cubic-bezier(0.32,0.72,0,1);
    }
    @keyframes llCardIn {
      from { opacity: 0; transform: translateY(10px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* OTP — 6 caixinhas */
    .ll-otp { display: flex; gap: 8px; justify-content: space-between; }
    .ll-otp-box {
      flex: 1; min-width: 0; aspect-ratio: 1 / 1.15;
      background: var(--surface2);
      border: 1.5px solid var(--border); border-radius: 13px;
      color: var(--text); text-align: center;
      font-family: var(--font-h); font-size: 1.5rem; font-weight: 800;
      outline: none; -webkit-appearance: none;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s, background 0.15s;
    }
    .ll-otp-box:focus {
      border-color: rgba(99,102,241,0.7);
      box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
      background: #262633;
      transform: translateY(-1px);
    }
    .ll-otp-box.filled {
      border-color: rgba(99,102,241,0.45);
      background: color-mix(in srgb, #6366f1 12%, var(--surface2));
    }
    .ll-otp.error .ll-otp-box {
      border-color: rgba(255,68,68,0.65);
      box-shadow: 0 0 0 3px rgba(255,68,68,0.10);
    }
    .ll-otp.success .ll-otp-box {
      border-color: rgba(0,208,132,0.7);
      box-shadow: 0 0 0 3px rgba(0,208,132,0.14);
      background: color-mix(in srgb, #00d084 12%, var(--surface2));
    }
    .ll-otp.shake { animation: llShake 0.4s; }
    @keyframes llShake {
      0%,100% { transform: translateX(0); }
      20%,60% { transform: translateX(-7px); }
      40%,80% { transform: translateX(7px); }
    }

    /* ações do passo 2 */
    .ll-step2-actions {
      display: flex; align-items: center; justify-content: center;
      gap: 10px; margin-top: 14px;
    }
    .ll-link-btn {
      font-family: var(--font-b); font-size: 12.5px; font-weight: 600;
      color: var(--muted); background: none; border: none; cursor: pointer;
      padding: 4px 2px; transition: color 0.15s;
      -webkit-tap-highlight-color: transparent;
    }
    .ll-link-btn:hover, .ll-link-btn:active { color: var(--text); }
    .ll-link-btn:disabled { color: #4a4a4a; cursor: not-allowed; }
    #ll-reenviar:not(:disabled) { color: #25d366; }
    .ll-sep { color: var(--border); font-size: 12px; }
    #ll-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }

    /* Address autocomplete */
    .addr-item {
      padding: 10px 14px;
      font-size: 13px;
      color: var(--text);
      cursor: pointer;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      line-height: 1.4;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      transition: background 0.1s;
    }
    .addr-item:last-child { border-bottom: none; }
    .addr-item:hover, .addr-item:focus { background: rgba(255,255,255,0.07); outline: none; }
    .addr-item i { color: var(--blue); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
    .addr-item-main { font-weight: 600; }
    .addr-item-sub  { font-size: 11px; color: var(--muted); }
    .addr-loading { padding: 12px 14px; font-size: 12px; color: var(--muted); text-align: center; }

    /* ── Ramo Autocomplete ──────────────────────────────────────────── */
    .ramo-wrap { position: relative; }

    .ramo-combobox {
      display: flex; align-items: center;
      background: var(--surface2);
      border: 1px solid var(--border); border-radius: var(--r-md);
      transition: border-color .2s, box-shadow .2s;
      overflow: hidden;               /* mantém o radius no input filho */
    }
    .ramo-combobox:focus-within {
      border-color: rgba(255,255,255,.25);
      box-shadow: 0 0 0 3px rgba(255,68,68,.08);
    }
    .ramo-selected-emoji {
      padding: 0 0 0 14px; font-size: 1.05rem;
      flex-shrink: 0; pointer-events: none;
      transition: opacity .15s, width .15s;
      line-height: 1;
    }
    .ramo-selected-emoji:empty { width: 0; padding: 0; }

    #f-ramo-text {
      flex: 1; min-width: 0;
      background: transparent; border: none; outline: none;
      padding: 11px 12px 11px 10px;
      color: var(--text); font-family: var(--font-b); font-size: 16px;
    }
    #f-ramo-text::placeholder { color: var(--muted); font-size: 14px; }

    .ramo-clear-btn {
      width: 30px; height: 30px; margin-right: 6px; flex-shrink: 0;
      border-radius: 50%; border: none;
      background: rgba(255,255,255,.06); color: var(--muted);
      font-size: 11px; cursor: pointer; display: none;
      align-items: center; justify-content: center;
      transition: background .15s, color .15s;
    }
    .ramo-clear-btn:hover { background: rgba(255,68,68,.15); color: var(--red); }
    .ramo-clear-btn.show  { display: flex; }

    .ramo-ok-mark {
      font-size: 11px; color: var(--green); padding-right: 10px;
      flex-shrink: 0; pointer-events: none;
      opacity: 0; transition: opacity .2s;
    }
    .ramo-ok-mark.show { opacity: 1; }

    /* dropdown */
    .ramo-dropdown {
      display: none;
      position: absolute; left: 0; right: 0; top: calc(100% + 5px);
      background: #1c1c1c;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 14px; z-index: 3500;
      max-height: 264px; overflow-y: auto; scrollbar-width: none;
      box-shadow: 0 14px 44px rgba(0,0,0,.7);
      padding: 6px 0;
    }
    .ramo-dropdown::-webkit-scrollbar { display: none; }
    .ramo-dropdown.open { display: block; }

    .ramo-group-label {
      padding: 8px 14px 3px;
      font-size: 9px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .08em;
      color: #444; pointer-events: none;
    }
    .ramo-opt {
      padding: 9px 14px;
      display: flex; align-items: center; gap: 10px;
      font-size: 13px; color: var(--text);
      border-bottom: 1px solid rgba(255,255,255,.04);
      cursor: pointer; transition: background .1s;
      -webkit-tap-highlight-color: transparent;
    }
    .ramo-opt:last-child  { border-bottom: none; }
    .ramo-opt:hover,
    .ramo-opt.kb-focus    { background: rgba(255,255,255,.07); outline: none; }
    .ramo-opt-emoji       { font-size: .95rem; flex-shrink: 0; width: 22px; text-align: center; }
    .ramo-opt-label       { flex: 1; font-weight: 500; line-height: 1.35; }
    .ramo-opt-label mark  {
      background: rgba(255,68,68,.2); color: var(--red);
      border-radius: 3px; padding: 0 1px; font-weight: 700;
      font-style: normal;
    }
    .ramo-opt.is-outro {
      color: var(--zap);
      border-top: 1px solid rgba(255,255,255,.07);
      margin-top: 2px;
    }
    /* ─────────────────────────────────────────────────────────────── */

    .modal-submit {
      margin: 20px 20px 0;
      width: calc(100% - 40px);
      background: linear-gradient(135deg, #25d366, #128c7e);
      color: #fff; font-family: var(--font-h);
      font-size: 1rem; font-weight: 700;
      padding: 14px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .modal-submit:active { transform: scale(0.97); opacity: 0.9; }

    /* Cards de plano selecionáveis dentro do stepper de cadastro */
    .cad-plan-card {
      cursor: pointer;
      transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
      margin-bottom: 10px;
    }
    .cad-plan-card:last-of-type { margin-bottom: 0; }
    /* Estado selecionado — reutiliza .selected já existente nos plan-card */
    .cad-plan-card.card-gratis.selected {
      border-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
    }
    .cad-plan-card.card-plus.selected {
      border-color: #6366f1;
      box-shadow: 0 0 0 1px rgba(99,102,241,0.2) inset, 0 4px 20px rgba(99,102,241,0.15);
    }
    .cad-plan-card.card-pro.selected {
      border-color: #f59e0b;
      box-shadow: 0 0 0 1px rgba(245,158,11,0.2) inset, 0 4px 20px rgba(245,158,11,0.18);
    }


    /* ════════════════════════════════════════════
       PREVIEW DE BENEFÍCIOS POR PLANO (etapa 3)
    ════════════════════════════════════════════ */
    .cad-plan-preview {
      animation: fadeUp 0.2s ease both;
    }
    .cpp-label {
      font-size: 10px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
      margin-bottom: 8px;
    }
    /* Mini card de loja simulado */
    .cpp-store-card {
      border-radius: 14px; padding: 12px;
      border: 1px solid var(--border);
      background: var(--surface2);
      margin-bottom: 10px; overflow: hidden;
    }
    .cpp-store-card.cpp-plus {
      background: linear-gradient(135deg, #141420, #1a1a2e);
      border-color: rgba(99,102,241,0.4);
      box-shadow: 0 4px 16px rgba(99,102,241,0.12);
    }
    .cpp-store-card.cpp-pro.cpp-has-cover {
      padding: 0 0 10px;
      background: linear-gradient(135deg, #1c1a14, #25210f);
      border-color: rgba(245,158,11,0.4);
      box-shadow: 0 4px 16px rgba(245,158,11,0.15);
    }
    /* Capa do card Pro */
    .cpp-cover {
      width: 100%; height: 90px; position: relative;
      background: linear-gradient(135deg, #2a2010, #1c1a0a);
      display: flex; align-items: flex-end;
      padding: 8px 10px; box-sizing: border-box;
      margin-bottom: 0;
    }
    .cpp-cover-gradient {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
    }
    .cpp-cover-logo {
      position: absolute; top: 8px; left: 10px;
      width: 36px; height: 36px; border-radius: 9px;
      background: rgba(245,158,11,0.15);
      border: 1.5px solid rgba(245,158,11,0.4);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; z-index: 1;
    }
    .cpp-cover-info {
      position: relative; z-index: 1;
      padding-left: 44px; display: flex; flex-direction: column; gap: 2px;
    }
    .cpp-cover-nome {
      font-family: var(--font-h); font-size: 13px; font-weight: 800; color: #fff;
    }
    .cpp-cover-sub { font-size: 10px; color: rgba(255,255,255,0.55); }

    /* Layout linha: thumb + info + actions */
    .cpp-store-card:not(.cpp-has-cover) { display: flex; align-items: center; gap: 10px; }
    .cpp-thumb {
      width: 46px; height: 46px; border-radius: 11px;
      background: var(--surface); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; flex-shrink: 0;
    }
    .cpp-thumb.cpp-thumb-foto { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
    .cpp-info { flex: 1; min-width: 0; }
    .cpp-nome { font-family: var(--font-h); font-size: 13px; font-weight: 800; color: var(--text); }
    .cpp-sub  { font-size: 10px; color: var(--muted); }
    .cpp-anuncio {
      font-size: 10px; font-weight: 600; color: var(--zap);
      background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
      border-radius: 5px; padding: 2px 6px; margin-top: 4px;
      display: inline-block;
    }
    .cpp-anuncio-pro { display: block; font-size: 10px; }
    .cpp-badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
    .cpp-badge {
      font-size: 9px; font-weight: 700; padding: 2px 6px;
      border-radius: 5px;
    }
    .cpp-badge-open {
      background: rgba(0,208,132,0.12); color: var(--green);
      border: 1px solid rgba(0,208,132,0.25);
    }
    .cpp-badge-plan-gratis {
      background: rgba(255,255,255,0.07); color: var(--muted);
      border: 1px solid rgba(255,255,255,0.1);
    }
    .cpp-badge-plan-plus {
      background: rgba(99,102,241,0.15); color: #818cf8;
      border: 1px solid rgba(99,102,241,0.35);
    }
    .cpp-badge-plan-pro {
      background: rgba(245,158,11,0.15); color: #f59e0b;
      border: 1px solid rgba(245,158,11,0.35);
    }
    .cpp-actions { flex-shrink: 0; }
    .cpp-action-btn {
      font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 7px;
    }
    .cpp-wpp {
      background: rgba(37,211,102,0.1); color: #25d366;
      border: 1px solid rgba(37,211,102,0.25);
    }
    /* Grade de métricas */
    .cpp-metrics {
      display: grid; grid-template-columns: repeat(4,1fr);
      gap: 6px; margin-bottom: 10px;
    }
    .cpp-metric-item {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 7px 4px; text-align: center;
    }
    .cpp-metric-val {
      font-family: var(--font-h); font-size: 1rem; font-weight: 800;
      color: var(--text);
    }
    .cpp-metric-lbl { font-size: 8px; color: var(--muted); margin-top: 2px; }
    /* Mini gráfico de barras de pico */
    .cpp-pico {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px; margin-bottom: 10px;
    }
    .cpp-pico-label {
      font-size: 10px; font-weight: 600; color: var(--muted);
      margin-bottom: 8px;
    }
    .cpp-pico-bars {
      display: flex; align-items: flex-end;
      gap: 3px; height: 40px;
    }
    .cpp-pico-bar {
      flex: 1; border-radius: 3px 3px 0 0;
      background: rgba(245,158,11,0.25);
      transition: height 0.3s ease;
      min-width: 0;
    }
    .cpp-pico-bar.peak { background: #f59e0b; }
    .cpp-pico-horas {
      display: flex; justify-content: space-between;
      font-size: 8px; color: var(--muted); margin-top: 4px;
    }
    /* Nota descritiva */
    .cpp-note {
      font-size: 10px; color: var(--muted); line-height: 1.5;
      text-align: center; padding: 4px 0;
    }

    /* ── Skeleton Loading ───────────────────────────────────── */
    @keyframes shimmer {
      0%   { background-position: -400px 0; }
      100% { background-position:  400px 0; }
    }
    .skeleton-card {
      background: var(--surface2, #1e1e1e);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 10px;
    }
    .skeleton-thumb {
      width: 56px; height: 56px;
      border-radius: 14px;
      flex-shrink: 0;
      background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.2s infinite linear;
    }
    .skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
    .skeleton-line {
      height: 12px; border-radius: 6px;
      background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.2s infinite linear;
    }
    .skeleton-line.short { width: 55%; }
    .skeleton-line.xshort { width: 35%; }


    /* ════════════════════════════════════════════
       CADASTRO — STEPPER + MELHORIAS DE CONVERSÃO
    ════════════════════════════════════════════ */
    .cad-stepper {
      display: flex; align-items: center; justify-content: center;
      gap: 0; padding: 14px 20px 8px; flex-shrink: 0;
    }
    .cad-step {
      display: flex; flex-direction: column; align-items: center;
      gap: 4px; flex: 1; position: relative;
    }
    .cad-step-circle {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 800;
      background: var(--surface2); border: 1.5px solid var(--border);
      color: var(--muted); transition: all 0.25s; z-index: 1;
    }
    .cad-step.active .cad-step-circle {
      background: var(--red); border-color: var(--red);
      color: #fff; box-shadow: 0 0 0 4px rgba(255,68,68,0.15);
    }
    .cad-step.done .cad-step-circle {
      background: var(--green); border-color: var(--green); color: #fff;
    }
    .cad-step-label {
      font-size: 9px; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
    }
    .cad-step.active .cad-step-label { color: var(--text); }
    .cad-step.done  .cad-step-label  { color: var(--green); }
    .cad-step-line {
      flex: 1; height: 1.5px; background: var(--border);
      margin: 0 4px; margin-bottom: 18px; transition: background 0.25s;
      align-self: flex-start; margin-top: 14px;
    }
    .cad-step-line.done { background: var(--green); }

    /* Painéis de etapa — só um visível por vez */
    .cad-step-panel { display: none; }
    .cad-step-panel.active { display: flex; flex-direction: column; gap: 14px; }

    /* Botão avançar/voltar etapa */
    .cad-next-btn {
      margin-top: 6px; padding: 13px 20px; border-radius: 12px;
      background: var(--red); color: #fff;
      font-family: var(--font-h); font-size: 1rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      border: none; cursor: pointer; width: 100%;
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .cad-next-btn:active { transform: scale(0.97); opacity: 0.9; }
    .cad-back-btn {
      background: none; border: none; color: var(--muted);
      font-size: 12px; font-weight: 600; cursor: pointer;
      padding: 6px 0; text-align: center; width: 100%;
      -webkit-tap-highlight-color: transparent;
    }

    /* Schedule simplificado */
    .sched-simple { display: flex; flex-direction: column; gap: 10px; }
    .sched-preset-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 7px;
    }
    .sched-preset-btn {
      padding: 10px 8px; border-radius: 10px; font-size: 12px; font-weight: 700;
      background: var(--surface2); border: 1.5px solid var(--border);
      color: var(--muted); cursor: pointer;
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      transition: all 0.15s; -webkit-tap-highlight-color: transparent;
    }
    .sched-preset-btn .sched-preset-icon { font-size: 1.1rem; }
    .sched-preset-btn.active {
      background: rgba(245,158,11,0.1);
      border-color: var(--zap); color: var(--zap);
    }
    .sched-time-row {
      display: flex; align-items: center; gap: 8px;
    }
    .sched-time-row label {
      font-size: 10px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.04em;
      white-space: nowrap;
    }
    .sched-time-row input[type='time'] {
      flex: 1; background: var(--surface2); color: var(--text);
      border: 1px solid var(--border); border-radius: 8px;
      padding: 9px 10px; font-size: 15px; font-family: inherit;
    }
    .sched-advanced-toggle {
      font-size: 11px; color: var(--muted); text-align: center;
      cursor: pointer; text-decoration: underline;
      -webkit-tap-highlight-color: transparent;
    }

    /* Foto-group com lock visual para Grátis */
    .foto-lock-overlay {
      display: none; position: absolute; inset: 0; z-index: 5;
      border-radius: 14px; overflow: hidden;
      background: rgba(13,13,13,0.72);
      backdrop-filter: blur(3px);
      flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; text-align: center; padding: 16px;
    }
    .foto-lock-overlay.show { display: flex; }
    .foto-lock-icon { font-size: 1.6rem; }
    .foto-lock-title { font-size: 13px; font-weight: 800; color: #fff; }
    .foto-lock-sub   { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.5; }
    .foto-lock-btn {
      margin-top: 4px; padding: 7px 16px; border-radius: 8px;
      background: linear-gradient(135deg,#f59e0b,#d97706);
      color: #000; font-size: 12px; font-weight: 800;
      border: none; cursor: pointer; font-family: var(--font-h);
    }

    /* Modal submit — texto mais honesto */
    .modal-submit-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 6px; text-align: center; }

    /* Tela de sucesso — CTA Instagram */
    .success-ig-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(135deg,#e1306c,#c13584);
      color: #fff; font-family: var(--font-h);
      font-size: 0.9rem; font-weight: 700;
      padding: 11px 20px; border-radius: 12px;
      text-decoration: none;
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .success-ig-btn:active { transform: scale(0.97); opacity: 0.9; }

    /* ── Schedule Builder (avançado — acessível via link) ───── */
    .schedule-builder { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
    .schedule-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      position: relative;
    }
    .schedule-card-title {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 10px;
    }
    .schedule-days {
      display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
    }
    .schedule-day-btn {
      width: 36px; height: 36px; border-radius: 50%;
      font-size: 11px; font-weight: 700;
      background: var(--surface); color: var(--muted);
      border: 1.5px solid var(--border);
      cursor: pointer; transition: all .15s;
      display: flex; align-items: center; justify-content: center;
    }
    .schedule-day-btn.active {
      background: var(--accent, #f59e0b);
      color: #000; border-color: transparent;
    }
    .schedule-times {
      display: flex; align-items: center; gap: 8px;
    }
    .schedule-times input[type="time"] {
      flex: 1; background: var(--surface); color: var(--text);
      border: 1px solid var(--border); border-radius: 8px;
      padding: 8px 10px; font-size: 14px; font-family: inherit;
    }
    .schedule-times span { color: var(--muted); font-size: 13px; }
    .schedule-remove {
      position: absolute; top: 10px; right: 10px;
      width: 24px; height: 24px; border-radius: 50%;
      background: rgba(255,68,68,.15); color: #ff4444;
      font-size: 12px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; border: none;
    }
    .schedule-add-btn {
      width: 100%; padding: 10px;
      background: rgba(245,158,11,.08); color: var(--accent, #f59e0b);
      border: 1.5px dashed rgba(245,158,11,.3); border-radius: 10px;
      font-size: 13px; font-weight: 600; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      transition: background .15s;
    }
    .schedule-add-btn:hover { background: rgba(245,158,11,.15); }



    /* Tela de sucesso */
    .modal-success {
      padding: 48px 24px;
      text-align: center;
      display: none; flex-direction: column; align-items: center; gap: 12px;
    }
    .modal-success.show { display: flex; }
    .success-icon { font-size: 3rem; }
    .success-owl {
      width: 140px; height: 140px;
      object-fit: contain;
      border-radius: 50%;
      margin-bottom: 4px;
      filter: drop-shadow(0 0 16px rgba(255,60,60,0.3));
    }
    .success-title {
      font-family: var(--font-h); font-size: 1.2rem; font-weight: 800;
    }
    .success-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
    .success-close {
      margin-top: 8px; padding: 12px 28px; border-radius: 12px;
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--text); font-family: var(--font-b);
      font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .success-wpp-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(135deg,#25d366,#128c7e);
      color: #fff; font-family: var(--font-h);
      font-size: 1rem; font-weight: 700;
      padding: 13px 24px; border-radius: 14px;
      text-decoration: none;
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .success-wpp-btn:active { transform: scale(0.97); opacity: 0.9; }

    /* Botão "Pagar agora" — Mercado Pago (ação primária) */
    .success-pay-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(135deg,#009ee3,#0077b6);
      color: #fff; font-family: var(--font-h);
      font-size: 1.05rem; font-weight: 700;
      padding: 14px 26px; border-radius: 14px; border: none;
      cursor: pointer; margin-bottom: 4px;
      box-shadow: 0 4px 14px rgba(0,158,227,.35);
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .success-pay-btn:active { transform: scale(0.97); opacity: 0.9; }
    .success-pay-btn:disabled { opacity: 0.65; cursor: default; }
    .success-pay-btn .ti-loader-2 { animation: ml-spin 0.8s linear infinite; }
    @keyframes ml-spin { to { transform: rotate(360deg); } }

    /* ════════════════════════════════════════════
       AGUARDANDO APROVAÇÃO
    ════════════════════════════════════════════ */
    .aguardando-body {
      text-align: center;
      display: flex; flex-direction: column; align-items: center; gap: 14px;
      padding-top: 8px; padding-bottom: 24px;
    }
    .aguardando-owl-wrap {
      position: relative;
      width: 150px; height: 150px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 2px;
    }
    .aguardando-owl {
      width: 140px; height: 140px;
      object-fit: contain;
      border-radius: 50%;
      position: relative; z-index: 2;
      filter: drop-shadow(0 0 18px rgba(99,102,241,0.4));
      animation: aguardando-float 3.2s ease-in-out infinite;
    }
    @keyframes aguardando-float {
      0%, 100% { transform: translateY(0) rotate(-1.5deg); }
      50%      { transform: translateY(-7px) rotate(1.5deg); }
    }
    /* Anel pulsante atrás da coruja — sensação de "buscando ativamente" */
    .aguardando-ring {
      position: absolute; inset: 6px;
      border-radius: 50%;
      border: 2px solid rgba(99,102,241,0.55);
      z-index: 1;
      animation: aguardando-pulse 2s ease-out infinite;
    }
    @keyframes aguardando-pulse {
      0%   { transform: scale(0.85); opacity: 0.8; }
      70%  { transform: scale(1.15); opacity: 0; }
      100% { transform: scale(1.15); opacity: 0; }
    }
    .aguardando-title-big {
      font-family: var(--font-h); font-size: 1.35rem; font-weight: 800;
      letter-spacing: 0.3px;
    }
    .aguardando-sub {
      font-size: 13.5px; color: var(--muted); line-height: 1.65;
      max-width: 300px;
    }
    .aguardando-sub strong { color: var(--text); font-weight: 700; }
    /* Pílula "verificando" */
    .aguardando-status {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 8px 16px; border-radius: 20px;
      background: rgba(99,102,241,0.12);
      border: 1px solid rgba(99,102,241,0.3);
      font-size: 12.5px; font-weight: 600; color: #a5b4fc;
      font-family: var(--font-b);
    }
    .aguardando-dot {
      width: 9px; height: 9px; border-radius: 50%;
      background: #818cf8; flex-shrink: 0;
      animation: aguardando-blink 1.3s ease-in-out infinite;
    }
    @keyframes aguardando-blink {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.35; transform: scale(0.7); }
    }
    /* Estado "aprovado" — vira verde antes de logar */
    .aguardando-status.aprovado {
      background: rgba(34,197,94,0.14);
      border-color: rgba(34,197,94,0.4);
      color: #4ade80;
    }
    .aguardando-status.aprovado .aguardando-dot {
      background: #22c55e; animation: none;
    }
    .aguardando-acoes {
      display: flex; flex-direction: column; gap: 10px;
      width: 100%; align-items: center;
    }
    .aguardando-acoes:empty { display: none; }
    .aguardando-hint {
      font-size: 11.5px; color: var(--muted); line-height: 1.55;
      opacity: 0.85; max-width: 280px; margin-top: 2px;
    }
    .aguardando-hint strong { color: var(--text); font-weight: 600; }

    /* ════════════════════════════════════════════
       MODAL PLANOS
    ════════════════════════════════════════════ */
    .plan-overlay {
      position: fixed; inset: 0; z-index: 2100;
      background: rgba(0,0,0,0.9);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s ease;
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .plan-overlay.open { opacity: 1; pointer-events: auto; }

    .plan-sheet {
      width: 100%; max-width: 520px;
      background: var(--surface);
      border-radius: 24px 24px 0 0;
      border: 1px solid var(--border); border-bottom: none;
      padding: 0 0 calc(28px + env(safe-area-inset-bottom));
      max-height: 94vh; overflow-y: auto; scrollbar-width: none;
      transform: translateY(40px);
      transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    }
    .plan-sheet::-webkit-scrollbar { display: none; }
    .plan-overlay.open .plan-sheet { transform: translateY(0); }

    .plan-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: var(--border); margin: 12px auto 0;
    }

    .plan-header {
      padding: 20px 20px 4px;
      text-align: center;
    }
    .plan-header-title {
      font-family: var(--font-h); font-size: 1.2rem; font-weight: 800;
      letter-spacing: -0.02em;
    }
    .plan-header-title span { color: var(--red); }
    .plan-header-sub {
      font-size: 12px; color: var(--muted); margin-top: 4px;
    }

    .plan-cards {
      display: flex; flex-direction: column;
      gap: 10px; padding: 16px 16px 0;
    }

    /* ── Carrossel de planos ─────────────────────────────────── */
    .plan-dots {
      display: flex; justify-content: center; gap: 6px;
      margin: 10px 0 0;
    }
    .plan-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--border); cursor: pointer;
      transition: background 0.2s, width 0.2s;
    }
    .plan-dot.active { background: var(--red); width: 18px; border-radius: 3px; }

    .plan-carousel-wrap {
      overflow: hidden; padding: 16px 0 4px; touch-action: pan-y;
    }
    .plan-carousel {
      display: flex; transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
      will-change: transform;
    }
    .plan-slide {
      flex: 0 0 100%; padding: 0 16px; box-sizing: border-box;
    }

    .plan-card {
      border-radius: 16px; border: 1.5px solid var(--border);
      padding: 16px; cursor: pointer; position: relative;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .plan-card:active { transform: scale(0.98); }
    .plan-card.selected { border-color: currentColor; }

    .plan-card.card-gratis {
      background: var(--surface2);
      color: var(--muted);
    }
    .plan-card.card-gratis.selected {
      border-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
    }

    .plan-card.card-plus {
      background: linear-gradient(135deg,#141420,#1a1a2e);
      color: #818cf8;
    }
    .plan-card.card-plus.selected {
      border-color: #6366f1;
      box-shadow: 0 0 0 1px rgba(99,102,241,0.2) inset,
                  0 4px 20px rgba(99,102,241,0.15);
    }

    .plan-card.card-pro {
      background: linear-gradient(135deg,#1c1a14,#25210f);
      color: #f59e0b;
    }
    .plan-card.card-pro.selected {
      border-color: #f59e0b;
      box-shadow: 0 0 0 1px rgba(245,158,11,0.2) inset,
                  0 4px 20px rgba(245,158,11,0.18);
    }

    .plan-card-top {
      display: flex; align-items: center;
      justify-content: space-between; margin-bottom: 10px;
    }

    /* Coruja de fundo nos cards de plano — fica mais "upada" a cada nível */
    .plan-card-content { position: relative; z-index: 1; }
    .plan-popular { z-index: 2; }
    .plan-card-owl {
      position: absolute;
      bottom: -8px;
      right: -6px;
      z-index: 0;
      pointer-events: none;
      user-select: none;
    }
    .owl-gratis {
      width: 100px;
      opacity: 0.14;
      filter: grayscale(100%) brightness(0.85);
    }
    .owl-plus {
      width: 140px;
      opacity: 0.9;
      mix-blend-mode: screen;
      filter: drop-shadow(0 0 10px rgba(99,102,241,0.4));
    }
    .owl-pro {
      width: 220px;
      opacity: 0.95;
      mix-blend-mode: screen;
      filter: drop-shadow(0 0 14px rgba(245,158,11,0.5)) saturate(1.2);
      animation: owlPulse 2.6s ease-in-out infinite;
    }
    @keyframes owlPulse {
      0%, 100% { filter: drop-shadow(0 0 10px rgba(245,158,11,0.35)) saturate(1.1); }
      50%      { filter: drop-shadow(0 0 20px rgba(245,158,11,0.65)) saturate(1.3); }
    }
    .plan-card-name {
      font-family: var(--font-h); font-size: 1rem; font-weight: 800;
      display: flex; align-items: center; gap: 6px;
    }
    .plan-card-price {
      text-align: right;
    }
    .plan-card-price .price-val {
      font-family: var(--font-h); font-size: 1.2rem; font-weight: 800;
      color: var(--text);
    }
    .plan-card-price .price-per {
      font-size: 10px; color: var(--muted); display: block;
    }

    .plan-card-features {
      list-style: none; display: flex; flex-direction: column; gap: 5px;
    }
    .plan-card-features li {
      font-size: 11px; display: flex; align-items: center; gap: 6px;
      color: var(--text); opacity: 0.85;
    }
    .plan-card-features li .feat-icon {
      font-size: 10px; flex-shrink: 0;
    }
    .feat-off { opacity: 0.35 !important; text-decoration: line-through; }

    .plan-radio {
      position: absolute; top: 14px; right: 14px;
      width: 18px; height: 18px; border-radius: 50%;
      border: 2px solid currentColor; display: flex;
      align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .plan-card.selected .plan-radio::after {
      content: ''; width: 8px; height: 8px;
      border-radius: 50%; background: currentColor;
    }

    .plan-popular {
      display: flex; justify-content: center;
      margin: -16px -16px 12px;
      background: linear-gradient(135deg,#6366f1,#4f46e5);
      color: #fff; font-size: 9px; font-weight: 800;
      padding: 5px 10px; border-radius: 14px 14px 0 0;
      letter-spacing: 0.5px; white-space: nowrap;
    }

    .plan-cta {
      margin: 16px 16px 0;
      width: calc(100% - 32px);
      padding: 14px; border-radius: 14px;
      font-family: var(--font-h); font-size: 1rem; font-weight: 700;
      color: #000; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
      border: none;
    }
    .plan-cta:active { transform: scale(0.97); opacity: 0.9; }
    .plan-cta.cta-gratis { background: rgba(255,255,255,0.12); color: var(--text); }
    .plan-cta.cta-plus   { background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff; }
    .plan-cta.cta-pro    { background: linear-gradient(135deg,#f59e0b,#d97706); color: #000; }

    .plan-note {
      text-align: center; font-size: 11px; color: var(--muted);
      margin: 10px 16px 0; line-height: 1.5;
    }

    /* ════════════════════════════════════════════
       PLANOS — PRO / PLUS / GRATIS
    ════════════════════════════════════════════ */

    /* ── Plano PRO ───────────────────────────────────────────── */
    .store-card.plano-pro {
      border-color: rgba(245,158,11,0.55);
      background: linear-gradient(135deg,#1c1a14,#25210f);
      box-shadow:
        0 0 0 1px rgba(245,158,11,0.3) inset,
        0 4px 28px rgba(245,158,11,0.15),
        0 1px 0 rgba(245,158,11,0.4);
    }

    /* PRO com foto de capa */
    .store-card.plano-pro.has-cover {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-color: rgba(245,158,11,0.65);
      box-shadow: 0 0 0 1.5px rgba(245,158,11,0.5) inset, 0 6px 32px rgba(245,158,11,0.22);
    }

    /* Overlay reforçado — texto sempre legível sobre qualquer foto */
    .store-card.plano-pro.has-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          100deg,
          rgba(0,0,0,0.94) 0%,
          rgba(0,0,0,0.86) 38%,
          rgba(0,0,0,0.62) 70%,
          rgba(0,0,0,0.55) 100%
        );
      border-radius: inherit;
      z-index: 0;
      pointer-events: none;
    }
    /* Camada extra atrás do bloco de texto (lado esquerdo) para contraste */
    .store-card.plano-pro.has-cover .store-info {
      position: relative;
    }
    /* Nome em branco puro com sombra forte sobre a foto */
    .store-card.plano-pro.has-cover .store-name {
      color: #fff;
      text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.8);
    }
    .store-card.plano-pro.has-cover .store-sub {
      color: rgba(255,255,255,0.78);
      text-shadow: 0 1px 6px rgba(0,0,0,0.85);
    }

    /* Garante que o conteúdo fique acima do overlay */
    .store-card.plano-pro.has-cover > * {
      position: relative;
      z-index: 1;
    }

    /* ── Plano PLUS ──────────────────────────────────────────── */
    .store-card.plano-plus {
      border-color: rgba(99,102,241,0.35);
      background: linear-gradient(135deg,#141420,#1a1a2e);
      box-shadow:
        0 0 0 1px rgba(99,102,241,0.15) inset,
        0 2px 16px rgba(99,102,241,0.1);
    }

    /* ── Selos de plano ──────────────────────────────────────── */
    .plan-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 9px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 5px;
      letter-spacing: 0.5px;
      white-space: nowrap;
      flex-shrink: 0;
      line-height: 1.4;
      align-self: center;
      text-transform: uppercase;
    }

    .plan-badge.badge-pro {
      background: linear-gradient(135deg, var(--plano-pro-1), var(--plano-pro-2));
      color: #000;
      box-shadow: 0 1px 6px rgba(245,158,11,0.4);
    }

    .plan-badge.badge-plus {
      background: linear-gradient(135deg, var(--plano-plus-1), var(--plano-plus-2));
      color: #fff;
      box-shadow: 0 1px 6px rgba(99,102,241,0.35);
    }
    .plan-badge.badge-gratis {
      background: rgba(255,255,255,0.07);
      color: var(--muted);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: none;
    }
    .store-card.plano-gratis {
      background: var(--surface);
      border-color: rgba(255,255,255,0.1);
    }

    /* Pulso dourado sutil no PRO com foto */
    @keyframes pro-pulse {
      0%,100% {
        box-shadow:
          0 0 0 1.5px rgba(245,158,11,0.5) inset,
          0 0 0 3px rgba(245,158,11,0.12),
          0 6px 32px rgba(245,158,11,0.22);
      }
      50% {
        box-shadow:
          0 0 0 1.5px rgba(245,158,11,0.8) inset,
          0 0 0 3px rgba(245,158,11,0.20),
          0 6px 32px rgba(245,158,11,0.32);
      }
    }

    /* ════════════════════════════════════════════
       MODAL DETALHES — Exclusivo Planos Pagos
    ════════════════════════════════════════════ */
    .detail-overlay {
      position: fixed; inset: 0; z-index: 3000;
      background: rgba(0,0,0,0.88);
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.28s ease;
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    }
    .detail-overlay.open { opacity: 1; pointer-events: auto; }

    .detail-sheet {
      width: 100%; max-width: 520px;
      background: var(--surface);
      border-radius: 24px 24px 0 0;
      border: 1px solid var(--border); border-bottom: none;
      padding: 0 0 calc(28px + env(safe-area-inset-bottom));
      max-height: 90vh; overflow-y: auto; scrollbar-width: none;
      transform: translateY(48px);
      transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    }
    .detail-sheet::-webkit-scrollbar { display: none; }
    .detail-overlay.open .detail-sheet { transform: translateY(0); }

    /* Capa do modal */
    .detail-cover {
      width: 100%; height: 180px;
      object-fit: cover; display: block;
      border-radius: 24px 24px 0 0;
      background: var(--surface2);
    }
    .detail-cover-placeholder {
      width: 100%; height: 180px;
      border-radius: 24px 24px 0 0;
      background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 3.5rem;
    }
    .detail-cover-skeleton {
      width: 100%; height: 180px;
      border-radius: 24px 24px 0 0;
      background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
      background-size: 400px 100%;
      animation: shimmer 1.2s infinite linear;
    }
    /* Gradiente sobre a capa para o handle ficar legível */
    .detail-cover-wrap {
      position: relative; border-radius: 24px 24px 0 0; overflow: hidden;
    }
    .detail-cover-wrap::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 55%);
      pointer-events: none;
    }

    /* Handle e botão fechar flutuantes */
    .detail-top-bar {
      position: absolute; top: 0; left: 0; right: 0;
      display: flex; align-items: flex-start; justify-content: space-between;
      padding: 12px 14px 0;
      z-index: 1;
    }
    .detail-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: rgba(255,255,255,0.45);
      background-clip: content-box; /* fundo só na barrinha, não no padding */
      margin: 0 auto;
      position: absolute; left: 50%; transform: translateX(-50%);
      top: 14px;
      /* padding expande a área de toque sem mostrar fundo */
      padding: 12px 20px;
      box-sizing: content-box;
      -webkit-tap-highlight-color: transparent;
    }
    .detail-close {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(0,0,0,0.55); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; cursor: pointer;
      border: 1px solid rgba(255,255,255,0.15);
      backdrop-filter: blur(6px);
      margin-left: auto;
      transition: background 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .detail-close:active { background: rgba(0,0,0,0.82); transform: scale(0.9); }

    /* Conteúdo textual */
    .detail-body { padding: 18px 20px 0; }

    .detail-name-row {
      display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
    }
    .detail-name {
      font-family: var(--font-h); font-size: 1.25rem; font-weight: 800;
      letter-spacing: -0.02em; flex: 1 1 0; min-width: 0;
    }

    .detail-sub {
      font-size: 12px; color: var(--muted); margin-bottom: 16px;
    }

    /* Descrição pública ("sobre") — só lojas pagas */
    .detail-sobre {
      font-size: 13px; line-height: 1.5; color: var(--text);
      background: rgba(245,158,11,0.06);
      border-left: 3px solid rgba(245,158,11,0.55);
      border-radius: 0 10px 10px 0;
      padding: 10px 12px; margin: -6px 0 16px;
    }

    /* Linha de info (endereço, horário etc.) */
    .detail-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

    .detail-info-row {
      display: flex; align-items: flex-start; gap: 10px;
    }
    .detail-info-icon {
      width: 32px; height: 32px; border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; flex-shrink: 0;
    }
    .detail-info-icon.addr  { background: rgba(66,133,244,0.12); color: var(--blue); }
    .detail-info-icon.clock { background: rgba(0,208,132,0.12);  color: var(--green); }
    .detail-info-icon.phone { background: rgba(37,211,102,0.12); color: #25d366; }
    .detail-info-icon.obs   { background: rgba(245,158,11,0.12); color: var(--zap); }

    .detail-info-text { flex: 1; font-size: 13px; line-height: 1.5; }
    .detail-info-label {
      font-size: 10px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
      display: block; margin-bottom: 1px;
    }

    /* Grade de dias da semana */
    .detail-schedule { display: flex; flex-direction: column; gap: 6px; }
    .detail-schedule-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 10px; border-radius: 8px;
      font-size: 12px;
    }
    .detail-schedule-row.today {
      background: rgba(0,208,132,0.1); border: 1px solid rgba(0,208,132,0.2);
    }
    .detail-schedule-day { font-weight: 600; color: var(--text); }
    .detail-schedule-row.today .detail-schedule-day { color: var(--green); }
    .detail-schedule-time { color: var(--muted); font-size: 11px; }
    .detail-schedule-row.today .detail-schedule-time { color: var(--green); font-weight: 600; }
    .detail-schedule-closed { color: #8a8a8a; font-size: 11px; }

    /* Status badge no modal */
    .detail-status-row {
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 18px;
    }

    /* Botões de ação do modal */
    .detail-actions {
      display: flex; gap: 10px; padding: 0 20px 0;
    }
    .detail-btn-wpp {
      flex: 1; padding: 14px;
      background: linear-gradient(135deg,#25d366,#128c7e);
      color: #fff; border-radius: 14px;
      font-family: var(--font-h); font-size: 1rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.12s;
      border: none; cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .detail-btn-wpp.closed-wpp {
      background: var(--surface2);
      color: var(--muted);
      border: 1px solid var(--border);
    }
    .detail-btn-wpp:active { transform: scale(0.97); opacity: 0.9; }

    .detail-btn-tel {
      flex: 1; padding: 14px;
      background: linear-gradient(135deg,#3b82f6,#1d4ed8);
      color: #fff; border-radius: 14px;
      font-family: var(--font-h); font-size: 1rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.12s;
      border: none; cursor: pointer; text-decoration: none;
      -webkit-tap-highlight-color: transparent;
    }
    .detail-btn-tel:active { transform: scale(0.97); opacity: 0.9; }

    .detail-btn-ig {
      flex: 1; padding: 14px;
      background: linear-gradient(135deg,#e1306c,#c13584);
      color: #fff; border-radius: 14px;
      font-family: var(--font-h); font-size: .95rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.12s;
      border: none; cursor: pointer; text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
    }
    .detail-btn-ig:active { transform: scale(0.97); opacity: 0.9; }

    .detail-btn-maps {
      width: 52px; height: 52px; border-radius: 14px;
      background: rgba(66,133,244,0.12); color: var(--blue);
      border: 1px solid rgba(66,133,244,0.22);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; flex-shrink: 0; cursor: pointer;
      text-decoration: none;
      transition: background 0.15s, transform 0.12s;
      -webkit-tap-highlight-color: transparent;
    }
    .detail-btn-maps:active { transform: scale(0.93); background: rgba(66,133,244,0.22); }

    /* Faixa "Aberto agora" no topo da capa */
    .detail-cover-badge {
      position: absolute; bottom: 12px; left: 16px;
      z-index: 2;
    }

    /* Divisor */
    .detail-divider {
      height: 1px; background: var(--border);
      margin: 16px 20px;
    }
    /* ════════════════════════════════════════════
       PAINEL MINHA LOJA — ABAS
    ════════════════════════════════════════════ */
    /* Transição suave entre abas */
    .ml-tab-content {
      animation: fadeUp 0.2s ease both;
    }
    /* Aba ativa: cor da aba muda via JS, mas o botão já tem estilos base */
    .ml-tab-btn {
      -webkit-tap-highlight-color: transparent;
      transition: color 0.15s, border-color 0.15s;
    }
    .ml-tab-btn.ml-tab-active {
      color: var(--red) !important;
      border-bottom-color: var(--red) !important;
    }
    /* Badge de novos cliques no tab de métricas */
    #ml-tab-badge-metricas {
      vertical-align: middle;
    }
    /* Garante que o detail-sheet do painel use flex column */
    #modal-minha-loja .detail-sheet {
      display: flex;
      flex-direction: column;
    }

    /* ════════════════════════════════════════════
       PAINEL MINHA LOJA — NOVOS COMPONENTES
    ════════════════════════════════════════════ */

    /* Badge de novos cliques */
    .ml-badge-novo {
      display:inline-flex;align-items:center;gap:4px;
      background:rgba(0,208,132,0.12);border:1px solid rgba(0,208,132,0.25);
      color:var(--green);font-size:10px;font-weight:700;
      padding:3px 8px;border-radius:20px;margin-left:6px;
      animation: pulse-badge 2s ease infinite;
    }
    @keyframes pulse-badge {
      0%,100% { opacity:1; } 50% { opacity:0.65; }
    }

    /* Botões de emoji do anúncio */
    .anuncio-emoji-btn {
      width:32px;height:32px;border-radius:8px;font-size:1rem;
      background:var(--surface);border:1.5px solid var(--border);
      cursor:pointer;display:flex;align-items:center;justify-content:center;
      transition:border-color 0.15s,background 0.15s;
      -webkit-tap-highlight-color:transparent;
    }
    .anuncio-emoji-btn.active {
      border-color:var(--zap);background:rgba(245,158,11,0.1);
    }
    .anuncio-emoji-btn:active { transform:scale(0.9); }

    /* Fase 3: botões de dia da semana do agendamento */
    .ml-dia-btn {
      padding:5px 9px;border-radius:7px;font-size:10px;font-weight:700;
      background:var(--surface2);border:1.5px solid var(--border);color:var(--muted);
      cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;
      -webkit-tap-highlight-color:transparent;font-family:var(--font-b);
    }
    .ml-dia-btn.active {
      border-color:#8b5cf6;background:rgba(139,92,246,0.12);color:#a78bfa;
    }
    .ml-dia-btn:active { transform:scale(0.93); }

    /* Card de agendamento na lista */
    .ml-agenda-card {
      display:flex;align-items:center;gap:9px;padding:8px;
      background:var(--surface);border:1px solid var(--border);
      border-left:3px solid #8b5cf6;border-radius:9px;margin-bottom:6px;
    }
    .ml-agenda-card.pausado { opacity:.55;border-left-color:var(--muted); }


    /* Badge anúncio no card da loja (lista principal) */
    .store-anuncio-badge {
      display:flex;align-items:center;gap:5px;
      font-size:10px;font-weight:600;color:var(--zap);
      background:rgba(245,158,11,0.08);border:1px solid rgba(245,158,11,0.2);
      border-radius:6px;padding:3px 7px;margin-top:4px;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
    }

    /* ════════════════════════════════════════════
       MODAL DETALHES — MELHORIAS
    ════════════════════════════════════════════ */

    /* Dias fechados — visíveis mas apagados */
    .detail-schedule-row.day-closed {
      opacity: 0.28;
    }
    .detail-schedule-row.day-closed.today {
      opacity: 0.55; /* hoje fechado fica menos apagado */
    }

    /* Botão "Como chegar" destacado */
    .detail-btn-maps-full {
      flex: 1;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 14px;
      border-radius: 14px;
      background: rgba(66,133,244,0.12);
      border: 1px solid rgba(66,133,244,0.25);
      color: var(--blue);
      font-family: var(--font-h); font-size: .85rem; font-weight: 700;
      text-decoration: none;
      transition: background 0.15s;
    }
    .detail-btn-maps-full:active { background: rgba(66,133,244,0.22); }

    /* ════════════════════════════════════════════
       CARDÁPIO
    ════════════════════════════════════════════ */

    /* Card de item no modal do cliente */
    .cc-item-card {
      display: flex; align-items: center; gap: 10px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 12px; padding: 10px; position: relative;
    }
    .cc-item-foto {
      width: 60px; height: 60px; border-radius: 10px;
      object-fit: cover; flex-shrink: 0;
      background: #1a1a1a;   /* fundo escuro — evita ilha branca no dark mode */
      border: 1px solid rgba(255,255,255,0.06);
    }
    .cc-item-foto-placeholder {
      width: 60px; height: 60px; border-radius: 10px;
      background: var(--surface); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; flex-shrink: 0;
    }
    .cc-item-info { flex: 1; min-width: 0; }
    .cc-item-nome { font-family: var(--font-h); font-size: 13px; font-weight: 800; }
    .cc-item-desc {
      font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      white-space: normal;
    }
    .cc-item-preco { font-family: var(--font-h); font-size: 12px; font-weight: 700; color: var(--green); margin-top: 3px; letter-spacing: .01em; }
    .cc-item-preco.cc-preco-consultar { color: var(--muted); font-weight: 600; }

    .cc-item-add {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--green); background: linear-gradient(135deg,#16a34a,#15803d);
      color: #fff; font-size: 1.15rem; font-weight: 800;
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: transform 0.1s, box-shadow 0.1s;
      box-shadow: 0 1px 4px rgba(0,0,0,0.25);   /* sombra neutra, sem glow neon */
      -webkit-tap-highlight-color: transparent;
    }
    .cc-item-add:active { transform: scale(0.86); box-shadow: none; }

    .cc-qty-ctrl {
      display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    }
    .cc-qty-btn {
      width: 28px; height: 28px; border-radius: 50%;
      border: 1px solid var(--border); background: var(--surface);
      color: var(--text); font-size: 1rem; font-weight: 800;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }
    .cc-qty-num { font-family: var(--font-h); font-size: 14px; font-weight: 800; min-width: 20px; text-align: center; }

    /* Barra do carrinho — destaque verde quando há itens, convida a finalizar */
    .cc-cart {
      flex-shrink: 0;
      background: linear-gradient(to top, rgba(16,185,129,0.14), rgba(16,185,129,0.05));
      border-top: 1px solid rgba(16,185,129,0.4);
      box-shadow: 0 -6px 20px rgba(16,185,129,0.10);
    }
    #cc-cart-head { transition: transform 0.1s; }
    #cc-cart-head:active { transform: scale(0.99); }

    /* Pulse de atenção ao adicionar o primeiro item */
    @keyframes ccCartPulse {
      0%   { transform: translateY(0)   scale(1);    }
      30%  { transform: translateY(-3px) scale(1.015); }
      60%  { transform: translateY(0)   scale(1);    }
      100% { transform: translateY(0)   scale(1);    }
    }
    .cc-cart.cc-cart-pulse { animation: ccCartPulse 0.5s ease; }

    /* Barrinha de arraste do modal de cardápio */
    .cc-handle-bar {
      flex-shrink: 0; display: flex; justify-content: center;
      padding: 8px 0 2px; cursor: grab; touch-action: none;
      -webkit-tap-highlight-color: transparent;
    }
    .cc-handle-bar:active { cursor: grabbing; }
    .cc-handle-bar .modal-handle { margin: 0; }

    /* Handles arrastáveis ganham cursor de agarrar */
    .detail-handle, .modal-handle { touch-action: none; }
    .detail-handle { cursor: grab; }
    .detail-handle:active { cursor: grabbing; }

    .cc-cat-label {
      font-size: 10px; font-weight: 800; color: var(--muted);
      text-transform: uppercase; letter-spacing: .06em;
      margin: 12px 0 6px;
    }
    .cc-cat-label:first-child { margin-top: 0; }

    /* Badge "Mais pedido / Mais procurado" — extraído para classe */
    .cc-badge-destaque {
      font-size: 10px; background: rgba(245,158,11,0.2); color: #f59e0b;
      border: 1px solid rgba(245,158,11,0.4); border-radius: 4px;
      padding: 1px 5px; margin-right: 4px; font-weight: 800;
      white-space: nowrap;
    }

    /* Foto do card de produto: wrapper para posicionar a lupa de ampliar */
    .cc-foto-wrap { position: relative; flex-shrink: 0; width: 60px; height: 60px; }
    .cc-foto-wrap .cc-item-foto { width: 100%; height: 100%; }
    .cc-foto-zoom {
      position: absolute; bottom: 2px; right: 2px;
      width: 20px; height: 20px; border-radius: 6px;
      background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
      color: #fff; font-size: 10px; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center; padding: 0;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.1s, background 0.15s;
    }
    .cc-foto-zoom:active { transform: scale(0.85); background: rgba(0,0,0,0.8); }

    /* Quando não há descrição, centraliza nome+preço verticalmente (sem buraco) */
    .cc-item-card:not(:has(.cc-item-desc)) .cc-item-info {
      display: flex; flex-direction: column; justify-content: center;
    }

    /* ── MODO SERVIÇO ─────────────────────────────────────────────────────── */
    .cc-servico-card { cursor: default; }
    .cc-btn-agendar {
      flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(37,211,102,0.4);
      background: rgba(37,211,102,0.14); color: #25d366;
      font-family: var(--font-h); font-size: 12px; font-weight: 800;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: transform 0.1s, background 0.15s; white-space: nowrap;
      min-height: 40px;
    }
    .cc-btn-agendar:active { transform: scale(0.94); background: rgba(37,211,102,0.24); }
    .cc-btn-agendar i { font-size: 14px; }

    /* ── MODO VITRINE (grade 2 colunas) ──────────────────────────────────── */
    .cc-vitrine-grid {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
      margin-bottom: 4px;
    }
    .cc-vitrine-card {
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    }
    .cc-vitrine-foto-wrap {
      position: relative; width: 100%; aspect-ratio: 1 / 1;
      background: #1a1a1a; overflow: hidden;
    }
    /* placeholder ocupa o wrap; a foto (absolute) cobre por cima quando carrega */
    .cc-vitrine-foto-ph {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.6rem; background: var(--surface);
    }
    .cc-vitrine-foto {
      position: absolute; inset: 0;
      width: 100%; height: 100%; object-fit: cover; display: block;
      background: #1a1a1a;   /* evita ver o placeholder através de PNG transparente */
    }
    .cc-vitrine-badge {
      position: absolute; top: 6px; left: 6px;
      font-size: 9px; background: rgba(245,158,11,0.92); color: #1a1300;
      border-radius: 5px; padding: 2px 6px; font-weight: 800;
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    .cc-vitrine-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
    .cc-vitrine-nome {
      font-family: var(--font-h); font-size: 13px; font-weight: 800; line-height: 1.15;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .cc-vitrine-desc {
      font-size: 10px; color: var(--muted); line-height: 1.35;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .cc-vitrine-preco { font-family: var(--font-h); font-size: 13px; font-weight: 800; color: var(--green); margin-top: 2px; }
    .cc-vitrine-preco.cc-preco-consultar { color: var(--muted); font-weight: 600; font-size: 11px; }
    .cc-btn-interesse {
      margin-top: 6px; width: 100%;
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      padding: 8px; border-radius: 9px; border: 1px solid rgba(37,211,102,0.4);
      background: rgba(37,211,102,0.14); color: #25d366;
      font-family: var(--font-h); font-size: 11px; font-weight: 800;
      cursor: pointer; -webkit-tap-highlight-color: transparent;
      transition: transform 0.1s, background 0.15s; min-height: 38px;
    }
    .cc-btn-interesse:active { transform: scale(0.96); background: rgba(37,211,102,0.24); }
    .cc-btn-interesse i { font-size: 13px; }

    /* ── LIGHTBOX de foto ampliada (todos os modos) ──────────────────────── */
    .cc-lightbox {
      position: fixed; inset: 0; z-index: 1200;
      background: rgba(0,0,0,0.88); backdrop-filter: blur(4px);
      display: flex; align-items: center; justify-content: center; padding: 20px;
      opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
    }
    .cc-lightbox.open { opacity: 1; pointer-events: auto; }
    .cc-lightbox-inner {
      max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column;
      background: var(--surface2); border-radius: 16px; overflow: hidden;
      border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
      transform: scale(0.94); transition: transform 0.18s ease;
    }
    .cc-lightbox.open .cc-lightbox-inner { transform: scale(1); }
    .cc-lightbox-img {
      width: 100%; max-height: 66vh; object-fit: contain; background: #0a0a0a;
      display: block;
    }
    .cc-lightbox-meta { padding: 14px 16px 16px; }
    .cc-lightbox-nome { font-family: var(--font-h); font-size: 1.05rem; font-weight: 800; color: var(--text); }
    .cc-lightbox-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
    .cc-lightbox-preco { font-family: var(--font-h); font-size: 1rem; font-weight: 800; color: var(--green); margin-top: 8px; }
    .cc-lightbox-close {
      position: absolute; top: 14px; right: 16px; z-index: 2;
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
      color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }
    .cc-lightbox-close:active { transform: scale(0.9); }
    .cc-item-foto { cursor: zoom-in; }

    /* Card de item no painel do dono */
    .ml-cardapio-item {
      display: flex; align-items: center; gap: 10px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px;
    }
    .ml-cardapio-item-foto {
      width: 44px; height: 44px; border-radius: 8px;
      object-fit: cover; flex-shrink: 0; background: var(--surface);
      border: 1px solid var(--border);
    }
    .ml-cardapio-grupo { margin-bottom: 8px; }
    .ml-cardapio-grupo-head {
      display: flex; align-items: center; justify-content: space-between;
      width: 100%; box-sizing: border-box;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 9px; padding: 9px 11px; margin-bottom: 6px;
      color: var(--text); cursor: pointer;
      font-family: var(--font-h); font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: .03em;
    }
    .ml-cardapio-grupo-head:hover { border-color: var(--green); }
    .ml-cardapio-grupo-count {
      font-size: 10px; font-weight: 700; color: var(--muted);
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 20px; padding: 1px 8px; min-width: 18px; text-align: center;
    }
    /* Acoes da categoria: mover para cima/baixo e renomear */
    .ml-cardapio-grupo-acoes {
      display: flex; gap: 6px; align-items: center;
      margin: -2px 0 8px; padding-left: 2px;
    }
    .ml-cat-acao {
      min-height: 28px; padding: 0 9px; border-radius: 7px;
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--muted); font-family: var(--font-b, inherit);
      font-size: 10px; font-weight: 700; cursor: pointer;
      display: inline-flex; align-items: center; gap: 5px;
      -webkit-tap-highlight-color: transparent;
      transition: color .15s, border-color .15s;
    }
    .ml-cat-acao:hover:not(:disabled),
    .ml-cat-acao:focus-visible:not(:disabled) {
      color: var(--green); border-color: var(--green);
    }
    .ml-cat-acao:active:not(:disabled) { transform: scale(0.95); }
    .ml-cat-acao:disabled { opacity: .3; cursor: default; }
    .ml-cat-acao-txt { margin-left: auto; }

    /* Foto em lote — linha do cabecalho: toggle + botao de camera */
    .ml-cardapio-grupo-row {
      display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px;
    }
    .ml-cardapio-grupo-row .ml-cardapio-grupo-head { margin-bottom: 0; flex: 1; min-width: 0; }
    .ml-cardapio-grupo-foto {
      position: relative; flex-shrink: 0;
      width: 40px; border-radius: 9px;
      background: var(--surface); border: 1px solid var(--border);
      color: var(--muted); font-size: 13px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: color .15s, border-color .15s, background .15s;
      -webkit-tap-highlight-color: transparent;
    }
    .ml-cardapio-grupo-foto:hover,
    .ml-cardapio-grupo-foto:focus-visible {
      color: var(--green); border-color: var(--green);
      background: rgba(16, 185, 129, 0.08);
    }
    .ml-cardapio-grupo-foto:active { transform: scale(0.94); }
    /* Badge = quantos itens do grupo ainda estao sem foto */
    .ml-cardapio-grupo-foto-badge {
      position: absolute; top: -5px; right: -5px;
      min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
      border-radius: 20px; background: var(--orange, #f59e0b); color: #000;
      font-family: var(--font-b, inherit);
      font-size: 9px; font-weight: 800; line-height: 16px; text-align: center;
    }

    .ml-cardapio-grupo-body { flex-direction: column; gap: 8px; padding-left: 4px; }

    /* ════════════════════════════════════════════
       PAINEL MINHA LOJA — ABAS
    ════════════════════════════════════════════ */
    .ml-tab-content { animation: fadeUp 0.2s ease both; }
    .ml-tab-btn {
      -webkit-tap-highlight-color: transparent;
      transition: color 0.15s, border-color 0.15s;
    }
    .ml-tab-btn.ml-tab-active {
      color: var(--red) !important;
      border-bottom-color: var(--red) !important;
    }
    #ml-tab-badge-metricas { vertical-align: middle; }
    #modal-minha-loja .detail-sheet { display: flex; flex-direction: column; }


    /* ════════════════════════════════════════════
       CARDÁPIO CLIENTE — STICKY CATEGORY TABS
    ════════════════════════════════════════════ */
    .cc-sticky-tabs {
      display: flex; gap: 0; overflow-x: auto;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
      background: var(--surface); flex-shrink: 0;
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; z-index: 10;
    }
    .cc-sticky-tabs::-webkit-scrollbar { display: none; }
    .cc-tab-pill {
      flex-shrink: 0; padding: 9px 14px;
      font-family: var(--font-b); font-size: 12px; font-weight: 600;
      color: var(--muted); background: none; border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer; white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
      transition: color 0.15s, border-color 0.15s;
    }
    .cc-tab-pill.active {
      color: var(--text);
      border-bottom-color: var(--red);
      font-weight: 700;
    }
    /* filtro ✕ na categoria ativa do cat-bar */
    .cat-clear-btn {
      position: absolute; top: -5px; right: -5px;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--red); color: #fff;
      font-size: 10px; font-weight: 800;
      display: none; align-items: center; justify-content: center;
      cursor: pointer; border: none; z-index: 3;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
    }
    .cat-clear-btn::before {
      content: ""; position: absolute;
      top: 50%; left: 50%; transform: translate(-50%, -50%);
      width: 40px; height: 40px; border-radius: 50%;
    }
    .cat-item { position: relative; }
    .cat-item.has-clear .cat-clear-btn { display: flex; }

    /* ════════════════════════════════════════════
       LIGHT MODE
    ════════════════════════════════════════════ */
    /* Tema DIA — puxa o azul do céu da foto da Igreja de dia.
       Fundo periwinkle claro, surfaces brancas com leve tom frio,
       bordas/texto azul-acinzentados. Acentos neon seguem legíveis. */
    body.light-mode {
      /* Fundo cinza-azulado DENSO (nao mais ceu lavado) p/ os cards
         brancos descolarem de verdade. Contraste real, legivel. */
      --bg:       #c2cddd;
      --surface:  #ffffff;
      --surface2: #dbe3f0;
      --border:   rgba(30,58,95,0.20);
      --text:     #0f1a2e;
      --muted:    #4a586e; /* ~6.5:1 AA sobre as surfaces claras */
      /* skeleton tokens claros (levemente azulados) */
      --sk-base:  #c8d3e3;
      --sk-shine: #dde5f1;
    }
    body.light-mode .header       { background: rgba(194,205,221,0.86); }
    body.light-mode .filter-pills { background: transparent; }
    body.light-mode .categories   { background: transparent; }
    body.light-mode .main         { background: var(--bg); }
    body.light-mode .store-card   {
      background: var(--surface);
      box-shadow: 0 2px 10px rgba(15,26,46,0.12), 0 1px 3px rgba(15,26,46,0.08);
    }
    /* ── Cards por tier no tema DIA ──────────────────────────────
       No claro, o fundo branco puro "some" no azul-céu e o Plus perdia
       a cor. Aqui damos profundidade sem virar branco chapado. */

    /* GRÁTIS: off-white levemente frio + borda azul sutil p/ descolar do fundo */
    body.light-mode .store-card.plano-gratis {
      background: #ffffff;
      border-color: rgba(30,58,95,0.22);
      box-shadow: 0 2px 10px rgba(15,26,46,0.12), 0 1px 3px rgba(15,26,46,0.08);
    }

    /* PLUS: recupera a identidade roxa — leve lavanda + borda/realce roxo */
    body.light-mode .store-card.plano-plus {
      background: linear-gradient(135deg,#eeecfc,#e4e1f9);
      border-color: rgba(99,102,241,0.55);
      box-shadow:
        0 0 0 1px rgba(99,102,241,0.22) inset,
        0 3px 16px rgba(99,102,241,0.20);
    }
    body.light-mode .skeleton-card { background: var(--surface); }
    body.light-mode .skeleton-line,
    body.light-mode .skeleton-thumb { background: var(--surface2); }
    body.light-mode .bottom-nav   { background: var(--surface); border-top-color: var(--border); }
    body.light-mode .nav-item     { color: var(--muted); }
    body.light-mode .nav-item.active { color: var(--red); }
    body.light-mode .badge-closed { background: rgba(255,68,68,0.08); }
    body.light-mode .btn-wpp.closed,
    body.light-mode .btn-tel.closed { background: var(--surface2); }
    body.light-mode input,
    body.light-mode textarea,
    body.light-mode select { background: var(--surface2) !important; color: var(--text) !important; }
    body.light-mode .modal-sheet,
    body.light-mode .modal-overlay { background: var(--surface); }
    body.light-mode .detail-sheet  { background: var(--surface); }
    body.light-mode .cat-item .cat-icon { background: var(--surface2); border: 1px solid var(--border); }
    body.light-mode .cat-icon.active { background: var(--surface); }
    body.light-mode .pill-btn { background: var(--surface); }
    body.light-mode .pill-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
    body.light-mode .sw-update-banner { background: var(--surface2); }
    body.light-mode .bairro-dropdown  { background: var(--surface); border-color: var(--border); }
    body.light-mode .footer { background: var(--bg); }
    body.light-mode .search-wrap input:focus {
      border-color: rgba(200,40,40,0.6);
      box-shadow: 0 0 0 3px rgba(200,40,40,0.1);
    }

    /* Botão de tema no header */
    .theme-toggle-btn {
      width: 34px; height: 34px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--muted); font-size: 15px; cursor: pointer;
      transition: color 0.2s, background 0.2s, transform 0.15s;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
    }
    .theme-toggle-btn:active { transform: scale(0.88); }
    .theme-toggle-btn:hover  { color: var(--text); }

    /* Estrelas nos cards */
    .store-stars {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 10px; font-weight: 700; color: #f59e0b;
      white-space: nowrap; flex-shrink: 0;
    }
    .store-stars-count { color: var(--muted); font-weight: 500; font-size: 9px; }
    /* ── Seletor de ciclo de cobrança (cadastro) ── */
    .ciclo-toggle {
      display: flex; gap: 4px; margin-bottom: 12px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 12px; padding: 4px;
    }
    .ciclo-btn {
      flex: 1; border: none; background: transparent; cursor: pointer;
      font-family: var(--font-h); font-size: 11px; font-weight: 700;
      color: var(--muted); padding: 8px 4px; border-radius: 9px;
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      transition: background .2s, color .2s; line-height: 1.2;
    }
    .ciclo-btn.active {
      background: var(--surface); color: var(--text);
      box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    }
    .ciclo-selo {
      font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 5px;
      background: rgba(37,211,102,0.15); color: #25d366; white-space: nowrap;
    }
    .ciclo-selo-destaque {
      background: linear-gradient(135deg,#f59e0b,#d97706); color: #000;
    }
    .plan-ciclo-info { line-height: 1.4; }
    .plan-ciclo-economia {
      color: #25d366; font-weight: 700;
    }
    .price-val.price-riscado {
      text-decoration: line-through; opacity: .5; font-size: .75em; margin-right: 4px;
    }


/* ════════════════════════════════════════════════════════════
   AUDITORIA UX — CADASTRO (carousel, sticky, microinterações)
   ════════════════════════════════════════════════════════════ */

/* ── [1] CAROUSEL DE PLANOS (etapa 3) ─────────────────────── */
.cad-carousel-wrap {
  position: relative;
  overflow: hidden;            /* << causa-raiz: clipa os slides */
  margin: 0 -20px 4px;         /* sangra até as bordas do modal-body (pad 20px) */
  padding: 4px 0;
  touch-action: pan-y;         /* permite scroll vertical, swipe horiz tratado no JS */
}
.cad-plan-carousel {
  display: flex;
  will-change: transform;      /* performance no swipe */
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
/* cada card vira um slide de largura total */
.cad-plan-carousel > .cad-plan-card {
  flex: 0 0 100%;
  min-width: 100%;             /* << causa-raiz: impede encolher */
  box-sizing: border-box;
  margin: 0 !important;        /* anula o margin-bottom do empilhamento antigo */
  padding: 14px 16px;          /* mais compacto */
}

/* Hint "← deslize →" (1ª visita) */
.cad-carousel-hint {
  display: none;
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.cad-carousel-hint.show {
  display: inline-flex; align-items: center; gap: 6px;
  animation: cchFade 0.3s ease both;
}
.cad-carousel-hint .cch-arrow {
  display: inline-block;
  animation: cchNudge 1.2s ease-in-out infinite;
}
.cad-carousel-hint .cch-arrow:last-child { animation-delay: 0.15s; }
@keyframes cchFade { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes cchNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* Dots */
.cad-plan-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 12px;
}
.cad-plan-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: none; padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  /* área de toque 44×44 sem deformar o ponto visível */
  position: relative;
}
.cad-plan-dot::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px;
}
.cad-plan-dot.active {
  width: 22px; border-radius: 5px;
  background: var(--green);
}

/* Pulse no card que entra em foco no carousel */
.cad-plan-card.cad-pulse {
  animation: cadCardPulse 0.4s ease;
}
@keyframes cadCardPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.022); }
  100% { transform: scale(1); }
}

/* ── [2] MODAL SHEET — STICKY HEADER / STEPPER ────────────── */
/* O container rola; header + stepper + ciclo grudam no topo. */
/* Apenas o stepper gruda no topo; header e handle rolam normal (sem colidir). */
#modal-cadastro .cad-stepper {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 6px 12px -8px rgba(0,0,0,0.5);
}

/* ── [3] STEPPER — animação done + fill da linha ──────────── */
.cad-step-circle { transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.cad-step.done .cad-step-circle {
  animation: stepDone 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes stepDone {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
/* Linha: fill animado da esquerda p/ direita ao concluir */
.cad-step-line {
  position: relative;
  background: var(--border) !important;
  overflow: hidden;
}
.cad-step-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.cad-step-line.done::after { transform: scaleX(1); }
/* labels: evita corte */
.cad-step-label { max-width: 72px; overflow: visible; }

/* ── [4] CICLO TOGGLE — sticky + selo destacado ───────────── */
#cad-ciclo-toggle {
  position: relative;
  z-index: 1;
}
/* selo "2 meses grátis" mais chamativo (âmbar pulsante) */
.ciclo-selo-destaque {
  box-shadow: 0 0 0 0 rgba(245,158,11,0.5);
  animation: seloGlow 2s ease-in-out infinite;
}
@keyframes seloGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.0); }
  50%     { box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
}

/* ── [5] TIPOGRAFIA — preço dominante, features legíveis ──── */
.cad-plan-carousel .plan-card-price .price-val {
  font-size: 1.5rem;           /* preço dominante, sem inflar o card */
  line-height: 1;
}
.cad-plan-carousel .plan-card-price .price-per { font-size: 10px; }
.cad-plan-carousel .plan-card-features { gap: 4px; }
.cad-plan-carousel .plan-card-features li { font-size: 12px; line-height: 1.3; }
.cad-plan-carousel .plan-card-name { font-size: 1.05rem; }
/* feat-off: line-through legível, sem sumir */
.cad-plan-carousel .feat-off { opacity: 0.5 !important; }
.cad-plan-carousel .feat-off .feat-icon { opacity: 0.7; }

/* micro-animação de troca de preço */
.price-flash { animation: priceFlash 0.3s ease; }
@keyframes priceFlash {
  0%   { opacity: 0.3; transform: translateY(-2px); }
  100% { opacity: 1;   transform: translateY(0); }
}

/* ── [6] CTA STICKY BOTTOM (safe-area) ────────────────────── */
.cad-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 18;
  margin: 8px -20px 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--surface) 70%, transparent);
  display: flex; flex-direction: column; gap: 4px;
}
.cad-sticky-cta .modal-submit,
.cad-sticky-cta .cad-next-btn {
  margin: 0; width: 100%;
  min-height: 48px;            /* touch target */
}

/* ── [7] SHAKE em campos inválidos ────────────────────────── */
.cad-shake { animation: cadShake 0.4s cubic-bezier(0.36,0.07,0.19,0.97); }
@keyframes cadShake {
  10%,90% { transform: translateX(-1px); }
  20%,80% { transform: translateX(2px); }
  30%,50%,70% { transform: translateX(-4px); }
  40%,60% { transform: translateX(4px); }
}

/* loading state do submit (class-based, preserva o label) */
.modal-submit.is-loading { pointer-events: none; opacity: 0.75; }
.modal-submit.is-loading .cad-submit-txt::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 4px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── [8] TOUCH TARGETS ────────────────────────────────────── */
#modal-cadastro .modal-close { width: 44px; height: 44px; }
.ciclo-btn { min-height: 44px; }

/* ── [9] PERFORMANCE — owls dos cards ─────────────────────── */
/* contém o blend/glow dentro do card e evita reflow no swipe */
.cad-plan-carousel .plan-card { contain: paint; }

/* transição de painel: slide horizontal entre etapas */
.cad-step-panel.active { animation: panelSlide 0.28s ease both; }
@keyframes panelSlide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cad-step-panel.active.cad-back { animation: panelSlideBack 0.28s ease both; }
@keyframes panelSlideBack {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Lista de avaliações colapsável (modal de detalhes) */
.aval-lista-colapsada {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  margin-bottom: 0;
}
.aval-lista-colapsada.aberta {
  margin-bottom: 14px;
}
#aval-toggle-1:active, [id^="aval-toggle-"]:active { opacity: 0.85; }

/* Form de avaliação: último item do card, alinhado às ações */
.detail-aval-form-wrap {
  padding: 0 20px;
  margin-top: 14px;
}
.detail-aval-form-wrap #aval-form-undefined,
.detail-aval-form-wrap [id^="aval-form-"] {
  margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   ONBOARDING — tela de boas-vindas (1º acesso ao painel da loja)
   Criada via JS em app.js (mostrarOnboarding). Tema dark padrão.
   ══════════════════════════════════════════════════════════════ */
#onboarding-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity 0.3s ease;
}
#onboarding-overlay.open { opacity: 1; }
#onboarding-overlay .onb-card {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
#onboarding-overlay.open .onb-card { transform: translateY(0) scale(1); }
.onb-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); border: none;
  color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.onb-close:hover { opacity: 0.7; }
.onb-owl {
  width: 110px; height: 110px; object-fit: contain;
  margin: 0 auto 6px; display: block;
}
.onb-title {
  font-family: var(--font-h); font-weight: 800;
  font-size: 1.45rem; line-height: 1.2; color: var(--text);
  margin-bottom: 6px;
}
.onb-title span { font-size: 1.3rem; }
.onb-sub {
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 22px; line-height: 1.5;
  padding: 0 6px;
}
.onb-steps {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px; text-align: left;
}
.onb-step {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 14px;
}
.onb-ico {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.onb-step-txt {
  font-size: 13px; color: var(--muted); line-height: 1.45;
}
.onb-step-txt strong {
  display: block; color: var(--text);
  font-size: 13.5px; font-weight: 600; margin-bottom: 2px;
}
.onb-cta {
  width: 100%; padding: 14px;
  border-radius: 14px; border: none;
  background: linear-gradient(135deg, #00d084, #00a866);
  color: #fff; font-family: var(--font-h);
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.onb-cta:hover { opacity: 0.92; }
.onb-cta:active { transform: scale(0.98); }

/* ════════════════════════════════════════════════════════════
   ONBOARDING DO CLIENTE — tour guiado (spotlight) para o morador
   Máscara com recorte no elemento real + balão explicativo.
════════════════════════════════════════════════════════════ */
#cliente-onb-overlay,
#lojista-onb-overlay {
  position: fixed; inset: 0; z-index: 10001;
  opacity: 0; transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Tour do painel: acima do modal da loja (z 2000). */
#lojista-onb-overlay { z-index: 10002; }
#cliente-onb-overlay.open,
#lojista-onb-overlay.open { opacity: 1; }

/* Máscara escura em 4 painéis que emolduram o furo. */
.conb-mask { position: absolute; inset: 0; pointer-events: none; }
.conb-mask-pane {
  position: absolute; background: rgba(0,0,0,0.80);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  transition: top .32s cubic-bezier(0.32,0.72,0,1),
              left .32s cubic-bezier(0.32,0.72,0,1),
              width .32s cubic-bezier(0.32,0.72,0,1),
              height .32s cubic-bezier(0.32,0.72,0,1);
}
/* No hero o blur cobre tudo com um respiro maior. */
#cliente-onb-overlay.is-hero .conb-mask-pane,
#lojista-onb-overlay.is-hero .conb-mask-pane { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Anel destacando o elemento em foco. */
.conb-ring {
  position: absolute; display: none; pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--zap), 0 0 0 6px rgba(245,158,11,0.28);
  transition: all .32s cubic-bezier(0.32,0.72,0,1);
  animation: conbRingPulse 1.8s ease-in-out infinite;
}
@keyframes conbRingPulse {
  0%,100% { box-shadow: 0 0 0 2px var(--zap), 0 0 0 6px rgba(245,158,11,0.28); }
  50%     { box-shadow: 0 0 0 2px var(--zap), 0 0 0 10px rgba(245,158,11,0.12); }
}

/* Botão pular — fixo no topo o tour inteiro. */
.conb-skip {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px;
  z-index: 3; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  color: #fff; font-family: var(--font-b); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 7px 16px; transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.conb-skip:hover { background: rgba(0,0,0,0.7); }

/* Balão explicativo. */
.conb-pop {
  position: absolute; z-index: 2; width: min(340px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 20px 20px 16px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: left .3s cubic-bezier(0.32,0.72,0,1),
              top .3s cubic-bezier(0.32,0.72,0,1);
  animation: conbPopIn .34s cubic-bezier(0.32,0.72,0,1);
}
@keyframes conbPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Hero: balão centralizado, maior. */
.conb-pop.centered {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 40px)); padding: 30px 24px 22px;
}
.conb-pop.centered .conb-owl-wrap { height: 128px; }
.conb-pop.centered .conb-owl { width: 128px; height: 128px; }

/* Seta do balão apontando para o alvo. */
.conb-pop-arrow { position: absolute; width: 0; height: 0; display: none; }
.conb-pop-arrow.up {
  top: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 9px solid var(--surface); filter: drop-shadow(0 -1px 0 var(--border));
}
.conb-pop-arrow.down {
  bottom: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 9px solid var(--surface); filter: drop-shadow(0 1px 0 var(--border));
}

.conb-owl-wrap {
  height: 78px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.conb-owl {
  width: 78px; height: 78px; object-fit: contain;
  animation: conbOwlIn 0.4s ease;
}
@keyframes conbOwlIn {
  from { opacity: 0; transform: scale(0.8) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.conb-icon { font-size: 1.5rem; margin-bottom: 2px; }
.conb-title {
  font-family: var(--font-h); font-weight: 800;
  font-size: 1.25rem; line-height: 1.15; color: var(--text);
  margin-bottom: 7px;
}
.conb-text {
  font-family: var(--font-b); font-size: 13.5px; line-height: 1.5;
  color: var(--muted); margin-bottom: 16px;
}
.conb-text strong { color: var(--text); font-weight: 700; }
.conb-foot { display: flex; align-items: center; gap: 12px; }
.conb-dots { display: flex; gap: 6px; flex: 1; justify-content: flex-start; }
.conb-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--border); transition: all .25s;
}
.conb-dot.active { width: 18px; background: var(--zap); }
.conb-cta {
  padding: 11px 22px; border-radius: 12px;
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a1206;
  font-family: var(--font-h); font-size: 14px; font-weight: 800;
  border: none; cursor: pointer; transition: opacity .2s, transform .1s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.conb-cta:hover { opacity: 0.93; }
.conb-cta:active { transform: scale(0.98); }
/* No hero o rodapé empilha (dots em cima, botão largo embaixo). */
.conb-pop.centered .conb-foot { flex-direction: column; gap: 16px; }
.conb-pop.centered .conb-dots { justify-content: center; }
.conb-pop.centered .conb-cta { width: 100%; padding: 14px; }

/* ════════════════════════════════════════════════════════════
   NUDGE DE AVALIAÇÃO — card flutuante convidando a avaliar
════════════════════════════════════════════════════════════ */
#nudge-aval {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9500;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s cubic-bezier(0.32,0.72,0,1);
}
#nudge-aval.open { opacity: 1; transform: translateY(0); }
.nudge-aval-card {
  position: relative; pointer-events: auto;
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center;
}
.nudge-aval-owl {
  width: 46px; height: 46px; object-fit: contain; grid-row: 1;
}
.nudge-aval-body { min-width: 0; grid-row: 1; }
.nudge-aval-title {
  font-family: var(--font-h); font-weight: 800; font-size: 15px;
  color: var(--text); line-height: 1.2; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nudge-aval-sub {
  font-family: var(--font-b); font-size: 11.5px; color: var(--muted); line-height: 1.35;
}
.nudge-aval-close {
  grid-row: 1; align-self: flex-start; position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface2); border: none; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
/* Área de toque invisível ampliada (~40px) sem inchar o botão visual de 26px
   (alvo de toque pequeno demais pra mobile — recomendação Apple/Google/WCAG 2.5.8). */
.nudge-aval-close::before {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
}
.nudge-aval-close:hover { color: var(--text); }
.nudge-aval-actions {
  grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px;
}
.nudge-aval-btn-later, .nudge-aval-btn-go {
  padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-h); font-size: 12.5px; font-weight: 800;
  cursor: pointer; border: none; -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, transform .1s;
}
.nudge-aval-btn-later {
  background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
}
.nudge-aval-btn-go {
  flex: 1; background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a1206;
}
.nudge-aval-btn-later:active, .nudge-aval-btn-go:active { transform: scale(0.97); }

/* Destaque temporário no formulário de avaliação (quando aberto pelo nudge) */
.aval-form-highlight {
  animation: avalHl 1.8s ease;
  border-radius: 12px;
}
@keyframes avalHl {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  30%      { box-shadow: 0 0 0 3px rgba(245,158,11,0.35); }
}



/* ════════════════════════════════════════════════════════════
   ACORDEÃO DE PLANOS — etapa 3 do cadastro (substitui carousel)
   3 planos sempre visíveis; 1 expandido por vez. Plus = recomendado.
════════════════════════════════════════════════════════════ */

/* Cabeçalho da etapa */
.cad-plan-head { margin-bottom: 14px; }
.cad-plan-head-eyebrow {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.cad-plan-head-title {
  font-family: var(--font-h); font-size: 1.25rem; font-weight: 800;
  color: var(--text); line-height: 1.15;
}

/* Container do acordeão */
.acc-planos { display: flex; flex-direction: column; gap: 10px; }

/* Card de plano (recolhido por padrão) */
.acc-plan {
  position: relative;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  contain: paint;
}
.acc-plan:active { transform: scale(0.995); }

/* Cores por tier */
.acc-plan.card-gratis { background: var(--surface2); }
.acc-plan.card-plus {
  background: linear-gradient(135deg, #141420, #1a1a2e);
}
.acc-plan.card-pro {
  background: linear-gradient(135deg, #1c1a14, #25210f);
  border-color: rgba(245,158,11,0.25);
}

/* Selecionado (expandido) — realce por tier */
.acc-plan.card-gratis.selected {
  border-color: rgba(255,255,255,0.3);
}
.acc-plan.card-plus.selected {
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99,102,241,0.18);
}
.acc-plan.card-pro.selected {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,0.18);
}

/* Badge "mais escolhido" no Plus */
.acc-popular {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; font-family: var(--font-h);
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  text-align: center; padding: 5px; white-space: nowrap;
}

/* Barra clicável (sempre visível) */
.acc-plan-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px;
}
.acc-plan-bar-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.acc-plan-bar-id { min-width: 0; }

/* Rádio */
.acc-radio {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.acc-plan.card-plus .acc-radio { border-color: rgba(99,102,241,0.5); }
.acc-plan.card-pro  .acc-radio { border-color: rgba(245,158,11,0.5); }
.acc-plan.selected .acc-radio::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
}
.acc-plan.card-gratis.selected .acc-radio { border-color: #fff; }
.acc-plan.card-gratis.selected .acc-radio::after { background: #fff; }
.acc-plan.card-plus.selected  .acc-radio { border-color: #6366f1; }
.acc-plan.card-plus.selected  .acc-radio::after { background: #6366f1; }
.acc-plan.card-pro.selected   .acc-radio { border-color: #f59e0b; }
.acc-plan.card-pro.selected   .acc-radio::after { background: #f59e0b; }

/* Nome + âncora */
.acc-plan-name {
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 800;
  display: flex; align-items: center; gap: 6px; line-height: 1.1;
}
.acc-plan.card-gratis .acc-plan-name { color: #cbd5e1; }
.acc-plan.card-plus   .acc-plan-name { color: #a5b4fc; }
.acc-plan.card-pro    .acc-plan-name { color: #fbbf24; }
.acc-plan-anchor {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Preço */
.acc-plan-price { text-align: right; flex-shrink: 0; }
.acc-price-val {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  color: var(--text); line-height: 1; display: block;
}
.acc-plan.selected .acc-price-val { font-size: 1.45rem; }
.acc-price-per { font-size: 10px; color: var(--muted); display: block; margin-top: 1px; }
.acc-plan-price .plan-ciclo-info {
  font-size: 10px; color: var(--muted); margin-top: 3px;
}
.acc-plan-price .plan-ciclo-economia { color: var(--green); font-weight: 700; }

/* Corpo (escondido quando recolhido) — grid trick p/ animar altura */
.acc-plan-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4,0,0.2,1);
}
.acc-plan-body > * { overflow: hidden; min-height: 0; }
.acc-plan.selected .acc-plan-body {
  grid-template-rows: 1fr;
}
/* padding interno só quando aberto (evita vazamento no estado fechado) */
.acc-plan-body > :first-child { padding: 0 14px; }
.acc-plan.selected .acc-plan-body > :first-child { padding: 0 14px 14px; }

/* wrapper interno do corpo */
.acc-plan-body-inner { padding: 0 14px 14px; }

/* Selo preço de fundador */
.acc-fundador {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35);
  border-radius: 20px; padding: 3px 9px; margin-bottom: 11px;
  font-family: var(--font-h); font-size: 9px; font-weight: 800;
  color: #818cf8; letter-spacing: 0.03em;
}
.acc-fundador i { font-size: 10px; }
.acc-fundador-pro {
  background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35);
  color: #f59e0b;
}

/* Features */
.acc-features {
  list-style: none; padding: 0; margin: 0 0 4px;
  display: flex; flex-direction: column; gap: 7px;
}
.acc-features li {
  font-size: 12.5px; line-height: 1.35; color: var(--text);
  display: flex; align-items: flex-start; gap: 7px; opacity: 0.92;
}
.acc-features li i { color: var(--green); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.acc-features li.feat-off { opacity: 0.42; }
.acc-features li.feat-off i { color: var(--muted); }

/* Botão "ver tudo" */
.acc-vertudo {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 6px 0 10px;
  -webkit-tap-highlight-color: transparent;
}
.acc-plan.card-plus .acc-vertudo { color: #818cf8; }
.acc-plan.card-pro  .acc-vertudo { color: #f59e0b; }
.acc-vertudo i { font-size: 13px; }
.acc-features-extra { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--border); }

/* Ciclo toggle dentro do card — compacto */
.acc-plan .ciclo-toggle {
  display: flex; gap: 5px;
  background: rgba(0,0,0,0.28); border-radius: 11px;
  padding: 4px; margin-bottom: 13px;
}
.acc-plan .ciclo-btn {
  flex: 1; border: none; background: none; cursor: pointer;
  border-radius: 8px; padding: 8px 4px; min-height: 44px;
  font-family: var(--font-h); font-size: 11px; font-weight: 700;
  color: var(--muted); line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.acc-plan .ciclo-btn.active { background: rgba(255,255,255,0.12); color: var(--text); }
.acc-plan.card-plus .ciclo-btn.active { background: rgba(99,102,241,0.28); color: #c7d2fe; }
.acc-plan.card-pro  .ciclo-btn.active { background: rgba(245,158,11,0.25); color: #fde68a; }
.acc-plan .ciclo-selo {
  font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 8px;
  background: rgba(16,185,129,0.18); color: #34d399;
}
.acc-plan .ciclo-selo-destaque {
  background: rgba(245,158,11,0.2); color: #fbbf24;
  animation: seloGlow 2s ease-in-out infinite;
}

/* Aviso "foto depois" */
.cad-foto-aviso {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 12px 13px;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.22);
  border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--text);
}
.cad-foto-aviso i { font-size: 18px; color: #818cf8; flex-shrink: 0; margin-top: 1px; }
.cad-foto-aviso strong { display: block; font-weight: 800; margin-bottom: 2px; color: #c7d2fe; }

/* O preview já tem estilos próprios (cpp-*); aqui só garante respiro no topo */
.acc-plan-body .cad-plan-preview { margin-top: 4px; }


/* ════════════════════════════════════════════════════════════
   FILTRO DE BAIRRO — bottom sheet com chips (substitui dropdown)
════════════════════════════════════════════════════════════ */

.pill-bairro-caret { transition: transform 0.2s; }
.pill-btn.active[data-filter="bairro"] .pill-bairro-caret { transform: rotate(180deg); }

/* Overlay */
.bairro-sheet-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex; align-items: flex-end;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.bairro-sheet-overlay.open { opacity: 1; pointer-events: auto; }

/* Sheet */
.bairro-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  max-height: 78vh; display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.bairro-sheet-overlay.open .bairro-sheet { transform: translateY(0); }

/* Grabber */
.bairro-sheet-grabber {
  width: 40px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.22);
  margin: 6px auto 12px; flex-shrink: 0;
  cursor: grab;
}

/* Header */
.bairro-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-shrink: 0;
}
.bairro-sheet-title {
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.bairro-sheet-title i { color: #63b3ed; font-size: 1rem; }
.bairro-sheet-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  color: var(--muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.bairro-sheet-close:active { background: rgba(255,255,255,0.16); }

/* Busca */
.bairro-search-wrap {
  position: relative; margin-bottom: 16px; flex-shrink: 0;
}
.bairro-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.bairro-search {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px 12px 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-size: 15px; outline: none;
  font-family: var(--font); transition: border-color 0.15s, background 0.15s;
}
.bairro-search:focus { border-color: rgba(99,179,237,0.5); background: rgba(99,179,237,0.06); }
.bairro-search::placeholder { color: var(--muted); }

/* Grid de chips */
.bairro-chips {
  display: flex; flex-wrap: wrap; gap: 9px;
  overflow-y: auto; padding: 2px 2px 4px; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.bairro-chip {
  padding: 10px 16px; border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap; min-height: 42px;
  display: inline-flex; align-items: center; gap: 6px;
}
.bairro-chip:active { transform: scale(0.96); }
/* Nome do bairro dentro do chip */
.bairro-chip-nome { line-height: 1; }
/* Contador de lojas no bairro: discreto, em pilula */
.bairro-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; font-size: 11.5px; font-weight: 700;
  background: rgba(99,179,237,0.16); color: #63b3ed;
  line-height: 1;
}
.bairro-chip.bairro-chip-active .bairro-chip-count {
  background: rgba(99,179,237,0.28); color: #bfe0fa;
}
.bairro-chip.bairro-chip-active {
  background: rgba(99,179,237,0.16);
  border-color: #63b3ed; color: #63b3ed;
}
.bairro-chip.bairro-chip-active::before {
  content: '\2713'; font-weight: 800; font-size: 12px;
}

/* Chip "limpar" */
.bairro-chip-clear {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3); color: #f87171;
  width: 100%; justify-content: center;
}
.bairro-chip-clear.bairro-chip-active::before { content: ''; }

/* Estado vazio */
.bairro-chips-empty {
  width: 100%; text-align: center; padding: 28px 16px;
  color: var(--muted); font-size: 13px;
}

/* Light mode */
body.light-mode .bairro-sheet { background: var(--surface); }
body.light-mode .bairro-search { background: rgba(0,0,0,0.04); }
body.light-mode .bairro-chip { background: rgba(0,0,0,0.04); }
body.light-mode .bairro-chip-count { background: rgba(37,99,235,0.12); color: #2563eb; }
body.light-mode .bairro-sheet-grabber { background: rgba(0,0,0,0.2); }
body.light-mode .bairro-sheet-close { background: rgba(0,0,0,0.06); }

/* Neutraliza estilos antigos do dropdown (elemento não existe mais, mas por segurança) */
.bairro-dropdown { display: none !important; }


/* ════════════════════════════════════════════════════════════
   DENSIDADE DOS CARDS — mais lojas por tela, mesma informação
   Aperta espaçamentos verticais e reduz peso de elementos
   secundários. Não altera a hierarquia de planos (Pro/Plus
   continuam destacados, só não dominam a tela inteira).
════════════════════════════════════════════════════════════ */

/* Card base: padding e gap mais justos */
.store-card {
  gap: 11px;
  padding: 10px 12px 10px 15px;
}

/* Lista: respiro menor entre cards */
#store-list { gap: 9px !important; }

/* Thumb levemente menor — ganha ~6px de altura por card */
.store-thumb {
  width: 54px; height: 54px; min-width: 54px;
}

/* Info: gap vertical mínimo */
.store-info { gap: 1px; }

/* Status row mais colado */
.store-row { margin-top: 5px; }

/* Estrelas: linha mais fina, colada no status */
.store-stars { margin-top: 3px; gap: 4px; }

/* "Ver detalhes": vira micro-hint, ocupa menos vertical */
.store-info > span:last-of-type,
.store-info [style*="Ver detalhes"] {
  margin-top: 2px;
}

/* Anúncio do dia: altura controlada, não estoura o card */
.store-anuncio-badge {
  margin-top: 4px;
  padding-top: 4px; padding-bottom: 4px;
  line-height: 1.25;
}

/* ── Logo do MODAL como anel de anuncio (estilo status WPP) ── */
.detail-logo-ring {
  position: absolute; bottom: 12px; right: 14px; z-index: 3;
  width: 52px; height: 52px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.detail-logo-ring::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 15px;
  background: conic-gradient(#ff6b00 0deg,#f59e0b 80deg,#ffcc00 140deg,#ff3d6e 200deg,#f59e0b 280deg,#ff6b00 360deg);
  animation: ring-spin 2.5s linear infinite;
  z-index: -1;
}
.detail-logo-ring::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: 13px; background: #0d0d0d; z-index: -1;
}
.detail-logo-inner {
  width: 52px; height: 52px;
  border-radius: 12px; overflow: hidden;
  background: var(--surface);
  position: relative; z-index: 1;
}
/* Marcador de camera no canto do logo: reforca "tem foto aqui" */
.detail-logo-cam {
  position: absolute; bottom: -4px; right: -4px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--zap); color: #000;
  font-size: 8.5px;
  border: 2px solid #0d0d0d;
}
/* Anel "visto": some o contorno animado, mantem o cam discreto */
.detail-logo-ring.ring-visto::before,
.detail-logo-ring.ring-visto::after { display: none; }
.detail-logo-ring.ring-visto {
  border: 2px solid rgba(255,255,255,0.2);
}
.detail-logo-ring.ring-visto .detail-logo-cam { opacity: .85; }

/* Indicadores (MAPS/WPP): mais discretos e colados */
.contact-tag {
  font-size: 8.5px;
  padding: 2px 6px;
}


/* ── Card PRO com cover: o maior ofensor de altura ──
   Limita a altura para caber mais lojas. A foto continua de fundo,
   mas o card não cresce indefinidamente com o conteúdo. */
.store-card.plano-pro.has-cover {
  min-height: 92px;
}

/* ── Ring "status" do anúncio PRO (estilo WPP) ─────────────── */
/* Wrapper tem EXATAMENTE o mesmo tamanho do store-thumb normal.
   O ring aparece via ::before FORA do fluxo (position:absolute,
   overflow:visible) — não empurra nada no layout.               */
.anuncio-ring {
  position: relative;
  /* mesmo tamanho do store-thumb padrão */
  width: 54px; height: 54px; min-width: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible; /* permite o ring aparecer fora */
}
/* Anel giratório desenhado fora do thumb */
.anuncio-ring::before {
  content: '';
  position: absolute;
  inset: -3px; /* 3px para fora do thumb */
  border-radius: 17px;
  background: conic-gradient(
    #ff6b00 0deg,
    #f59e0b 80deg,
    #ffcc00 140deg,
    #ff3d6e 200deg,
    #f59e0b 280deg,
    #ff6b00 360deg
  );
  animation: ring-spin 2.5s linear infinite;
  z-index: -1; /* atrás do thumb */
}
/* Gap escuro entre gradiente e thumb */
.anuncio-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: #0d0d0d;
  z-index: -1;
}
/* Thumb dentro do ring: dimensões normais, sem alteração */
.anuncio-ring .store-thumb {
  width: 54px; height: 54px; min-width: 54px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* ── Ring "visto" — volta ao visual sem contorno ─────────────── */
.anuncio-ring.ring-visto::before,
.anuncio-ring.ring-visto::after {
  display: none;
}

/* ── Lightbox fullscreen de foto do anúncio (estilo status WPP) */
#anuncio-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  background: #000;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
#anuncio-lightbox.lb-visible {
  opacity: 1;
  pointer-events: auto;
}
/* fundo clicável para fechar (atrás de tudo) */
#anuncio-lightbox-bg {
  position: absolute; inset: 0; z-index: 0;
}
/* wrap do conteúdo */
#anuncio-lightbox-wrap {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
/* Barra superior: botão fechar + texto do anúncio */
#anuncio-lightbox-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 52px 16px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 2;
}
#anuncio-lightbox-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#anuncio-lightbox-titulo {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  flex: 1;
}
/* Fase 2: barra segmentada de stories (um tracinho por story) */
#anuncio-lightbox-segs {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; gap: 4px;
  padding: 10px 12px 0;
  z-index: 3;
}
.anuncio-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.28);
  border-radius: 3px;
  overflow: hidden;
}
.anuncio-seg-fill {
  display: block; height: 100%; width: 100%;
  background: #fff; border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
}
/* Legenda (texto/emoji) sobreposta na base do story */
#anuncio-story-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  z-index: 2;
  pointer-events: none;
}
#anuncio-story-caption .anuncio-cap-emoji { font-size: 1.15em; }
/* Slot que contém a mídia atual (img ou video), centralizado */
#anuncio-story-slot {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .anuncio-seg-fill { animation-duration: 0s !important; }
}

/* Botão de som do vídeo (mesmo estilo do fechar) */
#anuncio-lightbox-som {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
/* Imagem ocupa toda a tela, centralizada */
#anuncio-lightbox-imgwrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
#anuncio-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(.95);
  transition: transform .22s ease;
  /* Bloqueia menu de long-press, seleção e arrasto da imagem (igual WhatsApp) */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-select: none;
  pointer-events: auto;
}
#anuncio-lightbox.lb-visible #anuncio-lightbox-img {
  transform: scale(1);
}
/* Imagem ainda carregando: leve fade-in ao concluir */
#anuncio-lightbox-img { opacity: 0; transition: transform .22s ease, opacity .25s ease; }
#anuncio-lightbox-img.carregada { opacity: 1; }

/* Spinner enquanto a foto do anúncio carrega */
#anuncio-lightbox-spinner {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
  animation: anuncio-spin .8s linear infinite;
}
@keyframes anuncio-spin { to { transform: rotate(360deg); } }

/* Barra de progresso do "story" (igual status WPP) */
#anuncio-lightbox-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  margin: 10px 12px 0;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
  overflow: hidden;
  z-index: 3;
}
#anuncio-lightbox-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  animation-name: anuncio-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes anuncio-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .anuncio-ring::before,
  .detail-logo-ring::before { animation: none; }
  #anuncio-lightbox-progress-fill { animation-duration: 0s; }
}


.store-card.plano-pro.has-cover .store-info {
  gap: 1px;
}

/* Em telas estreitas, badge de plano não empurra o nome */
.plan-badge {
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   PROEMINÊNCIA DO "ABERTO AGORA" — filtro primário
   Mesmo inativo, ganha um dot verde vivo que sinaliza utilidade.
════════════════════════════════════════════════════════════ */
.pill-btn[data-filter="open"] .pill-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,208,132,0.6);
}
.pill-btn[data-filter="open"]:not(.active) {
  border-color: rgba(0,208,132,0.25);
}
/* dot pisca sempre (não só quando ativo) — chama atenção pro que está aberto */
.pill-btn[data-filter="open"] .pill-dot {
  animation: blink 1.8s infinite;
}

/* ════════════════════════════════════════════════════════════
   BADGE DE STATUS LEGÍVEL SOBRE A FOTO DO DETALHE
   (fundo escuro sólido + blur — não some sobre comida clara)
════════════════════════════════════════════════════════════ */
.detail-cover-badge {
  bottom: 14px; left: 16px;
}
.detail-cover-badge .badge {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.detail-cover-badge .badge-open {
  background: rgba(8,40,28,0.82);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.4);
}
.detail-cover-badge .badge-zap {
  background: rgba(48,34,8,0.82);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.4);
}
.detail-cover-badge .badge-closed {
  background: rgba(48,12,12,0.82);
  color: #fca5a5;
  border: 1px solid rgba(252,165,165,0.4);
}

/* Reforça gradiente inferior da foto → base escura sempre presente */
.detail-cover-wrap::after {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.45) 0%,
    transparent 40%,
    transparent 70%,
    rgba(0,0,0,0.55) 100%);
}


/* ════════════════════════════════════════════════════════════
   HORÁRIO COLAPSÁVEL — modal de detalhes
   Linha de hoje sempre visível; demais dias atrás de "ver todos"
════════════════════════════════════════════════════════════ */
.detail-horario-resumo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.detail-horario-toggle {
  font-size: 11px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.detail-horario-toggle i { transition: transform 0.2s; font-size: 10px; }
.detail-horario-full {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4,0,0.2,1);
}
.detail-horario-full > div { overflow: hidden; min-height: 0; }
.detail-horario-wrap.expanded .detail-horario-full { grid-template-rows: 1fr; }
.detail-horario-wrap.expanded .detail-horario-toggle i { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════════════
   MODIFICADORES — modal de personalização (cliente) + grupos (painel)
   ═══════════════════════════════════════════════════════════ */

/* Botão de personalizar no card (item com grupos) */
.cc-item-personalizar {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #fff !important; border: none !important;
}
.cc-item-personalizar:active { transform: scale(0.86); }

/* Overlay + sheet do modal de personalização */
.cc-pers-overlay {
  position: fixed; inset: 0; z-index: 1200;
  /* SEM backdrop-filter: animar opacity sobre um backdrop-filter obriga o
     compositor do Chrome/Android a recriar a camada de TODO o cardapio a
     cada frame — era a causa da piscada de tela inteira. O fundo escuro
     abaixo ja da a separacao visual necessaria. */
  background: rgba(0,0,0,0.62);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  will-change: opacity;
}
.cc-pers-overlay.aberto { opacity: 1; }
.cc-pers-sheet {
  width: 100%; max-width: 520px; max-height: 88vh;
  background: var(--surface); border-radius: 20px 20px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.24s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
.cc-pers-overlay.aberto .cc-pers-sheet { transform: translateY(0); }
.cc-pers-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.cc-pers-titulo {
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-pers-corpo {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

/* Um grupo de opções */
.cc-pers-grupo { margin-bottom: 18px; }
.cc-pers-grupo-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cc-pers-grupo-nome {
  font-family: var(--font-h); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
}
.cc-pers-obrig {
  font-family: var(--font-b); font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: rgba(245,158,11,0.15); color: #f59e0b;
  padding: 2px 5px; border-radius: 4px;
}
.cc-pers-grupo-regra {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; flex-shrink: 0;
}

/* Uma opção clicável (radio ou checkbox) */
.cc-pers-opcao {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px; margin-bottom: 7px;
  cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s, background 0.12s;
}
.cc-pers-opcao:active { transform: scale(0.99); }
.cc-pers-opcao.sel {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.06);
}
.cc-pers-opcao-nome {
  flex: 1; font-size: 13px; font-weight: 600; color: var(--text);
}
.cc-pers-opcao-preco {
  font-size: 12px; font-weight: 700; color: var(--green); flex-shrink: 0;
}

/* Marcadores radio/check */
.cc-pers-radio, .cc-pers-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.cc-pers-radio { border-radius: 50%; }
.cc-pers-check { border-radius: 6px; font-size: 11px; color: #fff; }
.cc-pers-radio.on {
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 4px #7c3aed;
}
.cc-pers-check.on {
  border-color: #7c3aed; background: #7c3aed;
}
.cc-pers-check i { opacity: 0; transition: opacity 0.1s; }
.cc-pers-check.on i { opacity: 1; }

/* Opção repetível (ex.: até 3x salsicha). É uma <div>, não <button>:
   o clique acontece nos botões do stepper, não na linha inteira. */
.cc-pers-opcao-qtd { cursor: default; }
.cc-pers-opcao-qtd:active { transform: none; }
.cc-pers-stepper {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cc-pers-step-btn {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
.cc-pers-step-btn:active { transform: scale(0.94); }
.cc-pers-step-btn.mais {
  border-color: rgba(124,58,237,0.45);
  background: rgba(124,58,237,0.12); color: #a78bfa;
}
.cc-pers-step-btn:disabled {
  opacity: 0.32; cursor: default; transform: none;
}
.cc-pers-step-num {
  min-width: 18px; text-align: center;
  font-size: 14px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cc-pers-step-num.on { color: var(--text); }

/* Rodapé com preço ao vivo + botão adicionar */
.cc-pers-rodape {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  background: var(--surface);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.cc-pers-preco {
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 800;
  color: var(--text);
}
.cc-pers-add {
  flex: 1; padding: 14px; border-radius: 13px; border: none;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  font-family: var(--font-h); font-size: 14px; font-weight: 800;
  cursor: pointer; transition: opacity 0.15s, transform 0.1s;
}
.cc-pers-add:active { transform: scale(0.98); }
.cc-pers-add:disabled {
  background: var(--border); color: var(--muted); cursor: not-allowed;
}

/* ── Painel do lojista: cards de grupo e opções ── */
.ml-grupo-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.ml-opcao-row {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
}
/* Linha cuja opção está carregada no formulário de edição. */
.ml-opcao-row.editando {
  border-color: rgba(124,58,237,0.55);
  background: rgba(124,58,237,0.08);
}

/* Chips de vínculo item→grupos (checkboxes estilizados) */
.ml-vinculo-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all 0.12s;
}
.ml-vinculo-chip.on {
  background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.4);
  color: #7c3aed;
}
.ml-vinculo-chip i { font-size: 11px; }

/* Aplicação em massa: linha de categoria selecionável */
.ml-aplicar-cat {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 11px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s, background 0.12s;
}
.ml-aplicar-cat.on {
  border-color: rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.07);
}
.ml-aplicar-cat input[type=checkbox] {
  width: 17px; height: 17px; flex-shrink: 0;
  accent-color: #10b981; cursor: pointer;
}
#ml-aplicar-btn:disabled, #ml-aplicar-btn-remover:disabled {
  opacity: 0.45; cursor: not-allowed;
}

/* Botão de acréscimos no card: só ele abre a personalização.
   O resto do card continua adicionando +1 num toque.
   align-self/width: o pai (.cc-item-info) é flex column, e sem isso o
   botão seria esticado pela largura toda (align-items: stretch). */
.cc-item-dica {
  align-self: flex-start;
  width: auto; max-width: 100%;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 5px; padding: 5px 9px 5px 7px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 7px;
  color: #a855f7; font-family: inherit;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, transform 0.1s;
}
.cc-item-dica:active {
  background: rgba(168,85,247,0.22);
  transform: scale(0.96);
}
.cc-item-dica i { font-size: 10px; }
/* ═════ Quiz da Coruja — mini-quiz diário (5 perguntas + placar) ══ */
.quiz-coruja {
  position: relative;
  margin: 8px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background-image 0.8s ease;
}
.quiz-coruja.qz-dia {
  background:
    linear-gradient(to bottom, rgba(10,20,40,0.62) 0%, rgba(14,14,14,0.93) 100%),
    url('/img/igreja-dia.jpg') center 35% / cover no-repeat;
}
.quiz-coruja.qz-noite {
  background:
    linear-gradient(to bottom, rgba(5,5,20,0.68) 0%, rgba(8,8,20,0.95) 100%),
    url('/img/igreja-noite.jpg') center 35% / cover no-repeat;
}
.quiz-coruja.qz-neutro {
  background: linear-gradient(to bottom, rgba(20,20,30,0.85) 0%, rgba(14,14,14,0.95) 100%);
}
.quiz-inner { position: relative; z-index: 2; padding: 18px 18px 20px; }
/* Cabeçalho: título + progresso */
.quiz-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 8px;
}
.quiz-head-txt {
  font-family: var(--font-h);
  font-size: .82rem; font-weight: 800;
  color: var(--red);
  text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.quiz-progresso {
  font-family: var(--font-h); font-weight: 800; font-size: 12px;
  color: #fff; opacity: .85;
  background: rgba(0,0,0,0.4);
  padding: 3px 10px; border-radius: 999px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
/* Barra de progresso fininha */
.quiz-barra {
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 14px; overflow: hidden;
}
.quiz-barra-fill {
  height: 100%; width: 0%;
  background: var(--red);
  border-radius: 999px;
  transition: width .35s ease;
}
.quiz-pergunta {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
  min-height: 42px;
}
.quiz-opcoes { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #f4f4f8; font-size: 14px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, transform .1s;
}
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt:hover { background: rgba(255,255,255,0.14); }
.quiz-opt-letra {
  flex-shrink: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(0,0,0,0.35);
  font-family: var(--font-h); font-weight: 800; font-size: 13px; color: #fff;
}
.quiz-opt.qz-certa {
  background: rgba(34,197,94,0.28); border-color: rgba(34,197,94,0.75);
}
.quiz-opt.qz-certa .quiz-opt-letra { background: rgba(34,197,94,0.9); }
.quiz-opt.qz-errada {
  background: rgba(239,68,68,0.24); border-color: rgba(239,68,68,0.7);
}
.quiz-opt.qz-errada .quiz-opt-letra { background: rgba(239,68,68,0.9); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt:disabled:hover { background: rgba(255,255,255,0.08); }
.quiz-opt.qz-certa:disabled:hover { background: rgba(34,197,94,0.28); }
.quiz-opt.qz-errada:disabled:hover { background: rgba(239,68,68,0.24); }
/* Transição entre perguntas */
.quiz-fade { animation: qzFade .3s ease; }
@keyframes qzFade {
  0% { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* —— Tela de placar final —— */
.quiz-placar {
  display: none; text-align: center; padding: 8px 4px;
  animation: qzPop .45s ease;
}
.quiz-placar.show { display: block; }
.quiz-placar img {
  width: 88px; height: 88px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  margin-bottom: 8px; animation: qzBounce .6s ease;
}
.quiz-placar-nota {
  font-family: var(--font-h); font-weight: 800;
  font-size: 28px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 2px;
}
.quiz-placar-nota b { color: #4ade80; }
.quiz-placar-msg {
  font-size: 14px; font-weight: 600; color: #f0f0f8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8); line-height: 1.4;
}
.quiz-placar-sub {
  font-size: 12px; color: rgba(220,220,235,0.7);
  margin-top: 8px; text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
@keyframes qzPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  60% { transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes qzBounce {
  0%,100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-8px) rotate(-6deg); }
  50% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(-4px) rotate(4deg); }
}

/* ═════ Hub de Mini-Games (aba Joguinhos) ══ */
.pill-games-btn.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(255,68,68,0.15));
  border-color: rgba(168,85,247,0.5);
  color: #fff;
}
#games-hub { animation: qzFade .3s ease; }
.games-hub-head { margin-bottom: 16px; }
.games-hub-title {
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 8px;
  margin: 0 0 4px;
}
.games-hub-title i { color: #a855f7; }
.games-hub-sub { font-size: 13px; color: var(--muted); margin: 0; }

/* ═════ Faixa de ofensiva (streak diário) ══ */
.streak-faixa {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(239,68,68,0.12));
  border: 1px solid rgba(249,115,22,0.35);
  box-shadow: 0 4px 16px rgba(249,115,22,0.15);
}
.streak-chama {
  font-size: 34px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(249,115,22,0.5));
}
.streak-chama.streak-chama-pop { animation: streakPop .6s ease; }
@keyframes streakPop {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.4) rotate(-8deg); }
  60% { transform: scale(1.15) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
.streak-txt { flex: 1; min-width: 0; }
.streak-num {
  font-family: var(--font-h); font-weight: 800; font-size: 22px;
  color: #fb923c; line-height: 1.1;
}
.streak-sub { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
/* Ofensiva esfriada: tons apagados/cinza */
.streak-faixa.streak-apagada {
  background: var(--surface); border-color: var(--border);
  box-shadow: none; opacity: .8;
}
.streak-faixa.streak-apagada .streak-chama { filter: grayscale(.7) brightness(.8); }
.streak-faixa.streak-apagada .streak-num { color: var(--muted); }
/* ═════ Menu de jogos — cards com foto de fundo + coruja-logo ══ */
.game-card {
  position: relative; display: block; width: 100%; text-align: left;
  border: none; padding: 0; margin-bottom: 14px;
  border-radius: 18px; overflow: hidden;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-height: 122px;
  background-size: cover; background-position: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.42);
  transition: transform .14s ease, box-shadow .2s ease;
}
.game-card:active { transform: scale(.985); }
/* foto de fundo por jogo (Igreja Matriz) */
.gc-quiz  { background-image: url('/img/igreja-noite.jpg'); }
.gc-speed { background-image: url('/img/igreja-dia.jpg'); }
.gc-seq   { background-image: url('/img/igreja-noite.jpg'); }
/* overlay escuro degradê p/ legibilidade */
.game-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,8,12,.93) 0%, rgba(8,8,12,.8) 42%, rgba(8,8,12,.34) 100%);
}
/* faixa de cor lateral (accent do jogo) */
.game-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 3;
}
.gc-quiz::after  { background: linear-gradient(#c084fc, #7c3aed); }
.gc-speed::after { background: linear-gradient(#fbbf24, #ef4444); }
.gc-seq::after   { background: linear-gradient(#4ade80, #3b82f6); }

.gc-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 44px 18px 20px;
}
.gc-owl {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.gc-owl-glow {
  position: absolute; inset: -2px; border-radius: 18px; z-index: 0;
  filter: blur(9px); opacity: .55;
}
.gc-quiz  .gc-owl-glow { background: radial-gradient(circle, #a855f7, transparent 70%); }
.gc-speed .gc-owl-glow { background: radial-gradient(circle, #f97316, transparent 70%); }
.gc-seq   .gc-owl-glow { background: radial-gradient(circle, #3b82f6, transparent 70%); }
.gc-owl img {
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.gc-info { flex: 1; min-width: 0; }
.gc-title {
  font-family: var(--font-h); letter-spacing: .5px; font-weight: 800;
  font-size: 21px; line-height: 1.05; color: var(--text); margin-bottom: 5px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.gc-desc { font-size: 12.5px; color: #d4d4d8; line-height: 1.35; }
.gc-cta {
  display: inline-flex; align-items: center; margin-top: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.gc-quiz  .gc-cta { background: rgba(168,85,247,.22); color: #d8b4fe; border: 1px solid rgba(168,85,247,.4); }
.gc-speed .gc-cta { background: rgba(249,115,22,.2); color: #fdba74; border: 1px solid rgba(249,115,22,.42); }
.gc-seq   .gc-cta { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.42); }
.gc-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 3;
  color: rgba(255,255,255,.5); font-size: 15px;
}
.gc-badge-soon {
  font-size: 9px; font-weight: 800; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(168,85,247,.2); color: #c084fc; border: 1px solid rgba(168,85,247,.35);
}
/* Tela de jogo em foco + botão voltar */
.jogo-tela { animation: qzFade .3s ease; }
.jogo-voltar {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 4px 0; margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}
.jogo-voltar:hover { color: var(--text); }

/* ═════ Speed Tap — Pega a Coruja ══ */
.st-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.st-hud {
  display: flex; justify-content: space-around;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.08));
  border-bottom: 1px solid var(--border);
}
.st-hud-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st-hud-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700;
}
.st-hud-valor {
  font-family: var(--font-h); font-weight: 800; font-size: 22px;
  color: var(--text);
}
/* Arena onde a coruja aparece */
.st-arena {
  position: relative;
  height: 340px;
  background:
    radial-gradient(circle at 30% 20%, rgba(168,85,247,0.10), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(245,158,11,0.10), transparent 60%),
    var(--surface2);
  overflow: hidden;
  touch-action: manipulation;
}
/* Coruja-alvo (botão que pula pela arena) */
.st-alvo {
  position: absolute;
  width: 64px; height: 64px;
  padding: 0; border: none; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .08s;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  will-change: left, top;
}
.st-alvo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.st-alvo:active { transform: translate(-50%, -50%) scale(0.85); }
.st-alvo.st-pop { animation: stPop .15s ease; }
@keyframes stPop {
  0% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.25); }
  100% { transform: translate(-50%,-50%) scale(1); }
}
/* Tela inicial e de fim dentro da arena */
.st-inicio, .st-fim {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 20px; gap: 6px;
}
.st-inicio-owl { width: 72px; height: 72px; object-fit: contain; margin-bottom: 4px; }
.st-inicio-titulo, .st-fim-pontos {
  font-family: var(--font-h); font-weight: 800; font-size: 22px; color: var(--text);
}
.st-inicio-desc, .st-fim-msg {
  font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 240px;
}
.st-fim-owl { width: 80px; height: 80px; object-fit: contain; margin-bottom: 4px; animation: qzBounce .6s ease; }
.st-fim-pontos b { color: #f59e0b; }
.st-btn {
  margin-top: 12px;
  font-family: var(--font-h); font-weight: 800; font-size: 15px;
  color: #fff; cursor: pointer;
  padding: 12px 32px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, filter .15s;
  box-shadow: 0 4px 14px rgba(239,68,68,0.35);
}
.st-btn:active { transform: scale(0.96); }
.st-btn:hover { filter: brightness(1.08); }

/* Botões de escolha de modo (Clássico / Sobrevivência) */
.st-modos { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 14px; }
.st-btn-modo {
  margin-top: 0; padding: 12px 18px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.st-btn-modo-surv { background: linear-gradient(135deg, #ec4899, #be123c); box-shadow: 0 4px 14px rgba(190,18,60,0.35); }
.st-btn-modo-tit { font-family: var(--font-h); font-weight: 800; font-size: 16px; letter-spacing: .3px; }
.st-btn-modo-sub { font-size: 11px; font-weight: 600; opacity: .92; font-family: 'DM Sans', system-ui, sans-serif; letter-spacing: 0; }
/* Corações de vida no HUD (modo sobrevivência) */
.st-vidas { font-size: 15px; letter-spacing: 1px; }
/* Badge de +1 que flutua ao tocar */
.st-mais {
  position: absolute; pointer-events: none;
  font-family: var(--font-h); font-weight: 800; font-size: 20px;
  color: #4ade80; text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%);
  animation: stMais .6s ease forwards;
}
@keyframes stMais {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-140%) scale(1.3); }
}
/* Novo recorde: brilho no HUD */
.st-hud-valor.st-recorde-novo { color: #f59e0b; animation: stGlow .5s ease 3; }
@keyframes stGlow { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Speed Tap: níveis, combo, coruja fake/bônus ── */
/* Tempo acabando: fica vermelho pulsante */
.st-hud-valor.st-tempo-baixo { color: #ef4444; animation: stGlow .5s ease infinite; }
/* Nível subiu: pulso verde no HUD */
.st-hud-valor.st-nivel-up { animation: stNivelUp .5s ease; }
@keyframes stNivelUp {
  0% { transform: scale(1); color: var(--text); }
  50% { transform: scale(1.35); color: #4ade80; }
  100% { transform: scale(1); color: var(--text); }
}
/* Aviso "Nível X!" no centro da arena */
.st-nivelup-aviso {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  font-family: var(--font-h); font-weight: 800; font-size: 30px;
  color: #4ade80; text-shadow: 0 3px 10px rgba(0,0,0,0.7);
  pointer-events: none; z-index: 5;
  animation: stAviso .9s ease forwards;
}
@keyframes stAviso {
  0% { opacity: 0; transform: translate(-50%,-30%) scale(.6); }
  25% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
  75% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-70%) scale(1); }
}
/* Badge de combo no canto da arena */
.st-combo-badge {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 4; pointer-events: none;
  font-family: var(--font-h); font-weight: 800; font-size: 16px;
  color: #fff; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 3px 12px rgba(239,68,68,0.45);
}
.st-combo-badge.st-combo-pulse { animation: stComboPulse .3s ease; }
@keyframes stComboPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.25); }
  100% { transform: translateX(-50%) scale(1); }
}
/* Coruja fake: leve tom vermelho pra dar dica visual */
.st-alvo.st-fake { filter: drop-shadow(0 4px 10px rgba(239,68,68,0.6)); }
/* Coruja bônus dourada: brilho dourado + pulso chamativo */
.st-alvo.st-bonus {
  filter: drop-shadow(0 0 12px rgba(245,200,60,0.9)) drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation: stBonusPulse .7s ease infinite;
}
@keyframes stBonusPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.12); }
}
/* Arena treme ao tocar na fake */
.st-arena.st-shake { animation: stShake .3s ease; }
@keyframes stShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
/* Variações do texto flutuante */
.st-mais.st-menos { color: #ef4444; }
.st-mais.st-mult-txt { color: #fbbf24; font-size: 24px; }
.st-mais.st-bonus-txt { color: #fcd34d; font-size: 26px; text-shadow: 0 0 8px rgba(245,200,60,0.7), 0 2px 6px rgba(0,0,0,0.6); }
/* ═════ Sequência da Coruja (Simon/Genius) ══ */
.sq-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.sq-hud {
  display: flex; justify-content: space-around;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(59,130,246,0.08));
  border-bottom: 1px solid var(--border);
}
.sq-hud-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sq-hud-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700;
}
.sq-hud-valor {
  font-family: var(--font-h); font-weight: 800; font-size: 22px; color: var(--text);
}
.sq-hud-valor.sq-rodada-up { animation: sqRodadaUp .45s ease; }
@keyframes sqRodadaUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); color: #4ade80; }
  100% { transform: scale(1); }
}
.sq-status {
  text-align: center; padding: 14px 16px 4px;
  font-family: var(--font-h); font-weight: 800; font-size: 18px; color: var(--text);
  min-height: 24px;
}
/* Grade 2x2 das corujas */
.sq-grade {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px; max-width: 340px; margin: 0 auto;
}
/* Modo 6 corujas: grade 3 colunas (3x2) */
.sq-grade.sq-grade-6 { grid-template-columns: 1fr 1fr 1fr; max-width: 420px; }
.sq-grade.sq-expandiu { animation: sqExpandiu .6s ease; }
@keyframes sqExpandiu {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.sq-grade.sq-erro { animation: sqErro .4s ease; }
@keyframes sqErro {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.sq-btn {
  position: relative; aspect-ratio: 1 / 1;
  border: 2px solid var(--border); border-radius: 18px;
  background: var(--surface2);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s, box-shadow .15s, filter .15s;
  overflow: hidden; opacity: .55;
}
.sq-btn img {
  width: 62%; height: 62%; object-fit: contain;
  filter: grayscale(.5) brightness(.8);
  transition: filter .15s, transform .12s;
  pointer-events: none;
}
.sq-btn:active { transform: scale(.95); }
/* Cada coruja tem sua cor de fundo/glow quando acende */
.sq-btn-0 { --sqc: #a855f7; }
.sq-btn-1 { --sqc: #f59e0b; }
.sq-btn-2 { --sqc: #4ade80; }
.sq-btn-3 { --sqc: #3b82f6; }
.sq-btn-4 { --sqc: #ec4899; }
.sq-btn-5 { --sqc: #14b8a6; }
/* Estado aceso: cor viva, brilho, coruja em destaque */
.sq-btn.sq-on {
  opacity: 1;
  border-color: var(--sqc);
  background: radial-gradient(circle at 50% 45%, var(--sqc), transparent 75%), var(--surface2);
  box-shadow: 0 0 22px var(--sqc), inset 0 0 18px rgba(255,255,255,.12);
  transform: scale(1.04);
}
.sq-btn.sq-on img {
  filter: grayscale(0) brightness(1.15) drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transform: scale(1.08);
}
/* Overlays de início/fim */
.sq-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 8px;
  background: rgba(10,10,12,.94); backdrop-filter: blur(3px);
  z-index: 6;
}
.sq-overlay-owl { width: 76px; height: 76px; object-fit: contain; margin-bottom: 4px; }
.sq-overlay-titulo {
  font-family: var(--font-h); font-weight: 800; font-size: 24px; color: var(--text);
}
.sq-overlay-desc {
  font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 260px;
}
.sq-play {
  margin-top: 14px;
  font-family: var(--font-h); font-weight: 800; font-size: 15px;
  color: #fff; cursor: pointer;
  padding: 12px 34px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, filter .15s;
  box-shadow: 0 4px 14px rgba(168,85,247,0.4);
}
.sq-play:active { transform: scale(0.96); }
.sq-play:hover { filter: brightness(1.08); }

/* ═════ Modo Relâmpago (quiz de treino com timer) ══ */
/* Botão que leva ao Relâmpago, na tela de placar do quiz */
.quiz-relampago-btn {
  margin-top: 16px;
  font-family: var(--font-h); font-weight: 800; font-size: 14px; letter-spacing: .3px;
  color: #fff; cursor: pointer;
  padding: 11px 24px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, filter .15s;
  box-shadow: 0 4px 14px rgba(234,179,8,0.35);
}
.quiz-relampago-btn:active { transform: scale(0.96); }
.quiz-relampago-btn:hover { filter: brightness(1.08); }

.rl-card {
  border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid var(--border); background: var(--surface);
  min-height: 360px;
}
.rl-hud {
  display: flex; justify-content: space-around; padding: 14px 12px;
  background: linear-gradient(135deg, rgba(234,179,8,0.14), rgba(245,158,11,0.08));
  border-bottom: 1px solid var(--border);
}
.rl-hud-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rl-hud-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.rl-hud-valor { font-family: var(--font-h); font-weight: 800; font-size: 22px; color: var(--text); }
.rl-hud-valor.rl-recorde-novo { color: #f59e0b; animation: stGlow .5s ease 3; }
/* Barra de tempo por pergunta */
.rl-timer-wrap { height: 6px; background: var(--surface2); overflow: hidden; }
.rl-timer-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #eab308, #f59e0b);
  transition: width .06s linear;
}
.rl-timer-fill.rl-timer-critico { background: linear-gradient(90deg, #ef4444, #dc2626); }
.rl-fase { padding: 20px 16px; }
.rl-pergunta {
  font-family: var(--font-h); font-weight: 800; font-size: 20px; line-height: 1.2;
  color: var(--text); text-align: center; margin-bottom: 18px; min-height: 48px;
}
.rl-pergunta.rl-fade { animation: qzFade .3s ease; }
.rl-opcoes { display: flex; flex-direction: column; gap: 10px; }
.rl-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s, border-color .15s, background .15s;
}
.rl-opt:active { transform: scale(0.98); }
.rl-opt-letra {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(234,179,8,0.2); color: #fbbf24;
  font-family: var(--font-h); font-weight: 800; font-size: 14px;
}
.rl-opt.rl-certa { background: rgba(74,222,128,0.15); border-color: #4ade80; }
.rl-opt.rl-certa .rl-opt-letra { background: #4ade80; color: #052e16; }
.rl-opt.rl-errada { background: rgba(239,68,68,0.15); border-color: #ef4444; }
.rl-opt.rl-errada .rl-opt-letra { background: #ef4444; color: #450a0a; }
/* Overlays início/fim */
.rl-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; gap: 8px; background: rgba(10,10,12,.94); backdrop-filter: blur(3px); z-index: 6;
}
.rl-overlay-owl { width: 76px; height: 76px; object-fit: contain; margin-bottom: 4px; }
.rl-overlay-titulo { font-family: var(--font-h); font-weight: 800; font-size: 24px; color: var(--text); }
.rl-overlay-desc { font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 270px; }
.rl-play {
  margin-top: 14px; font-family: var(--font-h); font-weight: 800; font-size: 15px;
  color: #fff; cursor: pointer; padding: 12px 34px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  -webkit-tap-highlight-color: transparent; transition: transform .1s, filter .15s;
  box-shadow: 0 4px 14px rgba(234,179,8,0.4);
}
.rl-play:active { transform: scale(0.96); }
.rl-play:hover { filter: brightness(1.08); }

    /* ════════════════════════════════════════════
       AUTENTICAÇÃO DE CLIENTE (Firebase)
       Avatar no header + modais de login e de conta.
       Reusa os tokens do app (--surface, --red, --font-h…).
    ════════════════════════════════════════════ */

    /* Slot do avatar no header (some quando deslogado) */
    #cli-account-slot { display: none; align-items: center; }

    .cli-avatar-btn {
      width: 34px; height: 34px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--red), #b91c1c);
      border: 1.5px solid rgba(255,255,255,0.22);
      color: #fff; cursor: pointer; overflow: hidden;
      transition: transform 0.15s, box-shadow 0.2s;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0; padding: 0;
      box-shadow: 0 2px 8px rgba(255,68,68,0.35);
    }
    .cli-avatar-btn:active { transform: scale(0.9); }
    .cli-avatar-img { width: 100%; height: 100%; object-fit: cover; }
    .cli-avatar-ini {
      font-family: var(--font-h); font-weight: 800; font-size: 15px;
      line-height: 1; color: #fff;
    }

    /* ── Botões grandes de método de login ── */
    .cli-method-btn {
      width: 100%;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 14px 16px; border-radius: var(--r-md);
      font-family: var(--font-h); font-weight: 700; font-size: 15px;
      cursor: pointer; border: 1px solid var(--border);
      transition: transform 0.15s, opacity 0.2s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .cli-method-btn:active { transform: scale(0.98); }
    .cli-method-btn.is-loading { opacity: 0.6; pointer-events: none; }

    .cli-method-google {
      background: #fff; color: #1f1f1f; border-color: #fff;
    }
    .cli-method-google svg { width: 20px; height: 20px; flex-shrink: 0; }

    .cli-method-email {
      background: var(--surface2); color: var(--text);
    }
    .cli-method-email i { font-size: 16px; }

    /* Divisor "ou" */
    .cli-ou {
      display: flex; align-items: center; gap: 12px;
      margin: 4px 0; color: var(--muted); font-size: 12px;
    }
    .cli-ou::before, .cli-ou::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    /* ── Campos ── */
    .cli-field { margin-bottom: 12px; }
    .cli-field label {
      display: block; font-size: 12px; font-weight: 600;
      color: var(--muted); margin-bottom: 6px;
    }
    .cli-field input {
      width: 100%; padding: 12px 14px; border-radius: var(--r-md);
      background: var(--surface2); border: 1px solid var(--border);
      color: var(--text); font-size: 15px; font-family: var(--font-b);
      transition: border-color 0.2s;
      -webkit-appearance: none;
    }
    .cli-field input:focus {
      outline: none; border-color: var(--red);
    }
    .cli-field input::placeholder { color: var(--muted); opacity: 0.7; }

    .cli-field-err {
      display: none; color: var(--red); font-size: 12px;
      margin-top: 6px; line-height: 1.3;
    }
    .cli-field-err.show { display: block; }

    /* Botão primário de submit (reusa lógica visual do modal-submit) */
    .cli-submit {
      width: 100%; padding: 14px; border-radius: var(--r-md);
      background: var(--red); color: #fff; border: none;
      font-family: var(--font-h); font-weight: 700; font-size: 15px;
      cursor: pointer; margin-top: 4px;
      transition: transform 0.15s, opacity 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .cli-submit:active { transform: scale(0.98); opacity: 0.92; }
    .cli-submit.is-loading { opacity: 0.6; pointer-events: none; }

    /* Link de troca login<->cadastro */
    .cli-switch-link {
      text-align: center; font-size: 13px; color: var(--muted);
      margin-top: 14px;
    }
    .cli-switch-link button {
      background: none; border: none; color: var(--red);
      font-weight: 700; font-family: var(--font-h); cursor: pointer;
      font-size: 13px; padding: 0;
    }

    /* Botão "voltar" nos sub-passos */
    .cli-back-btn {
      background: none; border: none; color: var(--muted);
      font-size: 13px; cursor: pointer; padding: 0;
      display: inline-flex; align-items: center; gap: 6px;
      margin-bottom: 4px; font-family: var(--font-b);
    }
    .cli-back-btn i { font-size: 12px; }

    /* Coruja no topo do modal de login */
    .cli-login-owl {
      width: 72px; height: 72px; object-fit: contain;
      display: block; margin: 4px auto -4px;
    }

    /* ── Painel de conta ── */
    .cli-conta-head {
      display: flex; align-items: center; gap: 14px;
      padding: 4px 0 16px;
    }
    .cli-conta-avatar {
      width: 56px; height: 56px; border-radius: 50%;
      background: linear-gradient(135deg, var(--red), #b91c1c);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-h); font-weight: 800; font-size: 24px;
      color: #fff; flex-shrink: 0;
      box-shadow: 0 2px 10px rgba(255,68,68,0.35);
    }
    .cli-conta-info { min-width: 0; flex: 1; }
    .cli-conta-info .nome {
      font-family: var(--font-h); font-weight: 800; font-size: 17px;
      color: var(--text); white-space: nowrap; overflow: hidden;
      text-overflow: ellipsis;
    }
    .cli-conta-info .email {
      font-size: 12px; color: var(--muted); margin-top: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Linhas de ação no painel de conta */
    .cli-conta-row {
      width: 100%;
      display: flex; align-items: center; gap: 12px;
      padding: 14px 4px; border: none; background: none;
      color: var(--text); font-size: 15px; cursor: pointer;
      border-top: 1px solid var(--border);
      font-family: var(--font-b); text-align: left;
      -webkit-tap-highlight-color: transparent;
    }
    .cli-conta-row:active { opacity: 0.6; }
    .cli-conta-row i { width: 22px; text-align: center; font-size: 16px; color: var(--muted); }
    .cli-conta-row .row-label { flex: 1; }
    .cli-conta-row .row-value { font-size: 13px; color: var(--muted); }
    .cli-conta-row.danger { color: var(--red); }
    .cli-conta-row.danger i { color: var(--red); }