/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

/* ================= BODY ================= */
body{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#e2e8f0;
  display:flex;
  height:100vh;
  overflow:hidden;
}

/* ================= SIDEBAR ================= */
.sidebar{
  width:240px;
  background:#0f172a;
  padding:30px 20px;
  border-right:1px solid rgba(255,255,255,0.05);
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:40px;
  font-size:18px;
  font-weight:600;
  color:#38bdf8;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 15px;
  border-radius:10px;
  margin-bottom:8px;
  cursor:pointer;
  transition:0.2s ease;
  color:#94a3b8;
}

.menu-item:hover{
  background:rgba(56,189,248,0.12);
  color:#38bdf8;
}

.menu-item.active{
  background:linear-gradient(90deg,#38bdf8,#22d3ee);
  color:#fff;
}


/* ================= MAIN ================= */
.main{
  flex:1;
  padding:30px;
  overflow:hidden;
  height:100vh;
}
/* ================= TOPBAR ================= */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:30px;
}

.title{
  font-size:20px;
  font-weight:600;
}

.global-search{
  width:260px;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid #2c3a4d;
  background:#1c2636;
  color:#fff;
  margin-left:auto;
}

.global-search:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 3px rgba(56,189,248,0.15);
}

.logout-btn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border:none;
  border-radius:8px;
  background:#ef4444;
  color:#fff;
  cursor:pointer;
  font-weight:600;
  transition:0.2s ease;
}

.logout-btn:hover{
  background:#dc2626;
  transform:translateY(-2px);
}

/* ================= SECTIONS ================= */
.section{
  display:none;
}

.section.active{
  display:block;
}

/* ================= DASHBOARD CARDS ================= */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-bottom:30px;
}

.card{
  padding:20px;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 15px 40px rgba(0,0,0,0.35);
}

.card h4{
  font-size:14px;
  color:#94a3b8;
  margin-bottom:8px;
}

.card p{
  font-size:22px;
  font-weight:700;
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard-row{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:20px;
  margin-top:20px;
}

.revenue-card,
.map-card{
  height:320px;
}

#map{
  width:100%;
  height:250px;
  border-radius:12px;
  margin-top:10px;
}

/* ================= WRAPPERS ================= */
.table-wrapper,
.robots-container{
  background:linear-gradient(145deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));
  backdrop-filter:blur(10px);
  border-radius:18px;
  padding:25px;
  box-shadow:0 15px 40px rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.06);
  overflow-x:auto;
}

/* ================= TABLES ================= */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}

thead th{
  text-align:center;
  font-size:12px;
  color:#94a3b8;
  font-weight:600;
  padding:12px 16px;
}

tbody tr{
  background:rgba(255,255,255,0.04);
  transition:0.2s ease;
}

tbody tr:hover{
  background:rgba(56,189,248,0.12);
  transform:translateY(-2px);
}

tbody td{
  padding:14px 16px;
  font-size:14px;
  text-align:center;
}

tbody tr td:first-child{
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}

tbody tr td:last-child{
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
}

/* ================= BADGES ================= */
.status-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:capitalize;
  letter-spacing:0.3px;
  transition:all 0.2s ease;
}

.status-badge:hover{
  transform:scale(1.05);
}

.status-approved{
  color:#22c55e;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.4);
}

.status-pending{
  color:#facc15;
  background:rgba(250,204,21,0.15);
  border:1px solid rgba(250,204,21,0.4);
}

.status-rejected{
  color:#ef4444;
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.4);
}

.status-active{
  color:#22c55e;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.4);
}

.status-expired{
  color:#ef4444;
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.4);
}

/* ================= PAYMENT BADGES ================= */
.pay-click{
  background:#00aaff;
  color:#fff;
  padding:3px 8px;
  border-radius:6px;
}

.pay-payme{
  background:#00c853;
  color:#fff;
  padding:3px 8px;
  border-radius:6px;
}

.pay-visa{
  background:#1a237e;
  color:#fff;
  padding:3px 8px;
  border-radius:6px;
}

/* ================= ACTION BUTTONS ================= */
.action-buttons{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.icon-btn{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  cursor:pointer;
  transition:0.25s ease;
  padding:0;
}

.icon-btn svg{
  width:16px;
  height:16px;
  stroke-width:2;
}

.edit-btn{
  color:#38bdf8;
}

.edit-btn:hover{
  background:rgba(56,189,248,0.15);
  transform:translateY(-2px) scale(1.05);
}

.delete-btn{
  color:#ef4444;
}

.delete-btn:hover{
  background:rgba(239,68,68,0.15);
  transform:translateY(-2px) scale(1.05);
}

.approve-btn{
  color:#22c55e;
}

.approve-btn:hover{
  background:rgba(34,197,94,0.15);
  transform:translateY(-2px) scale(1.05);
}

/* ================= ROBOTS / PRODUCTS ================= */
.robots-form{
  display:flex;
  gap:10px;
  margin-bottom:14px;
}

.robots-form input,
.robots-form select{
  background:#111827;
  border:1px solid #2d3748;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  outline:none;
  transition:0.2s ease;
}

.robots-form input:focus,
.robots-form select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,0.2);
}

.create-robot-btn,
.create-plan-btn{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  border:none;
  padding:10px 18px;
  border-radius:10px;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:0.3s ease;
}

.create-robot-btn:hover,
.create-plan-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(99,102,241,0.4);
}

/* ================= TRIAL ADD FORM ================= */
.add-user-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.add-user-form input,
.add-user-form select{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #2a2f3a;
  background:#111827;
  color:#fff;
  min-width:180px;
}

.add-user-form input:focus,
.add-user-form select:focus{
  outline:none;
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,0.18);
}

.add-user-form button{
  padding:10px 16px;
  border:none;
  border-radius:8px;
  background:#4f46e5;
  color:#fff;
  cursor:pointer;
  transition:0.2s ease;
}

.add-user-form button:hover{
  transform:translateY(-1px);
  opacity:0.95;
}

/* ================= GENERIC MODAL ================= */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal.show{
  display:flex;
}

.modal-content{
  position:relative;
  width:420px;
  max-width:95%;
  background:#1e293b;
  padding:25px;
  border-radius:14px;
  box-shadow:0 20px 40px rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  gap:12px;
  color:#fff;
}

.modal-content h3{
  font-size:18px;
  font-weight:600;
  margin-bottom:5px;
}

.modal-content input,
.modal-content select{
  background:#0f172a;
  border:1px solid #334155;
  color:#fff;
  padding:11px;
  border-radius:8px;
  font-size:14px;
}

.modal-content input:focus,
.modal-content select:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 2px rgba(56,189,248,0.2);
}

.modal-content button{
  margin-top:5px;
  background:linear-gradient(135deg,#6366f1,#4f46e5);
  border:none;
  padding:12px;
  border-radius:8px;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.modal-content button:hover{
  transform:translateY(-1px);
  opacity:0.95;
}

.modal-close{
  position:absolute;
  right:18px;
  top:18px;
  font-size:22px;
  cursor:pointer;
  color:#94a3b8;
  font-weight:bold;
  transition:0.2s;
}

.modal-close:hover{
  color:#fff;
  transform:scale(1.15);
}

/* ================= FORM GROUP ================= */
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}

.form-group label{
  font-size:13px;
  color:#94a3b8;
}

.form-group input,
.form-group select{
  padding:10px;
  border-radius:8px;
  border:1px solid #334155;
  background:#020617;
  color:#fff;
}

/* ================= CONFIRM MODAL ================= */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-overlay.show{
  display:flex;
}

.modal-box{
  position:relative;
  background:#0f172a;
  padding:30px;
  border-radius:12px;
  width:320px;
  text-align:center;
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
}

.modal-box h3{
  margin-bottom:10px;
}

.modal-box p{
  opacity:.8;
  font-size:14px;
  margin-bottom:20px;
}

.modal-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:20px;
}

.modal-btn{
  padding:10px 18px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.modal-btn.cancel{
  background:#334155;
  color:#fff;
}

.modal-btn.confirm{
  background:#ef4444;
  color:#fff;
}

/* ================= ACCOUNT MODAL ================= */
.account-modal{
  position:fixed;
  left:240px;
  top:0;
  width:calc(100% - 240px);
  height:100%;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:70px;
  overflow-y:auto;
  z-index:999;
}

.account-modal.show{
  display:flex;
}

.account-box{
  width:1100px;
  max-width:95%;
  min-height:520px;
  position:relative;
  background:#0f172a;
  border-radius:14px;
  padding:25px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}

.account-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.account-stats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
  margin-bottom:20px;
}

.stat{
  background:#2a3648;
  padding:14px;
  border-radius:10px;
  text-align:center;
}

.stat span{
  display:block;
  font-size:12px;
  color:#9fb3c8;
  margin-bottom:6px;
}

.stat b{
  font-size:18px;
  font-weight:600;
}

/* ================= TABS ================= */
.tabs-wrapper{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.tabs{
  position:relative;
  display:inline-flex;
  background:#1e293b;
  border-radius:12px;
  padding:4px;
}

.tab{
  position:relative;
  z-index:2;
  padding:8px 18px;
  border:none;
  background:transparent;
  color:#94a3b8;
  font-weight:500;
  border-radius:10px;
  cursor:pointer;
  transition:0.3s;
}

.tab:hover{
  color:#e2e8f0;
}

.tab.active{
  color:#0f172a;
  font-weight:600;
}

.tab-indicator{
  position:absolute;
  top:4px;
  left:4px;
  height:calc(100% - 8px);
  width:80px;
  background:linear-gradient(135deg,#22c55e,#4ade80);
  border-radius:10px;
  transition:0.3s;
}

.period-btn{
  background:linear-gradient(135deg,#22c55e,#4ade80);
  border:none;
  padding:8px 14px;
  border-radius:8px;
  color:#0f172a;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.period-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(34,197,94,0.4);
}

/* ================= ACCOUNT TABLES ================= */
.positions-table{
  width:100%;
  border-collapse:collapse;
}

.positions-table th,
.positions-table td{
  text-align:center;
  padding:12px;
}

.positions-table td{
  border-top:1px solid rgba(255,255,255,0.05);
}

.positions-scroll{
  max-height:420px;
  overflow-y:auto;
}

.positions-scroll::-webkit-scrollbar{
  width:6px;
}

.positions-scroll::-webkit-scrollbar-thumb{
  background:#3b4a5e;
  border-radius:4px;
}

#liveTab,
#historyTab{
  min-height:350px;
}

/* ================= PERIOD MODAL ================= */
#periodModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

#periodModal.show{
  display:flex;
}

.modal-box.small{
  width:400px;
  background:linear-gradient(145deg,#1e293b,#0f172a);
  border-radius:16px;
  padding:22px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.05);
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
  position:relative;
}

.modal-header h3{
  width:100%;
  text-align:center;
}

.period-body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.period-body label{
  font-size:13px;
  color:#94a3b8;
}

.period-body input[type="datetime-local"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #334155;
  background:#020617;
  color:#fff;
  font-size:14px;
}

.period-body input::-webkit-calendar-picker-indicator{
  filter:invert(1);
  opacity:0.7;
  cursor:pointer;
}

.time-row{
  display:flex;
  gap:10px;
}

.time-row input,
.time-row select{
  flex:1;
  height:42px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #334155;
  background:#0f172a;
  color:#fff;
  font-size:14px;
  outline:none;
}

.time-row input[type="date"]::-webkit-calendar-picker-indicator{
  filter:invert(1);
  opacity:1.7;
  cursor:pointer;
  width:18px;
  height:18px;
}

.time-row input:focus,
.time-row select:focus{
  border-color:#22c55e;
  box-shadow:0 0 0 2px rgba(34,197,94,0.2);
}

/* ================= PLANS MODAL BASE ================= */
#plansModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#plansModal.show{
  display:flex;
}

