/* Rogerinho — estilos do painel (extraído de dashboard.html) */

    /* Fontes do título de boas-vindas — mesmos arquivos usados no canvas do bot,
       pra o preview no navegador ficar fiel ao que sai no Discord. */
    @font-face { font-family: 'RogerImpacto';   src: url('fontes/DejaVuSans-Bold.ttf'); font-display: swap; }
    @font-face { font-family: 'RogerClassica';  src: url('fontes/DejaVuSans.ttf');      font-display: swap; }
    @font-face { font-family: 'RogerBillo';     src: url('fontes/Billo.ttf');           font-display: swap; }
    @font-face { font-family: 'RogerAgua';      src: url('fontes/BlueWater.otf');       font-display: swap; }
    @font-face { font-family: 'RogerGuerreiro'; src: url('fontes/FightingSpirit2Bold.otf'); font-display: swap; }

    :root {
      --blue:    #5865F2;
      --blue-d:  #4752C4;
      --blue-g:  rgba(88,101,242,0.08);
      --gold:    #F59E0B;
      --gold-d:  #D97706;
      --gold-g:  rgba(245,158,11,0.08);
      --green:   #10B981;
      --red:     #EF4444;
      --bg:      #060610;
      --bg2:     #0C0C1A;
      --bg3:     #12122A;
      --card:    #0F0F20;
      --card2:   #141428;
      --border:  rgba(255,255,255,0.06);
      --border2: rgba(255,255,255,0.04);
      --text:    #E8E8F4;
      --muted:   #6A6A90;
      --radius:  16px;

      /* Tons de superfície/texto usados em cima de fundo escuro (cards com
         opacidade, textos secundários em gráficos) — o tema claro sobrescreve
         esses mesmos nomes com equivalentes escuros-sobre-claro. */
      --surface-soft:        rgba(255,255,255,0.02);
      --surface-soft-border: rgba(255,255,255,0.05);
      --surface-06:          rgba(255,255,255,0.06);
      --muted-35: rgba(255,255,255,0.35);
      --muted-40: rgba(255,255,255,0.4);
      --muted-50: rgba(255,255,255,0.5);
      --muted-70: rgba(255,255,255,0.7);
    }

    /* ── Tema claro — aplicado via classe na <html>, alternado pelo botão
       sol/lua (ver #theme-toggle-btn). Guarda a preferência no localStorage. ── */
    html.theme-light {
      --bg:      #F1F2F8;
      --bg2:     #FFFFFF;
      --bg3:     #EAEBF4;
      --card:    #FFFFFF;
      --card2:   #F6F7FB;
      --border:  rgba(20,20,45,0.09);
      --border2: rgba(20,20,45,0.06);
      --text:    #16162A;
      --muted:   #5E5E78;
      --gold:    #B45309;
      --gold-d:  #92400E;
      --gold-g:  rgba(180,83,9,0.10);

      --surface-soft:        rgba(20,20,45,0.025);
      --surface-soft-border: rgba(20,20,45,0.08);
      --surface-06:          rgba(20,20,45,0.06);
      --muted-35: rgba(20,20,45,0.38);
      --muted-40: rgba(20,20,45,0.42);
      --muted-50: rgba(20,20,45,0.52);
      --muted-70: rgba(20,20,45,0.68);
    }
    html.theme-light body::before { opacity: 0.4; }
    html.theme-light img.produto-card-img,
    html.theme-light .produto-card-img { background: var(--bg3); }

    /* Onda de transição entre temas — um círculo sólido que encolhe a partir
       do botão clicado, "revelando" o novo tema por baixo. */
    #theme-ripple {
      position: fixed; inset: 0; z-index: 99999; pointer-events: none;
    }
    #theme-toggle-btn {
      position: fixed; top: 18px; right: 22px; z-index: 500;
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--card); border: 1px solid var(--border);
      color: var(--gold); display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1rem; transition: transform 0.2s, border-color 0.2s;
    }
    #theme-toggle-btn:hover { transform: scale(1.08); border-color: var(--gold); }
    #theme-toggle-btn i { pointer-events: none; }

    *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      line-height: 1.65;
      overflow-x: hidden;
      min-height: 100vh;
    }

    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
      background-size: 200px;
    }

    /* ── Layout ── */
    .dashboard { display: flex; min-height: 100vh; position: relative; z-index: 1; }

    /* ── Sidebar ── */
    .sidebar {
      width: 260px; flex-shrink: 0;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      position: fixed; top: 0; left: 0; bottom: 0;
      z-index: 100;
      transition: transform 0.3s;
    }

    .sidebar-header {
      padding: 24px 20px;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; gap: 12px;
    }

    .sidebar-logo {
      width: 36px; height: 36px;
      background: linear-gradient(135deg, var(--blue), var(--gold));
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }

    .sidebar-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
    .sidebar-sub   { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }

    .sidebar-user {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; gap: 10px;
    }

    .user-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--bg3);
      object-fit: cover;
      border: 2px solid var(--border);
    }

    .user-name  { font-size: 0.85rem; font-weight: 500; }
    .user-tag   { font-size: 0.72rem; color: var(--muted); }

    .sidebar-nav { flex: 1; padding: 8px 8px; overflow-y: auto; }
    .sidebar-nav::-webkit-scrollbar { width: 3px; }
    .sidebar-nav::-webkit-scrollbar-track { background: transparent; }
    .sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
    .sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--muted); }

    .nav-label {
      padding: 8px 20px 4px;
      font-size: 0.68rem; font-weight: 600;
      color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
    }

    .nav-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 20px;
      color: var(--muted);
      cursor: pointer;
      border-radius: 0;
      transition: background 0.2s, color 0.2s, border-color 0.2s, padding-left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      font-size: 0.88rem;
      border-left: 3px solid transparent;
      text-decoration: none;
    }

    .nav-item:hover { background: var(--bg3); color: var(--text); padding-left: 26px; }
    .nav-item.active {
      background: var(--blue-g); color: var(--blue); border-left-color: var(--blue);
      box-shadow: inset 0 0 20px rgba(88,101,242,0.12);
    }
    .nav-item i { width: 16px; text-align: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .nav-item:hover i { transform: scale(1.3) rotate(-8deg); }

    .sidebar-footer {
      padding: 16px 20px;
      border-top: 1px solid var(--border);
    }

    .logout-btn {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 14px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--muted);
      cursor: pointer;
      font-size: 0.83rem;
      width: 100%;
      transition: all 0.15s;
      font-family: inherit;
    }

    .logout-btn:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.05); }

    /* ── Main ── */
    .main { margin-left: 260px; flex: 1; min-width: 0; padding: 32px; min-height: 100vh; }

    /* ── Topo ── */
    .topbar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 32px;
    }

    .page-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; }
    .page-sub   { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

    /* ── Servidor selecionado ── */
    .server-selector {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 14px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      cursor: pointer;
      transition: border-color 0.15s;
      font-size: 0.85rem;
    }

    .server-selector:hover { border-color: var(--blue); }

    .server-icon {
      width: 28px; height: 28px; border-radius: 8px;
      background: var(--bg3);
      object-fit: cover;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; overflow: hidden;
    }

    /* ── Cards de stats ── */
    .stats-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px; margin-bottom: 28px;
    }

    .stat-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      transition: border-color 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    }

    .stat-card:hover {
      border-color: var(--border2);
      transform: translateY(-6px) rotate(-0.5deg);
      box-shadow: 0 14px 26px rgba(0,0,0,0.2);
    }

    .stat-icon {
      width: 38px; height: 38px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; margin-bottom: 14px;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .stat-card:hover .stat-icon { transform: scale(1.25) rotate(-10deg); }

    .stat-icon.blue   { background: var(--blue-g); color: var(--blue); }
    .stat-icon.gold   { background: var(--gold-g); color: var(--gold); }
    .stat-icon.green  { background: rgba(16,185,129,0.08); color: var(--green); }
    .stat-icon.purple { background: rgba(168,85,247,0.08); color: #A855F7; }

    .stat-val   { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; }
    .stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

    /* ── Seções ── */
    .section { margin-bottom: 28px; }

    .section-title {
      font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem;
      margin-bottom: 16px;
      display: flex; align-items: center; gap: 8px;
    }

    .section-title i { color: var(--blue); font-size: 0.85rem; }

    /* ── Config cards ── */
    .config-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 16px;
    }
    .config-grid.grid-align-start { align-items: start; }
    .config-grid-fixed {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 16px; align-items: start;
    }
    @media (max-width: 720px) {
      .config-grid-fixed { grid-template-columns: 1fr; }
    }
    .config-grid-fixed .full-span { grid-column: 1 / -1; }
    .config-card.optional { border-style: dashed; }
    .config-subgroup-label {
      font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
      color: var(--muted); margin: 22px 0 10px;
    }
    .config-subgroup-label:first-of-type { margin-top: 0; }

    .config-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .config-card:hover {
      border-color: var(--border2);
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .config-card-title {
      font-size: 0.88rem; font-weight: 600;
      margin-bottom: 6px;
      display: flex; align-items: center; gap: 8px;
    }

    .config-card-desc { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; }

    /* ── Select de canal ── */
    .channel-select {
      width: 100%;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      padding: 9px 12px;
      font-size: 0.85rem;
      font-family: inherit;
      cursor: pointer;
      outline: none;
      transition: border-color 0.15s;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236A6A90' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 32px;
    }

    .channel-select:focus { border-color: var(--blue); }

    /* ── Toggle switch ── */
    .toggle-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 0;
      border-bottom: 1px solid var(--border2);
    }

    .toggle-row:last-child { border-bottom: none; padding-bottom: 0; }

    .toggle-info-title { font-size: 0.85rem; font-weight: 500; }
    .toggle-info-desc  { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

    .toggle {
      position: relative; width: 42px; height: 24px; flex-shrink: 0;
    }

    .toggle input { display: none; }

    .toggle-slider {
      position: absolute; inset: 0;
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 100px; cursor: pointer;
      transition: all 0.2s;
    }

    .toggle-slider::after {
      content: '';
      position: absolute; top: 3px; left: 3px;
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--muted);
      transition: all 0.2s;
    }

    .toggle input:checked + .toggle-slider { background: var(--blue); border-color: var(--blue); }
    .toggle input:checked + .toggle-slider::after { left: 19px; background: white; }

    /* ── Save button ── */
    .save-btn {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 22px;
      background: var(--blue);
      color: white; border: none;
      border-radius: 14px;
      font-size: 0.85rem; font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
      margin-top: 16px;
    }

    .save-btn:hover { background: var(--blue-d); transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 20px rgba(88,101,242,0.4); }
    .save-btn:active { transform: scale(0.94) translateY(0); }
    .save-btn.loading { opacity: 0.7; pointer-events: none; }

    /* ── Multi-seleção de canais/cargos (Pro) ── */
    .multi-select-box {
      max-height: 170px;
      overflow-y: auto;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 6px;
    }
    .multi-select-item {
      display: flex; align-items: center; gap: 9px;
      padding: 7px 8px;
      font-size: 0.83rem;
      border-radius: 7px;
      cursor: pointer;
      user-select: none;
    }
    .multi-select-item:hover { background: var(--bg2); }
    .multi-select-item input { accent-color: var(--blue); cursor: pointer; }
    .multi-select-empty { padding: 10px 8px; font-size: 0.8rem; color: var(--muted); }

    /* ── Filtro de gêneros (chips) ── */
    .genero-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 13px;
      font-size: 0.8rem;
      border-radius: 99px;
      border: 1px solid var(--border);
      background: var(--bg3);
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
      user-select: none;
    }
    .genero-chip:hover { border-color: var(--blue); }
    .genero-chip.selected { border-color: var(--gold); background: rgba(245,158,11,0.1); color: var(--gold); }

    /* ── Aviso de recurso exclusivo Pro ── */
    .pro-lock {
      display: flex; align-items: center; gap: 10px;
      background: rgba(245,158,11,0.08);
      border: 1px solid rgba(245,158,11,0.25);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 0.8rem;
      color: var(--gold);
    }
    .pro-lock a { color: var(--gold); font-weight: 700; text-decoration: underline; cursor: pointer; }
    .layout-card-bv:hover { border-color: var(--blue) !important; }
    .layout-card-saida:hover { border-color: var(--blue) !important; }

    /* ── Acordeão simples (recolher/expandir) ── */
    .accordion-bv { border: 1px solid var(--border); border-radius: 10px; background: var(--bg3); overflow: hidden; }
    .accordion-bv.expandido { overflow: visible; }
    .accordion-header-bv {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
      user-select: none;
    }
    .accordion-header-bv:hover { background: var(--bg2); }
    .accordion-chev { color: var(--muted); font-size: 0.75rem; transition: transform 0.15s; }
    .accordion-body-bv { display: none; padding: 0 14px 14px; }
    .pro-badge-sm { color: var(--gold); font-size: 0.68rem; font-weight: 700; margin-left: 4px; }

    /* ── Toast ── */
    .toast {
      position: fixed; bottom: 24px; right: 24px;
      padding: 12px 20px;
      border-radius: 14px;
      font-size: 0.85rem; font-weight: 500;
      display: flex; align-items: center; gap: 8px;
      z-index: 999;
      animation: toast-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    .toast.success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
    .toast.error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: var(--red); }

    @keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

    /* ── Feedback ── */
    .feedback-widget {
      position: fixed; right: 24px; bottom: 24px; z-index: 1100;
      display: flex; align-items: center; gap: 12px;
    }
    .feedback-avatar-btn {
      width: 64px; height: 64px; padding: 4px; border-radius: 50%;
      border: 2px solid var(--gold); background: var(--card); cursor: pointer;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: transform 0.2s, box-shadow 0.2s;
    }
    .feedback-avatar-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(245,158,11,0.3); }
    .feedback-avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
    .feedback-bubble {
      color: var(--text); background: var(--card); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 14px; font: 500 0.82rem 'DM Sans', sans-serif;
      cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.25); white-space: nowrap;
    }
    .feedback-bubble:hover { border-color: var(--gold); color: var(--gold); }
    .feedback-modal[hidden] { display: none; }
    .feedback-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
    .feedback-backdrop { position: absolute; inset: 0; background: rgba(3,3,10,0.72); }
    .feedback-panel {
      position: relative; width: min(100%, 500px); max-height: min(720px, calc(100vh - 40px));
      overflow-y: auto; padding: 24px; background: var(--bg2); border: 1px solid var(--border);
      border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    }
    .feedback-panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
    .feedback-eyebrow { color: var(--gold); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
    .feedback-panel h2 { margin-top: 5px; font: 700 1.35rem 'Syne', sans-serif; }
    .feedback-description { color: var(--muted); font-size: 0.85rem; margin: 12px 0 20px; }
    .feedback-close { background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); width: 34px; height: 34px; cursor: pointer; }
    .feedback-close:hover { color: var(--red); border-color: var(--red); }
    .feedback-field { margin-bottom: 16px; }
    .feedback-field label { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 6px; }
    .feedback-field select, .feedback-field textarea {
      width: 100%; background: var(--bg3); color: var(--text); border: 1px solid var(--border);
      border-radius: 10px; font: 0.88rem 'DM Sans', sans-serif; padding: 10px 12px; outline: none;
    }
    .feedback-field select:focus, .feedback-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-g); }
    .feedback-field textarea { resize: vertical; min-height: 120px; }
    .feedback-field-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
    .feedback-counter { color: var(--muted); font: 0.72rem 'DM Mono', monospace; margin-left: auto; }
    .feedback-error { color: var(--red); font-size: 0.75rem; }
    .feedback-submit { width: 100%; justify-content: center; margin-top: 4px; }
    .feedback-submit:disabled { cursor: wait; }
    button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
    body.feedback-open { overflow: hidden; }

    @media (max-width: 560px) {
      .feedback-widget { right: 16px; bottom: 16px; }
      .feedback-bubble { display: none; }
      .feedback-avatar-btn { width: 58px; height: 58px; }
      .feedback-modal { align-items: flex-end; padding: 10px; }
      .feedback-panel { max-height: calc(100vh - 20px); padding: 20px; }
    }

    /* ── Server list (tela inicial) ── */
    .server-list {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 16px;
    }

    .server-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex; flex-direction: column; align-items: center; gap: 12px;
      text-align: center;
    }

    .server-card:hover { border-color: var(--blue); transform: translateY(-2px); }
    .server-card.no-bot { opacity: 0.5; cursor: not-allowed; }
    .server-card.no-bot:hover { transform: none; border-color: var(--border); }

    .server-card-icon {
      width: 56px; height: 56px; border-radius: 14px;
      background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; overflow: hidden;
    }

    .server-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

    .server-card-name { font-weight: 600; font-size: 0.9rem; }

    .server-card-badge {
      font-size: 0.7rem; padding: 3px 8px; border-radius: 100px;
      font-weight: 600;
    }

    .badge-in  { background: rgba(16,185,129,0.1); color: var(--green); }
    .badge-out { background: rgba(239,68,68,0.1);  color: var(--red); }

    /* ── Login screen ── */
    .login-screen {
      display: flex; align-items: center; justify-content: center;
      min-height: 100vh; padding: 24px;
    }

    .login-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 48px 40px;
      text-align: center; max-width: 420px; width: 100%;
      animation: fade-up 0.4s ease;
    }

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

    .page-enter { animation: fade-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

    /* ── Balancinho periódico (ícones/emojis com personalidade) ── */
    @keyframes wiggle-idle {
      0%, 92%, 100% { transform: rotate(0deg); }
      93% { transform: rotate(-14deg); }
      95% { transform: rotate(12deg); }
      97% { transform: rotate(-7deg); }
      99% { transform: rotate(3deg); }
    }
    .wiggle-idle { display: inline-block; animation: wiggle-idle 4s ease-in-out infinite; }

    .login-logo {
      width: 64px; height: 64px;
      background: linear-gradient(135deg, var(--blue), var(--gold));
      border-radius: 18px;
      display: flex; align-items: center; justify-content: center;
      font-size: 28px; margin: 0 auto 20px;
    }

    .login-title { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
    .login-desc  { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; line-height: 1.6; }

    .login-btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 13px 28px;
      background: var(--blue);
      color: white; border: none; border-radius: 12px;
      font-size: 0.95rem; font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s, transform 0.1s;
      width: 100%; justify-content: center;
    }

    .login-btn:hover   { background: var(--blue-d); }
    .login-btn:active  { transform: scale(0.97); }

    /* ── Loading ── */
    .loading-screen {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      min-height: 100vh; gap: 16px; color: var(--muted);
    }

    .spinner {
      width: 36px; height: 36px; border-radius: 50%;
      border: 3px solid var(--border);
      border-top-color: var(--blue);
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Empty state ── */
    .empty {
      text-align: center; padding: 64px 24px; color: var(--muted);
    }

    .empty i { font-size: 2.5rem; margin-bottom: 16px; display: block; opacity: 0.3; }
    .empty p  { font-size: 0.9rem; }

/* ── Ranking Pódio (Top 3) ── */
.podium-container {
  display: flex; justify-content: center; align-items: flex-end; gap: 16px;
  margin-top: 40px; margin-bottom: 32px;
}
.podium-card {
  background: var(--bg3); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; width: 110px; border: 1px solid var(--border);
}
.podium-card.rank-1 { height: 150px; border-color: var(--gold); background: linear-gradient(to top, var(--bg3), rgba(245,158,11,0.08)); z-index: 2; }
.podium-card.rank-2 { height: 120px; border-color: #94A3B8; background: linear-gradient(to top, var(--bg3), rgba(148,163,184,0.08)); }
.podium-card.rank-3 { height: 100px; border-color: #CD7F32; background: linear-gradient(to top, var(--bg3), rgba(205,127,50,0.08)); }

.podium-avatar {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border);
  object-fit: cover; position: absolute; top: -30px; background: var(--bg);
}
.rank-1 .podium-avatar { border-color: var(--gold); width: 72px; height: 72px; top: -36px; }
.rank-2 .podium-avatar { border-color: #94A3B8; }
.rank-3 .podium-avatar { border-color: #CD7F32; }

.podium-crown { position: absolute; top: -65px; font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

.podium-name { font-weight: 700; font-size: 0.9rem; margin-top: 32px; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.rank-1 .podium-name { margin-top: 40px; }
.podium-pts { color: var(--gold); font-size: 0.8rem; font-weight: 600; margin-top: 4px; }

/* ── Ranking Lista (4º em diante) ── */
.ranking-list-new { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: var(--bg3);
  border-radius: 12px; border: 1px solid var(--border2);
}
.rank-row-pos { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--muted); width: 24px; text-align: center; }
.rank-row-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.rank-row-name { flex: 1; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.rank-row-pts { color: #06b6d4; font-weight: 700; font-size: 0.9rem; }

/* ── Wishlist ── */
.wl-autocomplete {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  margin-top: 6px; max-height: 240px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.wl-autocomplete-item {
  padding: 10px 14px; cursor: pointer; font-size: 0.85rem; color: var(--text);
}
.wl-autocomplete-item:hover { background: rgba(255,255,255,0.06); }
.wl-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px;
  margin-bottom: 8px;
}
.wl-item-info { flex: 1; min-width: 0; }
.wl-item-nome { font-weight: 600; font-size: 0.92rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-item-tag { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.wl-remove-btn {
  background: rgba(239,68,68,0.1); color: #ef4444; border: none; border-radius: 8px;
  width: 32px; height: 32px; min-width: 32px; cursor: pointer; font-size: 0.9rem;
}
.wl-remove-btn:hover { background: rgba(239,68,68,0.2); }

/* ── Wishlist: jogos populares (capas) ── */
.wl-populares-scroll {
  display: flex; gap: 12px; overflow-x: auto; max-width: 100%; padding-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--gold, #F59E0B) transparent;
}
.wl-populares-scroll::-webkit-scrollbar { height: 6px; }
.wl-populares-scroll::-webkit-scrollbar-track { background: transparent; }
.wl-populares-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--gold, #F59E0B), #fbbf24);
  border-radius: 99px;
}
.wl-populares-scroll::-webkit-scrollbar-thumb:hover { background: #fbbf24; }
.wl-pop-card {
  position: relative; flex: 0 0 150px; height: 210px;
  border-radius: 14px; overflow: hidden; background: var(--bg3);
  border: 1px solid var(--border2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.wl-pop-card:hover {
  transform: translateY(-6px) scale(1.04) rotate(-1deg);
  box-shadow: 0 14px 30px rgba(245,158,11,0.22);
}
.wl-pop-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wl-pop-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--bg3), var(--bg2, var(--bg3)));
  color: var(--muted); font-size: 1.8rem;
}
.wl-pop-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
}
.wl-pop-nome {
  font-size: 0.72rem; font-weight: 700; color: #fff; line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;
}
.wl-pop-add {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold, #F59E0B); color: #14141f; border: none;
  cursor: pointer; font-size: 0.75rem;
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wl-pop-add:hover { filter: brightness(1.1); transform: scale(1.25); }
.wl-pop-add:active { transform: scale(0.85); }
.wl-pop-add:disabled { opacity: 0.6; cursor: default; transform: none; }
.wl-pop-add.wl-pop-added {
  background: rgba(16,185,129,0.15); color: var(--green, #10B981);
  box-shadow: none; border: 1px solid rgba(16,185,129,0.4);
}
.wl-pop-add.wl-pop-added:hover {
  background: rgba(239,68,68,0.15); color: #ef4444; border-color: rgba(239,68,68,0.4);
}


    /* ── Seções de canais ── */
    .channels-section { margin-bottom: 32px; }
    .channels-section-header {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 14px; padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .channels-section-header .section-icon {
      width: 30px; height: 30px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; flex-shrink: 0;
    }
    .channels-section-header h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin: 0; }
    .channels-section-header p  { font-size: 0.75rem; color: var(--muted); margin: 2px 0 0 0; }

    /* ── Badge demo gráfico ── */
    .demo-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px;
      background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
      border-radius: 100px; font-size: 0.72rem; font-weight: 600;
      color: var(--gold); letter-spacing: 0.04em;
    }

    /* ── Toggle section (campos que revelam/ocultam) ── */
    .toggle-section-body {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
      margin-top: 0;
    }
    .toggle-section-body.open {
      max-height: 1800px;
      opacity: 1;
      margin-top: 20px;
    }

    /* ── Página de Logs ── */
    .log-entry {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 16px;
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: 12px;
    }
    .log-avatar {
      width: 38px; height: 38px; border-radius: 50%;
      object-fit: cover; flex-shrink: 0;
      background: var(--card2);
    }
    .log-text { flex: 1; }
    .log-text strong { font-size: 0.88rem; font-weight: 600; }
    .log-text span   { color: var(--muted); font-size: 0.88rem; }
    .log-time { font-size: 0.75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
    .log-list { display: flex; flex-direction: column; gap: 8px; }

    /* ── Preview de mensagem boas-vindas ── */
    .msg-preview {
      background: #36393f;
      border-radius: 12px;
      padding: 14px 16px;
      margin-top: 14px;
      border: 1px solid var(--border);
    }
    .msg-preview-header {
      display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
    }
    .msg-preview-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--blue); display:flex; align-items:center;
      justify-content:center; font-size:16px; flex-shrink:0;
    }
    .msg-preview-name {
      font-weight: 700; font-size: 0.9rem; color: #fff;
    }
    .msg-preview-tag {
      font-size: 0.72rem; color: var(--muted-35); margin-left:4px;
    }
    .msg-preview-body {
      font-size: 0.88rem; color: #dcddde; line-height: 1.5;
      margin-left: 46px; word-break: break-word;
    }
    .msg-preview-mention {
      color: #7289da; background: rgba(114,137,218,0.1);
      border-radius: 3px; padding: 0 2px;
    }
    .msg-custom-textarea {
      width: 100%; min-height: 70px; resize: vertical;
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-family: inherit;
      font-size: 0.88rem; padding: 10px 12px; margin-top: 12px;
      transition: border-color 0.15s; box-sizing: border-box;
    }
    .msg-custom-textarea:focus {
      outline: none; border-color: var(--blue);
    }
    .msg-vars {
      display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
    }
    /* Emoji picker — os panes internos controlam o scroll, não o container pai */
    .emoji-pane::-webkit-scrollbar { width: 3px; }
    .emoji-pane::-webkit-scrollbar-track { background: transparent; }
    .emoji-pane::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
    /* item de emoji */
    .emoji-item {
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 6px; cursor: pointer; flex-shrink: 0;
      transition: background 0.12s;
    }
    .emoji-item:hover { background: var(--bg3); }
    .emoji-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 3px; }
    /* classes legadas — mantidas para não quebrar outros usos */
    .emoji-picker-dropdown { display: none; }
    .emoji-picker-dropdown.aberto { display: flex; flex-wrap: wrap; gap: 4px; }
    .emoji-picker-empty, .emoji-picker-loading {
      width: 100%; color: var(--muted); font-size: 0.78rem; text-align: center; padding: 16px 0;
    }
    .msg-var-tag {
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 6px; padding: 3px 8px; font-size: 0.72rem;
      color: var(--muted); cursor: pointer; transition: all 0.15s;
      font-family: monospace;
    }
    .msg-var-tag:hover { border-color: var(--blue); color: var(--blue); }

    /* ── Tour guiado ── */
    .tour-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.75);
      z-index: 9000; pointer-events: none;
      transition: opacity 0.3s;
    }
    .tour-spotlight {
      position: fixed; border-radius: 12px;
      box-shadow: 0 0 0 9999px rgba(0,0,0,0.75);
      z-index: 9001; pointer-events: none;
      transition: all 0.4s cubic-bezier(.4,0,.2,1);
      border: 2px solid var(--blue);
    }
    .tour-bubble {
      position: fixed; z-index: 9002;
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 14px; padding: 18px 20px; width: 300px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5);
      transition: all 0.4s cubic-bezier(.4,0,.2,1);
    }
    .tour-bubble-title {
      font-family: 'Syne', sans-serif; font-weight: 700;
      font-size: 1rem; margin-bottom: 6px; color: var(--text);
    }
    .tour-bubble-desc {
      font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px;
    }
    .tour-bubble-footer {
      display: flex; align-items: center; justify-content: space-between;
    }
    .tour-step-dots { display: flex; gap: 5px; }
    .tour-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--border); transition: background 0.2s;
    }
    .tour-dot.active { background: var(--blue); }
    .tour-btn {
      background: var(--blue); color: #fff; border: none;
      border-radius: 8px; padding: 7px 16px; font-size: 0.83rem;
      font-family: inherit; cursor: pointer; font-weight: 600;
      transition: opacity 0.15s;
    }
    .tour-btn:hover { opacity: 0.85; }
    .tour-btn-skip {
      background: transparent; color: var(--muted); border: none;
      font-size: 0.78rem; cursor: pointer; font-family: inherit;
      padding: 4px 8px; transition: color 0.15s;
    }
    .tour-btn-skip:hover { color: var(--text); }

    /* ── Dropdown de menções (canal/cargo) ── */
    .mention-picker-wrap { position: relative; display: inline-block; }
    .mention-picker-btn {
      display: inline-flex; align-items: center; gap: 5px;
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 6px; padding: 4px 10px; font-size: 0.75rem;
      color: var(--muted); cursor: pointer; font-family: inherit;
      transition: all 0.15s;
    }
    .mention-picker-btn:hover { border-color: var(--blue); color: var(--blue); }
    .mention-picker-dropdown {
      position: absolute; top: calc(100% + 4px); left: 0;
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 10px; min-width: 200px; max-height: 200px;
      overflow-y: auto; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
      display: none;
    }
    .mention-picker-dropdown.open { display: block; }
    .mention-picker-item {
      padding: 8px 12px; font-size: 0.82rem; cursor: pointer;
      color: var(--text); transition: background 0.1s;
      display: flex; align-items: center; gap: 7px;
    }
    .mention-picker-item:hover { background: var(--bg3); }
    .mention-picker-item .item-icon { color: var(--muted); font-size: 0.75rem; }

    /* ── Seletor de cor do embed ── */
    .color-picker-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .color-swatch {
      width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: all 0.15s;
      position: relative;
    }
    .color-swatch:hover { transform: scale(1.15); }
    .color-swatch.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--blue); }
    .color-swatch.custom {
      background: conic-gradient(red,yellow,lime,cyan,blue,magenta,red);
      font-size: 0; overflow: hidden;
    }

    /* ── Modo de exibição (3 opções) ── */
    .modo-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 10px; margin-top: 10px;
    }
    .modo-card {
      border: 2px solid var(--border); border-radius: 10px;
      padding: 12px 10px; cursor: pointer; transition: all 0.15s;
      text-align: center;
    }
    .modo-card:hover { border-color: var(--blue-muted); }
    .modo-card.selected { border-color: var(--blue); background: var(--blue-g); }
    .modo-card-icon { font-size: 1.4rem; margin-bottom: 6px; }
    .modo-card-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
    .modo-card-desc  { font-size: 0.72rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }

    /* ── Preview embed ── */
    .embed-preview {
      border-left: 4px solid #5865f2;
      background: #2f3136;
      border-radius: 0 8px 8px 0;
      padding: 12px 14px;
      margin-top: 10px;
    }
    .embed-preview-desc { font-size: 0.85rem; color: #dcddde; line-height: 1.5; }
    .embed-preview-img  {
      width: 100%; height: 80px; border-radius: 4px; margin-top: 10px;
      background: linear-gradient(135deg, #1e3a2f, #2d5a3d);
      background-size: cover; background-position: center;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); font-size: 0.78rem;
      transition: background 0.3s;
    }

    /* ── Premium lock ── */
    .premium-banner {
      background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.05));
      border: 1px solid rgba(245,158,11,0.2);
      border-radius: var(--radius);
      padding: 16px 20px;
      display: flex; align-items: center; gap: 14px;
      margin-bottom: 20px;
    }

    .premium-icon { font-size: 1.5rem; }
    .premium-text strong { color: var(--gold); font-size: 0.9rem; }
    .premium-text p { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

    /* ── Elementos Novos Suporte Mobile ── */
    .menu-toggle-fab {
      display: none;
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 101;
      background: var(--blue);
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.25rem;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }
    .menu-toggle-fab:active { transform: scale(0.9); }

    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      z-index: 99;
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }
    .sidebar-overlay.show {
      display: block;
      opacity: 1;
      pointer-events: auto;
    }

    /* ── Responsivo ── */
    @media (max-width: 768px) {
      .sidebar { transform: translateX(-100%); }
      .sidebar.open { transform: translateX(0); }
      .main { margin-left: 0; padding: 20px; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .config-grid { grid-template-columns: 1fr; }

      /* Melhorias Visuais e de Fluxo Mobile */
      .menu-toggle-fab { display: flex; }
      .login-card { padding: 32px 20px; }
      .topbar { flex-direction: column; align-items: flex-start; gap: 16px; }
      .server-selector { width: 100%; justify-content: space-between; }
      
      .podium-container { flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: center; margin-top: 48px; }
      .podium-card { width: calc(33.33% - 8px); min-width: 95px; }
      .rank-1 .podium-avatar { width: 58px; height: 58px; top: -29px; }
      .podium-card.rank-1 { height: 135px; }
      .podium-name { margin-top: 28px; font-size: 0.78rem; }
      .rank-1 .podium-name { margin-top: 34px; }
    }
    /* ── Loja: input de texto simples (chave Pix, nome/cidade recebedor) ── */
    .text-input {
      width: 100%;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      padding: 9px 12px;
      font-size: 0.85rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.15s;
    }
    .text-input:focus { border-color: var(--blue); }

    /* ── Loja: linha canal-select + botão "detectar/criar automaticamente" ── */
    .canal-auto-row { display: flex; gap: 8px; align-items: stretch; }
    .canal-auto-row .channel-select { flex: 1; }
    .btn-auto-canal {
      display: flex; align-items: center; gap: 6px;
      white-space: nowrap;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--muted);
      padding: 9px 12px;
      font-size: 0.78rem; font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-auto-canal:hover { border-color: var(--blue); color: var(--blue); }
    .btn-auto-canal.loading { opacity: 0.6; pointer-events: none; }

    /* ── Loja: cards de produto ── */
    .produtos-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 14px; margin-top: 16px; align-items: start;
    }
    .produto-card {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
      overflow: hidden; display: flex; flex-direction: column;
    }
    .produto-card-img {
      width: 100%; height: 120px; object-fit: cover; background: var(--bg3);
      display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.5rem;
    }
    .produto-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
    .produto-card-nome { font-weight: 600; font-size: 0.9rem; }
    .produto-card-preco { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
    .produto-card-meta { font-size: 0.74rem; color: var(--muted); }
    .produto-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
    .badge-pill {
      font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
      display: inline-flex; align-items: center; gap: 4px;
    }
    .badge-pill.ativo       { background: rgba(16,185,129,0.12); color: var(--green); }
    .badge-pill.inativo     { background: rgba(239,68,68,0.12);  color: var(--red); }
    .badge-pill.publicado   { background: var(--blue-g); color: var(--blue); }
    .badge-pill.despublicado{ background: var(--surface-06); color: var(--muted); }
    .produto-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
    .produto-card-actions button {
      flex: 1 1 calc(50% - 6px); min-width: 64px;
      background: transparent; border: 1px solid var(--border); border-radius: 8px;
      color: var(--muted); padding: 7px 8px; font-size: 0.76rem; cursor: pointer;
      font-family: inherit; transition: all 0.15s; white-space: nowrap;
    }
    .produto-card-actions button:hover { border-color: var(--blue); color: var(--blue); }
    .produto-card-actions button.danger:hover { border-color: var(--red); color: var(--red); }
    .produto-card-actions button.icon-only { flex: 0 0 40px; }
    .produto-card-variacoes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
    .variacao-chip {
      display: inline-flex; align-items: center; gap: 5px; background: var(--bg3);
      border: 1px solid var(--border); border-radius: 99px; padding: 3px 4px 3px 10px;
      font-size: 0.7rem; color: var(--text);
    }
    .variacao-chip button {
      background: transparent; border: none; color: var(--muted); cursor: pointer;
      padding: 3px 5px; border-radius: 99px; font-size: 0.68rem; line-height: 1;
    }
    .variacao-chip button:hover { color: var(--blue); }
    .variacao-chip button.danger-hover:hover { color: var(--red); }
    .variacao-add-btn {
      align-self: flex-start; background: transparent; border: 1px dashed var(--border);
      border-radius: 8px; color: var(--muted); padding: 5px 10px; font-size: 0.72rem;
      cursor: pointer; font-family: inherit; margin-top: 2px;
    }
    .variacao-add-btn:hover { border-color: var(--blue); color: var(--blue); }
    .cupons-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
    .cupom-card {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 14px 18px; flex-wrap: wrap;
    }
    .cupom-info { display: flex; flex-direction: column; gap: 3px; min-width: 160px; }
    .cupom-codigo { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; }
    .cupom-detalhe { font-size: 0.76rem; color: var(--muted); }
    .cupom-actions { display: flex; gap: 8px; align-items: center; }
    .cupom-actions button {
      background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
      color: var(--muted); padding: 6px 10px; font-size: 0.72rem; cursor: pointer; font-family: inherit;
    }
    .cupom-actions button:hover { border-color: var(--blue); color: var(--blue); }
    .cupom-actions button.danger:hover { border-color: var(--red); color: var(--red); }

    /* ── Loja: modal de produto ── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(3,3,10,0.72);
      display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px;
    }
    .modal-overlay.open { display: flex; }
    .modal-box {
      background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
      width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 24px;
    }
    .modal-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
    .modal-field { margin-bottom: 14px; }
    .modal-field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
    .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
    .modal-actions .save-btn { margin-top: 0; flex: 1; justify-content: center; }
    .modal-cancel-btn {
      background: transparent; border: 1px solid var(--border); border-radius: 10px;
      color: var(--muted); padding: 10px 18px; font-size: 0.85rem; font-family: inherit; cursor: pointer;
    }
    .modal-cancel-btn:hover { border-color: var(--red); color: var(--red); }

    /* =========================================
   CARTEIRA: PALCO PRINCIPAL (TESOURO)
========================================= */
.carteira-palco {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(245, 158, 11, 0.03);
  margin-bottom: 32px;
}

/* Brilho de fundo */
.carteira-palco::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  animation: pulsar-luz 5s infinite alternate ease-in-out;
}

