.upo-ac-wrap{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  color:#1e293b;
  max-width:620px;
  margin:24px auto;
  background:#f8fafc;
  border-radius:14px;
  box-shadow:0 4px 20px rgba(0,0,0,0.09);
  overflow:hidden;
}
.upo-ac-wrap *{box-sizing:border-box}

.upo-ac-header{
  background:linear-gradient(135deg,#0c1f3f 0%,#1241a3 60%,#1d5fd4 100%);
  padding:24px 24px 20px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.upo-ac-header::before{
  content:'';position:absolute;top:-60px;right:-60px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,0.04);pointer-events:none;
}
.upo-ac-header::after{
  content:'';position:absolute;bottom:0;left:35%;
  width:150px;height:150px;border-radius:50%;
  background:rgba(255,255,255,0.03);pointer-events:none;
}
.upo-ac-header-inner{
  position:relative;z-index:1;
  display:flex;align-items:center;gap:14px;margin-bottom:14px;
}
.upo-ac-header-icon{
  width:46px;height:46px;flex-shrink:0;
  background:rgba(255,255,255,0.12);
  border-radius:13px;border:1px solid rgba(255,255,255,0.18);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4em;
}
.upo-ac-header-text h2{
  margin:0 0 3px;font-size:1.2em;font-weight:700;
  letter-spacing:-0.3px;color:#fff!important;line-height:1.25;
}
.upo-ac-header-text p{
  margin:0;font-size:0.8em;opacity:0.7;line-height:1.4;
}
.upo-ac-header-badges{
  position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;
}
.upo-ac-hbadge{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;
  background:rgba(255,255,255,0.10);color:rgba(255,255,255,0.85);
  border:1px solid rgba(255,255,255,0.16);
}

.upo-ac-card{
  background:#fff;
  padding:20px 22px 18px;
}

.upo-ac-grid{
  display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:4px;
}
.upo-ac-field{width:100%;}
.upo-ac-field label{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 0 5px;font-size:12.5px;font-weight:600;
  color:rgba(15,23,42,.72);
}
.upo-ac-help{font-size:11px;font-weight:500;color:#94a3b8;}
.upo-ac-req{color:#ef4444;font-weight:700;}

.upo-ac-street{margin-top:12px;}
.upo-ac-street input{
  width:100%;height:40px;
  border:1px solid rgba(148,163,184,.85);border-radius:10px;
  padding:0 12px;background:#fff;color:#0f172a;
  font-size:13.5px;font-family:inherit;outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.upo-ac-street input::placeholder{color:#94a3b8;}
.upo-ac-street input:focus{
  border-color:rgba(37,99,235,.85);
  box-shadow:0 0 0 3px rgba(37,99,235,.14);
}

.upo-ac-actions{
  display:flex;flex-wrap:wrap;gap:8px;
  align-items:center;justify-content:flex-end;
  margin-top:16px;
}
@media(max-width:480px){.upo-ac-actions{flex-direction:column;align-items:stretch;}}
.upo-ac-btn{
  appearance:none;border:none;border-radius:10px;
  padding:10px 20px;font-size:14px;font-weight:600;
  cursor:pointer;display:inline-flex;align-items:center;
  justify-content:center;gap:6px;min-width:120px;
  transition:transform .12s,box-shadow .12s,opacity .12s;
}
.upo-ac-btn.primary{
  color:#fff;
  background:linear-gradient(135deg,#1241a3,#1d5fd4);
  box-shadow:0 8px 18px rgba(18,65,163,.28);
}
.upo-ac-btn.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(18,65,163,.34);
}
.upo-ac-btn.ghost{
  color:#334155;background:#f1f5f9;
  border:1px solid rgba(148,163,184,.55);
}
.upo-ac-btn.ghost:hover{background:#e2e8f0;}
.upo-ac-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none;}

.upo-ac-status{
  margin-top:12px;display:none;
  align-items:center;gap:8px;font-size:12.5px;color:#475569;
  background:#f8fafc;border-radius:10px;
  border:1px dashed #cbd5e1;padding:9px 12px;
}
.upo-ac-status.on{display:flex;}
.upo-ac-spin{
  width:13px;height:13px;border-radius:50%;flex-shrink:0;
  border:2px solid rgba(148,163,184,.5);border-top-color:#2563eb;
  animation:upoacspin .8s linear infinite;
}
@keyframes upoacspin{to{transform:rotate(360deg);}}
.upo-ac-status .t{font-weight:600;}
.upo-ac-status .sec{
  margin-left:auto;min-width:38px;height:20px;
  border-radius:999px;border:1px solid #cbd5e1;
  font-size:11px;font-weight:600;
  display:flex;align-items:center;justify-content:center;background:#fff;
}

.upo-ac-result{
  margin-top:14px;display:none;
  border-radius:12px;border:1px solid #e2e8f0;
  overflow:hidden;background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.08);
}
.upo-ac-result .top{
  display:flex;justify-content:space-between;align-items:center;
  gap:8px;padding:9px 12px;
  background:linear-gradient(180deg,#f9fafb,#eef2ff);
  border-bottom:1px solid #e2e8f0;
}
.upo-ac-result .tag{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;font-weight:700;color:#0f172a;
}
.upo-ac-result .tag .s{
  width:9px;height:9px;border-radius:50%;flex-shrink:0;
}
.upo-ac-result.ok  .tag .s{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.2);}
.upo-ac-result.bad .tag .s{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.2);}
.upo-ac-body{padding:12px 14px 10px;}
.upo-ac-row{display:flex;gap:10px;align-items:flex-start;margin:7px 0;}
.upo-ac-k{min-width:52px;font-size:12px;font-weight:700;color:#64748b;padding-top:2px;}
.upo-ac-v{flex:1;font-size:13.5px;line-height:1.6;color:#0f172a;}
.upo-ac-v small{color:#94a3b8;font-weight:500;}
.upo-ac-note2{
  margin-top:8px;font-size:12.5px;color:#64748b;line-height:1.5;
  background:#f8fafc;border-radius:8px;padding:8px 10px;border:1px solid #e2e8f0;
}
.upo-ac-result .tools{display:flex;flex-wrap:wrap;gap:6px;}
@media(max-width:480px){
  .upo-ac-result .top{flex-direction:column;align-items:flex-start;}
  .upo-ac-result .tools{width:100%;}
}

.upo-ac-tool{
  border:1px solid #e2e8f0;background:#fff;border-radius:999px;
  padding:5px 12px;font-size:12px;font-weight:600;color:#334155;
  cursor:pointer;display:inline-flex;align-items:center;gap:5px;
  text-decoration:none;
  transition:box-shadow .12s,transform .12s,background .12s;
}
.upo-ac-tool:hover{
  background:#f8fafc;
  box-shadow:0 6px 14px rgba(15,23,42,.10);
  transform:translateY(-1px);
}

.upo-ac-toast{
  position:fixed;left:50%;bottom:20px;transform:translateX(-50%);
  z-index:99999;display:none;align-items:center;gap:8px;
  padding:9px 16px;border-radius:999px;
  background:rgba(15,23,42,.95);color:#f9fafb;
  font-size:13px;border:1px solid rgba(148,163,184,.3);
  box-shadow:0 16px 30px rgba(15,23,42,.4);backdrop-filter:blur(8px);
}
.upo-ac-toast.on{display:flex;}
.upo-ac-toast .s{
  width:8px;height:8px;border-radius:50%;
  background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.25);
}

.upo-ac-wrap .select2-container{width:100%!important;max-width:100%!important;}
.upo-ac-wrap .select2-container--open{z-index:999999!important;}
.upo-ac-wrap .select2-container--default .select2-selection--single{
  height:40px!important;border-radius:10px!important;
  border:1px solid rgba(148,163,184,.85)!important;
  background:#fff!important;font-family:inherit!important;
}
.upo-ac-wrap .select2-container--default.select2-container--focus .select2-selection--single{
  border-color:rgba(37,99,235,.9)!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.14)!important;
}
.upo-ac-wrap .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:40px!important;padding-left:12px!important;padding-right:32px!important;
  font-size:13px!important;color:rgba(15,23,42,.95)!important;font-weight:400!important;
}
.upo-ac-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder{
  color:rgba(148,163,184,1)!important;font-weight:400!important;
}
.upo-ac-wrap .select2-container--default .select2-selection--single .select2-selection__arrow{
  height:38px!important;right:8px!important;top:1px!important;
}
.upo-ac-wrap .select2-dropdown{
  border-radius:10px!important;border:1px solid rgba(148,163,184,.9)!important;
  box-shadow:0 18px 40px rgba(15,23,42,.18)!important;
}
.upo-ac-wrap .select2-search--dropdown{padding:8px!important;}
.upo-ac-wrap .select2-search--dropdown .select2-search__field{
  width:100%!important;margin:0!important;border-radius:8px!important;
  border:1px solid rgba(148,163,184,.9)!important;
  padding:7px 8px!important;font-size:13px!important;font-family:inherit!important;
}
.upo-ac-wrap .select2-results__option{padding:7px 10px!important;font-size:13px!important;}
.upo-ac-wrap .select2-results__option--highlighted[aria-selected]{
  background:rgba(37,99,235,.10)!important;color:rgba(15,23,42,.98)!important;
}
@media(max-width:480px){
  .upo-ac-wrap{margin:16px auto;}
  .upo-ac-header{padding:18px 16px 16px;}
  .upo-ac-card{padding:16px 14px;}
  .upo-ac-wrap .select2-container--default .select2-selection--single{height:36px!important;}
  .upo-ac-wrap .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:36px!important;font-size:12.5px!important;}
}

.upo-ac-wrap select{
  visibility:hidden;
  height:0;
  position:absolute;
}
.upo-ac-wrap:not(.upo-ready) .upo-ac-grid,
.upo-ac-wrap:not(.upo-ready) .upo-ac-street,
.upo-ac-wrap:not(.upo-ready) .upo-ac-actions{
  display:none;
}

.upo-ac-loading{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:32px 20px;
  color:#64748b;
}
.upo-ac-wrap:not(.upo-ready) .upo-ac-loading{
  display:flex;
}
.upo-ac-wrap.upo-ready .upo-ac-loading{
  display:none;
}
.upo-ac-loading-icon{
  width:48px;height:48px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(18,65,163,.1),rgba(29,95,212,.15));
  border:1px solid rgba(18,65,163,.15);
  display:flex;align-items:center;justify-content:center;
  font-size:1.5em;
  animation:upo-pulse 1.6s ease-in-out infinite;
}
@keyframes upo-pulse{
  0%,100%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.08);opacity:0.75;}
}
.upo-ac-loading-text{
  font-size:13.5px;font-weight:600;color:#334155;
}
.upo-ac-loading-sub{
  font-size:12px;color:#94a3b8;margin-top:-8px;
}
.upo-ac-loading-dots span{
  display:inline-block;
  width:7px;height:7px;border-radius:50%;
  background:#1d5fd4;margin:0 3px;
  animation:upo-bounce 1.2s ease-in-out infinite;
}
.upo-ac-loading-dots span:nth-child(2){animation-delay:.2s;}
.upo-ac-loading-dots span:nth-child(3){animation-delay:.4s;}
@keyframes upo-bounce{
  0%,80%,100%{transform:translateY(0);opacity:0.4;}
  40%{transform:translateY(-8px);opacity:1;}
}

.widget .upo-ac-wrap{margin:6px 0;max-width:100%;border-radius:0;box-shadow:none;}
.widget .upo-ac-header{padding:16px 14px 14px;border-radius:0;}
.widget .upo-ac-header-text h2{font-size:1em;}
.widget .upo-ac-card{padding:14px 12px;}
.widget .upo-ac-btn{padding:8px 12px;font-size:13px;}