/* ================= PLANS MODAL V3 ================= */
.plans-box-v3{
  width:560px;
  max-width:92%;
  max-height:88vh;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#1f2b42 0%,#1a2437 100%);
  border-radius:18px;
  padding:10px;
  box-sizing:border-box;
  color:#fff;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 18px 40px rgba(0,0,0,0.30);
}

.plans-header.v3{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:2px 2px 8px;
}

.plans-title-wrap h2{
  margin:0;
  font-size:18px;
  font-weight:800;
  line-height:1.1;
  color:#fff;
}

.plans-title-wrap p{
  margin:4px 0 0;
  font-size:11px;
  color:rgba(255,255,255,0.55);
}

.plans-close-btn{
  width:32px;
  height:32px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:#a9b7cb;
  font-size:18px;
  cursor:pointer;
  flex-shrink:0;
  transition:0.2s ease;
}

.plans-close-btn:hover{
  background:rgba(255,255,255,0.06);
  color:#fff;
}

.plans-content-scroll{
  overflow-y:auto;
  padding-right:2px;
}

.plans-content-scroll::-webkit-scrollbar{
  width:6px;
}

.plans-content-scroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.15);
  border-radius:999px;
}

.plan-card-section{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:14px;
  padding:8px;
  margin-bottom:10px;
}

.section-title-line.v3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
}

.section-title-line.v3 span{
  flex:1;
  height:1px;
  background:rgba(255,255,255,0.35);
  border-radius:999px;
}

.section-title-line.v3 h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#fff;
  line-height:1;
}

.plan-form-card{
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:8px;
  margin-top:4px;
}

.plan-type-actions.v3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:6px;
  margin-bottom:8px;
}

.type-btn{
  border:none;
  border-radius:10px;
  padding:9px 6px;
  font-size:12px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:0.18s ease;
  min-height:38px;
  opacity:0.88;
}

.type-btn:hover{
  transform:translateY(-1px);
  opacity:1;
}

.type-btn.active{
  box-shadow:0 0 0 2px rgba(255,255,255,0.16) inset;
  opacity:1;
}

.type-btn.purple{
  background:linear-gradient(135deg,#4f56f0,#6957f5);
}

.type-btn.violet{
  background:linear-gradient(135deg,#7d62ff,#9a68ff);
}

.type-btn.green{
  background:linear-gradient(135deg,#12d46a,#12bf60);
}

.universal-plan-form.v3{
  margin-top:0;
}

.form-row-3{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:8px;
}

.form-row-3 input,
.single-field-row input{
  width:100%;
  padding:10px 11px;
  border-radius:11px;
  border:1px solid rgba(101,123,164,0.40);
  background:#081226;
  color:#fff;
  outline:none;
  box-sizing:border-box;
  font-size:12px;
  font-weight:600;
  min-height:38px;
}

.form-row-3 input::placeholder,
.single-field-row input::placeholder{
  color:rgba(255,255,255,0.35);
}

.form-row-3 input:focus,
.single-field-row input:focus{
  border-color:#7f7cff;
  box-shadow:0 0 0 3px rgba(127,124,255,0.14);
}

.single-field-row{
  margin-top:0;
}

.plan-footer-actions.v3{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}

.footer-btn{
  border:none;
  border-radius:11px;
  padding:11px 10px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:0.18s ease;
  min-height:40px;
}

.footer-btn:hover{
  transform:translateY(-1px);
}

.back-btn-v3{
  background:linear-gradient(135deg,#4d56ef,#6558f4);
}

.save-btn-v3{
  background:linear-gradient(135deg,#31d316,#44db12);
}

/* ================= PLANS MODAL ALIGN FIX ================= */
#plansModal .mini-table-head,
#plansModal .mini-row{
  width:100%;
  justify-items:center;
}

#plansModal .mini-table-head{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 110px;
  gap:8px;
  align-items:center;
  text-align:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:11px;
  padding:7px 10px;
  color:rgba(255,255,255,0.50);
  font-size:11px;
  font-weight:700;
  margin-bottom:6px;
}

#plansModal .trial-head{
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 110px;
}

#plansModal .mini-row{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 110px;
  gap:8px;
  align-items:center;
  text-align:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:11px;
  padding:8px 10px;
  min-height:40px;
}

#plansModal .mini-row.three{
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 110px;
}

#plansModal .mini-table-head > div,
#plansModal .mini-row > div{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  min-width:0;
}

#plansModal .cell{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  min-width:0;
  min-height:24px;
  font-size:12px;
  font-weight:700;
  color:#f3f6fb;
  line-height:1.15;
}

#plansModal .cell.strong{
  font-weight:800;
}

#plansModal .cell.actions{
  display:flex;
  align-items:center;
  justify-content:center !important;
  gap:6px;
  width:100%;
}

#plansModal .mini-row .cell[style*="grid-column:1 / -1"]{
  justify-content:center !important;
  text-align:center !important;
  width:100%;
}

#plansModal .mini-table-body{
  display:flex;
  flex-direction:column;
  gap:6px;
}

#plansModal .scroll-box{
  max-height:132px;
  overflow-y:auto;
  padding-right:2px;
}

#plansModal .scroll-box::-webkit-scrollbar{
  width:5px;
}

#plansModal .scroll-box::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.05);
  border-radius:999px;
}

#plansModal .scroll-box::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

/* ================= SETTINGS ================= */
.settings-wrapper{
  padding:24px;
  border-radius:18px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
}

.settings-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.settings-header h4{
  margin:0;
  color:#fff;
  font-size:22px;
  font-weight:700;
}

.settings-header p{
  margin:6px 0 0;
  color:#94a3b8;
  font-size:14px;
}

.settings-actions-top{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.settings-sections{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.settings-card{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
}

.settings-card h5{
  margin:0 0 16px;
  color:#fff;
  font-size:16px;
  font-weight:700;
  border-bottom:1px solid rgba(255,255,255,0.06);
  padding-bottom:10px;
}

.settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.settings-item{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.settings-item label{
  color:#cbd5e1;
  font-size:13px;
  font-weight:600;
}

.settings-item input,
.settings-item select,
.settings-item textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  outline:none;
  background:#0b1220;
  color:#fff;
  font-size:14px;
  transition:0.2s ease;
  box-sizing:border-box;
}

.settings-item input::placeholder,
.settings-item textarea::placeholder{
  color:#64748b;
}

.settings-item input:focus,
.settings-item select:focus,
.settings-item textarea:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

.settings-item textarea{
  resize:vertical;
  min-height:110px;
}

.settings-item input[readonly]{
  background:#111827;
  color:#94a3b8;
  cursor:not-allowed;
}

.settings-item input:disabled,
.settings-item textarea:disabled,
.settings-item select:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

.full-width{
  grid-column:1 / -1;
}

.secondary-btn{
  border:none;
  border-radius:12px;
  padding:12px 18px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:0.2s ease;
  background:#1e293b;
  color:#e2e8f0;
  border:1px solid rgba(255,255,255,0.08);
}

.secondary-btn:hover{
  background:#273449;
}

.settings-toast{
  position:fixed;
  right:20px;
  bottom:20px;
  background:#0f172a;
  color:#fff;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:all 0.25s ease;
  min-width:240px;
  max-width:320px;
  font-size:14px;
}

.settings-toast.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.settings-toast.success{
  border-left:4px solid #22c55e;
}

.settings-toast.error{
  border-left:4px solid #ef4444;
}

/* ================= UTILITIES ================= */
.hidden{
  display:none !important;
}


/* ================= CUSTOM NUMBER INPUT ================= */
.num-input-wrap{
  position: relative;
  width: 100%;
}

.num-input-wrap input{
  width: 100%;
  padding-right: 44px;
}

.num-input-wrap input[type="number"]::-webkit-outer-spin-button,
.num-input-wrap input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.num-input-wrap input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}

.num-controls{
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num-controls button{
  width: 22px;
  height: 16px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.num-controls button:hover{
  background: rgba(99,102,241,0.25);
  color: #fff;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .dashboard-row{
    grid-template-columns:1fr;
  }

  .account-stats{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 768px){
  .main{
    padding:18px;
  }

  .settings-wrapper{
    padding:16px;
  }

  .settings-card{
    padding:14px;
  }

  .settings-grid{
    grid-template-columns:1fr;
  }

  .settings-actions-top{
    width:100%;
  }

  .settings-actions-top button{
    flex:1;
  }
}

@media (max-width: 680px){
  .plans-box-v3{
    width:94%;
    max-width:94%;
    max-height:90vh;
    padding:8px;
  }

  .plan-type-actions.v3{
    grid-template-columns:1fr;
  }

  .form-row-3{
    grid-template-columns:1fr;
  }

  .plan-footer-actions.v3{
    grid-template-columns:1fr;
  }

  #plansModal .mini-table-head,
  #plansModal .mini-row{
    grid-template-columns:minmax(0,1.2fr) minmax(0,0.8fr) minmax(0,0.8fr) 90px;
  }

  #plansModal .trial-head,
  #plansModal .mini-row.three{
    grid-template-columns:minmax(0,1fr) minmax(0,0.8fr) 90px;
  }
}

/* ================= GLOBAL NUMBER INPUT STYLE ================= */

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Global number input look */
input[type="number"]{
  background:#0b1220;
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  border-radius:12px;
  outline:none;
  transition:0.2s ease;
}

/* Focus */
input[type="number"]:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,0.18);
}

/* Placeholder */
input[type="number"]::placeholder{
  color:#64748b;
}

/* Disabled / readonly */
input[type="number"]:disabled,
input[type="number"][readonly]{
  opacity:0.75;
  cursor:not-allowed;
}

