
:root{
  --bg0:#0b1020;
  --bg1:#0f172a;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --stroke: rgba(255,255,255,0.10);
  --text:#eef2ff;
  --muted:#a8b0c6;
  --muted2:#8a93ab;

  --accent:#4f46e5;
  --accent2:#3b82f6;

  --radius:18px;
  --shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.wpcc-wrap{
  max-width: 980px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 14px;
  background: radial-gradient(1100px 420px at 20% 0%, rgba(79,70,229,0.32), transparent 55%),
              radial-gradient(1100px 420px at 80% 0%, rgba(59,130,246,0.26), transparent 55%),
              linear-gradient(160deg, var(--bg1), var(--bg0));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
}

.wpcc-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding: 8px 6px 12px;
}

.wpcc-title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
}
.wpcc-sub{
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.wpcc-tip{
  color: var(--muted2);
  font-size: 12px;
  text-align: right;
}

.wpcc-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wpcc-panel{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  padding: 12px;
}

.wpcc-form{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items:end;
}

.wpcc-label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.wpcc-input, .wpcc-select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
.wpcc-input:focus, .wpcc-select:focus{
  border-color: rgba(79,70,229,0.65);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
}

.wpcc-actions{
  display:flex;
  gap: 10px;
  margin-top: 10px;
  align-items:center;
}
.wpcc-btn{
  flex: 1 1 auto;
  padding: 11px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #081026;
  transition: transform .12s ease, filter .12s ease;
  touch-action: manipulation;
}
.wpcc-btn:active{ transform: translateY(1px) scale(0.99); }
.wpcc-btn.secondary{
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
}
.wpcc-btn:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.wpcc-quick{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.wpcc-quick .tag{
  font-size: 12px;
  color: var(--muted);
}
.wpcc-chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}
.wpcc-chip.active{
  background: rgba(79,70,229,0.22);
  border-color: rgba(79,70,229,0.55);
}
.wpcc-chip:active{ transform: translateY(1px); }

.wpcc-result{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
}
.wpcc-big{
  font-size: 40px;
  font-weight: 950;
  letter-spacing: -0.6px;
  line-height: 1.0;
  cursor: pointer;
  user-select: none;
}
.wpcc-meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.wpcc-copy{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}
.wpcc-copy:active{ transform: translateY(1px); }

.wpcc-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.wpcc-cardhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.wpcc-iconwrap{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.wpcc-flag{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.wpcc-badge{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(26px 26px at 30% 25%, rgba(79,70,229,0.55), transparent 60%),
              radial-gradient(26px 26px at 70% 70%, rgba(59,130,246,0.45), transparent 60%),
              rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .3px;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
}
.wpcc-badge .emoji{
  font-size: 18px;
}
.wpcc-cardtitle{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.wpcc-cardsub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.wpcc-map{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
}

.wpcc-kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wpcc-box{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
  min-height: 56px;
}
.wpcc-box .k{
  color: var(--muted);
  font-size: 11px;
}
.wpcc-box .v{
  margin-top: 6px;
  font-weight: 950;
  font-size: 13px;
  line-height: 1.15;
}

.wpcc-country{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.wpcc-countryhead{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.wpcc-note{
  color: var(--muted2);
}

.wpcc-images{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-start;
  margin-top: 10px;
}
.wpcc-img{
  width: 54px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.wpcc-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17,24,39,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 99999;
}
.wpcc-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Skeletons */
.wpcc-skel{
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: wpccShimmer 1.05s infinite linear;
  border-radius: 10px;
}
@keyframes wpccShimmer { 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

.wpcc-h38{ height: 38px; }
.wpcc-h18{ height: 18px; }
.wpcc-h12{ height: 12px; }
.wpcc-w120{ width: 120px; }
.wpcc-w240{ width: 240px; }

@media (min-width: 860px){
  .wpcc-grid{
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
  .wpcc-cards{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px){
  .wpcc-form{ grid-template-columns: 1fr; }
  .wpcc-big{ font-size: 34px; }
  .wpcc-actions{ flex-direction: column; }
  .wpcc-btn{ width: 100%; }
}
