  :root{
    --bg:       #080808;
    --surface:  #111111;
    --surface-2:#181818;
    --surface-3:#202020;
    --border:   #2a2a2a;
    --border-2: #333333;
    --orange:   #FF5500;
    --orange-hi:#ff7033;
    --orange-lo: rgba(255,85,0,0.12);
    --text:     #ffffff;
    --text-2:   #e0e0e0;
    --muted:    #888888;
    --muted-2:  #555555;
    --green:    #22c55e;
    --red:      #ef4444;
    --yellow:   #eab308;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --radius:   10px;
    --radius-lg:16px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { min-height: 100vh; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  button { font-family: inherit; cursor: pointer; }
  input, select, textarea { font-family: inherit; }
  ::placeholder { color: var(--muted-2); }

  .hidden { display: none !important; }

  /* ────────────────────────────────────────
     AUTH SCREEN
  ──────────────────────────────────────── */
  #auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }

  /* left visual panel */
  .auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }
  /* subtle orange radial behind headline */
  .auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 10% 15%, rgba(255,85,0,0.13) 0%, transparent 70%),
      radial-gradient(ellipse 40% 35% at 90% 85%, rgba(255,85,0,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  /* decorative grid lines */
  .auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.18;
    pointer-events: none;
  }

  .brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
  }
  .brand-mark .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,85,0,0.25);
    flex-shrink: 0;
  }
  .brand-mark span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .auth-visual h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .auth-visual h1 em {
    font-style: normal;
    color: var(--orange);
  }
  .auth-visual > p {
    font-size: 15px;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
  }

  /* funnel strip */
  .funnel-strip {
    display: flex;
    align-items: flex-start;
    margin-top: 56px;
    position: relative;
    z-index: 1;
  }
  .funnel-strip .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
  }
  .funnel-strip .step .circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-2);
    background: var(--surface-2);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .funnel-strip .step.active .circle {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255,85,0,0.5);
  }
  .funnel-strip .step label {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color .3s ease;
  }
  .funnel-strip .step.active label {
    color: var(--orange);
    font-weight: 600;
  }
  .funnel-strip .line {
    flex: 1;
    height: 2px;
    background: var(--border-2);
    margin-top: 11px;
  }

  /* funnel rotating cards */
  .funnel-cards {
    margin-top: 20px;
    position: relative;
    height: 76px;
    z-index: 1;
  }
  .funnel-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--orange);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
  }
  .funnel-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .funnel-card .fc-icon {
    width: 34px; height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(255,85,0,0.12);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
  }
  .funnel-card .fc-body { display:flex; flex-direction:column; gap:2px; }
  .funnel-card .fc-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
  }
  .funnel-card .fc-text {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.4;
  }


  /* right form panel */
  .auth-panel {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
  }
  .auth-card {
    width: 100%;
    max-width: 380px;
  }
  .auth-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .auth-card .sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
  }

  /* divider */
  .or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .or-divider::before, .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* form fields */
  .field { margin-bottom: 14px; }
  .field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  .field input, .field select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .field input:focus, .field select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,85,0,0.12);
  }
  .field select option { background: var(--surface-2); }

  /* buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
  }
  .btn:hover {
    background: var(--orange-hi);
    box-shadow: 0 0 24px rgba(255,85,0,0.3);
  }
  .btn:active { transform: scale(0.985); }
  .btn.secondary {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border-2);
    font-family: var(--font-body);
    font-weight: 500;
  }
  .btn.secondary:hover {
    border-color: var(--orange);
    color: var(--text);
    box-shadow: none;
  }
  .btn.danger { background: var(--red); }
  .btn.small { width: auto; padding: 8px 14px; font-size: 13px; }
  .btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .auth-toggle {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }
  .auth-toggle button {
    background: none;
    border: none;
    color: var(--orange);
    font-weight: 600;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
  }

  .auth-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    font-size: 13px;
    padding: 10px 13px;
    border-radius: var(--radius);
    margin-bottom: 14px;
  }

  /* ────────────────────────────────────────
     APP SHELL
  ──────────────────────────────────────── */
  #app-screen {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }

  /* sidebar */
  .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  .sidebar .brand-mark { margin-bottom: 36px; padding-left: 8px; }

  .nav-group { flex: 1; }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background .12s, color .12s;
  }
  .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.75; }
  .nav-item:hover { background: var(--surface-2); color: var(--text-2); }
  .nav-item.active {
    background: var(--orange-lo);
    color: var(--orange);
    font-weight: 600;
  }
  .nav-item.active svg { stroke: var(--orange); }

  .sidebar-foot {
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    margin-bottom: 10px;
  }
  .user-chip .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }
  .user-chip .meta { overflow: hidden; }
  .user-chip .name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-chip .role {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* main content */
  .main {
    padding: 40px 48px;
    max-width: 1300px;
  }
  .page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
  }
  .page-head h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
  }
  .page-head .sub { color: var(--muted); font-size: 13.5px; }

  /* stat cards */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }
  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: border-color .15s;
  }
  .stat-card:hover { border-color: var(--border-2); }
  .stat-card .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
  }
  .stat-card .value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .stat-card .value.orange {
    color: var(--orange);
    text-shadow: 0 0 30px rgba(255,85,0,0.35);
  }
  .stat-card .value.green { color: var(--green); }

  /* badge tiers */
  .tier-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
  }
  .tier {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: opacity .2s, border-color .2s;
  }
  .tier.unlocked {
    opacity: 1;
    border-color: rgba(255,85,0,0.35);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255,85,0,0.04) 100%);
  }
  .tier .ring {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tier.unlocked .ring {
    border-color: var(--orange);
    background: rgba(255,85,0,0.1);
    box-shadow: 0 0 12px rgba(255,85,0,0.2);
  }
  .tier .ring svg { width: 16px; height: 16px; }
  .tier .tname { font-weight: 700; font-size: 13px; margin-bottom: 1px; }
  .tier .treq { font-size: 11px; color: var(--muted); }

  /* generic card */
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 24px;
  }
  .card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: var(--text-2);
  }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

  /* referral cards */
  .ref-list { display: flex; flex-direction: column; gap: 12px; }
  .ref-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: border-color .15s;
  }
  .ref-card:hover { border-color: var(--border-2); }

  .ref-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .ref-top .company {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .ref-top .meta {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .ref-top .meta span::after { content: "·"; margin: 0 8px; color: var(--muted-2); }
  .ref-top .meta span:last-child::after { display: none; }

  .ref-value { text-align: right; flex-shrink: 0; padding-left: 16px; }
  .ref-value .amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--orange);
  }
  .ref-value .label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  /* status pills */
  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--muted);
  }
  .status-pill.s-novo { color: var(--muted); border-color: var(--border); }
  .status-pill.s-negociando { color: var(--yellow); border-color: rgba(234,179,8,0.35); background: rgba(234,179,8,0.07); }
  .status-pill.s-fechado   { color: var(--green);  border-color: rgba(34,197,94,0.35);  background: rgba(34,197,94,0.07); }
  .status-pill.s-ativo     { color: var(--orange); border-color: rgba(255,85,0,0.35);   background: rgba(255,85,0,0.07); }
  .status-pill.s-pago      { color: var(--green);  border-color: rgba(34,197,94,0.45);  background: rgba(34,197,94,0.1); }
  .status-pill.s-perdido   { color: var(--red);    border-color: rgba(239,68,68,0.35);  background: rgba(239,68,68,0.07); }

  /* stepper */
  .stepper {
    display: flex;
    align-items: flex-start;
    margin: 18px 0 8px;
  }
  .stepper .pt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
  }
  .stepper .pt .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--border-2);
    z-index: 2;
    transition: background .2s, border-color .2s, box-shadow .2s;
  }
  .stepper .pt.done .dot {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 8px rgba(255,85,0,0.45);
  }
  .stepper .pt.lost .dot {
    background: var(--red);
    border-color: var(--red);
  }
  .stepper .pt label {
    font-size: 10.5px;
    color: var(--muted-2);
    text-align: center;
    line-height: 1.3;
  }
  .stepper .pt.done label { color: var(--text-2); }
  .stepper .pt .step-date {
    font-size: 9.5px;
    color: var(--orange);
    text-align: center;
    margin-top: 1px;
    line-height: 1.2;
    min-height: 12px;
  }
  .stepper .pt:not(.done) .step-date { color: transparent; }
  /* faixa de bônus acima do stepper */
  .stepper-bonuses {
    display: flex;
    margin-bottom: 4px;
  }
  .step-bonus-cell {
    flex: 1;
    text-align: center;
    min-height: 16px;
  }
  .step-bonus {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-2);
    letter-spacing: 0.01em;
    transition: color .3s;
  }
  .step-bonus.earned { color: var(--green); }
  .stepper .seg {
    position: absolute;
    top: 5px;
    left: 0; right: 0;
    height: 2px;
    background: var(--border-2);
    z-index: 1;
  }
  .stepper .pt.done .seg { background: var(--orange); }
  .stepper .pt:first-child .seg { left: 50%; }
  .stepper .pt:last-child .seg  { right: 50%; }

  .ref-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .ref-foot .partner-tag {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ref-foot .partner-tag b { color: var(--text-2); font-weight: 600; }
  .ref-actions { display: flex; gap: 8px; }

  .select-status {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .15s;
  }
  .select-status:hover { border-color: var(--orange); }

  /* empty state */
  .empty-state {
    text-align: center;
    padding: 72px 20px;
    color: var(--muted);
  }
  .empty-state svg {
    width: 40px; height: 40px;
    margin-bottom: 14px;
    opacity: 0.35;
    stroke: var(--muted);
  }
  .empty-state h4 {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 6px;
  }

  /* toast */
  .toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--green);
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    max-width: 300px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    animation: slideIn .2s ease;
    z-index: 999;
    color: var(--text-2);
  }
  /* ── CARDS DE EMPRESA ── */
  .empresa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
  }
  .empresa-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 22px;
    transition: border-color .15s; display: flex; flex-direction: column; gap: 14px;
  }
  .empresa-card:hover { border-color: var(--border-2); }
  .empresa-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .empresa-top .ename { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 3px; }
  .empresa-top .emeta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .empresa-segment {
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; flex-shrink: 0;
  }
  .empresa-fields { display: flex; flex-direction: column; gap: 9px; }
  .empresa-field { display: flex; align-items: center; gap: 9px; }
  .empresa-field svg { width: 14px; height: 14px; flex-shrink: 0; }
  .empresa-field .ef-label { font-size: 11px; color: var(--muted); min-width: 76px; text-transform: uppercase; letter-spacing: 0.04em; }
  .empresa-field .ef-value { font-size: 13px; color: var(--text-2); }
  .empresa-obs {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 13px;
    font-size: 12.5px; color: var(--muted); font-style: italic; line-height: 1.5;
  }
  .empresa-obs strong { color: var(--text-2); font-style: normal; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
  .empresa-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border);
    flex-wrap: wrap; gap: 8px;
  }
  .empresa-footer .indicated-by { font-size: 12px; color: var(--muted); }
  .empresa-footer .indicated-by b { color: var(--text-2); }

  /* ── CARDS DE PARCEIRO ── */
  .partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
  }
  .partner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: border-color .15s;
  }
  .partner-card:hover { border-color: var(--border-2); }
  .partner-card-top {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
  }
  .partner-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--orange-lo); border: 1.5px solid rgba(255,85,0,0.3);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 17px;
    color: var(--orange); flex-shrink: 0;
  }
  .partner-info .pname { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
  .partner-info .pemail { font-size: 12px; color: var(--muted); }
  .partner-stats {
    display: flex; gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 14px;
  }
  .partner-stat {
    flex: 1; text-align: center;
    padding: 0 8px;
    border-right: 1px solid var(--border);
  }
  .partner-stat:last-child { border-right: none; }
  .partner-stat .ps-val {
    font-family: var(--font-display); font-weight: 700;
    font-size: 20px; color: var(--text); line-height: 1;
    margin-bottom: 4px;
  }
  .partner-stat .ps-val.orange { color: var(--orange); }
  .partner-stat .ps-val.green { color: var(--green); }
  .partner-stat .ps-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

  /* ── BOTÃO WHATSAPP ── */
  .wa-btn {
    display: inline-flex; align-items: center; gap: 7px;
    width: 100%;
    padding: 9px 14px; border-radius: 8px;
    border: 1px solid rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.07);
    color: #22c55e; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .15s;
    justify-content: center;
  }
  .wa-btn:hover { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.5); }
  .wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* ── BOTÃO VER DETALHES ── */
  .btn-details {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 7px;
    background: transparent; border: 1px solid var(--border-2);
    color: var(--muted); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all .15s; font-family: var(--font-body);
  }
  .btn-details:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-lo); }
  .btn-details[data-action="delete-referral"]:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }
  .btn-details svg { width: 13px; height: 13px; flex-shrink: 0; }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 8000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
  }
  .modal {
    background: var(--surface); border: 1px solid var(--border-2);
    border-radius: var(--radius-lg); width: 100%; max-width: 520px;
    max-height: 88vh; overflow-y: auto;
    animation: slideModal .2s ease;
  }
  @keyframes slideModal { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:translateY(0) } }
  .modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  }
  .modal-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing:-0.01em; }
  .modal-close {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .15s;
  }
  .modal-close:hover { border-color: var(--red); color: var(--red); }
  .modal-body { padding: 6px 26px 20px; }
  .detail-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .detail-row:last-child { border-bottom: none; }
  .detail-label { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
  .detail-value { font-size: 14px; color: var(--text-2); }
  .detail-value.highlight { color: var(--text); font-weight: 700; font-size: 16px; }
  .wa-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: #22c55e; font-size: 13px; font-weight: 600;
    text-decoration: none; padding: 6px 12px;
    border-radius: 8px; border: 1px solid rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.07); transition: all .15s; margin-top: 4px;
  }
  .wa-link:hover { background: rgba(34,197,94,0.14); }
  .email-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--orange); font-size: 13px; font-weight: 600;
    text-decoration: none; padding: 6px 12px;
    border-radius: 8px; border: 1px solid rgba(255,85,0,0.3);
    background: var(--orange-lo); transition: all .15s; margin-top: 6px;
  }
  .email-link:hover { background: rgba(255,85,0,0.16); }
  .email-link svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* ── AÇÕES DO CARD DE PARCEIRO ── */
  .partner-actions { display: flex; gap: 8px; align-items: stretch; }
  .partner-email-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; flex-shrink: 0; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text-2); text-decoration: none; transition: all .15s;
  }
  .partner-email-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-lo); }
  .partner-email-btn[data-action="delete-partner-account"]:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }
  .partner-email-btn svg { width: 16px; height: 16px; }
  .modal-foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 14px 26px; border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  /* ────────────────────────────────────────
     ADMIN CHARTS
  ──────────────────────────────────────── */
  .charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
  }
  .chart-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 4px;
  }
  .chart-card .chart-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
  }
  /* bar chart */
  .bar-list { display: flex; flex-direction: column; gap: 10px; }
  .bar-item { display: flex; flex-direction: column; gap: 5px; }
  .bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .bar-meta .bname {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  .bar-meta .bval {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
    margin-left: 8px;
  }
  .bar-meta .bval span { color: var(--text); }
  .bar-track {
    height: 6px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--orange);
    transition: width .5s cubic-bezier(.4,0,.2,1);
  }
  .bar-fill.rank-2 { background: #888; }
  .bar-fill.rank-3 { background: var(--muted-2); }
  /* donut chart */
  .donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .donut-wrap svg { flex-shrink: 0; }
  .donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
  .chart-commission{
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .chart-commission .label{ font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .chart-commission .value{ font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--orange); }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
  }
  .legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .legend-name { flex: 1; color: var(--muted); }
  .legend-val { font-weight: 700; color: var(--text-2); font-size: 13px; }
  /* recent activity list */
  .activity-list { display: flex; flex-direction: column; }
  .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .activity-item:last-child { border-bottom: none; }
  .activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
    margin-top: 5px;
    flex-shrink: 0;
  }
  .activity-dot.green { background: var(--green); }
  .activity-dot.yellow { background: var(--yellow); }
  .activity-dot.red { background: var(--red); }
  .activity-body { flex: 1; }
  .activity-body .atitle { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 1px; }
  .activity-body .asub { font-size: 12px; color: var(--muted); }
  .activity-date { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

  @keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,85,0,0.25), 0 0 40px rgba(255,85,0,0.3); transform: scale(1); }
    50%       { box-shadow: 0 0 0 8px rgba(255,85,0,0.15), 0 0 65px rgba(255,85,0,0.5); transform: scale(1.03); }
  }
  .splash-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #FF5500;
    animation: splashBounce 1.2s ease-in-out infinite;
  }
  @keyframes splashBounce {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40%           { opacity: 1;    transform: scale(1.15); }
  }
  #splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(circle at 50% 30%, #141414 0%, #080808 70%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0;
    transition: opacity .5s ease, visibility .5s ease;
  }
  #splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
