/* =========================================================
   QUOTRYN 3.0T.1 - TEMPLATE MARKETPLACE
   ========================================================= */

:root{
  --qt-bg:#00140f;
  --qt-bg-deep:#000d0a;
  --qt-panel:#04261d;
  --qt-panel-soft:rgba(5,43,32,.72);
  --qt-green:#42efa4;
  --qt-green-dark:#18c77c;
  --qt-text:#f4faf7;
  --qt-muted:#9bb5ab;
  --qt-border:rgba(65,240,166,.22);
  --qt-border-bright:rgba(65,240,166,.45);
  --qt-plus:#77a9ff;
  --qt-pro:#e6bd68;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body.templates-page{
  margin:0;
  min-height:100vh;
  color:var(--qt-text);
  background:
    radial-gradient(
      circle at 76% 13%,
      rgba(15,130,87,.20),
      transparent 29%
    ),
    radial-gradient(
      circle at 18% 52%,
      rgba(0,88,57,.11),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      var(--qt-bg),
      var(--qt-bg-deep)
    );
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.templates-page a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}


/* HEADER */

.template-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.055);
  background:rgba(0,18,13,.80);
  backdrop-filter:blur(18px);
}

.template-header-inner{
  width:min(1320px, calc(100% - 48px));
  min-height:78px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
}

.template-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  width:max-content;
  font-size:20px;
  font-weight:850;
  letter-spacing:-.02em;
}

.template-brand img{
  width:37px;
  height:37px;
}

.template-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:34px;
  color:#c3d1cb;
  font-size:14px;
}

.template-nav a{
  transition:.2s ease;
}

.template-nav a:hover,
.template-nav a.active{
  color:var(--qt-green);
}

.template-header-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}

.template-signin,
.template-start{
  min-height:42px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
}

.template-signin{
  border:1px solid rgba(255,255,255,.12);
}

.template-start{
  color:#002318 !important;
  background:var(--qt-green);
  box-shadow:0 0 28px rgba(66,239,164,.12);
}


/* HERO */

.template-hero{
  width:min(1320px, calc(100% - 48px));
  min-height:680px;
  margin:0 auto;
  padding:78px 0 62px;
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  align-items:center;
  gap:80px;
}

.template-eyebrow{
  margin-bottom:22px;
  color:var(--qt-green);
  font-size:12px;
  font-weight:900;
  letter-spacing:.31em;
}

.template-hero h1{
  max-width:680px;
  margin:0;
  font-size:clamp(56px, 5.4vw, 84px);
  line-height:.94;
  letter-spacing:-.065em;
}

.template-hero h1 span,
.marketplace-heading h2 span,
.industry-copy h2 span,
.template-cta h2 span{
  display:block;
  color:var(--qt-green);
}

.template-hero-copy > p{
  max-width:625px;
  margin:30px 0 0;
  color:#c0d0ca;
  font-size:18px;
  line-height:1.72;
}

.template-search-wrap{
  position:relative;
  max-width:590px;
  margin-top:31px;
}

.search-symbol{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  opacity:.72;
  font-size:16px;
}

.template-search-wrap input{
  width:100%;
  height:58px;
  padding:0 20px 0 49px;
  border:1px solid var(--qt-border);
  border-radius:14px;
  outline:none;
  color:white;
  background:rgba(0,0,0,.17);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
}

.template-search-wrap input:focus{
  border-color:var(--qt-border-bright);
  box-shadow:0 0 0 3px rgba(66,239,164,.07);
}

.template-search-wrap input::placeholder{
  color:#78968a;
}

.hero-meta{
  margin-top:21px;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  color:#9db6ac;
  font-size:12px;
}

.hero-meta span::first-letter{
  color:var(--qt-green);
}


/* HERO DOCUMENT ART */

.hero-preview{
  position:relative;
  min-height:510px;
}

.hero-preview::before{
  content:"";
  position:absolute;
  inset:3%;
  opacity:.17;
  background-image:
    radial-gradient(
      rgba(72,239,166,.65) 1px,
      transparent 1px
    );
  background-size:18px 18px;
  mask-image:
    radial-gradient(
      circle,
      black,
      transparent 68%
    );
}

.floating-sheet{
  position:absolute;
  width:315px;
  min-height:405px;
  padding:28px;
  border:1px solid rgba(89,244,178,.27);
  border-radius:14px;
  background:
    linear-gradient(
      145deg,
      #f8fbfa,
      #e7f1ed
    );
  box-shadow:0 35px 70px rgba(0,0,0,.28);
  color:#123128;
}