/* Moeda Gigante Animada */
.moeda-holografica {
  margin-bottom: 12px;
  perspective: 1000px;
}
.icone-moeda-gigante {
  font-size: 5rem;
  line-height: 1;
  display: inline-block;
  animation: flutuar 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(245, 158, 11, 0.4));
}

/* Tipografia */
.carteira-label {
  color: var(--gold, #F59E0B);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  font-weight: 600;
}
.carteira-saldo-gigante {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.numero-glow {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5), 0 0 30px rgba(245, 158, 11, 0.2);
  line-height: 1;
}
.carteira-moeda-txt {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold, #F59E0B);
}

/* Pílulas (Stats Secundárias) */
.carteira-stats-secundarias {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative; /* Para ficar acima do brilho de fundo */
}
.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #a0a0b0;
  backdrop-filter: blur(4px);
  transition: transform 0.2s;
}
.stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.stat-pill strong {
  color: #fff;
}

/* =========================================
   HALL DA FAMA (TOP 10)
========================================= */
.hall-da-fama-card {
  background: rgba(18, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
}
.hall-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hall-title i {
  color: var(--gold, #F59E0B);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}
.hall-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CSS para o JS injetar nos itens do ranking */
.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: background 0.2s;
}
.ranking-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ranking-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
}
.ranking-pos {
  font-family: monospace;
  font-size: 1.1rem;
  color: #888;
  width: 24px;
}
/* Estilo especial para o Top 1, 2 e 3 (Seu JS pode adicionar a classe .top-1) */
.ranking-item.top-1 { border-left: 4px solid #FFD700; background: rgba(255, 215, 0, 0.1); }
.ranking-item.top-2 { border-left: 4px solid #C0C0C0; background: rgba(192, 192, 192, 0.1); }
.ranking-item.top-3 { border-left: 4px solid #CD7F32; background: rgba(205, 127, 50, 0.1); }

/* =========================================
   ANIMAÇÕES
========================================= */
@keyframes flutuar {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulsar-luz {
  0%   { opacity: 0.3; transform: translateX(-50%) scale(0.8); }
  100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

 .moeda-icon {
  height: 5em; /* Ajusta a altura proporcionalmente ao texto */
  width: auto;  /* Mantém a proporção da imagem */
  vertical-align: middle; /* Alinha o meio da imagem com a linha base do texto */
  margin-left: 4px; /* Pequeno espaçamento opcional */
}