/* ══════════════════════════════════════════════
   RESPONSIVO MOBILE — breakpoint 768px
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── AUTH SCREEN ── */
  #auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none; /* esconde o painel visual no mobile */
  }
  .auth-panel {
    min-height: 100vh;
    padding: 32px 20px;
    align-items: flex-start;
    padding-top: 48px;
  }
  .auth-card {
    max-width: 100%;
  }

  /* ── APP SHELL ── */
  #app-screen {
    grid-template-columns: 1fr;
    padding-bottom: 70px; /* espaço pro bottom nav */
  }

  /* ── SIDEBAR → BOTTOM NAV ── */
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 500;
    background: var(--surface);
  }
  .sidebar .brand-mark { display: none; }
  .nav-group {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 8px;
    gap: 2px;
  }
  .nav-group::-webkit-scrollbar { display: none; }
  .nav-item {
    flex-direction: column;
    gap: 3px;
    padding: 7px 10px;
    font-size: 10px;
    min-width: 60px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-item svg { width: 20px; height: 20px; }
  .sidebar-foot { display: none; }

  /* ── HEADER MOBILE (nome + sair) ── */
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .mobile-header .mh-brand {
    display: flex; align-items: center; gap: 8px;
  }
  .mobile-header .mh-brand img {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  }
  .mobile-header .mh-brand span {
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
  }
  .mobile-header .mh-right {
    display: flex; align-items: center; gap: 10px;
  }
  .mobile-header .mh-user {
    font-size: 12px; color: var(--muted);
  }
  .mobile-header .mh-logout {
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); font-size: 11px; padding: 5px 10px;
    border-radius: 7px; cursor: pointer; font-family: var(--font-body);
  }

  /* ── MAIN ── */
  .main {
    padding: 16px 16px 24px;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .page-head h1 { font-size: 22px; }
  .page-head .sub { font-size: 13px; }
  .page-head > div:last-child { width: 100%; }
  .page-head .btn { width: 100%; }

  /* ── STATS ── */
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat-card { padding: 14px 16px; }
  .stat-card .value { font-size: 26px; }

  /* ── TIER STRIP ── */
  .tier-strip { flex-direction: column; gap: 8px; }
  .tier { padding: 12px 14px; }

  /* ── CARDS DE INDICAÇÃO ── */
  .ref-card { padding: 16px; }
  .ref-top { flex-direction: column; gap: 10px; }
  .ref-value { text-align: left; padding-left: 0; }
  .ref-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ref-actions { width: 100%; }
  .ref-actions .btn-details { flex: 1; justify-content: center; }
  .select-status { width: 100%; }
  .stepper .pt label { font-size: 9px; }
  .stepper .pt .step-date { font-size: 8.5px; }

  /* ── GRIDS GENÉRICOS ── */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .empresa-grid { grid-template-columns: 1fr; }

  /* ── CARDS DE PARCEIRO ── */
  .partner-stats { gap: 0; }
  .partner-stat { padding: 0 6px; }
  .partner-stat .ps-val { font-size: 18px; }

  /* ── CHARTS ── */
  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .chart-card { padding: 16px; }

  /* ── MODAL ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    width: 100%;
  }
  .modal-head { padding: 18px 20px 14px; }
  .modal-body { padding: 0 20px 16px; }
  .modal-foot { padding: 12px 20px; }

  /* ── FORMULÁRIO NOVA INDICAÇÃO ── */
  .card { padding: 16px; }
  .card h3 { font-size: 15px; }

  /* ── BUSCA EMPRESAS ── */
  #empresas-search,
  #empresas-filter {
    width: 100% !important;
    box-sizing: border-box;
  }
  .page-head > div:last-child {
    display: flex; flex-direction: column; gap: 8px; width: 100%;
  }

  /* ── EMPRESA CARD ── */
  .empresa-footer { flex-direction: column; gap: 8px; }
  .wa-btn { width: 100%; justify-content: center; }

  /* ── ATIVIDADE ── */
  .activity-item { gap: 10px; }
  .activity-date { font-size: 10px; }

}