/* Modal ichidagi number inputlar uchun yanada premium ko‘rinish */
#plansModal input[type="number"],
#editUserModal input[type="number"],
#editRobotModal input[type="number"],
#periodModal input[type="number"],
.settings-item input[type="number"],
.add-user-form input[type="number"],
.robots-form input[type="number"]{
  min-height:38px;
  padding:10px 12px;
}

/* Trials va settings bo‘limida biroz kattaroq */
.settings-item input[type="number"],
.add-user-form input[type="number"]{
  min-height:42px;
  padding:12px 14px;
}

/* Optional soft inset look in plans modal */
#plansModal input[type="number"]{
  background:#081226;
  border:1px solid rgba(101,123,164,0.40);
  border-radius:11px;
}

#plansModal input[type="number"]:focus{
  border-color:#7f7cff;
  box-shadow:0 0 0 3px rgba(127,124,255,0.14);
}

/* ================= SETTINGS INTERNAL SCROLL FIX ================= */
#settings.section{
  display:none;
  height:calc(100vh - 90px);
  overflow:hidden;
}

#settings.section.active{
  display:block;
}

#settings .settings-wrapper{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:20px;
}

#settings .settings-header{
  flex-shrink:0;
  position:sticky;
  top:0;
  z-index:5;
  background:#111827;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

#settings .settings-sections{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
}

#settings .settings-sections::-webkit-scrollbar{
  width:8px;
}

#settings .settings-sections::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.04);
  border-radius:999px;
}

#settings .settings-sections::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

#settings .settings-sections::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,0.28);
}

#settings .settings-card{
  flex-shrink:0;
}

@media (max-width: 768px){
  .main{
    padding:18px;
  }

  #settings.section{
    height:calc(100vh - 80px);
  }

  #settings .settings-wrapper{
    padding:14px;
  }

  #settings .settings-sections{
    padding-right:4px;
  }

  .settings-card{
    padding:14px;
  }

  .settings-grid{
    grid-template-columns:1fr;
  }

  .settings-actions-top{
    width:100%;
  }

  .settings-actions-top button{
    flex:1;
  }
}

.settings-card-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.06);
}

.settings-card-actions .secondary-btn,
.settings-card-actions .create-plan-btn{
  min-width:110px;
}

@media (max-width:768px){
  .settings-card-actions{
    flex-direction:column;
  }

  .settings-card-actions .secondary-btn,
  .settings-card-actions .create-plan-btn{
    width:100%;
  }
}

/* ================= SETTINGS ACCORDION ================= */
.accordion-card{
  padding:0;
  overflow:hidden;
}

.settings-card-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:transparent;
  border:none;
  color:#fff;
  font-size:16px;
  font-weight:700;
  padding:18px 20px;
  cursor:pointer;
  text-align:left;
  border-radius:16px;
  transition:0.2s ease;
}

.settings-card-toggle:hover{
  background:rgba(255,255,255,0.03);
}

.accordion-icon{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  color:#cbd5e1;
  font-size:18px;
  font-weight:700;
  flex-shrink:0;
}

.settings-card-body{
  padding:0 20px 20px;
}

.accordion-card.collapsed .settings-card-body{
  display:none;
}

.settings-card-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.06);
}

.settings-card-actions .secondary-btn,
.settings-card-actions .create-plan-btn{
  min-width:110px;
}

@media (max-width:768px){
  .settings-card-toggle{
    padding:16px;
    font-size:15px;
  }

  .settings-card-body{
    padding:0 16px 16px;
  }

  .settings-card-actions{
    flex-direction:column;
  }

  .settings-card-actions .secondary-btn,
  .settings-card-actions .create-plan-btn{
    width:100%;
  }
}

/* ================= DASHBOARD SECTION SCROLL ================= */
#dashboard.section{
  display:none;
  height:calc(100vh - 110px);
  overflow:hidden;
}

#dashboard.section.active{
  display:block;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
}

#dashboard.section.active::-webkit-scrollbar{
  width:8px;
}

#dashboard.section.active::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.04);
  border-radius:999px;
}

#dashboard.section.active::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

#dashboard.section.active::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,0.28);
}

/* ================= DASHBOARD NEW LAYOUT ================= */
.dashboard-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:18px;
  margin-bottom:22px;
}

.kpi-card{
  padding:20px;
  min-height:120px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 15px 40px rgba(0,0,0,0.35);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.kpi-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.kpi-top h4{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#94a3b8;
}

.kpi-card p{
  margin:12px 0 6px;
  font-size:34px;
  font-weight:700;
  color:#fff;
  line-height:1;
}

.kpi-sub{
  font-size:12px;
  color:#7f90b2;
}

.kpi-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(56,189,248,0.12);
  color:#38bdf8;
  flex-shrink:0;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
}

.dashboard-card{
  padding:20px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 15px 40px rgba(0,0,0,0.35);
  min-height:100px;
}

.span-8{ grid-column:span 8; }
.span-6{ grid-column:span 6; }
.span-4{ grid-column:span 4; }

.card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.card-header h3{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#fff;
}

.card-header span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:#8595b6;
}

.chart-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chart-filter-btn{
  border:none;
  outline:none;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  color:#aebbd4;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s ease;
}

.chart-filter-btn:hover,
.chart-filter-btn.active{
  background:linear-gradient(90deg,#38bdf8,#22d3ee);
  color:#fff;
}

.chart-box{
  position:relative;
  width:100%;
}

.large-chart{
  height:320px;
}

.small-chart{
  height:320px;
}

.large-chart canvas,
.small-chart canvas{
  width:100% !important;
  height:100% !important;
}

.mini-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mini-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  color:#dbe7ff;
  font-size:14px;
}

.mini-list-item strong{
  color:#38bdf8;
  font-size:15px;
}

.conversion-box{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.conversion-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  color:#dbe7ff;
  font-size:14px;
}

.conversion-row.highlight{
  background:linear-gradient(135deg,rgba(56,189,248,0.15),rgba(34,211,238,0.10));
  border:1px solid rgba(56,189,248,0.18);
}

.conversion-row strong{
  color:#fff;
}

.activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:280px;
  overflow:auto;
  padding-right:4px;
}

.activity-item{
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  color:#dbe7ff;
  font-size:14px;
  line-height:1.45;
}

.activity-time{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:#7f90b2;
}

#dashboard #map.dashboard-map{
  width:100%;
  height:320px;
  border-radius:18px;
  overflow:hidden;
  margin-top:0;
}

.health-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.health-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  color:#dbe7ff;
  font-size:14px;
}

.status-online{
  color:#22c55e !important;
}

.status-offline{
  color:#ef4444 !important;
}

.status-warning{
  color:#facc15 !important;
}

.dashboard-table-wrap{
  overflow:auto;
  max-height:300px;
  border-radius:16px;
}

.dashboard-table{
  width:100%;
  border-collapse:collapse;
  min-width:520px;
}

.dashboard-table thead th{
  text-align:left;
  font-size:12px;
  font-weight:600;
  color:#8ea0c2;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  background:rgba(255,255,255,0.02);
  position:sticky;
  top:0;
}

.dashboard-table tbody td{
  padding:14px;
  font-size:13px;
  color:#e5eeff;
  border-bottom:1px solid rgba(255,255,255,0.05);
  text-align:left;
}

.dashboard-table tbody tr{
  background:transparent;
  transform:none !important;
}

.dashboard-table tbody tr:hover{
  background:rgba(255,255,255,0.02);
}

.empty-cell{
  text-align:center !important;
  color:#7f90b2 !important;
  padding:26px 14px !important;
}

.mini-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.2px;
}

.mini-badge.online{
  color:#22c55e;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.28);
}

.mini-badge.offline{
  color:#ef4444;
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.28);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1600px){
  .dashboard-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 1200px){
  .dashboard-grid{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }

  .span-8,
  .span-6,
  .span-4{
    grid-column:span 1;
  }

  .dashboard-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 768px){
  .dashboard-kpis{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }

  .kpi-card p{
    font-size:28px;
  }

  .large-chart,
  .small-chart,
  #dashboard #map.dashboard-map{
    height:260px;
  }

  #dashboard.section{
    height:calc(100vh - 85px);
  }
}


/* ================= USERS REAL / DEMO TABS ================= */
.users-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.users-header-row h4{
  margin:0;
}

.users-header-row p{
  margin:6px 0 0;
  color:#94a3b8;
  font-size:13px;
}

.users-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  background:#0f172a;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 10px 24px rgba(0,0,0,0.22);
}

.users-tab{
  border:none;
  outline:none;
  padding:10px 18px;
  border-radius:10px;
  background:transparent;
  color:#cbd5e1;
  font-weight:700;
  cursor:pointer;
  transition:0.25s ease;
}

.users-tab:hover{
  background:rgba(255,255,255,0.08);
  color:#fff;
}

.users-tab.active{
  background:linear-gradient(135deg,#3b82f6,#6366f1);
  color:#fff;
  box-shadow:0 8px 20px rgba(59,130,246,0.28);
}

/* ================= USERS SECTION SCROLL ================= */
#users.section{
  display:none;
  height:calc(100vh - 110px);
  overflow:hidden;
}

#users.section.active{
  display:block;
}

#users .table-wrapper{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

#users table{
  min-width:1200px;
}

#users tbody{
  overflow:auto;
}

#users .table-wrapper{
  overflow:auto;
}

#users .table-wrapper::-webkit-scrollbar{
  width:8px;
  height:8px;
}

#users .table-wrapper::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.04);
  border-radius:999px;
}

#users .table-wrapper::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

#users .table-wrapper::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,0.28);
}

/* ================= USERS STATUS BADGES ================= */
.status-badge.online{
  color:#22c55e;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.4);
}

.status-badge.offline{
  color:#ef4444;
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.4);
}

.status-badge.active{
  color:#22c55e;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.4);
}

.status-badge.trial{
  color:#facc15;
  background:rgba(250,204,21,0.15);
  border:1px solid rgba(250,204,21,0.4);
}

.status-badge.expired{
  color:#ef4444;
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.4);
}

.status-badge.paused{
  color:#60a5fa;
  background:rgba(96,165,250,0.15);
  border:1px solid rgba(96,165,250,0.4);
}

/* ================= USERS ACTION BUTTONS INSIDE TABLE ================= */
#users td button{
  padding:7px 12px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  transition:0.2s ease;
  margin:0 3px;
}

#users td button:first-child{
  background:rgba(56,189,248,0.15);
  color:#38bdf8;
}

#users td button:first-child:hover{
  background:rgba(56,189,248,0.25);
  transform:translateY(-1px);
}

#users td button:last-child{
  background:rgba(239,68,68,0.15);
  color:#ef4444;
}

#users td button:last-child:hover{
  background:rgba(239,68,68,0.25);
  transform:translateY(-1px);
}

