/* =========================================================
   EnzzoNVP — modern UI
   ========================================================= */

:root {
  /* palette */
  --bg:           #070b1a;
  --bg-soft:      #0d1226;
  --surface:      #131a32;
  --surface-2:    #1a2347;
  --border:       #243056;
  --border-soft:  #1c2546;
  --text:         #eaf0ff;
  --text-2:       #b6c0e3;
  --muted:        #8089b3;
  --accent:       #6ea8ff;
  --accent-2:     #a855f7;
  --accent-grad:  linear-gradient(135deg, #5b8cff 0%, #a855f7 100%);
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;
  --shadow:       0 18px 50px rgba(0, 0, 0, .45);
  --shadow-soft:  0 8px 24px rgba(0, 0, 0, .25);
  --maxw:         1200px;
  --pad:          clamp(18px, 6vw, 80px);
  --font:         "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(91, 140, 255, .18), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(168, 85, 247, .14), transparent 60%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: #9cc1ff; }

img { max-width: 100%; display: block; }

/* ===== Header ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px var(--pad);
  background: rgba(8, 12, 26, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 48, 86, .55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .3px;
  color: var(--text);
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(91, 140, 255, .4);
}
.brand-logo svg { width: 18px; height: 18px; color: #fff; }

nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== Layout ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad) 60px;
}

.section { margin: 64px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.section-head p { color: var(--text-2); margin: 0; font-size: 17px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--accent-grad);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 8px 24px rgba(91, 140, 255, .28);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn.secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn.secondary:hover { background: #243168; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn.full { width: 100%; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 38px;
  align-items: center;
  padding: 30px 0 20px;
}
.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 140, 255, .12);
  border: 1px solid rgba(91, 140, 255, .35);
  color: #c3d6ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #fff 0%, #c5d2f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy p {
  color: var(--text-2);
  font-size: 18px;
  margin: 0 0 12px;
  max-width: 580px;
}
.hero-copy .hero-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Hero panel */
.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 35, 71, .8), rgba(19, 26, 50, .9));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(91, 140, 255, .25), transparent 60%);
  pointer-events: none;
}
.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}
.hero-panel-head .title {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-panel-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, .15);
  color: #86efac;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, .35);
}
.hero-panel-head .live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}
.hero-card-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36, 48, 86, .6);
  position: relative;
  color: var(--text);
  font-weight: 500;
}
.hero-card-line:last-child { border-bottom: 0; }
.hero-card-line .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, .14);
  color: #86efac;
  flex-shrink: 0;
}
.hero-card-line .ic svg { width: 16px; height: 16px; }

/* ===== Locations ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.loc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 18px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.loc-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(91, 140, 255, .12), transparent 60%);
  pointer-events: none;
}
.loc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, .45);
  box-shadow: var(--shadow-soft);
}
.loc-flag {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  margin-bottom: 14px;
  background: #1a2347;
  flex-shrink: 0;
}
.loc-flag svg { width: 100%; height: 100%; display: block; }
.loc-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}
.loc-card .loc-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.loc-card .loc-ping {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, .3);
  font-weight: 600;
}
.loc-card .loc-ping::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover { border-color: rgba(91, 140, 255, .4); transform: translateY(-2px); }
.feature-card .ic-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 140, 255, .25), rgba(168, 85, 247, .25));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #c3d6ff;
}
.feature-card .ic-lg svg { width: 22px; height: 22px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.feature-card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ===== Pricing ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(91, 140, 255, .4); box-shadow: var(--shadow-soft); }
.plan-card.featured {
  border-color: rgba(91, 140, 255, .55);
  background: linear-gradient(180deg, rgba(91, 140, 255, .08), var(--surface) 60%);
}
.plan-card .plan-tag {
  display: inline-block;
  background: var(--accent-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.plan-card h3 { margin: 0 0 6px; font-size: 19px; }
.plan-card .price {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -1px;
}
.plan-card .price .cur { font-size: 22px; color: var(--text-2); margin-left: 4px; }
.plan-card .plan-meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan-card .pay-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.plan-card .pay-form .btn { flex: 1; min-width: 120px; }

/* ===== Cards / notices ===== */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.notice.success { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); color: #d6f5dd; }
.notice.warning { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .08); color: #fde6c1; }
.notice.important { border-color: rgba(168, 85, 247, .55); background: linear-gradient(180deg, rgba(168, 85, 247, .12), var(--surface)); }
.notice h3 { margin: 0 0 8px; font-size: 17px; }
.notice p { margin: 0 0 12px; color: var(--text-2); }
.notice p:last-child { margin-bottom: 0; }

