:root{
  --nv-bg:#07111b;
  --nv-panel:#0d1927;
  --nv-panel-soft:#112234;
  --nv-line:rgba(255,255,255,.09);
  --nv-text:#f6f7fb;
  --nv-muted:#a7b4c2;
  --nv-gold:#d6a34b;
  --nv-gold-soft:rgba(214,163,75,.14);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  background:var(--nv-bg);
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top, rgba(214,163,75,.14), transparent 28%),
    linear-gradient(180deg, #0b1522 0%, #07111b 100%);
  color:var(--nv-text);
  font-family:"Manrope", sans-serif;
}

button,
input,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

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

.nv-shell{
  width:min(100%, 560px);
  margin:0 auto;
  padding:16px 14px calc(30px + env(safe-area-inset-bottom));
}

.nv-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.nv-brand{
  display:inline-flex;
  align-items:center;
}

.nv-brand img{
  width:142px;
  height:auto;
}

.nv-header__tag{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--nv-line);
  color:#d9e4ef;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.nv-main{
  display:grid;
  gap:16px;
}

.nv-hero,
.nv-panel{
  border-radius:26px;
  border:1px solid var(--nv-line);
  background:
    linear-gradient(180deg, rgba(14,26,40,.94), rgba(7,15,24,.98));
  box-shadow:
    0 20px 60px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.nv-hero{
  padding:18px;
}

.nv-hero__head,
.nv-panel__head{
  display:grid;
  gap:10px;
}

.nv-eyebrow{
  margin:0;
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:var(--nv-gold-soft);
  border:1px solid rgba(214,163,75,.3);
  color:#f1c56c;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.nv-eyebrow--small{
  padding:7px 11px;
}

.nv-hero h1,
.nv-panel h2{
  margin:0;
  font-size:30px;
  line-height:1.04;
}

.nv-panel h2{
  font-size:24px;
}

.nv-lead,
.nv-panel__copy{
  margin:0;
  color:var(--nv-muted);
  font-size:15px;
  line-height:1.62;
}

.nv-stage{
  position:relative;
  margin-top:18px;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.08);
  background:#09111a;
}

.nv-stage__image{
  width:100%;
  height:auto;
}

.nv-stage__veil{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(4,8,14,.08) 0%, rgba(4,8,14,.14) 56%, rgba(4,8,14,.3) 100%);
  pointer-events:none;
}

.nv-stage__content{
  position:absolute;
  inset:0;
  padding:9%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.nv-stage__sign-wrap{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.nv-stage__sign-wrap::before{
  content:"";
  position:absolute;
  width:min(86%, 320px);
  height:min(48vw, 180px);
  border-radius:999px;
  background:radial-gradient(circle, rgba(4,7,14,.52), rgba(4,7,14,0) 72%);
  filter:blur(22px);
  pointer-events:none;
}

.nv-stage__sign{
  position:relative;
  z-index:1;
  max-width:88%;
  color:#fff9f0;
  font-size:76px;
  line-height:.95;
  letter-spacing:.04em;
  white-space:pre-wrap;
  word-break:break-word;
  text-wrap:balance;
}

.nv-summary{
  display:grid;
  gap:8px;
  margin-top:14px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:#c7d2de;
  font-size:13px;
}

.nv-summary strong{
  color:#fff3d0;
  font-weight:700;
}

.nv-form{
  display:grid;
  gap:16px;
}

.nv-panel{
  padding:18px;
}

.nv-panel__summary{
  list-style:none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}

.nv-panel__summary::-webkit-details-marker{
  display:none;
}

.nv-panel__summary h2{
  margin-top:8px;
}

.nv-panel__summary-icon{
  width:20px;
  height:20px;
  margin-top:8px;
  border-right:2px solid #f0c45d;
  border-bottom:2px solid #f0c45d;
  transform:rotate(45deg);
  transition:transform .22s ease;
  flex:0 0 auto;
}

.nv-panel--settings[open] .nv-panel__summary-icon{
  transform:rotate(225deg);
}

.nv-panel__body{
  display:grid;
  gap:18px;
  padding-top:18px;
}

.nv-setting{
  display:grid;
  gap:12px;
}

.nv-setting__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.nv-setting__label{
  font-size:15px;
  font-weight:700;
}

.nv-setting__value{
  color:#f4c768;
  font-size:13px;
  line-height:1.35;
  text-align:right;
  max-width:48%;
}

.nv-backgrounds,
.nv-fonts,
.nv-glow-list{
  display:grid;
  gap:10px;
}

.nv-backgrounds{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.nv-background-option{
  position:relative;
  min-height:112px;
  padding:10px;
  border:none;
  border-radius:18px;
  overflow:hidden;
  background:#132131;
  text-align:left;
}

.nv-background-option::before{
  content:"";
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}

.nv-background-option::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(5,9,16,.1), rgba(5,9,16,.76));
}

.nv-background-option span{
  position:relative;
  z-index:1;
  display:block;
  margin-top:56px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

.nv-background-option.is-active,
.nv-font-option.is-active,
.nv-glow-option.is-active,
.nv-swatch.is-active{
  box-shadow:0 0 0 2px rgba(214,163,75,.95);
}

.nv-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.nv-swatch{
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  position:relative;
  background:var(--swatch);
}

.nv-swatch::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.38);
}