/* Oculta mobile-header no desktop */
.mobile-header { display: none; }

/* ── NOTIFICAÇÕES ── */
.notif-wrap{ position:fixed; top:18px; right:18px; z-index:1200; }
.notif-btn{
  width:42px; height:42px; border-radius:12px;
  background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; position:relative; box-shadow:0 2px 10px rgba(0,0,0,0.15);
}
.notif-btn svg{ width:20px; height:20px; stroke:var(--text-2); }
.notif-badge{
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px;
  padding:0 4px; border-radius:9px; background:var(--orange); color:#fff;
  font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.notif-badge.hidden{ display:none; }
.notif-panel{
  position:absolute; top:52px; right:0; width:340px; max-height:440px;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 10px 40px rgba(0,0,0,0.35); overflow:hidden; display:none;
  flex-direction:column;
}
.notif-panel.open{ display:flex; }
.notif-panel-head{
  padding:14px 16px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--font-display); font-weight:700; font-size:14px;
}
.notif-panel-head button{
  background:none; border:none; color:var(--muted); font-size:11.5px; cursor:pointer;
  font-family:var(--font-body);
}
.notif-list{ overflow-y:auto; flex:1; }
.notif-item{
  padding:12px 16px; border-bottom:1px solid var(--border);
  display:flex; gap:10px; align-items:flex-start;
}
.notif-item:last-child{ border-bottom:none; }
.notif-item.unread{ background:rgba(255,85,0,0.06); }
.notif-delete-btn{
  flex-shrink:0; width:26px; height:26px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  background:none; border:none; color:var(--muted); cursor:pointer;
  opacity:0; transition:opacity .15s ease, color .15s ease, background .15s ease;
}
.notif-item:hover .notif-delete-btn{ opacity:1; }
.notif-delete-btn:hover{ color:var(--red); background:rgba(239,68,68,0.1); }
.notif-delete-btn svg{ width:14px; height:14px; }
.notif-panel-foot{
  border-top:1px solid var(--border); padding:10px 16px;
  display:flex; justify-content:center;
}
.notif-panel-foot button{
  display:flex; align-items:center; gap:6px;
  background:none; border:none; color:var(--muted); font-size:12px; font-weight:600;
  cursor:pointer; font-family:var(--font-body); padding:4px 8px; border-radius:6px;
  transition:color .15s ease;
}
.notif-panel-foot button svg{ width:13px; height:13px; }
.notif-panel-foot button:hover{ color:var(--red); }
.notif-icon{
  width:32px; height:32px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-lo); color:var(--orange);
}
.notif-icon svg{ width:17px; height:17px; }
.notif-item:not(.unread) .notif-icon{ background:var(--surface-2); color:var(--muted); }
.notif-body{ flex:1; }
.notif-text{ font-size:13px; line-height:1.4; color:var(--text-2); }
.notif-text b{ color:var(--text-1); }
.notif-value{ color:var(--green); font-weight:700; }
.notif-time{ font-size:11px; color:var(--muted); margin-top:4px; }
.notif-empty{ padding:30px 16px; text-align:center; color:var(--muted); font-size:13px; }
@media (max-width: 720px){
  .notif-wrap{ position:static; }
  .notif-panel{ position:fixed; top:64px; right:10px; left:10px; width:auto; }
  .notif-delete-btn{ opacity:1; }
}

