    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --sidebar-bg: #1a1a2e;
      --sidebar-top: #757986;
      --sidebar-bottom: #4d5460;
      --sidebar-grad: linear-gradient(180deg, var(--sidebar-top) 0%, var(--sidebar-bottom) 100%);
      --sidebar-hover: rgba(255,255,255,.08);
      --sidebar-active: rgba(255,255,255,.13);
      --sidebar-w: 220px;
      --blue: #4361ee;
      --green: #2dc653;
      --red: #e63946;
      --yellow: #f4a261;
      --bg: #f0f2f5;
      --surface: #fff;
      --border: #dee2e6;
      --text: #212529;
      --muted: #6c757d;
      --accent-red: #8a1626;
      --radius: 6px;
    }
    body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
    /* Faixa de acento no topo (igual ao print) */
    body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-red); z-index: 1000; }
    a { text-decoration: none; color: inherit; }
    
    .app { display: flex; min-height: 100vh; }
    .sidebar { width: var(--sidebar-w); background: var(--sidebar-grad); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; overflow-y: auto; }
    .main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
    
    .sb-logo { padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
    .sb-logo-icon { width: 36px; height: 36px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; font-weight: 900; color: #1a1a2e; }
    .sb-logo-text { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
    
    .sb-user { padding: .6rem 1rem .75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .sb-user-name { font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
    .sb-balance-row { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
    .sb-balance-row b { color: #fff; font-weight: 600; }
    .sb-refresh-btn { width: 16px; height: 16px; background: rgba(255,255,255,.15); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; cursor: pointer; border: none; }
    
    .sb-nav { padding: .4rem 0; flex: 1; }
    .sb-item { display: flex; align-items: center; gap: 9px; padding: 9px 1rem; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.65); cursor: pointer; border-left: 3px solid transparent; transition: background .12s, color .12s; }
    .sb-item:hover { background: var(--sidebar-hover); color: #fff; }
    .sb-item.active { background: var(--sidebar-active); color: #fff; border-left-color: var(--blue); }
    .sb-item .ic { width: 17px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
    .sb-item .ic svg, .sb-logout .ic svg { width: 16px; height: 16px; display: block; }
    
    .sb-logout { display: flex; align-items: center; gap: 9px; padding: 9px 1rem; font-size: 12px; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); cursor: pointer; }
    .sb-logout:hover { color: #fff; }
    
    .topbar { background: #fff; border-bottom: 1px solid var(--border); padding: .7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
    .topbar-title { font-size: 17px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .5px; }
    
    .page-body { padding: 1.25rem 1.5rem; flex: 1; }
    
    .card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
    .card-header { padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .card-title { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .3px; }
    .card-body { padding: 1.25rem; }
    
    .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.25rem; }
    .stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; }
    .stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 5px; }
    .stat-value { font-size: 20px; font-weight: 700; }
    .stat-hint { font-size: 10px; color: var(--muted); margin-top: 3px; }
    
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: opacity .15s; }
    .btn:hover { opacity: .85; }
    .btn-dark   { background: #1a1a2e; color: #fff; }
    .btn-blue   { background: var(--blue); color: #fff; }
    .btn-green  { background: var(--green); color: #fff; }
    .btn-red    { background: var(--red); color: #fff; }
    .btn-outline{ background: #fff; color: var(--text); border-color: var(--border); }
    .btn-sm     { height: 28px; padding: 0 10px; font-size: 11px; }
    
    .act-btn { width: 30px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; border: none; transition: opacity .15s; }
    .act-btn:hover { opacity: .8; }
    .act-green  { background: #2dc653; color: #fff; }
    .act-dark   { background: #343a40; color: #fff; }
    .act-yellow { background: #f4a261; color: #fff; }
    .act-blue   { background: #4361ee; color: #fff; }
    .act-red    { background: #e63946; color: #fff; }
    
    .badge { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
    .badge-ativo   { background: #2dc653; color: #fff; }
    .badge-inativo { background: #6c757d; color: #fff; }
    .badge-pend    { background: #f4a261; color: #fff; }
    
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 12px; }
    thead tr { background: #f8f9fa; }
    th { padding: 8px 12px; text-align: left; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; border-bottom: 2px solid var(--border); white-space: nowrap; }
    td { padding: 9px 12px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: #f8f9fa; }
    .empty-td { text-align: center; color: var(--muted); padding: 2rem !important; font-size: 13px; }
    
    .search-wrap { position: relative; }
    .search-wrap::before { content: ''; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; pointer-events: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
    .search-input { height: 32px; padding: 0 10px 0 28px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; font-family: inherit; outline: none; background: #f8f9fa; color: var(--text); min-width: 180px; }
    .search-input:focus { border-color: var(--blue); background: #fff; }
    .per-page-wrap { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
    .per-page { height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; font-family: inherit; background: #f8f9fa; }
    
    .form-group { margin-bottom: .9rem; }
    .form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
    .form-group input, .form-group select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; color: var(--text); background: #fff; outline: none; }
    .form-group input:focus, .form-group select:focus { border-color: var(--blue); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    
    .alert { padding: 9px 13px; border-radius: var(--radius); font-size: 12px; margin-bottom: 1rem; }
    .alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
    .alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
    .alert-warn    { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
    
    .modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999; align-items: center; justify-content: center; padding: 1rem; }
    .modal-bg.open { display: flex; }
    .modal-box { background: #fff; border-radius: var(--radius); width: 100%; max-width: 460px; }
    .modal-head { padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
    .modal-title { font-size: 14px; font-weight: 700; text-transform: uppercase; }
    .modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); line-height: 1; }
    .modal-body { padding: 1.25rem; }
    .modal-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
    
    .auth-wrap { min-height: 100vh; background: var(--sidebar-bg); display: flex; align-items: center; justify-content: center; padding: 1rem; }
    .auth-card { background: #fff; border-radius: 10px; padding: 2rem 2.25rem; width: 100%; max-width: 380px; }
    .auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.75rem; justify-content: center; }
    .auth-logo-icon { width: 40px; height: 40px; background: var(--sidebar-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: #fff; }
    .auth-logo-text { font-size: 18px; font-weight: 800; color: var(--sidebar-bg); text-transform: uppercase; letter-spacing: 1px; }
    .auth-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
    .auth-sub { font-size: 12px; color: var(--muted); margin-bottom: 1.5rem; }
    .auth-footer { text-align: center; margin-top: 1rem; font-size: 12px; color: var(--muted); }
    .auth-footer a { color: var(--blue); }
    
    .qr-shimmer { width: 160px; height: 160px; background: linear-gradient(90deg,#e8eaf0 25%,#f4f6fa 50%,#e8eaf0 75%); background-size:400% 100%; animation:shimmer 1.4s infinite; border-radius:6px; position:relative; margin:0 auto; }
    .qr-shimmer::before { content:'';position:absolute;inset:14px;border:3px solid #d0d5e0;border-radius:4px; }
    .qr-shimmer::after  { content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px;border:3px solid #d0d5e0;border-radius:4px; }
    @keyframes shimmer { 0%{background-position:400% 0}100%{background-position:-400% 0} }
    .qr-dot { width:7px;height:7px;border-radius:50%;background:var(--blue);animation:pulse 1.2s infinite;display:inline-block; }
    @keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
    
    .attention-box { background:#fff3cd;border:1px solid #ffc107;border-radius:var(--radius);padding:.7rem 1rem;font-size:11px;color:#856404;text-align:center;line-height:1.7;margin-bottom:1rem; }
    .text-green { color: var(--green); font-weight:600; }
    .text-red   { color: var(--red);   font-weight:600; }
