/* IK804 Sitewide Full-Width Page Update */

/* Compatibility for old pages that use .wrap/.card/.grid/.table classes */
body.ik804-fw .wrap,
body.ik804-fw .store-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding-left:var(--pad)!important;
  padding-right:var(--pad)!important;
}

body.ik804-fw main.wrap,
body.ik804-fw main.store-wrap{
  padding-top:clamp(22px,4vw,54px)!important;
  padding-bottom:clamp(34px,6vw,86px)!important;
}

body.ik804-fw .hero,
body.ik804-fw .hero-pro{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;
  gap:clamp(20px,4vw,70px)!important;
  align-items:center!important;
  padding:clamp(34px,6vw,88px) var(--pad)!important;
  margin:0!important;
}

body.ik804-fw .card,
body.ik804-fw .card-pro{
  border-radius:var(--radius)!important;
  border:1px solid var(--line)!important;
  background:rgba(255,255,255,.07)!important;
  box-shadow:var(--shadow)!important;
  backdrop-filter:blur(14px)!important;
  padding:clamp(20px,3vw,44px)!important;
  margin-bottom:18px!important;
  color:var(--text)!important;
}

body.ik804-fw .card-strong{
  background:
    linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.055)),
    radial-gradient(circle at 15% 0%,rgba(245,199,95,.18),transparent 38%)!important;
}

body.ik804-fw .kicker,
body.ik804-fw .fw-kicker{
  color:var(--gold)!important;
  text-transform:uppercase!important;
  letter-spacing:.16em!important;
  font-weight:1000!important;
  font-size:12px!important;
}

body.ik804-fw h1,
body.ik804-fw .fw-title{
  letter-spacing:-.065em;
}

body.ik804-fw h1:not(.fw-title){
  font-size:clamp(42px,6vw,96px)!important;
  line-height:.9!important;
  margin:8px 0 18px!important;
}

body.ik804-fw h2:not(.fw-card-title){
  font-size:clamp(28px,3.5vw,58px)!important;
  line-height:.95!important;
  letter-spacing:-.045em!important;
}

body.ik804-fw h3{
  font-size:clamp(20px,2vw,34px)!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
}

body.ik804-fw .lead,
body.ik804-fw .fw-lead{
  color:var(--muted)!important;
  line-height:1.55!important;
  font-size:clamp(16px,1.22vw,22px)!important;
}

body.ik804-fw .grid-4,
body.ik804-fw .grid-pro{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}

body.ik804-fw .grid-3{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}

body.ik804-fw .grid-2{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}

body.ik804-fw .quick,
body.ik804-fw .quick-actions{
  display:flex!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}

body.ik804-fw .btn,
body.ik804-fw .btn-pro,
body.ik804-fw button.btn-pro{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  padding:13px 18px!important;
  border-radius:17px!important;
  border:0!important;
  cursor:pointer!important;
  text-decoration:none!important;
  font-weight:1000!important;
  color:var(--ink)!important;
  background:linear-gradient(135deg,var(--green),var(--gold))!important;
  box-shadow:0 18px 50px rgba(16,201,130,.18)!important;
}

body.ik804-fw .btn.secondary,
body.ik804-fw .btn-secondary,
body.ik804-fw .btn-pro.btn-secondary{
  color:var(--text)!important;
  background:rgba(255,255,255,.085)!important;
  border:1px solid var(--line)!important;
  box-shadow:none!important;
}

body.ik804-fw .badge,
body.ik804-fw .badge-pro{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  padding:7px 10px!important;
  color:var(--muted)!important;
  background:rgba(255,255,255,.065)!important;
  font-size:12px!important;
  font-weight:800!important;
}

body.ik804-fw .badge.good,
body.ik804-fw .badge-green{
  color:#d7ffee!important;
  border-color:rgba(16,201,130,.42)!important;
  background:rgba(16,201,130,.11)!important;
}

body.ik804-fw .badge.warn,
body.ik804-fw .badge-gold{
  color:#ffecb1!important;
  border-color:rgba(245,199,95,.42)!important;
  background:rgba(245,199,95,.11)!important;
}

body.ik804-fw .badge.bad,
body.ik804-fw .badge-red{
  color:#ffd0d0!important;
  border-color:rgba(255,111,111,.42)!important;
  background:rgba(255,111,111,.11)!important;
}

body.ik804-fw .notice,
body.ik804-fw .notice-pro{
  width:100%!important;
  border-left:4px solid var(--gold)!important;
  background:rgba(245,199,95,.10)!important;
  color:var(--soft)!important;
  padding:15px 16px!important;
  border-radius:18px!important;
  margin:16px 0!important;
}

