.vn-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(420px, 1.4fr);
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
}

.vn-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vn-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.vn-heading-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background: var(--gold-glow);
  color: var(--gold-light);
}
.vn-heading-icon.vn-youtube-icon { border-color: rgba(248, 70, 70, .35); background: rgba(248, 70, 70, .11); color: #ff8d8d; }
.vn-panel-heading > div:last-child { min-width: 0; }
.vn-eyebrow { display: block; margin-bottom: 3px; color: var(--gold); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.vn-panel-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
}
.vn-panel-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.45; }

.vn-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, auto); gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.vn-search { position: relative; display: block; }
.vn-search .material-icons-round { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; pointer-events: none; }
.vn-search input,
.vn-sort select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, .15);
  color: var(--text-primary);
  font: inherit;
  outline: none;
}
.vn-search input { padding: 0 12px 0 42px; }
.vn-sort { display: grid; grid-template-columns: auto minmax(120px, 1fr); align-items: center; gap: 8px; color: var(--text-muted); font-size: .72rem; font-weight: 750; }
.vn-sort select { padding: 0 12px; cursor: pointer; }
.vn-search input:focus,
.vn-sort select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

.vn-country-list { display: grid; align-content: start; gap: 10px; max-height: calc(100vh - 330px); min-height: 240px; overflow: auto; padding: 14px; }
.vn-country-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .025); transition: var(--transition); }
.vn-country-card:hover { border-color: var(--border-gold); background: var(--bg-hover); transform: translateY(-1px); }
.vn-flag-wrap { width: 42px; height: 31px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--bg-tertiary); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.vn-flag { width: 100%; height: 100%; object-fit: cover; }
.vn-flag-fallback { display: none; color: var(--text-secondary); font-size: .72rem; font-weight: 800; }
.vn-country-info { min-width: 0; }
.vn-country-name { display: flex; align-items: center; gap: 7px; color: var(--text-primary); font-weight: 750; }
.vn-country-code { color: var(--text-muted); font: 600 .72rem var(--font-mono); }
.vn-country-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 5px; color: var(--text-muted); font-size: .73rem; }
.vn-country-meta span { display: inline-flex; align-items: center; gap: 4px; }
.vn-stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.vn-country-action { display: grid; justify-items: end; gap: 7px; }
.vn-credit-price { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-light); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.vn-credit-price .material-icons-round { color: var(--gold); font-size: 16px; }
.vn-buy-btn,
.vn-refund-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  background: var(--gold-gradient);
  color: #fff;
  font: 750 .78rem var(--font);
  cursor: pointer;
  box-shadow: 0 5px 16px var(--gold-glow);
}
.vn-buy-btn:disabled,
.vn-refund-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.vn-attention { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 20px; padding: 15px; border: 1px solid rgba(251, 191, 36, .28); border-radius: 12px; background: rgba(251, 191, 36, .08); color: var(--text-secondary); font-size: .83rem; line-height: 1.62; }
.vn-attention .material-icons-round { color: var(--warning); }
.vn-attention strong { color: var(--warning); }
.vn-attention p { margin: 0; }
.vn-active-order { margin: 0 20px 20px; }

.vn-order-card { position: relative; border: 1px solid var(--border-gold); border-radius: 15px; padding: 18px; background: linear-gradient(145deg, rgba(155, 77, 255, .10), rgba(255, 255, 255, .025)); overflow: hidden; }
.vn-order-card::after { content: ''; position: absolute; width: 170px; height: 170px; right: -85px; top: -95px; border-radius: 50%; background: var(--gold-glow); filter: blur(28px); pointer-events: none; }
.vn-order-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vn-order-country { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-primary); }
.vn-order-country-flag { width: 38px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: var(--bg-tertiary); }
.vn-order-country-flag img { width: 100%; height: 100%; object-fit: cover; }
.vn-order-country-flag .vn-flag-fallback { font-size: .65rem; }
.vn-status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: rgba(96, 165, 250, .12); color: var(--info); }
.vn-status.completed { background: rgba(52, 211, 153, .12); color: var(--success); }
.vn-status.refunded,
.vn-status.cancelled,
.vn-status.expired,
.vn-status.provider_error { background: rgba(248, 113, 113, .12); color: var(--error); }
.vn-order-warning { position: relative; z-index: 1; margin: 15px 0 10px; padding: 10px 12px; border-radius: 9px; background: rgba(96, 165, 250, .09); color: var(--text-secondary); font-size: .78rem; line-height: 1.45; }
.vn-copy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .8fr; gap: 10px; margin-top: 12px; }
.vn-copy-box { width: 100%; min-width: 0; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 11px; padding: 12px; background: rgba(0, 0, 0, .18); color: var(--text-primary); text-align: left; cursor: pointer; }
.vn-copy-box:disabled { cursor: default; opacity: .7; }
.vn-copy-label { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vn-copy-value { overflow: hidden; text-overflow: ellipsis; color: var(--gold-light); font: 800 clamp(.95rem, 2vw, 1.2rem) var(--font-mono); white-space: nowrap; }
.vn-copy-box.vn-code .vn-copy-value { color: var(--success); }
.vn-order-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.vn-order-price { color: var(--text-muted); font-size: .76rem; }
.vn-order-price strong { color: var(--text-primary); }
.vn-refund-btn { background: rgba(248, 113, 113, .12); color: var(--error); border: 1px solid rgba(248, 113, 113, .3); box-shadow: none; }
.vn-refund-timer { color: var(--text-muted); font-size: .73rem; text-align: right; }

.vn-history-section { margin: 0 20px 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.vn-history-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--text-primary); }
.vn-history-heading .material-icons-round { color: var(--gold); font-size: 20px; }
.vn-history-heading h3 { margin: 0; font-size: .9rem; }
.vn-history-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.vn-history-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.2fr) minmax(70px, .7fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .02); font-size: .75rem; }
.vn-history-country { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-secondary); }
.vn-history-country img { width: 26px; height: 19px; object-fit: cover; border-radius: 3px; }
.vn-history-copy { border: 0; background: transparent; color: var(--gold-light); font: 700 .76rem var(--font-mono); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-history-copy.code { color: var(--success); }
.vn-empty,
.vn-loading { display: grid; place-items: center; gap: 8px; min-height: 150px; padding: 20px; color: var(--text-muted); text-align: center; font-size: .82rem; }
.vn-empty .material-icons-round,
.vn-loading .material-icons-round { color: var(--gold); font-size: 32px; }
.vn-spin { animation: vnSpin 1s linear infinite; }
@keyframes vnSpin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .vn-shell { grid-template-columns: 1fr; }
  .vn-country-list { max-height: 520px; }
}

@media (max-width: 640px) {
  .vn-shell { gap: 12px; }
  .vn-panel-heading { padding: 15px; }
  .vn-controls { grid-template-columns: 1fr; padding: 12px 15px; }
  .vn-country-list { padding: 10px; max-height: 470px; }
  .vn-attention { margin: 15px; }
  .vn-active-order { margin: 0 15px 15px; }
  .vn-history-section { margin: 0 15px 15px; }
  .vn-country-card { grid-template-columns: auto minmax(0, 1fr); }
  .vn-country-action { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr 1fr; align-items: center; justify-items: stretch; }
  .vn-credit-price { justify-content: center; }
  .vn-buy-btn { width: 100%; }
  .vn-copy-grid { grid-template-columns: 1fr; }
  .vn-order-foot { align-items: stretch; flex-direction: column; }
  .vn-refund-btn { width: 100%; }
  .vn-refund-timer { text-align: left; }
  .vn-history-row { grid-template-columns: 1fr 1fr; }
}