.sheet-back{
  left:13%;
  top:10%;
  transform:rotate(-9deg);
  opacity:.72;
}

.sheet-front{
  right:10%;
  top:8%;
  transform:rotate(6deg);
}

.sheet-top{
  display:flex;
  align-items:center;
  gap:8px;
  color:#315d4f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}

.mini-logo{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  color:#003323;
  background:var(--qt-green);
  font-size:13px;
  letter-spacing:0;
}

.sheet-title{
  margin:33px 0 26px;
  color:#0d3a2b;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.04em;
}

.sheet-line{
  height:7px;
  margin:12px 0;
  border-radius:999px;
  background:#c9d8d2;
}

.sheet-line.wide{
  width:100%;
}

.sheet-line.medium{
  width:76%;
}

.sheet-line.short{
  width:48%;
}

.sheet-boxes{
  margin-top:35px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.sheet-boxes div{
  height:95px;
  border:1px solid #c8d8d2;
  border-radius:8px;
  background:#edf4f1;
}

.fake-label{
  width:82px;
  height:7px;
  margin:18px 0 7px;
  border-radius:999px;
  background:#8da99e;
}

.fake-label.small{
  width:55px;
}

.fake-input{
  height:35px;
  border:1px solid #c5d7d0;
  border-radius:7px;
  background:white;
}

.fake-input.tall{
  height:70px;
}

.fake-button{
  width:95px;
  height:30px;
  margin-top:22px;
  border-radius:7px;
  background:#1cd68a;
}

.preview-badge{
  position:absolute;
  z-index:5;
  right:2%;
  bottom:10%;
  min-width:170px;
  padding:18px 21px;
  border:1px solid var(--qt-border-bright);
  border-radius:16px;
  background:#07392a;
  box-shadow:0 20px 45px rgba(0,0,0,.28);
}

.preview-badge strong{
  display:block;
  color:var(--qt-green);
  font-size:29px;
}

.preview-badge span{
  color:#b7cbc3;
  font-size:12px;
}


/* BENEFITS */

.template-benefits{
  width:min(1450px, calc(100% - 48px));
  margin:0 auto;
  padding:28px 32px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  border:1px solid var(--qt-border);
  border-radius:19px;
  background:rgba(2,28,21,.50);
}

.template-benefits article{
  padding:6px 25px;
  display:flex;
  gap:17px;
  align-items:flex-start;
}

.template-benefits article + article{
  border-left:1px solid rgba(255,255,255,.07);
}

.benefit-mark{
  flex:0 0 47px;
  width:47px;
  height:47px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--qt-green);
  background:rgba(38,221,142,.11);
  font-size:20px;
}

.template-benefits strong{
  display:block;
  margin:2px 0 7px;
  font-size:14px;
}

.template-benefits p{
  margin:0;
  color:var(--qt-muted);
  font-size:12px;
  line-height:1.55;
}


/* MARKETPLACE */

.marketplace{
  width:min(1320px, calc(100% - 48px));
  margin:0 auto;
  padding:120px 0 100px;
}

.marketplace-heading{
  margin-bottom:42px;
  display:grid;
  grid-template-columns:1fr .7fr;
  align-items:end;
  gap:70px;
}

.marketplace-heading .template-eyebrow{
  margin-bottom:14px;
}

.marketplace-heading h2{
  margin:0;
  font-size:clamp(43px, 4vw, 63px);
  line-height:.98;
  letter-spacing:-.055em;
}

.marketplace-heading > p{
  margin:0 0 4px;
  color:var(--qt-muted);
  font-size:16px;
  line-height:1.7;
}

.filter-bar{
  margin-bottom:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.filter{
  min-height:38px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  color:#a9c0b7;
  background:rgba(255,255,255,.025);
  cursor:pointer;
  font-size:12px;
  font-weight:750;
  transition:.2s ease;
}

.filter:hover,
.filter.active{
  border-color:var(--qt-border-bright);
  color:#00251a;
  background:var(--qt-green);
}

.tier-legend{
  display:flex;
  align-items:center;
  gap:7px;
}

.tier-legend span,
.tier{
  padding:6px 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:950;
  letter-spacing:.09em;
}

.legend-free,
.tier-free{
  color:#aaf5d2;
  background:rgba(42,217,139,.12);
}

.legend-plus,
.tier-plus{
  color:#a9c9ff;
  background:rgba(87,137,255,.14);
}

.legend-pro,
.tier-pro{
  color:#f4d895;
  background:rgba(218,171,76,.14);
}

.template-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:17px;
}

.template-card{
  overflow:hidden;
  border:1px solid var(--qt-border);
  border-radius:18px;
  background:
    linear-gradient(
      145deg,
      rgba(6,44,34,.78),
      rgba(1,21,16,.82)
    );
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.template-card:hover{
  transform:translateY(-3px);
  border-color:var(--qt-border-bright);
  box-shadow:0 22px 55px rgba(0,0,0,.18);
}

.template-card[hidden]{
  display:none !important;
}

.template-thumbnail{
  height:225px;
  padding:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(52,223,151,.13),
      transparent 55%
    ),
    #03241b;
}

.paper{
  width:155px;
  min-height:185px;
  padding:18px;
  border-radius:5px;
  color:#12342a;
  background:#f1f7f4;
  box-shadow:0 18px 38px rgba(0,0,0,.28);
  transform:rotate(-2deg);
}

.paper b{
  display:block;
  margin-bottom:18px;
  color:#153c30;
  font-size:10px;
  letter-spacing:.04em;
}

.paper > i{
  display:block;
  width:100%;
  height:5px;
  margin:8px 0;
  border-radius:999px;
  background:#c5d7d0;
}

.paper > i:nth-of-type(2){
  width:78%;
}

.paper > i:nth-of-type(3){
  width:58%;
}

.paper > span{
  display:block;
  width:60px;
  height:21px;
  margin-top:21px;
  border-radius:4px;
  background:#31d990;
}

.intake-thumb .paper{
  transform:rotate(2deg);
}

.checklist-thumb em{
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:7px;
  border:1px solid #88a99d;
}

.checklist-thumb .paper > i{
  display:inline-block;
  width:75%;
  margin:8px 0;
}

.paper-columns{
  margin-top:25px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.paper-columns span{
  height:62px;
  border-radius:4px;
  background:#dbe7e2;
}

.mini-table{
  display:grid;
  grid-template-columns:1.5fr .7fr .7fr;
  gap:3px;
}

.mini-table i{
  height:19px;
  background:#d1dfda;
}

.mini-table.rows i{
  height:15px;
}

.pack-thumb{
  position:relative;
}

.pack-stack,
.pack-front{
  position:absolute;
  width:165px;
  height:180px;
  border-radius:9px;
}

.pack-stack{
  border:1px solid rgba(73,239,168,.22);
  background:#07513c;
}

.pack-a{
  transform:translate(-24px, 8px) rotate(-9deg);
}

.pack-b{
  transform:translate(23px, 7px) rotate(8deg);
}

.pack-front{
  z-index:3;
  padding:22px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  border:1px solid rgba(89,244,178,.37);
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(68,239,164,.25),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #0a513d,
      #03271d
    );
  box-shadow:0 20px 45px rgba(0,0,0,.31);
}

.pack-icon{
  position:absolute;
  left:19px;
  top:18px;
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  color:#003323;
  background:var(--qt-green);
  font-weight:950;
}

.pack-front small{
  margin-bottom:5px;
  color:#8dbca9;
  font-size:7px;
  letter-spacing:.12em;
}

.pack-front strong{
  font-size:16px;
  line-height:1;
}

.pack-front b{
  margin-top:3px;
  color:var(--qt-green);
  font-size:11px;
}

.pack-front em{
  margin-top:13px;
  color:#a9c4b9;
  font-size:9px;
  font-style:normal;
}

.contractor-pack .pack-front{
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(91,148,255,.24),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #123b45,
      #06251f
    );
}