.card.important { border-color: rgba(168, 85, 247, .55); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); }

.row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Auth ===== */
.auth {
  max-width: 460px;
  margin: 36px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth h1 { margin: 0 0 18px; font-size: 26px; }
.auth form { display: grid; gap: 12px; }
.auth .muted { text-align: center; margin: 16px 0 0; }

input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .18);
}
input::placeholder, textarea::placeholder { color: var(--muted); }

.error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .5);
  color: #ffc9cf;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.field-note { margin: 4px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ===== Cabinet / proxy list ===== */
h1, h2 { letter-spacing: -.3px; }
h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 32px 0 16px; }

.proxy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.proxy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.proxy-head { display: flex; gap: 12px; align-items: center; }
.proxy-head b { font-size: 16px; }
.proxy-head .muted { font-size: 13px; margin-top: 4px; }
.status {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status.ok { background: rgba(34, 197, 94, .14); color: #86efac; border: 1px solid rgba(34, 197, 94, .4); }
.status.bad { background: rgba(239, 68, 68, .14); color: #fecdd3; border: 1px solid rgba(239, 68, 68, .4); }

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

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 360px;
  width: calc(100vw - 40px);
  text-align: center;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.modal-close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.qr-img {
  width: 260px;
  height: 260px;
  max-width: 100%;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  margin: 8px auto 4px;
}

/* ===== Doc pages ===== */
.doc-page {
  max-width: 860px;
  margin: 22px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.doc-page h1 { font-size: 30px; margin-top: 0; }
.doc-page h2 { margin-top: 28px; font-size: 21px; }
.doc-page p, .doc-page li { color: var(--text-2); line-height: 1.7; }
.doc-page ul { padding-left: 22px; }
.doc-page .contact-box { margin: 20px 0; }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 36px var(--pad);
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  background: rgba(7, 11, 26, .6);
  margin-top: 40px;
  flex-wrap: wrap;
}
.site-footer p { margin: 8px 0 0; font-size: 14px; max-width: 420px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.site-footer strong { color: var(--text); font-size: 16px; }

/* ===== Legal strip ===== */
.legal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 34px 0;
}
.legal-strip .item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
}
.legal-strip .item .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(91, 140, 255, .14);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.legal-strip .item .ic svg { width: 18px; height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top { padding: 14px 18px; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 12px; }
  .top.nav-open nav { display: flex; }
  .top.nav-open .nav-toggle { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  main { padding: 22px 18px 40px; }
  .site-footer { flex-direction: column; padding: 28px 18px; }
  .proxy-card { flex-direction: column; align-items: stretch; }
  .proxy-actions { width: 100%; }
  .proxy-actions .btn { flex: 1; }
  .hero-actions .btn { flex: 1; }
  .pay-form .btn { flex: 1 1 100%; }
  .doc-page { padding: 24px 18px; }
  .auth { padding: 22px 20px; margin: 18px 12px; }
}
@media (max-width: 480px) {
  .locations-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
}

.happ-guide ol { margin: 12px 0 16px 22px; color: var(--text); }
.happ-guide li { margin: 6px 0; }
.link-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-grid .btn { text-decoration: none; }