/* ── RESGATE DE SALDO ── */
.ref-value{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.btn-resgatar{
  display:flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:8px; border:none; cursor:pointer;
  font-family:var(--font-body); font-size:12px; font-weight:700;
  background:var(--green); color:#08130c;
  transition:filter .15s ease, transform .1s ease;
}
.btn-resgatar:hover{ filter:brightness(1.08); }
.btn-resgatar:active{ transform:scale(0.97); }
.btn-resgatar svg{ width:14px; height:14px; }
.btn-resgatar.disabled{
  background:var(--surface-2); color:var(--muted); cursor:not-allowed; filter:none;
}
.btn-resgatar.pending{ background:var(--orange-lo); color:var(--orange-hi); cursor:default; }

.withdraw-modal .modal{ max-width:440px; }
.withdraw-summary{
  background:var(--surface-2); border:1px solid var(--border); border-radius:12px;
  padding:14px 16px; margin-bottom:18px;
}
.withdraw-summary .wcompany{ font-family:var(--font-display); font-weight:700; font-size:15px; }
.withdraw-summary .wamount{ color:var(--green); font-size:22px; font-weight:700; font-family:var(--font-display); margin-top:4px; }
.withdraw-options{ display:flex; flex-direction:column; gap:10px; }
.withdraw-opt{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border-radius:12px; border:1px solid var(--border);
  background:var(--surface-2); cursor:pointer; text-align:left;
  font-family:var(--font-body); color:var(--text-1); width:100%;
  transition:border-color .15s ease, background .15s ease;
}
.withdraw-opt:hover{ border-color:var(--orange); background:var(--orange-lo); }
.withdraw-opt .wicon{
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-lo); color:var(--orange);
}
.withdraw-opt .wicon svg{ width:19px; height:19px; }
.withdraw-opt .wtext b{ display:block; font-size:14px; }
.withdraw-opt .wtext span{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.withdraw-success{ text-align:center; padding:10px 4px 4px; }
.withdraw-success .wcheck{
  width:56px; height:56px; border-radius:50%; margin:0 auto 16px;
  background:var(--orange-lo); color:var(--green);
  display:flex; align-items:center; justify-content:center;
}
.withdraw-success .wcheck svg{ width:28px; height:28px; }
.withdraw-success h3{ font-family:var(--font-display); font-size:17px; margin-bottom:8px; }
.withdraw-success p{ font-size:13.5px; color:var(--text-2); line-height:1.5; }

/* ── BADGE NA SIDEBAR (solicitações pendentes) ── */
.nav-badge{
  margin-left:auto; background:var(--orange); color:#fff;
  font-size:10.5px; font-weight:700; min-width:18px; height:18px;
  border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 5px;
}

/* ── CARDS DE SOLICITAÇÃO DE RESGATE (admin) ── */
/* ── LIXEIRA ── */
/* ── LOG DE ATIVIDADES ── */
.log-item{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:13px 16px; margin-bottom:8px;
}
.log-icon{
  width:32px; height:32px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); color:var(--muted);
}
.log-icon svg{ width:16px; height:16px; }
.log-icon.danger{ background:rgba(239,68,68,0.1); color:var(--red); }
.log-icon.success{ background:rgba(34,197,94,0.1); color:var(--green); }
.log-icon.warn{ background:var(--orange-lo); color:var(--orange-hi); }
.log-body{ flex:1; }
.log-text{ font-size:13.5px; color:var(--text-1); line-height:1.4; }
.log-text b{ color:var(--text-1); }
.log-meta{ font-size:11.5px; color:var(--muted); margin-top:4px; }