.cleaning-pack .pack-front{
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(224,186,95,.22),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #405037,
      #092a20
    );
}

.template-card-body{
  padding:23px;
}

.card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.category-label{
  color:#7f9e92;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}

.template-card h3{
  margin:17px 0 8px;
  font-size:19px;
  letter-spacing:-.025em;
}

.template-card p{
  min-height:67px;
  margin:0;
  color:var(--qt-muted);
  font-size:13px;
  line-height:1.62;
}

.card-actions{
  margin-top:21px;
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  gap:8px;
}

.card-actions button{
  min-height:40px;
  border-radius:10px;
  cursor:pointer;
  font-size:11px;
  font-weight:850;
}

.preview-template{
  border:1px solid rgba(255,255,255,.10);
  color:#d2dfda;
  background:rgba(0,0,0,.10);
}

.use-template{
  border:1px solid var(--qt-border-bright);
  color:#003223;
  background:var(--qt-green);
}

.preview-template:hover{
  border-color:var(--qt-border-bright);
  color:var(--qt-green);
}

.use-template:hover{
  filter:brightness(1.05);
}

.featured-card{
  border-color:rgba(221,181,91,.22);
}

.empty-state{
  padding:70px 20px;
  text-align:center;
  border:1px dashed var(--qt-border);
  border-radius:18px;
  color:var(--qt-muted);
}

.empty-state strong,
.empty-state span{
  display:block;
}

.empty-state strong{
  margin-bottom:7px;
  color:white;
  font-size:19px;
}


/* INDUSTRIES */

.industry-section{
  width:min(1320px, calc(100% - 48px));
  margin:0 auto 100px;
  padding:52px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
  border:1px solid var(--qt-border);
  border-radius:22px;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(59,234,160,.10),
      transparent 34%
    ),
    rgba(4,36,27,.60);
}