/* ================= USERS LINK ================= */
#users td a{
  color:#38bdf8;
  text-decoration:none;
  font-weight:600;
}

#users td a:hover{
  text-decoration:underline;
}

/* ================= USERS RESPONSIVE ================= */
@media (max-width: 768px){
  #users.section{
    height:calc(100vh - 85px);
  }

  .users-header-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .users-tabs{
    width:100%;
    justify-content:space-between;
  }

  .users-tab{
    flex:1;
    text-align:center;
  }
}




































/* ================= ROBOT PANEL CONFIG MODAL ================= */
.panel-btn{
  background:linear-gradient(135deg,#7c3aed,#8b5cf6);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  transition:0.2s ease;
}

.panel-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(124,58,237,0.35);
}

.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.custom-modal-box{
  width:min(1180px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 20px 70px rgba(0,0,0,.35);
  color:#fff;
}

.robot-panel-config-modal-box{
  padding:20px;
}

.custom-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.custom-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:700;
  color:#fff;
}

.modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:10px;
  background:#1e293b;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  transition:0.2s ease;
}

.modal-close-btn:hover{
  background:#334155;
  transform:scale(1.05);
}

.robot-panel-config-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px;
}

.robot-panel-config-card{
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:20px;
}

.robot-panel-config-card h3{
  color:#fff;
  margin-bottom:14px;
}

.robot-panel-config-card label{
  color:#cbd5e1;
  font-size:13px;
  font-weight:600;
}

.robot-panel-meta{
  display:grid;
  gap:6px;
  margin-bottom:16px;
  padding:14px;
  border-radius:12px;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.06);
  color:#e2e8f0;
}

.robot-panel-config-card input[type="text"]{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:#0f172a;
  color:#fff;
  outline:none;
  transition:0.2s ease;
}

.robot-panel-config-card input[type="text"]:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,0.18);
}

.robot-panel-config-card .form-group{
  margin-bottom:16px;
}

.robot-panel-config-card .form-row.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}

.check-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
  transition:0.2s ease;
}

.check-item:hover{
  background:#162033;
}

.check-item input[type="checkbox"]{
  transform:scale(1.15);
  accent-color:#6366f1;
}

.robot-panel-config-card .form-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.robot-panel-config-card .btn{
  border:none;
  border-radius:10px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:600;
  transition:0.2s ease;
}

.robot-panel-config-card .btn.primary{
  background:linear-gradient(135deg,#2563eb,#3b82f6);
  color:#fff;
}

.robot-panel-config-card .btn.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(37,99,235,0.35);
}

.robot-panel-config-card .btn.secondary{
  background:#374151;
  color:#fff;
}

.robot-panel-config-card .btn.secondary:hover{
  background:#475569;
}

.robot-preview-box{
  background:linear-gradient(180deg,#0f172a 0%,#111827 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:22px;
  min-height:280px;
}

.preview-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:18px;
  color:#fff;
}

.preview-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.preview-btn{
  background:#1f2937;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px 16px;
  font-weight:600;
}

.preview-note{
  margin-top:18px;
  color:#9ca3af;
  font-size:14px;
  line-height:1.5;
}

/* robot actions cell */
#robots .action-buttons{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

/* modal scrollbar */
.custom-modal-box::-webkit-scrollbar{
  width:8px;
}

.custom-modal-box::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.04);
  border-radius:999px;
}

.custom-modal-box::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.18);
  border-radius:999px;
}

.custom-modal-box::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,0.28);
}