.nv-fonts,
.nv-glow-list{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.nv-font-option,
.nv-glow-option{
  min-height:56px;
  padding:12px 14px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:#f4f7fb;
  text-align:left;
}

.nv-font-option small,
.nv-glow-option small{
  display:block;
  margin-top:4px;
  color:#97a6b5;
  font-size:12px;
  line-height:1.35;
}

.nv-font-option[data-font="bebas"]{
  font-family:"Bebas Neue", sans-serif;
  font-size:23px;
  letter-spacing:.04em;
}

.nv-font-option[data-font="comfortaa"]{
  font-family:"Comfortaa", sans-serif;
}

.nv-font-option[data-font="caveat"]{
  font-family:"Caveat", cursive;
  font-size:25px;
}

.nv-range{
  width:100%;
  accent-color:var(--nv-gold);
}

.nv-grid{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.nv-field{
  display:grid;
  gap:8px;
}

.nv-field__label{
  color:#d7e0ea;
  font-size:14px;
  font-weight:700;
}

.nv-field input,
.nv-field textarea{
  width:100%;
  min-width:0;
  padding:15px 16px;
  border:none;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  color:#fff;
  border:1px solid rgba(255,255,255,.07);
  outline:none;
}

.nv-field textarea{
  resize:vertical;
}

.nv-field input::placeholder,
.nv-field textarea::placeholder{
  color:#8ea0b4;
}

.nv-hidden-field{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}

.nv-form__status{
  min-height:20px;
  margin-top:14px;
  color:#f0c45d;
  font-size:13px;
}

.nv-submitbar{
  position:sticky;
  bottom:12px;
  margin-top:18px;
}

.nv-submit{
  width:100%;
  min-height:58px;
  padding:14px 18px;
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg, #ebbb5d, #cf9636);
  color:#0c1220;
  font-size:16px;
  font-weight:800;
  box-shadow:0 18px 34px rgba(207,150,54,.22);
}

.nv-submit:disabled{
  opacity:.7;
}

.nv-success{
  position:fixed;
  inset:0;
  z-index:999;
}

.nv-success__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,6,11,.68);
  backdrop-filter:blur(8px);
}

.nv-success__dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(92vw, 360px);
  padding:28px 20px 20px;
  border-radius:28px;
  background:#f8f3e8;
  color:#101723;
  text-align:center;
}

.nv-success__close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:#ede1c7;
  color:#101723;
  font-size:28px;
}

.nv-success__icon{
  width:72px;
  height:72px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg, #f1dfbf, #dbb16d);
  font-size:34px;
  font-weight:800;
}

.nv-success h2{
  margin:0 0 10px;
  font-size:28px;
}

.nv-success p{
  margin:0;
  color:#4a5562;
  line-height:1.55;
}

.nv-success__button{
  width:100%;
  min-height:52px;
  margin-top:18px;
  border:none;
  border-radius:999px;
  background:#d4a14a;
  color:#111822;
  font-weight:800;
}

@media (min-width:768px){
  .nv-shell{
    width:min(100%, 920px);
    padding:24px 20px 40px;
  }

  .nv-main{
    grid-template-columns:minmax(0, 1.04fr) minmax(320px, .96fr);
    align-items:start;
  }

  .nv-hero{
    position:sticky;
    top:20px;
  }

  .nv-fonts,
  .nv-glow-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