.industry-copy .template-eyebrow{
  margin-bottom:13px;
}

.industry-copy h2{
  margin:0;
  font-size:42px;
  line-height:1.03;
  letter-spacing:-.045em;
}

.industry-copy p{
  max-width:550px;
  margin:18px 0 0;
  color:var(--qt-muted);
  line-height:1.65;
}

.industry-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px;
}

.industry-list span{
  padding:12px 15px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  color:#b6c9c1;
  background:rgba(0,0,0,.12);
  font-size:12px;
}


/* CTA */

.template-cta{
  width:min(1320px, calc(100% - 48px));
  margin:0 auto 90px;
  padding:50px 52px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:50px;
  border:1px solid var(--qt-border);
  border-radius:22px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(50,239,161,.13),
      transparent 34%
    ),
    rgba(4,37,28,.68);
}

.template-cta .template-eyebrow{
  margin-bottom:13px;
}

.template-cta h2{
  margin:0;
  font-size:38px;
  line-height:1.05;
  letter-spacing:-.04em;
}

.template-cta p{
  max-width:650px;
  margin:14px 0 0;
  color:var(--qt-muted);
  line-height:1.6;
}

.cta-button{
  flex:0 0 auto;
  min-height:52px;
  padding:0 22px;
}


/* TOAST */

.template-toast{
  position:fixed;
  z-index:200;
  left:50%;
  bottom:28px;
  transform:translate(-50%, 30px);
  max-width:min(500px, calc(100% - 30px));
  padding:14px 19px;
  border:1px solid var(--qt-border-bright);
  border-radius:12px;
  color:#dffbed;
  background:#073426;
  box-shadow:0 15px 50px rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  font-size:13px;
  font-weight:750;
}

.template-toast.show{
  opacity:1;
  transform:translate(-50%, 0);
}


/* FOOTER */

.template-footer{
  width:min(1320px, calc(100% - 48px));
  margin:0 auto;
  padding:34px 0 48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  border-top:1px solid rgba(255,255,255,.07);
}

.template-footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:24px;
  color:#91aa9f;
  font-size:12px;
}

.template-footer-links a:hover{
  color:var(--qt-green);
}


/* RESPONSIVE */

@media (max-width:1100px){

  .template-header-inner{
    grid-template-columns:1fr auto;
  }

  .template-nav{
    display:none;
  }

  .template-hero{
    grid-template-columns:1fr;
  }

  .template-hero-copy{
    max-width:760px;
  }

  .hero-preview{
    width:min(760px, 100%);
    margin:0 auto;
  }

  .template-benefits{
    grid-template-columns:repeat(2, 1fr);
  }

  .template-benefits article:nth-child(3){
    border-left:0;
  }

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

  .industry-section{
    grid-template-columns:1fr;
  }

  .industry-list{
    justify-content:flex-start;
  }
}