@media (max-width: 980px){
  .robot-panel-config-grid,
  .robot-panel-config-card .form-row.two-cols{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .custom-modal{
    padding:12px;
  }

  .robot-panel-config-modal-box{
    padding:14px;
  }

  .custom-modal-header h3{
    font-size:18px;
  }

  .robot-panel-config-card{
    padding:16px;
  }

  .robot-panel-config-card .form-actions{
    flex-direction:column;
  }

  .robot-panel-config-card .btn{
    width:100%;
  }
}
.action-btn{
  border:none;
  border-radius:8px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:600;
  transition:0.2s ease;
}

/* ================= EA PREVIEW REDRAW ================= */
.ea-preview-window{
  width:100%;
  max-width:245px;
  margin:0 auto;
  background:#e7e7e7;
  border:1px solid #a5a5a5;
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
  overflow:hidden;
  font-family:Tahoma, Arial, sans-serif;
}

.ea-preview-titlebar{
  height:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px;
  background:#dcdcdc;
  border-bottom:1px solid #bcbcbc;
  color:#222;
  font-size:12px;
  font-weight:400;
}

.ea-preview-winbtns{
  color:#777;
  font-size:11px;
  letter-spacing:1px;
}

.ea-preview-content{
  padding:10px 8px 10px;
  background:#efefef;
}

.ea-preview-top{
  display:grid;
  grid-template-columns:1fr 78px;
  gap:6px;
  align-items:start;
}

.ea-preview-left{
  min-width:0;
}

.ea-preview-robot{
  width:78px;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ea-robot-placeholder{
  font-size:48px;
  line-height:1;
  filter:grayscale(100%);
  opacity:.92;
}

.ea-line{
  font-size:12px;
  line-height:1.45;
  margin-bottom:1px;
  font-weight:400;
}

.ea-line.strong{
  font-weight:700;
}

.ea-line.orange{ color:#d98a1f; }
.ea-line.brown{ color:#8a5b2d; }
.ea-line.red{ color:#d31313; }
.ea-line.blue{ color:#00a0ff; }
.ea-line.cyan{ color:#00b7ff; }

.ea-gap{
  height:10px;
}

.ea-btn{
  width:100%;
  border:none;
  border-radius:0;
  height:30px;
  margin-top:7px;
  font-size:12px;
  font-weight:400;
  cursor:default;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.15);
}

.ea-btn-trial{
  background:#08c870;
  color:#fff;
}

.ea-btn-settings{
  background:#d7dde7;
  color:#222;
  border:1px solid #b8c0cb;
  box-shadow:none;
}

.ea-btn-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:7px;
}

.ea-btn-start{
  background:#08c870;
  color:#fff;
}

.ea-btn-license{
  background:#ff8a00;
  color:#fff;
}

/* ================= RT-REAL INTERACTIVE PREVIEW ================= */
.rt-real-preview-root{
  display:flex;
  justify-content:center;
}

.rt-panel{
  width:248px;
  background:#e8e8e8;
  border:1px solid #a9a9a9;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  overflow:hidden;
  font-family:Tahoma, Arial, sans-serif;
  color:#111;
}

.rt-titlebar{
  height:25px;
  background:#d9d9d9;
  border-bottom:1px solid #b8b8b8;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 7px;
  font-size:12px;
  color:#1f1f1f;
}

.rt-win-actions{
  font-size:11px;
  color:#777;
  letter-spacing:1px;
}

.rt-body{
  padding:9px 8px 10px;
  background:#efefef;
}

.rt-top-grid{
  display:grid;
  grid-template-columns:1fr 78px;
  gap:6px;
  align-items:start;
}

.rt-robot-art{
  width:78px;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:50px;
  filter:grayscale(100%);
  opacity:.92;
}

.rt-line{
  font-size:12px;
  line-height:1.46;
  margin-bottom:1px;
}

.rt-line.strong{
  font-weight:700;
}

.rt-orange{ color:#d8891f; }
.rt-brown{ color:#8a5a2b; }
.rt-red{ color:#d41414; }
.rt-blue{ color:#07a2ff; }
.rt-cyan{ color:#00bfff; }
.rt-lime{ color:#84cc16; }

.rt-gap{
  height:10px;
}

.rt-btn{
  width:100%;
  height:31px;
  border:none;
  border-radius:0;
  margin-top:7px;
  font-size:12px;
  font-weight:400;
  cursor:pointer;
  transition:.15s ease;
}

.rt-btn:hover{
  filter:brightness(.98);
}

.rt-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.rt-btn-trial{
  background:#08c870;
  color:#fff;
}

.rt-btn-settings{
  background:#d7dde7;
  color:#222;
  border:1px solid #bcc4cf;
}

.rt-btn-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:7px;
}

.rt-btn-start{
  background:#08c870;
  color:#fff;
}

.rt-btn-license{
  background:#ff8a00;
  color:#fff;
}

.rt-btn-back{
  background:#415166;
  color:#fff;
}

.rt-btn-save{
  background:#8b5cf6;
  color:#fff;
}

.rt-btn-order{
  background:#8b5cf6;
  color:#fff;
}

.rt-field-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 10px;
}

.rt-field{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.rt-field.full{
  grid-column:1 / -1;
}

.rt-field label{
  font-size:11px;
  color:#555;
}

.rt-input,
.rt-select{
  width:100%;
  height:28px;
  border:1px solid #b6bcc6;
  background:#fff;
  padding:0 8px;
  font-size:12px;
  color:#222;
  outline:none;
}

.rt-input:disabled,
.rt-select:disabled{
  background:#f0f0f0;
  color:#777;
}

.rt-toggle-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 10px;
  margin-top:10px;
}

.rt-chip{
  height:28px;
  border:1px solid #b9bfc9;
  background:#f6f6f6;
  color:#222;
  font-size:12px;
  cursor:pointer;
}

.rt-chip.on{
  background:#dfe7f1;
  border-color:#99a6bb;
}

.rt-session-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 8px;
  margin-top:10px;
}

.rt-session-grid .full{
  grid-column:1 / -1;
}

.rt-total{
  margin-top:10px;
  font-size:13px;
  font-weight:700;
  color:#e19b1f;
}

.rt-toast{
  margin-top:10px;
  padding:8px 9px;
  font-size:11px;
  line-height:1.4;
  background:#e9edf4;
  border:1px solid #c5cedb;
  color:#344054;
}

.rt-view-title{
  font-size:12px;
  font-weight:700;
  color:#333;
  margin-bottom:8px;
}

.rt-hidden{
  display:none !important;
}


.trial-preview-box {
    margin-top: 12px;
}

.trial-preview-panel {
    background: #f7f8fb;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 16px;
}

.trial-preview-header {
    font-size: 14px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 14px;
}

.trial-preview-body {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    padding: 20px;
}

.trial-preview-btn {
    border: none;
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: default;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}

.trial-preview-hidden {
    font-size: 14px;
    color: #98a2b3;
    font-weight: 600;
}


/* ================= ROBOT PANEL CONFIG MODAL ================= */
.robot-panel-config-modal-box{
    width:min(1280px,96vw);
    max-height:92vh;
    background:#fff;
    border-radius:18px;
    box-shadow:0 24px 80px rgba(0,0,0,.18);
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.rpc-subtitle{
    margin:4px 0 0;
    color:#7b8190;
    font-size:13px;
    font-weight:500;
}

.robot-panel-config-body{
    padding:18px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:18px;
    background:#f6f8fc;
}

.robot-panel-config-top{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:18px;
    align-items:start;
}

.robot-panel-config-bottom{
    display:block;
}

.robot-panel-config-card{
    background:#fff;
    border:1px solid #e7ebf3;
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 24px rgba(23,31,56,.05);
}

.rpc-left-card{
    position:sticky;
    top:0;
}

.rpc-preview-card{
    min-height:620px;
}

.rpc-preview-head{
    margin-bottom:14px;
}

.rpc-preview-head h3{
    margin:0 0 4px;
}

.rpc-preview-head span{
    color:#7b8190;
    font-size:13px;
}

.robot-panel-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:18px;
    padding:14px;
    border-radius:14px;
    background:#f7f9fd;
    border:1px solid #edf1f7;
}

.rpc-section{
    margin-bottom:18px;
    padding:16px;
    border:1px solid #edf1f7;
    border-radius:14px;
    background:#fbfcfe;
}

.rpc-section h4{
    margin:0 0 14px;
    font-size:15px;
    font-weight:700;
    color:#1e2430;
}

.form-row{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:12px;
}

.form-row.two-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.form-group label{
    font-size:13px;
    font-weight:600;
    color:#424a5c;
}

.form-group input{
    height:40px;
    border:1px solid #d9dfeb;
    border-radius:10px;
    padding:0 12px;
    outline:none;
    font-size:14px;
    background:#fff;
}

.form-group input:focus{
    border-color:#7c5cff;
    box-shadow:0 0 0 3px rgba(124,92,255,.12);
}

.check-item{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:10px 12px;
    border:1px solid #e5e9f2;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
}

.check-item span{
    font-size:14px;
    font-weight:600;
    color:#2b3342;
}

.form-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.btn{
    border:none;
    border-radius:12px;
    padding:11px 16px;
    font-weight:700;
    cursor:pointer;
}

.btn.primary{
    background:#7c5cff;
    color:#fff;
}

.btn.secondary{
    background:#eef2f8;
    color:#253047;
}

.rpc-preview-root{
    background:#eef2f8;
    border:1px solid #e2e8f2;
    border-radius:16px;
    padding:18px;
    min-height:540px;
}

/* ================= PREVIEW PANEL ================= */
.rpc-preview-panel{
    width:100%;
    max-width:540px;
    margin:0 auto;
    border-radius:18px;
    overflow:hidden;
    background:#edf1f7;
    border:1px solid #dbe3f0;
    box-shadow:0 18px 40px rgba(23,31,56,.12);
}

.rpc-preview-titlebar{
    height:44px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#3b4250;
    color:#fff;
    font-weight:700;
    font-size:14px;
}

.rpc-preview-titlebar .win-actions{
    opacity:.8;
    font-weight:600;
}

.rpc-preview-body{
    padding:18px;
}

.rpc-preview-stats{
    display:grid;
    gap:6px;
    margin-bottom:16px;
}

.rpc-preview-line{
    font-size:13px;
    font-weight:600;
}

.rpc-preview-line.orange{ color:#a66a33; }
.rpc-preview-line.red{ color:#a14e4e; }
.rpc-preview-line.blue{ color:#2b6cb0; }
.rpc-preview-line.cyan{ color:#118ab2; }

.rpc-preview-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:16px;
}

.rpc-preview-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.rpc-preview-btn{
    border:none;
    border-radius:12px;
    min-height:38px;
    padding:10px 12px;
    font-weight:700;
    font-size:13px;
}

.rpc-preview-btn.settings{ background:#394150; color:#fff; }
.rpc-preview-btn.buy{ background:#ea9a20; color:#fff; }
.rpc-preview-btn.toggle{ background:#2cb660; color:#fff; }
.rpc-preview-btn.disabled{ opacity:.45; cursor:not-allowed; }

.rpc-preview-payment-box{
    margin-top:18px;
    padding:14px;
    border-radius:14px;
    background:#fff;
    border:1px solid #e5eaf3;
}

.rpc-preview-payment-box h4{
    margin:0 0 10px;
    font-size:14px;
    color:#1f2735;
}

.rpc-payment-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.rpc-payment-pill{
    padding:8px 12px;
    border-radius:999px;
    background:#f2f5fa;
    border:1px solid #dbe3ed;
    font-size:12px;
    font-weight:700;
    color:#384255;
}

.rpc-payment-empty{
    padding:10px 12px;
    border-radius:12px;
    background:#fff4f4;
    color:#c0392b;
    font-size:13px;
    font-weight:700;
    border:1px solid #ffd8d8;
}

/* ================= PLANS AREA ================= */
.rpc-bottom-card{
    padding:20px;
}

.rpc-inner-header{
    margin-bottom:14px;
}

.rpc-plans-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.rpc-plan-form-card{
    margin-top:6px;
}

.full-width-card{
    width:100%;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px){
    .robot-panel-config-top{
        grid-template-columns:1fr;
    }

    .rpc-left-card{
        position:static;
    }

    .rpc-plans-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 700px){
    .form-row.two-cols{
        grid-template-columns:1fr;
    }

    .rpc-preview-row{
        grid-template-columns:1fr;
    }

    .robot-panel-config-modal-box{
        width:98vw;
        max-height:95vh;
    }
}

/* =========================================================
   ROBOT PANEL CONFIG MODAL - CLEAN FINAL
   Eski robot-panel-config va rpc bilan bog'liq CSS larni o'chirib,
   shu blokni qoldiring
========================================================= */

/* overlay */
.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

/* main box */
#robotPanelConfigModal .robot-panel-config-modal-box{
  width:min(1320px,96vw);
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  color:#fff;
  padding:0;
}

/* header */
#robotPanelConfigModal .custom-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#111b2d 0%, #0f172a 100%);
}

#robotPanelConfigModal .custom-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-subtitle{
  margin:5px 0 0;
  color:#94a3b8;
  font-size:13px;
  line-height:1.4;
}

#robotPanelConfigModal .modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:12px;
  background:#1e293b;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  transition:.2s ease;
  flex-shrink:0;
}

#robotPanelConfigModal .modal-close-btn:hover{
  background:#334155;
  transform:scale(1.04);
}

/* body */
#robotPanelConfigModal .robot-panel-config-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:18px;
  background:#111827;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar{
  width:8px;
  height:8px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

/* top layout */
#robotPanelConfigModal .robot-panel-config-top{
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

/* bottom layout */
#robotPanelConfigModal .robot-panel-config-bottom{
  display:block;
}

/* card */
#robotPanelConfigModal .robot-panel-config-card{
  background:#0b1220;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

#robotPanelConfigModal .rpc-left-card{
  position:sticky;
  top:0;
}

#robotPanelConfigModal .rpc-preview-card{
  min-height:640px;
}

#robotPanelConfigModal .rpc-bottom-card{
  width:100%;
}

/* robot meta */
#robotPanelConfigModal .robot-panel-meta{
  display:grid;
  gap:8px;
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
  color:#e2e8f0;
  font-size:14px;
}

/* section boxes */
#robotPanelConfigModal .rpc-section{
  margin-bottom:16px;
  padding:16px;
  border-radius:16px;
  background:#111b2d;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .rpc-section h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
  color:#fff;
}

/* form rows - scoped only inside panel config */
#robotPanelConfigModal .form-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}

#robotPanelConfigModal .form-row.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* form group scoped */
#robotPanelConfigModal .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:0;
}

#robotPanelConfigModal .form-group label{
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

#robotPanelConfigModal .form-group input,
#robotPanelConfigModal .form-group select{
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#020617;
  color:#fff;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}

#robotPanelConfigModal .form-group input:focus,
#robotPanelConfigModal .form-group select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}

/* checkbox item scoped */
#robotPanelConfigModal .check-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:11px 12px;
  border-radius:12px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.07);
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .check-item:hover{
  background:#162033;
}

#robotPanelConfigModal .check-item input[type="checkbox"]{
  accent-color:#6366f1;
  transform:scale(1.1);
  flex-shrink:0;
}

#robotPanelConfigModal .check-item span{
  font-size:14px;
  font-weight:600;
  color:#e2e8f0;
}

/* action buttons */
#robotPanelConfigModal .form-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

#robotPanelConfigModal .btn{
  border:none;
  border-radius:12px;
  padding:11px 16px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .btn.primary{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
}

#robotPanelConfigModal .btn.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(99,102,241,.35);
}

#robotPanelConfigModal .btn.secondary{
  background:#334155;
  color:#fff;
}

#robotPanelConfigModal .btn.secondary:hover{
  background:#475569;
}

/* preview */
#robotPanelConfigModal .rpc-preview-head{
  margin-bottom:14px;
}

#robotPanelConfigModal .rpc-preview-head h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head span{
  color:#94a3b8;
  font-size:13px;
}

#robotPanelConfigModal .rpc-preview-root{
  background:#09111f;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:18px;
  min-height:540px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

/* preview window */
#robotPanelConfigModal .rpc-preview-panel{
  width:100%;
  max-width:560px;
  border-radius:18px;
  overflow:hidden;
  background:#e9edf3;
  border:1px solid #cdd6e2;
  box-shadow:0 16px 40px rgba(0,0,0,.20);
}

#robotPanelConfigModal .rpc-preview-titlebar{
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  background:#3b4250;
  color:#fff;
  font-size:14px;
  font-weight:700;
}

#robotPanelConfigModal .rpc-preview-titlebar .win-actions{
  opacity:.8;
  font-weight:600;
}

#robotPanelConfigModal .rpc-preview-body{
  padding:18px;
}

#robotPanelConfigModal .rpc-preview-stats{
  display:grid;
  gap:6px;
  margin-bottom:16px;
}

#robotPanelConfigModal .rpc-preview-line{
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .rpc-preview-line.orange{ color:#a66a33; }
#robotPanelConfigModal .rpc-preview-line.red{ color:#a14e4e; }
#robotPanelConfigModal .rpc-preview-line.blue{ color:#2b6cb0; }
#robotPanelConfigModal .rpc-preview-line.cyan{ color:#118ab2; }

#robotPanelConfigModal .rpc-preview-buttons{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

#robotPanelConfigModal .rpc-preview-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

#robotPanelConfigModal .rpc-preview-btn{
  border:none;
  border-radius:12px;
  min-height:38px;
  padding:10px 12px;
  font-size:13px;
  font-weight:700;
}

#robotPanelConfigModal .rpc-preview-btn.settings{
  background:#394150;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-btn.buy{
  background:#ea9a20;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-btn.toggle{
  background:#22c55e;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-btn.disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* payment preview */
#robotPanelConfigModal .rpc-preview-payment-box{
  margin-top:18px;
  padding:14px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e5eaf3;
}

#robotPanelConfigModal .rpc-preview-payment-box h4{
  margin:0 0 10px;
  font-size:14px;
  color:#1f2735;
}