.lixeira-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:16px 18px; margin-bottom:12px;
  display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between;
}
.lixeira-info{ flex:1; min-width:220px; }
.lixeira-info .lcompany{ font-family:var(--font-display); font-weight:700; font-size:15px; }
.lixeira-info .lpartner{ font-size:12.5px; color:var(--text-2); margin-top:2px; }
.lixeira-countdown{
  font-size:12px; font-weight:600; padding:5px 12px; border-radius:20px;
  background:rgba(239,68,68,0.1); color:var(--red);
}
.lixeira-countdown.warn{ background:var(--orange-lo); color:var(--orange-hi); }
.lixeira-actions{ display:flex; gap:8px; }
.btn-lixeira{
  padding:7px 14px; border-radius:8px; border:none; cursor:pointer;
  font-family:var(--font-body); font-size:12px; font-weight:700;
}
.btn-lixeira.restore{ background:var(--green); color:#08130c; }
.btn-lixeira.forever{ background:transparent; border:1px solid var(--border); color:var(--muted); }
.btn-lixeira.restore:hover{ filter:brightness(1.08); }
.btn-lixeira.forever:hover{ border-color:var(--red); color:var(--red); }

.solic-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:16px 18px; margin-bottom:12px;
  display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between;
}
.solic-info{ flex:1; min-width:240px; }
.solic-info .scompany{ font-family:var(--font-display); font-weight:700; font-size:15px; }
.solic-info .spartner{ font-size:12.5px; color:var(--text-2); margin-top:2px; }
.solic-info .smeta{ font-size:11.5px; color:var(--muted); margin-top:6px; }
.solic-method{
  display:flex; align-items:center; gap:8px; font-size:12.5px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:8px;
  padding:6px 12px; color:var(--text-2);
}
.solic-method svg{ width:15px; height:15px; color:var(--orange); }
.solic-amount{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--green); }
.solic-status{
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  padding:4px 10px; border-radius:20px;
}
.solic-status.pending{ background:var(--orange-lo); color:var(--orange-hi); }
.solic-status.paid{ background:rgba(34,197,94,0.12); color:var(--green); }
.solic-status.rejected{ background:rgba(239,68,68,0.12); color:var(--red); }
.solic-actions{ display:flex; gap:8px; }
.btn-solic{
  padding:7px 14px; border-radius:8px; border:none; cursor:pointer;
  font-family:var(--font-body); font-size:12px; font-weight:700;
}
.btn-solic.pay{ background:var(--green); color:#08130c; }
.btn-solic.reject{ background:transparent; border:1px solid var(--border); color:var(--muted); }
.btn-solic.pay:hover{ filter:brightness(1.08); }
.btn-solic.reject:hover{ border-color:var(--red); color:var(--red); }
.solic-contacts{ display:flex; gap:8px; }
.solic-contact-btn{
  width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text-2); text-decoration:none;
  transition:border-color .15s ease, color .15s ease;
}
.solic-contact-btn svg{ width:16px; height:16px; }
.solic-contact-btn.wa{ color:#22c55e; }
.solic-contact-btn:hover{ border-color:var(--orange); color:var(--orange); }

/* ── ETAPA DE CONTATO NO MODAL DE RESGATE ── */
/* ── CADASTRAR INDICAÇÃO (admin) ── */
.ci-info{
  display:flex; gap:10px; align-items:flex-start;
  background:var(--surface-2); border:1px solid var(--border); border-radius:12px;
  padding:12px 14px; font-size:12.5px; line-height:1.5; color:var(--text-2);
}
.ci-info svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; color:var(--orange); }
.manual-badge{
  display:inline-flex; align-items:center; gap:5px;
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  background:var(--orange-lo); color:var(--orange-hi);
  border-radius:6px; padding:3px 8px; margin-top:6px;
}
.manual-badge svg{ width:11px; height:11px; }
.manual-partners-empty{ color:var(--muted); padding:40px; text-align:center; font-size:14px; }
.partner-manage-actions{ display:flex; gap:8px; margin-top:8px; }
.btn-manage{
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
  padding:7px 10px; border-radius:8px; border:1px solid var(--border);
  background:var(--surface-2); color:var(--muted); font-size:12px; font-weight:600;
  cursor:pointer; font-family:var(--font-body); transition:all .15s;
}
.btn-manage svg{ width:13px; height:13px; }
.btn-manage.edit:hover{ border-color:var(--orange); color:var(--orange); background:var(--orange-lo); }
.btn-manage.delete:hover{ border-color:var(--red); color:var(--red); background:rgba(239,68,68,0.08); }

