.rs-calc { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.rs-calc h2 { color: #fff; font-weight: 700; margin: 0 0 16px; font-size: 20px; }
.rs-line { display: grid; grid-template-columns: 1fr 1fr 110px 160px auto; gap: 10px; align-items: center; padding: 14px; background: #0f0f12; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; margin-bottom: 10px; }
.rs-line .rs-idx { position: absolute; top: 6px; left: 10px; color: #777; font-size: 11px; font-weight: 600; }
.rs-line { position: relative; padding-top: 22px; }
.rs-line select, .rs-line input[type=number] { background: #17171a; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 9px 10px; font-size: 13px; width: 100%; }
.rs-line .rs-sub { color: #ccc; font-size: 13px; text-align: right; font-weight: 600; white-space: nowrap; }
.rs-line .rs-sub b { color: #2cf5b3; }
.rs-line .rs-remove { background: transparent; border: 1px solid rgba(255,255,255,.1); color: #999; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 14px; }
.rs-line .rs-remove:hover { color: #ef4444; border-color: #ef4444; }
.rs-add { width: 100%; background: transparent; border: 1px dashed rgba(255,255,255,.2); color: #ccc; border-radius: 10px; padding: 12px; cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 2px; }
.rs-add:hover { background: rgba(44,245,179,.08); border-color: rgba(44,245,179,.4); color: #2cf5b3; }
.rs-order { margin-top: 24px; background: #0a0a0d; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px; }
.rs-order h3 { color: #fff; font-weight: 800; margin: 0 0 16px; font-size: 18px; letter-spacing: .5px; }
.rs-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.rs-tier { background: #17171a; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px; text-align: center; transition: all .2s; }
.rs-tier.active { background: rgba(44,245,179,.12); border-color: rgba(44,245,179,.5); }
.rs-tier .rs-tier-th { font-size: 11px; color: #888; font-weight: 600; margin-bottom: 4px; }
.rs-tier .rs-tier-off { font-size: 22px; font-weight: 800; color: #fff; }
.rs-tier.active .rs-tier-off { color: #2cf5b3; }
.rs-items { border-top: 1px dashed rgba(255,255,255,.1); padding-top: 14px; }
.rs-item-row { display: flex; justify-content: space-between; padding: 6px 0; color: #ccc; font-size: 14px; }
.rs-item-row .rs-item-right { color: #fff; }
.rs-totals { border-top: 1px solid rgba(255,255,255,.1); margin-top: 10px; padding-top: 14px; }
.rs-sub-line { display: flex; justify-content: space-between; color: #999; font-size: 13px; padding: 4px 0; }
.rs-sub-line.strike span:last-child { text-decoration: line-through; }
.rs-discount-line { display: flex; justify-content: space-between; color: #2cf5b3; font-size: 13px; padding: 4px 0; font-weight: 600; }
.rs-grand { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.rs-grand-label { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.rs-grand-val { color: #2cf5b3; font-size: 32px; font-weight: 800; }
.rs-cta { display: block; width: 100%; text-align: center; background: #2cf5b3; color: #0a0a0d; padding: 14px; border-radius: 10px; font-weight: 700; text-decoration: none; margin-top: 18px; font-size: 15px; border: none; cursor: pointer; }
.rs-cta:hover { filter: brightness(1.1); }
.rs-min-note { text-align: center; color: #e67e22; font-size: 12px; margin-top: 10px; }
@media (max-width: 760px) {
  .rs-line { grid-template-columns: 1fr; }
  .rs-line .rs-sub { text-align: left; }
  .rs-tiers { grid-template-columns: repeat(2, 1fr); }
}

/* --- Reseller checkout form (added for online deposit) --- */
.rs-field { margin: 12px 0; }
.rs-field label { display: block; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.rs-field .rs-req { color: #e74c3c; }
.rs-field input, .rs-field select { width: 100%; background: #17171a; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 10px 12px; font-size: 14px; box-sizing: border-box; }
.rs-field input:focus, .rs-field select:focus { outline: none; border-color: rgba(44,245,179,.4); }
.rs-notice { color: rgba(255,255,255,.6); font-size: 13px; margin: 10px 0; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.rs-notice b { color: #fff; }
.rs-notice.rs-notice-warn { color: #f1c40f; border-color: rgba(241,196,15,.2); background: rgba(241,196,15,.05); }
.rs-notice a { color: #2cf5b3; }
.rs-cta[disabled] { opacity: .55; cursor: not-allowed; }

/* ========================================================================
   v2 — balance pill, mode toggle, deposit modal, inline key result
   ======================================================================== */

/* Head row with H2 + balance pill */
.rs-calc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.rs-calc-head h2 { margin: 0; }

.rs-balance-pill {
   display: inline-flex; align-items: center; gap: 10px;
   background: rgba(44,245,179,.08);
   border: 1px solid rgba(44,245,179,.3);
   color: #d9fff2;
   border-radius: 999px;
   padding: 8px 10px 8px 14px;
   font-size: 13px;
}
.rs-balance-dot { width: 8px; height: 8px; border-radius: 50%; background: #2cf5b3; box-shadow: 0 0 10px rgba(44,245,179,.6); }
.rs-balance-lbl { color: #9ad0bc; letter-spacing: .3px; font-weight: 500; }
.rs-balance-val { font-weight: 800; color: #2cf5b3; font-size: 14px; }
.rs-balance-deposit {
   background: #2cf5b3; color: #0a0a0d;
   border: none; cursor: pointer;
   font-weight: 700; font-size: 12px;
   padding: 6px 10px; border-radius: 999px;
   margin-left: 2px;
}
.rs-balance-deposit:hover { filter: brightness(1.1); }

/* Compact summary rows (replaces the chunky rs-totals block) */
.rs-order-v2 { padding: 20px 22px 22px; }
.rs-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: #a7a7ad; font-size: 13px; }
.rs-summary-val { color: #ddd; font-weight: 600; }
.rs-summary-val.strike { color: #666; text-decoration: line-through; }
.rs-summary-disc { color: #2cf5b3; }

/* Pay-mode toggle */
.rs-mode-toggle {
   display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
   background: #0f0f12;
   border: 1px solid rgba(255,255,255,.08);
   border-radius: 12px;
   padding: 4px;
   margin: 20px 0 14px;
}
.rs-mode-toggle-3 { grid-template-columns: 1fr 1fr 1fr; }
.rs-mode-hint { color: rgba(255,255,255,.45); font-size: 12px; margin: -4px 0 14px; padding: 0 2px; text-align: center; }
.rs-mode-btn-card.active {
   background: rgba(241,196,15,.1) !important;
   color: #f1c40f !important;
   box-shadow: inset 0 0 0 1px rgba(241,196,15,.3) !important;
}
.rs-mode-btn {
   background: transparent; color: #999;
   border: none; cursor: pointer;
   padding: 10px; border-radius: 8px;
   font-size: 13px; font-weight: 600;
   transition: background .15s, color .15s;
}
.rs-mode-btn:hover { color: #ddd; }
.rs-mode-btn.active {
   background: rgba(44,245,179,.12);
   color: #2cf5b3;
   box-shadow: inset 0 0 0 1px rgba(44,245,179,.3);
}

/* Balance pane widgets */
.rs-balance-state {
   background: rgba(255,255,255,.02);
   border: 1px solid rgba(255,255,255,.06);
   border-radius: 10px;
   padding: 12px 14px;
   margin-bottom: 10px;
}
.rs-balance-state-row { display: flex; justify-content: space-between; padding: 4px 0; color: #a7a7ad; font-size: 13px; }
.rs-balance-state-val { color: #2cf5b3; font-weight: 700; font-size: 14px; }
.rs-balance-state-after { color: #ddd; font-weight: 700; font-size: 14px; }
.rs-balance-state-after.neg { color: #ef4444; }

/* Inline result card after a successful balance payment */
.rs-bal-result {
   margin-top: 16px;
   background: rgba(44,245,179,.05);
   border: 1px solid rgba(44,245,179,.25);
   border-radius: 10px;
   padding: 14px 16px;
}
.rs-bal-result-head {
   display: flex; justify-content: space-between; align-items: center;
   margin-bottom: 10px;
   padding-bottom: 10px;
   border-bottom: 1px dashed rgba(44,245,179,.2);
}
.rs-bal-result-ok { color: #2cf5b3; font-weight: 700; }
.rs-bal-result-cost { color: #ef9b4f; font-weight: 700; }
.rs-bal-keys { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.rs-bal-key-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; }
.rs-bal-key-prod { color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.rs-bal-key { background: #0a0a0d; border: 1px solid rgba(255,255,255,.08); color: #fff; padding: 6px 10px; border-radius: 6px; font-family: monospace; font-size: 12px; }
.rs-bal-key-copy { background: #17171a; border: 1px solid rgba(255,255,255,.1); color: #ccc; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 11px; }
.rs-bal-key-copy:hover { color: #2cf5b3; border-color: rgba(44,245,179,.3); }
.rs-bal-result-foot { color: #a7a7ad; font-size: 12px; }
.rs-bal-result-foot b { color: #fff; }
.rs-bal-result-foot a { color: #2cf5b3; text-decoration: none; }
.rs-bal-empty { color: #ef9b4f; font-size: 12px; text-align: center; padding: 6px; }

/* Deposit modal */
.rs-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.rs-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); cursor: pointer; }
.rs-modal-card {
   position: relative; z-index: 1;
   background: rgba(255,255,255,.05);
   backdrop-filter: blur(14px);
   -webkit-backdrop-filter: blur(14px);
   border: 1px solid rgba(255,255,255,.1);
   border-radius: 16px;
   padding: 24px;
   width: min(420px, calc(100% - 32px));
   box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.rs-modal-x {
   position: absolute; top: 10px; right: 12px;
   background: transparent; border: none; cursor: pointer;
   color: #999; font-size: 22px; line-height: 1;
}
.rs-modal-x:hover { color: #fff; }
.rs-modal-card h3 { margin: 0 0 6px; color: #fff; font-size: 18px; font-weight: 700; }
.rs-modal-sub { color: #999; font-size: 12px; margin: 0 0 14px; }
.rs-modal-note { color: #777; font-size: 11px; margin: 10px 0 14px; }
.rs-modal-note a { color: #2cf5b3; }

@media (max-width: 500px) {
   .rs-bal-key-row { grid-template-columns: 1fr; }
   .rs-bal-key-prod { font-size: 11px; }
   .rs-calc-head { flex-direction: column; align-items: stretch; }
}