#robotPanelConfigModal .rpc-payment-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

#robotPanelConfigModal .rpc-payment-pill{
  padding:8px 12px;
  border-radius:999px;
  background:#f2f5fa;
  border:1px solid #dbe3ed;
  font-size:12px;
  font-weight:700;
  color:#384255;
}

#robotPanelConfigModal .rpc-payment-empty{
  padding:10px 12px;
  border-radius:12px;
  background:#fff4f4;
  color:#c0392b;
  font-size:13px;
  font-weight:700;
  border:1px solid #ffd8d8;
}

/* bottom plans area */
#robotPanelConfigModal .rpc-inner-header{
  margin-bottom:14px;
}

#robotPanelConfigModal .rpc-plans-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}

#robotPanelConfigModal .rpc-plan-form-card{
  margin-top:4px;
}

/* use existing plans modal style inside config */
#robotPanelConfigModal .plan-card-section{
  background:#111827;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:10px;
  margin-bottom:0;
}

#robotPanelConfigModal .section-title-line.v3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
}

#robotPanelConfigModal .section-title-line.v3 span{
  flex:1;
  height:1px;
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

#robotPanelConfigModal .section-title-line.v3 h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .mini-table-head,
#robotPanelConfigModal .mini-row{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 110px;
  gap:8px;
  align-items:center;
  text-align:center;
  justify-items:center;
}

#robotPanelConfigModal .trial-head,
#robotPanelConfigModal .mini-row.three{
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 110px;
}

#robotPanelConfigModal .mini-table-head{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  padding:8px 10px;
  color:#94a3b8;
  font-size:11px;
  font-weight:700;
  margin-bottom:6px;
}

#robotPanelConfigModal .mini-row{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  padding:8px 10px;
  min-height:42px;
}

#robotPanelConfigModal .mini-table-head > div,
#robotPanelConfigModal .mini-row > div{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  min-width:0;
}

#robotPanelConfigModal .mini-table-body{
  display:flex;
  flex-direction:column;
  gap:6px;
}

#robotPanelConfigModal .scroll-box{
  max-height:180px;
  overflow-y:auto;
  padding-right:2px;
}

#robotPanelConfigModal .scroll-box::-webkit-scrollbar{
  width:6px;
}

#robotPanelConfigModal .scroll-box::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.14);
  border-radius:999px;
}

/* plan form */
#robotPanelConfigModal .plan-form-card{
  background:#111827;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:12px;
}

#robotPanelConfigModal .plan-type-actions.v3{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:10px;
}

#robotPanelConfigModal .type-btn{
  border:none;
  border-radius:10px;
  padding:10px 8px;
  min-height:40px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:.18s ease;
}

#robotPanelConfigModal .type-btn:hover{
  transform:translateY(-1px);
}

#robotPanelConfigModal .type-btn.active{
  box-shadow:0 0 0 2px rgba(255,255,255,.14) inset;
}

#robotPanelConfigModal .type-btn.purple{
  background:linear-gradient(135deg,#4f56f0,#6957f5);
}

#robotPanelConfigModal .type-btn.green{
  background:linear-gradient(135deg,#12d46a,#12bf60);
}

#robotPanelConfigModal .universal-plan-form.v3{
  margin-top:0;
}

#robotPanelConfigModal .form-row-3{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:8px;
}

#robotPanelConfigModal .form-row-3 input,
#robotPanelConfigModal .single-field-row input{
  width:100%;
  min-height:40px;
  padding:10px 12px;
  border-radius:11px;
  border:1px solid rgba(101,123,164,.40);
  background:#081226;
  color:#fff;
  outline:none;
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .form-row-3 input:focus,
#robotPanelConfigModal .single-field-row input:focus{
  border-color:#7f7cff;
  box-shadow:0 0 0 3px rgba(127,124,255,.14);
}

#robotPanelConfigModal .plan-footer-actions.v3{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

#robotPanelConfigModal .footer-btn{
  border:none;
  border-radius:11px;
  min-height:42px;
  padding:11px 10px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
}

#robotPanelConfigModal .back-btn-v3{
  background:linear-gradient(135deg,#4d56ef,#6558f4);
}

#robotPanelConfigModal .save-btn-v3{
  background:linear-gradient(135deg,#31d316,#44db12);
}

/* responsive */
@media (max-width: 1100px){
  #robotPanelConfigModal .robot-panel-config-top{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-left-card{
    position:static;
  }

  #robotPanelConfigModal .rpc-plans-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .custom-modal{
    padding:12px;
  }

  #robotPanelConfigModal .robot-panel-config-modal-box{
    width:98vw;
    max-height:95vh;
  }

  #robotPanelConfigModal .custom-modal-header{
    padding:16px;
  }

  #robotPanelConfigModal .robot-panel-config-body{
    padding:14px;
  }

  #robotPanelConfigModal .robot-panel-config-card{
    padding:14px;
  }

  #robotPanelConfigModal .form-row.two-cols{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-preview-row{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .form-actions{
    flex-direction:column;
  }

  #robotPanelConfigModal .btn{
    width:100%;
  }

  #robotPanelConfigModal .form-row-3{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .plan-type-actions.v3{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .plan-footer-actions.v3{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .mini-table-head,
  #robotPanelConfigModal .mini-row{
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.8fr) 90px;
  }

  #robotPanelConfigModal .trial-head,
  #robotPanelConfigModal .mini-row.three{
    grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 90px;
  }
}

/* ================= PANEL CONFIG MANAGE BLOCK ================= */
.rpc-inner-header{
    margin-bottom:16px;
}

.rpc-inner-header h3{
    margin:0 0 4px;
    font-size:20px;
    font-weight:700;
    color:#1e2430;
}

.rpc-inner-header span{
    color:#7b8190;
    font-size:13px;
}

.rpc-manage-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.rpc-form-box{
    margin-top:16px;
    padding:14px;
    border-radius:14px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.06);
}

.rpc-mini-table{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.rpc-mini-head,
.rpc-mini-row{
    width:100%;
    display:grid;
    align-items:center;
    gap:8px;
    text-align:center;
}

.rpc-mini-head{
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    color:#94a3b8;
    font-size:12px;
    font-weight:700;
}

.rpc-mini-row{
    padding:10px 12px;
    border-radius:12px;
    background:#111827;
    border:1px solid rgba(255,255,255,0.06);
    color:#fff;
    font-size:13px;
    font-weight:600;
}

.rpc-mini-head-4,
.rpc-mini-row-4{
    grid-template-columns:1.4fr .8fr .8fr 90px;
}

.rpc-mini-head-3,
.rpc-mini-row-3{
    grid-template-columns:1.4fr 1fr 90px;
}

.rpc-mini-head > div,
.rpc-mini-row > div{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    text-align:center;
}

.rpc-mini-body{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.rpc-manage-type-actions{
    margin-top:4px;
    margin-bottom:14px;
}

@media (max-width: 1100px){
    .rpc-manage-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 640px){
    .rpc-mini-head-4,
    .rpc-mini-row-4{
        grid-template-columns:1.2fr .8fr .8fr 80px;
    }

    .rpc-mini-head-3,
    .rpc-mini-row-3{
        grid-template-columns:1.2fr .9fr 80px;
    }
}

/* ================= PANEL CONFIG RIGHT SIDE MANAGE ================= */
.rpc-preview-card{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.rpc-manage-wrap{
    margin-top:4px;
    padding-top:4px;
}

.rpc-inner-header{
    margin-bottom:14px;
}

.rpc-inner-header h3{
    margin:0 0 4px;
    font-size:20px;
    font-weight:700;
    color:#1e2430;
}

.rpc-inner-header span{
    color:#7b8190;
    font-size:13px;
}

.rpc-manage-type-actions{
    display:flex !important;
    justify-content:flex-start !important;
    align-items:center;
    gap:10px;
    margin:0 0 16px 0;
}

.rpc-manage-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:16px;
}

.rpc-manage-footer{
    display:flex !important;
    justify-content:flex-end !important;
    grid-template-columns:none !important;
    margin-top:8px;
}

.rpc-manage-footer .footer-btn{
    min-width:160px;
}

.rpc-mini-table{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.rpc-mini-head,
.rpc-mini-row{
    width:100%;
    display:grid;
    align-items:center;
    gap:8px;
    text-align:center;
}

.rpc-mini-head{
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    color:#94a3b8;
    font-size:12px;
    font-weight:700;
}

.rpc-mini-row{
    padding:10px 12px;
    border-radius:12px;
    background:#111827;
    border:1px solid rgba(255,255,255,0.06);
    color:#fff;
    font-size:13px;
    font-weight:600;
}

.rpc-mini-head-4,
.rpc-mini-row-4{
    grid-template-columns:1.4fr .8fr .8fr 90px;
}

.rpc-mini-head-3,
.rpc-mini-row-3{
    grid-template-columns:1.4fr 1fr 90px;
}

.rpc-mini-head > div,
.rpc-mini-row > div{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    text-align:center;
}

.rpc-mini-body{
    display:flex;
    flex-direction:column;
    gap:8px;
}

@media (max-width: 1100px){
    .robot-panel-config-top{
        grid-template-columns:1fr;
    }

    .rpc-manage-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 700px){
    .rpc-manage-type-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .rpc-manage-footer{
        justify-content:stretch !important;
    }

    .rpc-manage-footer .footer-btn{
        width:100%;
    }

    .rpc-mini-head-4,
    .rpc-mini-row-4{
        grid-template-columns:1.2fr .8fr .8fr 80px;
    }

    .rpc-mini-head-3,
    .rpc-mini-row-3{
        grid-template-columns:1.2fr .9fr 80px;
    }
}

/* =========================================================
   ROBOT PANEL CONFIG MODAL - CLEAN FINAL
========================================================= */

.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

#robotPanelConfigModal .robot-panel-config-modal-box{
  width:min(1320px,96vw);
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  color:#fff;
  padding:0;
}

#robotPanelConfigModal .custom-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#111b2d 0%, #0f172a 100%);
}

#robotPanelConfigModal .custom-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-subtitle{
  margin:5px 0 0;
  color:#94a3b8;
  font-size:13px;
  line-height:1.4;
}

#robotPanelConfigModal .modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:12px;
  background:#1e293b;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  transition:.2s ease;
  flex-shrink:0;
}

#robotPanelConfigModal .modal-close-btn:hover{
  background:#334155;
  transform:scale(1.04);
}

#robotPanelConfigModal .robot-panel-config-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px;
  background:#111827;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar{
  width:8px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

#robotPanelConfigModal .robot-panel-config-top{
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

#robotPanelConfigModal .robot-panel-config-card{
  background:#0b1220;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

#robotPanelConfigModal .rpc-left-card{
  position:sticky;
  top:0;
}