.withdraw-warn{
  display:flex; gap:10px; align-items:flex-start;
  background:var(--orange-lo); border:1px solid rgba(255,85,0,0.3); border-radius:12px;
  padding:12px 14px; margin-bottom:18px; font-size:12.5px; line-height:1.5; color:var(--orange-hi);
}
.withdraw-warn svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.withdraw-field{ margin-bottom:14px; }
.withdraw-field label{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-2); margin-bottom:6px; font-weight:600; }
.withdraw-field label .req{
  color:var(--orange); font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:.03em;
  background:var(--orange-lo); border-radius:5px; padding:2px 7px; line-height:1.5;
}
.withdraw-field label .opt{
  color:var(--muted); font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.03em;
  background:var(--surface-2); border:1px solid var(--border); border-radius:5px; padding:2px 7px; line-height:1.5;
}
.withdraw-field input{
  width:100%; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  padding:11px 14px; border-radius:10px; font-size:14px; font-family:var(--font-body); outline:none;
}
.withdraw-field input:focus{ border-color:var(--orange); }
.withdraw-err{ font-size:12.5px; color:var(--red); margin:-6px 0 14px; }
.withdraw-back-btn{
  display:block; width:100%; text-align:center; background:none; border:none;
  color:var(--muted); font-size:12.5px; margin-top:14px; cursor:pointer; font-family:var(--font-body);
}
.withdraw-back-btn:hover{ color:var(--text-2); }

