/* ═══════════════════════════════════════════════
   UsinaPRO — Estilos globais do sistema de menu
   ═══════════════════════════════════════════════ */

/* ── MENU BAR ── */
.menu-bar {
  display: flex; align-items: center; gap: 8px; height: 48px;
  background: var(--bg2, #111); border-bottom: 1px solid var(--border, #252525);
  padding: 0 20px; position: sticky; top: 0; z-index: 100;
}
.menu-logo { font-family: monospace; font-size: 14px; font-weight: 700; color: #e8921a; letter-spacing: .02em; margin-right: 8px; }
.menu-logo span { color: #444; }
.menu-nav { display: flex; gap: 2px; flex: 1; }
.menu-nav a { font-size: 12px; color: #8a8680; text-decoration: none; padding: 5px 12px; border-radius: 4px; border: 1px solid transparent; transition: all .15s; }
.menu-nav a:hover { background: #1a1a1a; color: #ede9e3; border-color: #333; }
.menu-nav a.active { background: #222; color: #e8921a; border-color: #333; }
.menu-pill { background: #1a1a1a; border: 1px solid #333; border-radius: 20px; color: #9a9690; font-size: 11px; padding: 4px 10px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.menu-pill:hover { border-color: #e8921a; color: #e8921a; }
.license-badge { font-size: 10px; font-family: monospace; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.license-badge.active { background: rgba(46, 204, 113, .12); color: #2ecc71; }
.license-badge.offline { background: rgba(232, 146, 26, .12); color: #e8921a; }
.license-badge.inactive { background: rgba(100, 100, 100, .12); color: #666; }

/* ── DROPDOWN USUÁRIO ── */
.menu-user-wrap { position: relative; }
.menu-avatar { width: 32px; height: 32px; border-radius: 6px; background: #1a1a1a; border: 1px solid #333; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; color: #9a9690; }
.menu-avatar:hover { border-color: #e8921a; }
.menu-dropdown { position: absolute; right: 0; top: 38px; background: #111; border: 1px solid #333; border-radius: 8px; min-width: 200px; box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 200; overflow: hidden; }
.menu-dropdown.hidden { display: none; }
.menu-dd-company { padding: 10px 14px 2px; font-size: 12px; font-weight: 600; color: #ede9e3; }
.menu-dd-cnpj { padding: 0 14px 8px; font-size: 10px; color: #5a5652; font-family: monospace; }
.menu-dd-divider { height: 1px; background: #252525; margin: 2px 0; }
.menu-dd-item { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 14px; font-size: 12px; color: #8a8680; cursor: pointer; transition: background .1s; }
.menu-dd-item:hover { background: #1a1a1a; color: #ede9e3; }
.menu-dd-danger:hover { color: #e74c3c !important; }

/* ── MODAIS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-overlay.hidden { display: none; }
.modal-box { background: #111; border: 1px solid #2e2e2e; border-radius: 10px; width: 90vw; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #1f1f1f; }
.modal-title { font-size: 15px; font-weight: 500; color: #ede9e3; }
.modal-close { background: none; border: none; color: #5a5652; font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.modal-close:hover { background: #1a1a1a; color: #ede9e3; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid #1f1f1f; }
.modal-btn-primary { background: #e8921a; color: #fff; border: none; border-radius: 5px; padding: 8px 18px; font-size: 12px; font-weight: 500; cursor: pointer; }
.modal-btn-primary:hover { background: #c47510; }
.modal-btn-ghost { background: none; border: 1px solid #333; border-radius: 5px; padding: 8px 14px; font-size: 12px; color: #8a8680; cursor: pointer; }
.modal-btn-ghost:hover { border-color: #555; color: #ede9e3; }
.btn-sm-ghost { background: none; border: 1px solid #333; border-radius: 4px; padding: 4px 8px; font-size: 11px; color: #666; cursor: pointer; }

/* ── FORM FIELDS ── */
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf { display: flex; flex-direction: column; gap: 4px; }
.mf-full { grid-column: 1 / -1; }
.mf label { font-size: 10px; color: #6a6660; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.mf input, .mf textarea { background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 4px; color: #ede9e3; font-size: 12px; padding: 7px 9px; outline: none; transition: border .15s; width: 100%; }
.mf input:focus, .mf textarea:focus { border-color: #e8921a; }

/* ── LOGO ── */
.modal-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; background: #1a1a1a; border-radius: 6px; border: 1px solid #2e2e2e; }
.modal-logo-preview { width: 130px; height: 58px; background: #111; border: 1px solid #2e2e2e; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-logo-btn { background: #272727; border: 1px solid #333; border-radius: 4px; padding: 7px 12px; font-size: 11px; color: #9a9690; cursor: pointer; transition: all .15s; }
.modal-logo-btn:hover { border-color: #e8921a; color: #e8921a; }

/* ── MOEDAS ── */
.currency-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 6px; }
.currency-btn { background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 6px; padding: 10px 12px; text-align: left; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 10px; width: 100%; }
.currency-btn:hover { border-color: #555; }
.currency-btn.active { border-color: #e8921a; background: #1f1a12; }
.currency-symbol { font-size: 16px; font-weight: 700; color: #e8921a; min-width: 24px; }
.currency-code { font-family: monospace; font-size: 12px; color: #ede9e3; font-weight: 600; }
.currency-name { font-size: 10px; color: #5a5652; flex: 1; }

/* ── IDIOMAS ── */
.lang-list { display: flex; flex-direction: column; gap: 2px; }
.lang-item { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 11px 14px; border-radius: 6px; cursor: pointer; transition: background .12s; width: 100%; text-align: left; }
.lang-item:hover { background: #1a1a1a; }
.lang-item.active { background: #1f1a12; }
.lang-flag { font-size: 20px; }
.lang-label { font-size: 13px; color: #9a9690; flex: 1; }
.lang-item.active .lang-label { color: #ede9e3; }
.lang-check { color: #e8921a; font-weight: 700; }

/* ── PLANOS ── */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-card { background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 8px; padding: 18px; position: relative; }
.plan-highlight { border-color: #7F77DD; background: #1a1a22; }
.plan-current { border-color: #e8921a; }
.plan-trial-active { border-color: #2ecc71 !important; background: #0f1a0f !important; }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; letter-spacing: .05em; }
.plan-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.plan-price { font-family: monospace; font-size: 18px; font-weight: 700; color: #ede9e3; margin-bottom: 4px; }
.plan-features { list-style: none; padding: 0; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 11px; color: #8a8680; }
.plan-cta { width: 100%; padding: 9px; border-radius: 5px; font-size: 12px; font-weight: 500; cursor: pointer; background: #272727; border: 1px solid #333; color: #9a9690; transition: all .15s; }
.plan-cta:hover { border-color: #e8921a; color: #e8921a; }
.plan-cta-current { background: rgba(232,146,26,.1); border-color: rgba(232,146,26,.3); color: #e8921a; cursor: default; }
.plan-cta-upgrade { background: #e8921a !important; color: #fff !important; border-color: #e8921a !important; animation: pulse-cta 2s ease-in-out infinite; }

/* ── TRIAL ── */
.trial-progress-wrap { margin-bottom: 14px; padding: 10px 12px; background: #141f14; border-radius: 6px; border: 1px solid #1e2e1e; }

/* ── LICENÇA ── */
.license-status-box { padding: 12px 14px; border-radius: 6px; margin-bottom: 4px; }
.ls-ok { color: #2ecc71; font-size: 13px; font-weight: 500; }
.ls-warn { color: #e8921a; font-size: 13px; }
.ls-none { color: #666; font-size: 12px; }

/* ── ANIMAÇÕES ── */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,146,26,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(232,146,26,0); }
}