#robotPanelConfigModal .rpc-preview-card{
  min-height:auto;
  display:flex;
  flex-direction:column;
  gap:18px;
}

#robotPanelConfigModal .robot-panel-meta{
  display:grid;
  gap:8px;
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
  color:#e2e8f0;
  font-size:14px;
}

#robotPanelConfigModal .rpc-section{
  margin-bottom:16px;
  padding:16px;
  border-radius:16px;
  background:#111b2d;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .rpc-section h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .form-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}

#robotPanelConfigModal .form-row.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#robotPanelConfigModal .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:0;
}

#robotPanelConfigModal .form-group label{
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

#robotPanelConfigModal .form-group input,
#robotPanelConfigModal .form-group select{
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#020617;
  color:#fff;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}

#robotPanelConfigModal .form-group input:focus,
#robotPanelConfigModal .form-group select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}

#robotPanelConfigModal .check-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:11px 12px;
  border-radius:12px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.07);
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .check-item:hover{
  background:#162033;
}

#robotPanelConfigModal .check-item input[type="checkbox"]{
  accent-color:#6366f1;
  transform:scale(1.1);
  flex-shrink:0;
}

#robotPanelConfigModal .check-item span{
  font-size:14px;
  font-weight:600;
  color:#e2e8f0;
}

#robotPanelConfigModal .rpc-form-box{
  margin-top:4px;
  padding:14px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .plan-type-actions.v3.rpc-manage-type-actions{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
  margin:0 0 16px 0;
}

#robotPanelConfigModal .type-btn{
  border:none;
  border-radius:10px;
  padding:10px 14px;
  min-height:40px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:.18s ease;
}

#robotPanelConfigModal .type-btn.purple{
  background:linear-gradient(135deg,#4f56f0,#6957f5);
}

#robotPanelConfigModal .type-btn.green{
  background:linear-gradient(135deg,#12d46a,#12bf60);
}

#robotPanelConfigModal .type-btn.active{
  box-shadow:0 0 0 2px rgba(255,255,255,.14) inset;
}

#robotPanelConfigModal .rpc-manage-footer-left{
  display:flex;
  justify-content:flex-end;
  margin:0 0 18px;
}

#robotPanelConfigModal .footer-btn{
  border:none;
  border-radius:11px;
  min-height:42px;
  padding:11px 18px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
}

#robotPanelConfigModal .save-btn-v3{
  background:linear-gradient(135deg,#31d316,#44db12);
  min-width:160px;
}

#robotPanelConfigModal .form-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

#robotPanelConfigModal .btn{
  border:none;
  border-radius:12px;
  padding:11px 16px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .btn.primary{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
}

#robotPanelConfigModal .btn.secondary{
  background:#334155;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head{
  margin-bottom:0;
}

#robotPanelConfigModal .rpc-preview-head h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head span{
  color:#94a3b8;
  font-size:13px;
}

#robotPanelConfigModal .rpc-preview-root{
  background:#09111f;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:18px;
  min-height:320px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

#robotPanelConfigModal .rpc-manage-wrap{
  margin-top:4px;
}

#robotPanelConfigModal .rpc-inner-header{
  margin-bottom:14px;
}

#robotPanelConfigModal .rpc-inner-header h3{
  margin:0 0 4px;
  font-size:20px;
  font-weight:700;
  color:#fff;
}

#robotPanelConfigModal .rpc-inner-header span{
  color:#94a3b8;
  font-size:13px;
}

#robotPanelConfigModal .rpc-manage-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

#robotPanelConfigModal .rpc-mini-table{
  display:flex;
  flex-direction:column;
  gap:8px;
}

#robotPanelConfigModal .rpc-mini-head,
#robotPanelConfigModal .rpc-mini-row{
  width:100%;
  display:grid;
  align-items:center;
  gap:8px;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-head{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  color:#94a3b8;
  font-size:12px;
  font-weight:700;
}

#robotPanelConfigModal .rpc-mini-row{
  padding:10px 12px;
  border-radius:12px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .rpc-mini-head-4,
#robotPanelConfigModal .rpc-mini-row-4{
  grid-template-columns:1.4fr .8fr .8fr 90px;
}

#robotPanelConfigModal .rpc-mini-head-3,
#robotPanelConfigModal .rpc-mini-row-3{
  grid-template-columns:1.4fr 1fr 90px;
}

#robotPanelConfigModal .rpc-mini-head > div,
#robotPanelConfigModal .rpc-mini-row > div{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

@media (max-width:1100px){
  #robotPanelConfigModal .robot-panel-config-top{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-left-card{
    position:static;
  }

  #robotPanelConfigModal .rpc-manage-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .custom-modal{
    padding:12px;
  }

  #robotPanelConfigModal .robot-panel-config-modal-box{
    width:98vw;
    max-height:95vh;
  }

  #robotPanelConfigModal .custom-modal-header{
    padding:16px;
  }

  #robotPanelConfigModal .robot-panel-config-body{
    padding:14px;
  }

  #robotPanelConfigModal .robot-panel-config-card{
    padding:14px;
  }

  #robotPanelConfigModal .form-row.two-cols{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-manage-grid{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .plan-type-actions.v3.rpc-manage-type-actions{
    flex-direction:column;
    align-items:stretch;
  }

  #robotPanelConfigModal .rpc-manage-footer-left{
    justify-content:stretch;
  }

  #robotPanelConfigModal .save-btn-v3{
    width:100%;
  }

  #robotPanelConfigModal .form-actions{
    flex-direction:column;
  }

  #robotPanelConfigModal .btn{
    width:100%;
  }

  #robotPanelConfigModal .rpc-mini-head-4,
  #robotPanelConfigModal .rpc-mini-row-4{
    grid-template-columns:1.2fr .8fr .8fr 80px;
  }

  #robotPanelConfigModal .rpc-mini-head-3,
  #robotPanelConfigModal .rpc-mini-row-3{
    grid-template-columns:1.2fr .9fr 80px;
  }
}
/* ================= ROBOT PANEL CONFIG MODAL ================= */
#robotPanelConfigModal.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

#robotPanelConfigModal .robot-panel-config-modal-box{
  width:min(1320px,96vw);
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  color:#fff;
  padding:0;
}

#robotPanelConfigModal .custom-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#111b2d 0%, #0f172a 100%);
}

#robotPanelConfigModal .custom-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-subtitle{
  margin:5px 0 0;
  color:#94a3b8;
  font-size:13px;
  line-height:1.4;
}

#robotPanelConfigModal .modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:12px;
  background:#1e293b;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  transition:.2s ease;
  flex-shrink:0;
}

#robotPanelConfigModal .modal-close-btn:hover{
  background:#334155;
  transform:scale(1.04);
}

#robotPanelConfigModal .robot-panel-config-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px;
  background:#111827;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar{
  width:8px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

#robotPanelConfigModal .robot-panel-config-top{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

#robotPanelConfigModal .robot-panel-config-card{
  background:#0b1220;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

#robotPanelConfigModal .rpc-left-card{
  position:sticky;
  top:0;
}

#robotPanelConfigModal .rpc-preview-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}

#robotPanelConfigModal .robot-panel-meta{
  display:grid;
  gap:8px;
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
  color:#e2e8f0;
  font-size:14px;
}

#robotPanelConfigModal .rpc-section{
  margin-bottom:16px;
  padding:16px;
  border-radius:16px;
  background:#111b2d;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .rpc-section h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-form-box{
  margin-top:4px;
  padding:14px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .form-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}

#robotPanelConfigModal .form-row.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#robotPanelConfigModal .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:0;
}

#robotPanelConfigModal .form-group label{
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

#robotPanelConfigModal .form-group input,
#robotPanelConfigModal .form-group select{
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#020617;
  color:#fff;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}

#robotPanelConfigModal .form-group input:focus,
#robotPanelConfigModal .form-group select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}

#robotPanelConfigModal .check-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:11px 12px;
  border-radius:12px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.07);
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .check-item:hover{
  background:#162033;
}

#robotPanelConfigModal .check-item input[type="checkbox"]{
  accent-color:#6366f1;
  transform:scale(1.1);
  flex-shrink:0;
}

#robotPanelConfigModal .check-item span{
  font-size:14px;
  font-weight:600;
  color:#e2e8f0;
}

#robotPanelConfigModal .rpc-inline-action{
  margin-top:12px;
}

#robotPanelConfigModal .type-btn{
  border:none;
  border-radius:10px;
  padding:10px 14px;
  min-height:40px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:.18s ease;
}

#robotPanelConfigModal .type-btn:hover{
  transform:translateY(-1px);
}

#robotPanelConfigModal .type-btn.purple{
  background:linear-gradient(135deg,#4f56f0,#6957f5);
}

#robotPanelConfigModal .type-btn.green{
  background:linear-gradient(135deg,#12d46a,#12bf60);
}

#robotPanelConfigModal .type-btn.active{
  box-shadow:0 0 0 2px rgba(255,255,255,.14) inset;
}

#robotPanelConfigModal .form-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

#robotPanelConfigModal .btn{
  border:none;
  border-radius:12px;
  padding:11px 16px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .btn.primary{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
}

#robotPanelConfigModal .btn.secondary{
  background:#334155;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head{
  margin-bottom:0;
}

#robotPanelConfigModal .rpc-preview-head h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head span{
  color:#94a3b8;
  font-size:13px;
}

#robotPanelConfigModal .rpc-manage-wrap{
  background:#09111f;
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:18px;
  min-height:560px;
}

#robotPanelConfigModal .rpc-manage-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

#robotPanelConfigModal .rpc-mini-table{
  display:flex;
  flex-direction:column;
  gap:8px;
}

#robotPanelConfigModal .rpc-mini-head,
#robotPanelConfigModal .rpc-mini-row{
  width:100%;
  display:grid;
  align-items:center;
  gap:8px;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-head{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  color:#94a3b8;
  font-size:12px;
  font-weight:700;
}

#robotPanelConfigModal .rpc-mini-row{
  padding:10px 12px;
  border-radius:12px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .rpc-mini-head-4,
#robotPanelConfigModal .rpc-mini-row-4{
  grid-template-columns:1.4fr .8fr .8fr 90px;
}

#robotPanelConfigModal .rpc-mini-head-3,
#robotPanelConfigModal .rpc-mini-row-3{
  grid-template-columns:1.4fr 1fr 90px;
}

#robotPanelConfigModal .rpc-mini-head > div,
#robotPanelConfigModal .rpc-mini-row > div{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

@media (max-width:1100px){
  #robotPanelConfigModal .robot-panel-config-top{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-left-card{
    position:static;
  }
}