/* ── MEUS DADOS ── */
.dados-card{
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:26px 28px; max-width:560px;
}
.dados-section-title{
  font-family:var(--font-display); font-size:13px; font-weight:700;
  color:var(--muted); text-transform:uppercase; letter-spacing:.05em;
  margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid var(--border);
}
.dados-card .field label{ display:flex; align-items:center; gap:8px; }
.dados-card .field label .req{
  color:var(--orange); font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:.03em;
  background:var(--orange-lo); border-radius:5px; padding:2px 7px; line-height:1.5;
}
.dados-card .field label .opt{
  color:var(--muted); font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.03em;
  background:var(--surface-2); border:1px solid var(--border); border-radius:5px; padding:2px 7px; line-height:1.5;
}
.dados-readonly{
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px;
  padding:11px 14px; font-size:14px; color:var(--muted);
}
.dados-icon-link{
  width:42px; height:42px; flex-shrink:0; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text-2); text-decoration:none;
  transition:border-color .15s ease, color .15s ease;
}
.dados-icon-link svg{ width:18px; height:18px; }
.dados-icon-link.wa{ color:#22c55e; }
.dados-icon-link:hover{ border-color:var(--orange); color:var(--orange); }
#md-save-btn{ margin-top:8px; }
.dados-saved-msg{
  color:var(--green); font-size:12.5px; font-weight:600; margin-top:10px;
  display:flex; align-items:center; gap:6px;
}