@media (max-width:760px){

  .template-header-inner,
  .template-hero,
  .marketplace,
  .industry-section,
  .template-cta,
  .template-footer{
    width:min(100% - 30px, 1320px);
  }

  .template-header-inner{
    min-height:68px;
  }

  .template-brand{
    font-size:17px;
  }

  .template-brand img{
    width:32px;
    height:32px;
  }

  .template-header-actions .template-signin{
    display:none;
  }

  .template-hero{
    min-height:auto;
    padding-top:55px;
  }

  .template-hero h1{
    font-size:51px;
  }

  .template-hero-copy > p{
    font-size:16px;
  }

  .hero-preview{
    min-height:390px;
  }

  .floating-sheet{
    width:235px;
    min-height:320px;
    padding:20px;
  }

  .sheet-back{
    left:2%;
  }

  .sheet-front{
    right:1%;
  }

  .sheet-title{
    font-size:18px;
  }

  .preview-badge{
    right:0;
    bottom:0;
  }

  .template-benefits{
    width:min(100% - 30px, 1450px);
    grid-template-columns:1fr;
    padding:18px;
  }

  .template-benefits article{
    padding:18px 5px;
  }

  .template-benefits article + article{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.07);
  }

  .marketplace-heading{
    grid-template-columns:1fr;
    gap:20px;
  }

  .filter-bar{
    align-items:flex-start;
    flex-direction:column;
  }

  .template-grid{
    grid-template-columns:1fr;
  }

  .industry-section{
    padding:34px 27px;
  }

  .industry-copy h2{
    font-size:35px;
  }

  .template-cta{
    padding:35px 28px;
    align-items:flex-start;
    flex-direction:column;
  }

  .cta-button{
    width:100%;
  }

  .template-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .template-footer-links{
    justify-content:flex-start;
  }
}


/* =========================================================
   3.0T.2 - TEMPLATE PREVIEW MODAL
   ========================================================= */

body.template-modal-open{
  overflow:hidden;
}

.template-preview-modal{
  position:fixed;
  z-index:500;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  opacity:0;
  transition:opacity .18s ease;
}

.template-preview-modal[hidden]{
  display:none !important;
}

.template-preview-modal.open{
  opacity:1;
}

.template-preview-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,10,7,.82);
  backdrop-filter:blur(14px);
}

.template-preview-dialog{
  position:relative;
  z-index:2;
  width:min(1080px, 100%);
  max-height:min(760px, calc(100vh - 64px));
  display:grid;
  grid-template-columns:1.05fr .95fr;
  overflow:hidden;
  border:1px solid rgba(67,239,165,.30);
  border-radius:22px;
  background:#031d16;
  box-shadow:0 40px 110px rgba(0,0,0,.55);
  transform:translateY(16px) scale(.985);
  transition:transform .18s ease;
}

.template-preview-modal.open
.template-preview-dialog{
  transform:translateY(0) scale(1);
}

.preview-close{
  position:absolute;
  z-index:10;
  top:16px;
  right:16px;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  color:#d7e5df;
  background:rgba(0,18,13,.76);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}

.preview-close:hover{
  border-color:var(--qt-border-bright);
  color:var(--qt-green);
}

.preview-document-area{
  position:relative;
  min-height:660px;
  padding:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(64,239,165,.14),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      #052c21,
      #01140f
    );
}

.preview-document-area::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.14;
  background-image:
    radial-gradient(
      rgba(72,239,166,.65) 1px,
      transparent 1px
    );
  background-size:19px 19px;
  mask-image:
    radial-gradient(
      circle,
      black,
      transparent 72%
    );
}

.preview-document{
  position:relative;
  z-index:2;
  width:min(390px, 100%);
  min-height:540px;
  padding:34px;
  border-radius:7px;
  color:#15392e;
  background:#f4f8f6;
  box-shadow:0 30px 70px rgba(0,0,0,.38);
}

.preview-doc-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.preview-doc-brand{
  display:flex;
  align-items:center;
  gap:8px;
  color:#174536;
  font-size:9px;
  letter-spacing:.10em;
}

.preview-doc-brand span{
  width:27px;
  height:27px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  color:#003222;
  background:#34e99b;
  font-size:14px;
  font-weight:950;
}

.preview-doc-type{
  color:#6f9185;
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
}

.preview-doc-title{
  margin:34px 0 28px;
}

.preview-doc-title h4{
  margin:0;
  color:#10382a;
  font-size:25px;
  line-height:1.05;
  letter-spacing:-.045em;
}

.preview-doc-title p{
  margin:8px 0 0;
  color:#76958a;
  font-size:7px;
  font-weight:900;
  letter-spacing:.14em;
}

.preview-doc-client{
  padding:15px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  border-top:1px solid #d2dfda;
  border-bottom:1px solid #d2dfda;
}

.preview-doc-client div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.preview-doc-client small,
.preview-doc-section > small{
  color:#809b91;
  font-size:6px;
  font-weight:900;
  letter-spacing:.13em;
}

.preview-doc-client strong{
  font-size:9px;
}