@media (max-width:768px){
  #robotPanelConfigModal.custom-modal{
    padding:12px;
  }

  #robotPanelConfigModal .robot-panel-config-modal-box{
    width:98vw;
    max-height:95vh;
  }

  #robotPanelConfigModal .custom-modal-header{
    padding:16px;
  }

  #robotPanelConfigModal .robot-panel-config-body{
    padding:14px;
  }

  #robotPanelConfigModal .robot-panel-config-card{
    padding:14px;
  }

  #robotPanelConfigModal .form-row.two-cols{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .form-actions{
    flex-direction:column;
  }

  #robotPanelConfigModal .btn,
  #robotPanelConfigModal .type-btn{
    width:100%;
  }

  #robotPanelConfigModal .rpc-mini-head-4,
  #robotPanelConfigModal .rpc-mini-row-4{
    grid-template-columns:1.2fr .8fr .8fr 80px;
  }

  #robotPanelConfigModal .rpc-mini-head-3,
  #robotPanelConfigModal .rpc-mini-row-3{
    grid-template-columns:1.2fr .9fr 80px;
  }
}

#robotPanelConfigModal .rpc-preview-card{
  min-height:680px;
  height:680px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

#robotPanelConfigModal .rpc-manage-wrap{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;

  background:#09111f;
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:18px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar{
  width:8px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar-track{
  background:rgba(255,255,255,.03);
  border-radius:999px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.28);
}

/* =========================================================
   ROBOT PANEL CONFIG MODAL - FINAL CLEAN CSS
   Faqat #robotPanelConfigModal ichida ishlaydi
========================================================= */

#robotPanelConfigModal.custom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

#robotPanelConfigModal .robot-panel-config-modal-box{
  width:min(1320px,96vw);
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  color:#fff;
  padding:0;
}

/* ================= HEADER ================= */
#robotPanelConfigModal .custom-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#111b2d 0%, #0f172a 100%);
}

#robotPanelConfigModal .custom-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-subtitle{
  margin:5px 0 0;
  color:#94a3b8;
  font-size:13px;
  line-height:1.4;
}

#robotPanelConfigModal .modal-close-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:12px;
  background:#1e293b;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  transition:.2s ease;
  flex-shrink:0;
}

#robotPanelConfigModal .modal-close-btn:hover{
  background:#334155;
  transform:scale(1.04);
}

/* ================= BODY ================= */
#robotPanelConfigModal .robot-panel-config-body{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px;
  background:#111827;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar{
  width:8px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}

#robotPanelConfigModal .robot-panel-config-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

#robotPanelConfigModal .robot-panel-config-top{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

/* ================= CARDS ================= */
#robotPanelConfigModal .robot-panel-config-card{
  background:#0b1220;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

#robotPanelConfigModal .rpc-left-card{
  position:sticky;
  top:0;
}

#robotPanelConfigModal .rpc-preview-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}

#robotPanelConfigModal .robot-panel-meta{
  display:grid;
  gap:8px;
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
  color:#e2e8f0;
  font-size:14px;
}

/* ================= SECTION ================= */
#robotPanelConfigModal .rpc-section{
  margin-bottom:16px;
  padding:16px;
  border-radius:16px;
  background:#111b2d;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .rpc-section:last-child{
  margin-bottom:0;
}

#robotPanelConfigModal .rpc-section h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
  color:#fff;
}

/* ================= FORM BOX ================= */
#robotPanelConfigModal .rpc-form-box{
  margin-top:4px;
  padding:14px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
}

#robotPanelConfigModal .form-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}

#robotPanelConfigModal .form-row:last-child{
  margin-bottom:0;
}

#robotPanelConfigModal .form-row.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#robotPanelConfigModal .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:0;
}

#robotPanelConfigModal .form-group label{
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

#robotPanelConfigModal .form-group input,
#robotPanelConfigModal .form-group select{
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#020617;
  color:#fff;
  outline:none;
  font-size:14px;
  transition:.2s ease;
}

#robotPanelConfigModal .form-group input:focus,
#robotPanelConfigModal .form-group select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}

#robotPanelConfigModal .form-group input::placeholder{
  color:#64748b;
}

/* ================= CHECK ITEMS ================= */
#robotPanelConfigModal .check-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:11px 12px;
  border-radius:12px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.07);
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .check-item:hover{
  background:#162033;
}

#robotPanelConfigModal .check-item input[type="checkbox"]{
  accent-color:#6366f1;
  transform:scale(1.08);
  flex-shrink:0;
}

#robotPanelConfigModal .check-item span{
  font-size:14px;
  font-weight:600;
  color:#e2e8f0;
}

/* ================= ACTION BUTTONS ================= */
#robotPanelConfigModal .rpc-inline-action{
  margin-top:12px;
}

#robotPanelConfigModal .type-btn{
  border:none;
  border-radius:10px;
  padding:10px 14px;
  min-height:40px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  transition:.18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#robotPanelConfigModal .type-btn:hover{
  transform:translateY(-1px);
}

#robotPanelConfigModal .type-btn.purple{
  background:linear-gradient(135deg,#4f56f0,#6957f5);
}

#robotPanelConfigModal .type-btn.green{
  background:linear-gradient(135deg,#12d46a,#12bf60);
}

#robotPanelConfigModal .type-btn.active{
  box-shadow:0 0 0 2px rgba(255,255,255,.14) inset;
}

#robotPanelConfigModal .form-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

#robotPanelConfigModal .btn{
  border:none;
  border-radius:12px;
  padding:11px 16px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

#robotPanelConfigModal .btn.primary{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
}

#robotPanelConfigModal .btn.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(99,102,241,.35);
}

#robotPanelConfigModal .btn.secondary{
  background:#334155;
  color:#fff;
}

#robotPanelConfigModal .btn.secondary:hover{
  background:#475569;
}

/* ================= RIGHT SIDE HEAD ================= */
#robotPanelConfigModal .rpc-preview-head{
  margin-bottom:0;
}

#robotPanelConfigModal .rpc-preview-head h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:800;
  color:#fff;
}

#robotPanelConfigModal .rpc-preview-head span{
  color:#94a3b8;
  font-size:13px;
}

/* ================= RIGHT SIDE SCROLL AREA ================= */
#robotPanelConfigModal .rpc-manage-wrap{
  background:#09111f;
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:18px;
  height:720px;              /* shu joy preview uchun balandlik */
  overflow-y:auto;           /* asosiy scroll shu yerda */
  overflow-x:hidden;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar{
  width:8px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}

#robotPanelConfigModal .rpc-manage-wrap::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

#robotPanelConfigModal .rpc-manage-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

/* ================= MINI TABLES ================= */
#robotPanelConfigModal .rpc-mini-table{
  display:flex;
  flex-direction:column;
  gap:8px;
}

#robotPanelConfigModal .rpc-mini-head,
#robotPanelConfigModal .rpc-mini-row{
  width:100%;
  display:grid;
  align-items:center;
  gap:8px;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-head{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  color:#94a3b8;
  font-size:12px;
  font-weight:700;
}

#robotPanelConfigModal .rpc-mini-row{
  padding:10px 12px;
  border-radius:12px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .rpc-mini-head-4,
#robotPanelConfigModal .rpc-mini-row-4{
  grid-template-columns:1.4fr .8fr .8fr 90px;
}

#robotPanelConfigModal .rpc-mini-head-3,
#robotPanelConfigModal .rpc-mini-row-3{
  grid-template-columns:1.4fr 1fr 90px;
}

#robotPanelConfigModal .rpc-mini-head > div,
#robotPanelConfigModal .rpc-mini-row > div{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  text-align:center;
}

#robotPanelConfigModal .rpc-mini-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* JS eski classlar bilan ham ishlashi uchun */
#robotPanelConfigModal .mini-row{
  width:100%;
  display:grid;
  gap:8px;
  align-items:center;
  text-align:center;
  padding:10px 12px;
  border-radius:12px;
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

#robotPanelConfigModal .mini-row{
  grid-template-columns:1.4fr .8fr .8fr 90px;
}

#robotPanelConfigModal .mini-row.three{
  grid-template-columns:1.4fr 1fr 90px;
}

#robotPanelConfigModal .cell{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-width:0;
}

#robotPanelConfigModal .cell.actions{
  gap:6px;
}

/* action icons inside list */
#robotPanelConfigModal .icon-btn{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:9px;
  background:rgba(255,255,255,0.05);
  cursor:pointer;
  transition:.2s ease;
  padding:0;
}

#robotPanelConfigModal .icon-btn svg{
  width:15px;
  height:15px;
}

#robotPanelConfigModal .edit-btn{
  color:#38bdf8;
}

#robotPanelConfigModal .edit-btn:hover{
  background:rgba(56,189,248,0.15);
}

#robotPanelConfigModal .delete-btn{
  color:#ef4444;
}

#robotPanelConfigModal .delete-btn:hover{
  background:rgba(239,68,68,0.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  #robotPanelConfigModal .robot-panel-config-top{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .rpc-left-card{
    position:static;
  }

  #robotPanelConfigModal .rpc-manage-wrap{
    height:520px;
  }
}

@media (max-width:768px){
  #robotPanelConfigModal.custom-modal{
    padding:12px;
  }

  #robotPanelConfigModal .robot-panel-config-modal-box{
    width:98vw;
    max-height:95vh;
  }

  #robotPanelConfigModal .custom-modal-header{
    padding:16px;
  }

  #robotPanelConfigModal .robot-panel-config-body{
    padding:14px;
  }

  #robotPanelConfigModal .robot-panel-config-card{
    padding:14px;
  }

  #robotPanelConfigModal .form-row.two-cols{
    grid-template-columns:1fr;
  }

  #robotPanelConfigModal .form-actions{
    flex-direction:column;
  }

  #robotPanelConfigModal .btn,
  #robotPanelConfigModal .type-btn{
    width:100%;
  }

  #robotPanelConfigModal .rpc-manage-wrap{
    height:460px;
    padding:14px;
  }

  #robotPanelConfigModal .rpc-mini-head-4,
  #robotPanelConfigModal .rpc-mini-row-4,
  #robotPanelConfigModal .mini-row{
    grid-template-columns:1.2fr .8fr .8fr 80px;
  }

  #robotPanelConfigModal .rpc-mini-head-3,
  #robotPanelConfigModal .rpc-mini-row-3,
  #robotPanelConfigModal .mini-row.three{
    grid-template-columns:1.2fr .9fr 80px;
  }
}

.rpc-update-preview-box{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.06);
}

.rpc-preview-update-btn{
  border:none;
  border-radius:12px;
  min-height:44px;
  padding:12px 18px;
  background:linear-gradient(135deg,#3b82f6,#6366f1);
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:default;
  box-shadow:0 10px 24px rgba(59,130,246,.22);
}

.rpc-update-preview-off{
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(239,68,68,.10);
  border:1px dashed rgba(239,68,68,.30);
  color:#fca5a5;
  font-size:13px;
  font-weight:700;
}