/* =====================================================
   DOPPELG V11 UX upgrades
   Reseller panel + smart modals + centered recharge cards
   ===================================================== */
:root{--v11-green:#25d366;--v11-blue:#29a9eb;--v11-gold:#f1a94e;--v11-red:#ff5964;--v11-line:rgba(255,255,255,.12)}
.v11-centered-stats{max-width:1180px;margin-left:auto;margin-right:auto;justify-content:center}.v11-center-actions,.modal-actions,.support-actions{justify-content:center}.dashboard-grid .panel-card,.two-col .panel-card{align-self:stretch}.v11-reseller-hero{margin-bottom:18px;padding:24px;border:1px solid rgba(241,169,78,.22);border-radius:28px;background:linear-gradient(135deg,rgba(241,169,78,.14),rgba(124,92,255,.09));display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 18px 60px rgba(0,0,0,.20)}.v11-reseller-hero h2{margin:4px 0;font-size:28px}.v11-reseller-hero p{margin:0;color:var(--muted,#aab);max-width:760px}.v11-reseller-grid{align-items:start}.v11-smart-box{margin:14px 0;padding:14px;border:1px solid rgba(241,169,78,.22);border-radius:18px;background:rgba(241,169,78,.08);display:grid;gap:10px}.v11-smart-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.v11-chip-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.v11-chip-row button,.v11-copy-pill{border:1px solid var(--v11-line);background:rgba(255,255,255,.06);color:inherit;border-radius:999px;padding:8px 12px;font-weight:900}.v11-chip-row button:hover,.v11-copy-pill:hover{border-color:rgba(241,169,78,.45);transform:translateY(-1px)}.v11-preview-card{border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:14px;background:rgba(0,0,0,.18);text-align:center}.v11-preview-card span{display:block;color:var(--muted,#aab);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.v11-preview-card b{display:block;font-size:28px;letter-spacing:-.03em;margin-top:4px}.v11-warning-note{font-size:12px;line-height:1.5;color:#ffebb8;background:rgba(255,209,102,.08);border:1px solid rgba(255,209,102,.20);border-radius:14px;padding:10px}.v11-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(10px);z-index:9998;display:none;align-items:center;justify-content:center;padding:18px}.v11-modal-backdrop.open{display:flex}.v11-modal-card{width:min(560px,100%);background:rgba(18,20,31,.98);border:1px solid rgba(241,169,78,.24);box-shadow:0 30px 100px rgba(0,0,0,.55);border-radius:28px;padding:24px;color:#fff;text-align:center}.v11-modal-card h3{margin:0 0 8px;font-size:26px}.v11-modal-card p{color:#c9cad8;line-height:1.55}.v11-modal-number{font-size:34px;font-weight:950;margin:18px 0;padding:16px;border-radius:22px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.055);letter-spacing:.03em}.v11-modal-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.channel-grid,.support-channel-row{justify-content:center}.channel-card,.support-channel{position:relative;overflow:hidden}.channel-card:before,.support-channel:before{content:"";position:absolute;inset:auto -20px -35px auto;width:105px;height:105px;border-radius:50%;background:rgba(255,255,255,.07)}.channel-card[data-channel="whatsapp"],.support-channel[data-support-channel="whatsapp"]{border-color:rgba(37,211,102,.30)!important}.channel-card[data-channel="telegram"],.support-channel[data-support-channel="telegram"]{border-color:rgba(41,169,235,.30)!important}.channel-icon,.support-channel img{width:44px!important;height:44px!important;border-radius:16px;padding:8px;background:rgba(255,255,255,.08);box-shadow:0 12px 34px rgba(0,0,0,.25)}.channel-card[data-channel="whatsapp"] .channel-icon,.support-channel[data-support-channel="whatsapp"] img{background:rgba(37,211,102,.16);box-shadow:0 0 34px rgba(37,211,102,.22)}.channel-card[data-channel="telegram"] .channel-icon,.support-channel[data-support-channel="telegram"] img{background:rgba(41,169,235,.16);box-shadow:0 0 34px rgba(41,169,235,.22)}.billing-command,.billing-main-card,.recharge-flow,.balance-picker,.request-preview{text-align:center}.billing-command{max-width:1120px;margin-left:auto;margin-right:auto}.v9-recharge-card,.balance-card{margin-left:auto;margin-right:auto}.mini-card,.quick-item,.stat{text-align:center;display:grid;place-items:center}.quick-panel,.stats{max-width:1100px;margin-left:auto;margin-right:auto}.caller-layout{max-width:1180px;margin-left:auto;margin-right:auto}.caller-meta{justify-content:center}.phone-row{align-items:end}.reseller-body{min-height:100vh;background:radial-gradient(circle at 15% 12%,rgba(241,169,78,.18),transparent 34%),radial-gradient(circle at 85% 10%,rgba(124,92,255,.20),transparent 30%),#090a12;color:#fff;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.reseller-shell{width:min(1220px,calc(100vw - 32px));margin:0 auto;padding:30px 0}.reseller-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.reseller-brand{display:flex;align-items:center;gap:12px}.reseller-brand img{width:54px;height:54px;border-radius:18px;object-fit:cover}.reseller-card{border:1px solid rgba(255,255,255,.12);background:rgba(18,20,31,.78);border-radius:26px;box-shadow:0 24px 80px rgba(0,0,0,.35);backdrop-filter:blur(18px);padding:22px}.reseller-login{min-height:100vh;display:grid;place-items:center;padding:20px}.reseller-login .reseller-card{width:min(460px,100%)}.reseller-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.reseller-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.reseller-stat{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);border-radius:22px;padding:18px;text-align:center}.reseller-stat span{color:#aeb0c3;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.reseller-stat b{display:block;font-size:30px;margin-top:8px}.reseller-form{display:grid;gap:12px}.reseller-form label{display:grid;gap:7px;color:#cfd0dc;font-weight:800}.reseller-form input,.reseller-form select,.reseller-form textarea{border:1px solid rgba(255,255,255,.13);background:rgba(0,0,0,.22);color:#fff;border-radius:16px;padding:13px 14px;outline:none}.reseller-table{width:100%;border-collapse:collapse;min-width:680px}.reseller-table th,.reseller-table td{padding:13px;border-bottom:1px solid rgba(255,255,255,.10);text-align:left}.reseller-table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#aeb0c3}.reseller-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.10);border-radius:20px}.reseller-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.reseller-btn{border:0;border-radius:16px;padding:12px 16px;font-weight:950;color:#17100b;background:linear-gradient(135deg,#f1a94e,#ffd28a);cursor:pointer}.reseller-btn.secondary{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff}.reseller-muted{color:#aeb0c3}.reseller-hidden{display:none!important}@media (max-width:920px){.v11-reseller-hero,.reseller-topbar{align-items:flex-start;flex-direction:column}.reseller-grid,.reseller-stats{grid-template-columns:1fr}.v11-centered-stats{grid-template-columns:1fr}.v11-modal-number{font-size:26px}}


/* =====================================================
   V11.1 responsive + centered modal refinements
   ===================================================== */
html,body{max-width:100%;overflow-x:hidden}
.main,.panel,.billing-command,.support-command,.caller-layout,.guide-card,.support-grid,.dashboard-grid{min-width:0}
.dashboard-grid,.support-grid,.caller-layout{gap:18px}
.caller-layout,.support-grid,.billing-command{max-width:1180px;margin-inline:auto}
.billing-command{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);align-items:stretch;gap:18px}
.billing-main-card,.billing-side-card,.support-hero,.guide-card,.panel,.mini-card,.health-card{border-radius:26px}
.billing-main-card,.support-hero{justify-content:center;text-align:center}
.billing-main-card>div,.support-hero>div{max-width:760px;margin-inline:auto}
.billing-side-card{text-align:center;display:grid;place-items:center}
.caller-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.76fr);align-items:start}
.phone-row,.caller-meta,.guide-summary,.health-grid,.recharge-flow,.modal-actions,.support-actions,.top-actions{gap:12px}
.phone-row,.caller-meta,.guide-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.modal,.balance-modal,dialog.modal,dialog.balance-modal{padding:0;border:0;background:transparent;max-width:min(700px,calc(100vw - 24px));width:min(700px,calc(100vw - 24px));margin:auto}
dialog.modal[open],dialog.balance-modal[open]{display:grid;place-items:center;inset:0}
.modal-card,.balance-card,.v11-modal-card{width:min(700px,calc(100vw - 24px));max-width:100%;margin:auto;border-radius:30px}
.balance-card{padding:22px;max-height:min(90svh,860px);overflow:auto;scrollbar-width:thin;position:relative}
.balance-card::after{left:50%;right:auto;top:-92px;transform:translateX(-50%);width:190px;height:190px;opacity:.10}
.modal-topline{justify-content:space-between;gap:12px}
.recharge-head{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:16px;text-align:left}
.recharge-head img{width:78px;height:78px;border-radius:22px;object-fit:cover;justify-self:center}
.recharge-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center}
.balance-picker{grid-template-columns:repeat(6,minmax(0,1fr));justify-content:center}
.channel-grid,.support-channel-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.channel-card,.support-channel{min-height:92px;align-items:center;justify-content:flex-start;text-align:left}
.channel-card:before,.support-channel:before{left:50%;right:auto;transform:translateX(-50%);bottom:-46px;width:112px;height:112px;opacity:.7}
.request-preview{max-width:100%;max-height:280px;overflow:auto;padding:18px 18px 20px;text-align:center}
.request-preview p{margin-inline:auto;max-width:92%;font-size:clamp(16px,2vw,19px);line-height:1.55}
.modal-actions,.support-actions,.v11-modal-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}
.modal-actions > button,.support-actions > button,.v11-modal-actions > button{min-height:50px}
#confirmCallerText,.modal-number,.v11-modal-number{display:grid;place-items:center;text-align:center;font-size:clamp(28px,4vw,42px);line-height:1.15;word-break:break-word}
#confirmCallerModal .modal-card{max-width:min(560px,calc(100vw - 24px));padding:26px}
#confirmCallerModal .modal-actions button{min-width:190px}
.channel-icon,.support-channel img{width:48px!important;height:48px!important;padding:9px;border-radius:18px}
.support-hero img{width:88px;height:88px;border-radius:24px;object-fit:cover}
.quick-panel,.stats,.v11-centered-stats{justify-content:center}
.mini-card,.quick-item,.stat,.guide-summary .mini-card{text-align:center}
.reseller-card,.reseller-stat{border-radius:24px}
.reseller-login .reseller-card{padding:24px}
@media (max-width:1100px){
  .billing-command,.caller-layout,.support-grid{grid-template-columns:1fr}
  .billing-main-card,.support-hero{padding:20px}
}
@media (max-width:820px){
  .shell{grid-template-columns:1fr}
  .main{padding-inline:14px}
  .topbar{flex-wrap:wrap;align-items:flex-start;gap:12px}
  .top-actions{width:100%;justify-content:space-between;flex-wrap:wrap}
  .balance-pill{order:-1}
  .phone-row,.caller-meta,.guide-summary,.channel-grid,.support-channel-row,.recharge-flow{grid-template-columns:1fr}
  .recharge-head{grid-template-columns:1fr;text-align:center}
  .balance-card::after{top:-68px;width:148px;height:148px}
  .balance-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
  .request-preview{max-height:230px}
  .request-preview p{max-width:100%;font-size:16px}
  .channel-card,.support-channel{grid-template-columns:54px 1fr}
  .modal-actions > button,.support-actions > button{flex:1 1 100%}
  #confirmCallerModal .modal-actions button{min-width:0;width:100%}
}
@media (max-width:560px){
  .main{padding-inline:12px;padding-bottom:22px}
  .title h1{font-size:30px;line-height:1.02}
  .panel,.billing-main-card,.billing-side-card,.support-hero,.guide-card,.activation-card,.reseller-card{border-radius:22px}
  .panel{padding:16px}
  .balance-card,.modal-card,.v11-modal-card{width:min(100vw - 16px,700px);border-radius:22px;padding:18px}
  .balance-modal,.modal,dialog.modal,dialog.balance-modal{max-width:calc(100vw - 16px);width:calc(100vw - 16px)}
  .modal-topline span{font-size:11px}
  .balance-card h3,.modal-card h3,.v11-modal-card h3{font-size:clamp(26px,7vw,40px);line-height:1.02}
  .balance-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
  .balance-picker button{padding:14px 8px;font-size:16px}
  .channel-card,.support-channel{padding:14px;border-radius:18px;gap:10px}
  .request-preview{padding:14px;max-height:210px}
  .request-preview p{font-size:15px}
  .phone-shell{width:min(100%,320px);margin-inline:auto}
  .support-hero img,.recharge-head img{width:72px;height:72px;border-radius:20px}
  .guide-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .guide-tabs button,.copy,.primary-btn,.secondary-btn,.ghost-btn,.reseller-btn{min-height:48px}
}
@media (max-width:390px){
  .balance-picker{grid-template-columns:1fr 1fr}
  .top-actions{gap:8px}
  .user-btn{max-width:100%}
  .request-preview p{font-size:14px;line-height:1.5}
}




/* FIX servidor SIP en una sola línea */
.stats .stat #dashHost,
.stats .stat b#dashHost,
#dashHost {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: clamp(14px, 1.35vw, 18px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.08em !important;
  text-align: center !important;
}

.stats .stat:has(#dashHost) {
  min-width: 270px !important;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

@media (max-width: 760px) {
  .stats .stat:has(#dashHost) {
    min-width: 0 !important;
  }

  .stats .stat #dashHost,
  .stats .stat b#dashHost,
  #dashHost {
    font-size: clamp(13px, 4vw, 18px) !important;
    letter-spacing: -0.07em !important;
  }
}