.preview-doc-client span{
  color:#779086;
  font-size:7px;
}

.preview-doc-section{
  margin-top:25px;
}

.preview-doc-lines{
  margin-top:10px;
}

.preview-doc-lines i{
  display:block;
  width:100%;
  height:5px;
  margin:7px 0;
  border-radius:999px;
  background:#cbd9d4;
}

.preview-doc-lines i:nth-child(2){
  width:88%;
}

.preview-doc-lines i:nth-child(3){
  width:64%;
}

.preview-doc-table{
  margin-top:25px;
}

.preview-table-head,
.preview-table-row{
  display:grid;
  grid-template-columns:1fr 45px 65px;
  gap:7px;
  align-items:center;
}

.preview-table-head{
  padding:8px 7px;
  color:#769287;
  background:#e3ece8;
  font-size:6px;
  font-weight:900;
}

.preview-table-row{
  padding:9px 7px;
  border-bottom:1px solid #dbe5e1;
  font-size:7px;
}

.preview-table-head span:nth-child(n+2),
.preview-table-row span:nth-child(n+2){
  text-align:right;
}

.preview-doc-total{
  margin-top:17px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:22px;
  font-size:8px;
}

.preview-doc-total strong{
  color:#0e4a35;
  font-size:15px;
}

.preview-doc-footer{
  position:absolute;
  left:34px;
  right:34px;
  bottom:27px;
  color:#8aa198;
  font-size:6px;
  text-align:center;
}

.preview-watermark{
  position:absolute;
  z-index:3;
  right:29px;
  bottom:25px;
  padding:7px 10px;
  border:1px solid rgba(69,239,166,.25);
  border-radius:7px;
  color:#5ef2b1;
  background:rgba(0,25,18,.74);
  font-size:8px;
  font-weight:950;
  letter-spacing:.14em;
}

.preview-information{
  padding:65px 55px 48px;
  overflow:auto;
}

.preview-topline{
  display:flex;
  align-items:center;
  gap:9px;
}

.preview-category{
  color:#7d9b90;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}

.preview-information h2{
  margin:20px 0 14px;
  font-size:38px;
  line-height:1.02;
  letter-spacing:-.045em;
}

.preview-description{
  margin:0;
  color:#9eb7ad;
  font-size:14px;
  line-height:1.7;
}

.preview-divider{
  height:1px;
  margin:28px 0;
  background:rgba(255,255,255,.075);
}

.preview-information h3{
  margin:0 0 17px;
  font-size:13px;
}

.preview-includes{
  display:grid;
  gap:11px;
}

.preview-includes > div{
  display:flex;
  align-items:center;
  gap:10px;
}

.preview-includes p{
  margin:0;
  color:#b8cbc3;
  font-size:12px;
}

.preview-include-mark{
  flex:0 0 22px;
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--qt-green);
  background:rgba(57,232,155,.10);
  font-size:10px;
  font-weight:950;
}

.preview-note{
  padding:15px 17px;
  border:1px solid rgba(65,240,166,.13);
  border-radius:11px;
  background:rgba(48,221,146,.045);
}

.preview-note strong{
  color:#dff8ed;
  font-size:11px;
}

.preview-note p{
  margin:5px 0 0;
  color:#87a398;
  font-size:10px;
  line-height:1.55;
}

.preview-primary-action,
.preview-secondary-action{
  width:100%;
  min-height:47px;
  border-radius:11px;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}

.preview-primary-action{
  margin-top:25px;
  border:1px solid var(--qt-green);
  color:#00291c;
  background:var(--qt-green);
}

.preview-primary-action:hover{
  filter:brightness(1.05);
}

.preview-secondary-action{
  margin-top:8px;
  border:1px solid rgba(255,255,255,.09);
  color:#b7cbc3;
  background:transparent;
}

.preview-secondary-action:hover{
  border-color:var(--qt-border-bright);
  color:var(--qt-green);
}


@media (max-width:800px){

  .template-preview-modal{
    padding:15px;
  }

  .template-preview-dialog{
    max-height:calc(100vh - 30px);
    grid-template-columns:1fr;
    overflow:auto;
  }

  .preview-document-area{
    min-height:520px;
    padding:45px 25px;
  }

  .preview-document{
    min-height:480px;
    padding:27px;
  }

  .preview-doc-footer{
    left:27px;
    right:27px;
  }

  .preview-information{
    padding:38px 28px;
    overflow:visible;
  }

  .preview-information h2{
    font-size:32px;
  }
}
