* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f4f2;
  color: #292524;
}

.vc-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  animation: vc-fade-in .4s ease;
}

@keyframes vc-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vc-header { text-align: center; margin-bottom: 20px; }
.vc-header i { font-size: 2rem; color: #f97316; }
.vc-header h1 { margin: 8px 0 4px; font-size: 1.6rem; }
.vc-header p { margin: 0; color: #78716c; }

.vc-warning {
  background: #fff7ed;
  border: 1px solid #f97316;
  color: #9a3412;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 960px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.vc-container { display: flex; flex-direction: column; gap: 20px; }

.vc-panel {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.vc-panel h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc-panel h2 i { color: #f97316; }

.vc-pair { display: flex; align-items: flex-end; gap: 12px; }
.vc-arrow { color: #a8a29e; margin-bottom: 12px; }

.vc-field { flex: 1; position: relative; margin-bottom: 14px; }
.vc-field label { display: block; font-size: .85rem; margin-bottom: 6px; color: #57534e; }
.vc-field input, .vc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  font-size: .95rem;
}
.vc-field input:focus, .vc-field select:focus {
  outline: none;
  border-color: #f97316;
}

.vc-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 5;
  display: none;
}
.vc-suggestions.vc-open { display: block; }
.vc-suggestion-item { padding: 8px 12px; cursor: pointer; font-size: .9rem; }
.vc-suggestion-item:hover { background: #fff7ed; }

.vc-btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: .95rem;
  cursor: pointer;
}
.vc-btn:hover { background: #e11d48; }
.vc-btn-outline {
  background: transparent;
  color: #f97316;
  border: 1px solid #f97316;
}
.vc-btn-outline:hover { background: #fff7ed; color: #e11d48; border-color: #e11d48; }
.vc-btn:disabled { opacity: .5; cursor: not-allowed; background: #a8a29e; border-color: #a8a29e; color: #fff; }

.vc-divider { text-align: center; color: #a8a29e; position: relative; }
.vc-divider span { background: #f6f4f2; padding: 0 12px; position: relative; z-index: 1; }
.vc-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid #e7e5e4;
}

.vc-loading, .vc-error {
  text-align: center;
  padding: 24px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}
.vc-error i { color: #dc2626; font-size: 1.4rem; }
.vc-spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 3px solid #e7e5e4;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: vc-spin .8s linear infinite;
}
@keyframes vc-spin { to { transform: rotate(360deg); } }

.vc-stats { display: flex; gap: 12px; }
.vc-stat {
  flex: 1;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.vc-stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: #f97316; }

.vc-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.vc-results-head h2 { margin: 0; font-size: 1.1rem; }
.vc-view-toggle { display: flex; gap: 6px; }
.vc-view-btn {
  background: #fff; border: 1px solid #d6d3d1; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; color: #57534e;
}
.vc-view-btn.vc-active { background: #f97316; color: #fff; border-color: #f97316; }

.vc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.vc-results-list { display: flex; flex-direction: column; gap: 10px; }

.vc-card {
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.vc-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.vc-results-list .vc-card { display: flex; justify-content: space-between; align-items: center; }
.vc-card-name { font-weight: 600; margin: 0 0 6px; }
.vc-results-list .vc-card-name { margin: 0; }
.vc-card-region { color: #78716c; font-size: .85rem; }

.vc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  color: #fff;
  font-weight: 600;
}
.vc-badge-free { background: #16a34a; }
.vc-badge-voa { background: #eab308; }
.vc-badge-eta { background: #9333ea; }
.vc-badge-required { background: #dc2626; }

.vc-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }

.vc-result { margin-top: 18px; }
.vc-detail-block { border: 1px solid #e7e5e4; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.vc-detail-block h3 { margin: 0 0 10px; font-size: .95rem; color: #57534e; }
.vc-detail-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; border-bottom: 1px dashed #f0eeec; }
.vc-detail-row:last-child { border-bottom: none; }
.vc-detail-row a { color: #f97316; }
.vc-rule-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vc-rule-line a { margin-left: auto; font-size: .85rem; color: #f97316; }

.vc-footer { text-align: center; color: #78716c; font-size: .85rem; margin-top: 30px; }
.vc-footer a { color: #f97316; }

.vc-modal-overlay {
  position: fixed; inset: 0; background: rgba(41,37,36,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.vc-modal {
  background: #fff; border-radius: 12px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 24px; position: relative;
}
.vc-modal-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 1.6rem; cursor: pointer; color: #78716c; line-height: 1;
}

@media (max-width: 640px) {
  .vc-pair { flex-direction: column; align-items: stretch; }
  .vc-arrow { align-self: center; transform: rotate(90deg); margin: -4px 0; }
  .vc-filters { display: flex; flex-direction: column; }
  .vc-stats { flex-direction: column; }
  .vc-results-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) {
  .vc-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