body.ik804-fw label{
  display:grid!important;
  gap:8px!important;
  margin:12px 0!important;
  color:var(--muted)!important;
  font-weight:800!important;
}

body.ik804-fw input,
body.ik804-fw select,
body.ik804-fw textarea{
  width:100%!important;
  border:1px solid var(--line)!important;
  background:rgba(255,255,255,.085)!important;
  color:var(--text)!important;
  padding:14px 15px!important;
  border-radius:16px!important;
  outline:none!important;
}

body.ik804-fw select option{
  color:#111!important;
}

body.ik804-fw textarea{
  resize:vertical!important;
}

body.ik804-fw .table,
body.ik804-fw .table-pro{
  width:100%!important;
  border-collapse:collapse!important;
  min-width:760px;
}

body.ik804-fw .table th,
body.ik804-fw .table td,
body.ik804-fw .table-pro th,
body.ik804-fw .table-pro td{
  padding:14px 12px!important;
  border-bottom:1px solid var(--line)!important;
  text-align:left!important;
  vertical-align:top!important;
}

body.ik804-fw .table th,
body.ik804-fw .table-pro th{
  color:var(--muted)!important;
  text-transform:uppercase!important;
  font-size:12px!important;
  letter-spacing:.09em!important;
}

/* Auto-wrap tables so old pages don't break mobile */
body.ik804-fw .card:has(table),
body.ik804-fw .card-pro:has(table),
body.ik804-fw .fw-table-wrap{
  overflow:auto!important;
}

body.ik804-fw .product-card img,
body.ik804-fw .product-tile img{
  width:100%!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 30% 20%,rgba(245,199,95,.20),transparent 32%),
    rgba(255,255,255,.08)!important;
}

/* Sitewide page hero for pages that don't have one */
.ik804-page-shell{
  width:100%;
  padding:clamp(28px,5vw,72px) var(--pad);
}

.ik804-page-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.ik804-page-card{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.065);
  padding:clamp(20px,3vw,40px);
  color:var(--text);
  text-decoration:none;
  min-height:180px;
  transition:transform .22s ease, border-color .22s ease, background .22s ease;
}

.ik804-page-card:hover{
  transform:translateY(-7px);
  border-color:rgba(245,199,95,.42);
  background:rgba(255,255,255,.095);
}

.ik804-page-card span{
  color:var(--gold);
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
}

.ik804-page-card strong{
  display:block;
  font-size:clamp(22px,2vw,34px);
  line-height:1;
  margin:18px 0 10px;
  letter-spacing:-.04em;
}

.ik804-page-card p{
  color:var(--muted);
  line-height:1.45;
  margin:0;
}

/* Admin compatibility */
body.ik804-fw .admin-topline{
  width:100%!important;
  padding:clamp(28px,5vw,72px) var(--pad) 18px!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:18px!important;
  align-items:end!important;
}

body.ik804-fw .admin-topline + .grid-4,
body.ik804-fw .admin-topline + .grid-pro,
body.ik804-fw .admin-topline + .card,
body.ik804-fw .admin-topline + .card-pro{
  margin-left:var(--pad)!important;
  margin-right:var(--pad)!important;
  width:calc(100% - (var(--pad) * 2))!important;
}

body.ik804-fw main > .card,
body.ik804-fw main > .card-pro,
body.ik804-fw main > .grid-4,
body.ik804-fw main > .grid-3,
body.ik804-fw main > .grid-2,
body.ik804-fw main > .grid-pro{
  margin-left:var(--pad)!important;
  margin-right:var(--pad)!important;
  width:calc(100% - (var(--pad) * 2))!important;
}

/* Mobile */
@media(max-width:1180px){
  body.ik804-fw .grid-4,
  body.ik804-fw .grid-pro,
  .ik804-page-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.ik804-fw .hero,
  body.ik804-fw .hero-pro{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:820px){
  body.ik804-fw .grid-4,
  body.ik804-fw .grid-3,
  body.ik804-fw .grid-2,
  body.ik804-fw .grid-pro,
  .ik804-page-grid{
    grid-template-columns:1fr!important;
  }

  body.ik804-fw .admin-topline{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }

  body.ik804-fw .btn,
  body.ik804-fw .btn-pro{
    width:100%!important;
  }

  body.ik804-fw .quick,
  body.ik804-fw .quick-actions{
    width:100%!important;
  }

  body.ik804-fw h1:not(.fw-title){
    font-size:clamp(40px,13vw,70px)!important;
  }
}
