
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#eef3ff;
  --ink:#0f172a;
  --muted:#475569;
  --line:#dbe3f0;
  --primary:#1d4ed8;
  --primary-dark:#163ea8;
  --secondary:#0f172a;
  --success:#0f766e;
  --danger:#b91c1c;
  --warning:#b45309;
  --radius:22px;
  --radius-sm:14px;
  --shadow:0 20px 48px rgba(15,23,42,.08);
  --shadow-sm:0 10px 26px rgba(15,23,42,.06);
  --container:min(1180px, calc(100vw - 32px));
}

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

html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.10), transparent 20rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 28%, #eef4fb 100%);
  line-height:1.6;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
p{margin:0 0 1rem}
h1,h2,h3,h4{line-height:1.15;margin:0 0 .75rem}
h1{font-size:clamp(2rem, 4vw, 4rem)}
h2{font-size:clamp(1.6rem, 2vw, 2.4rem)}
h3{font-size:1.15rem}
ul{margin:0;padding-left:1.15rem}

.container{width:var(--container);margin-inline:auto}
.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.content-narrow{max-width:860px}
.content-wide{max-width:1220px}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(14px);
  background:rgba(248,251,255,.82);
  border-bottom:1px solid rgba(219,227,240,.85);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:1rem;
  min-height:84px;
}

.site-brand,
.site-brand-link{
  display:flex;
  align-items:center;
  gap:.85rem;
  min-width:0;
}

.brand-text-link{
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
}

.brand-group{min-width:0}

.site-brand .custom-logo{
  max-height:52px;
  width:auto;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:16px;
  background:linear-gradient(135deg, #1d4ed8, #0f172a);
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:var(--shadow-sm);
}

.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-text strong{font-size:1rem}
.brand-text small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  margin-left:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}
.nav-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--ink);
}

.primary-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  margin-left:auto;
  flex:1;
}

.menu-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap:wrap;
}

.menu-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.75rem .95rem;
  border-radius:999px;
  color:var(--muted);
  font-weight:600;
}

.menu-list a:hover,
.menu-list .current-menu-item > a{
  background:#fff;
  color:var(--ink);
  box-shadow:var(--shadow-sm);
}

.menu-actions{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.section{padding:72px 0}
.section-muted{background:rgba(255,255,255,.46);backdrop-filter:blur(8px)}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:1rem;
  margin-bottom:1.75rem;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-weight:800;
  color:var(--primary);
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:.9rem;
}
.lead{
  font-size:1.06rem;
  color:var(--muted);
  max-width:70ch;
}

.hero-section{padding:72px 0 54px}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);
  gap:1.4rem;
  align-items:stretch;
}
.hero-copy,
.hero-panel,
.content-card,
.info-card,
.listing-card,
.category-card,
.stat-card,
.mini-card,
.post-card,
.filters-bar,
.auth-card{
  background:var(--surface);
  border:1px solid rgba(219,227,240,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-copy{
  padding:1.8rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-panel{
  padding:1.45rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  background:
    linear-gradient(180deg, rgba(29,78,216,.05), rgba(255,255,255,1) 45%);
}

.hero-inline-actions,
.button-row,
.search-actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:1rem;
}

.search-hero-card{
  margin-top:1.4rem;
  padding:1.05rem;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid var(--line);
}

.search-grid,
.field-grid{
  display:grid;
  gap:1rem;
}
.search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-grid.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-grid.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}

.field{
  display:flex;
  flex-direction:column;
  gap:.45rem;
}
.field span{
  font-size:.92rem;
  font-weight:700;
  color:var(--secondary);
}
.field input,
.field select,
.field textarea,
.searchform-inline input{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:16px;
  padding:.92rem 1rem;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  font:inherit;
}
.field textarea{resize:vertical;min-height:120px}
.field input:focus,
.field select:focus,
.field textarea:focus,
.searchform-inline input:focus{
  border-color:rgba(29,78,216,.55);
  box-shadow:0 0 0 4px rgba(29,78,216,.13);
}

.check-row{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-size:.95rem;
  color:var(--muted);
}

.button{
  appearance:none;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:48px;
  padding:.9rem 1.15rem;
  border-radius:16px;
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.button:hover{transform:translateY(-1px)}
.button-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--primary), #2563eb);
  box-shadow:0 16px 34px rgba(29,78,216,.22);
}
.button-primary:hover{background:linear-gradient(135deg, var(--primary-dark), var(--primary))}
.button-secondary{
  background:#eef3ff;
  color:var(--primary);
  border:1px solid rgba(29,78,216,.18);
}
.button-ghost{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
}
.button-danger{
  background:#fee2e2;
  color:var(--danger);
}
.button-social{
  background:#fff;
  border:1px solid var(--line);
  min-width:140px;
}
.button-small{
  min-height:38px;
  padding:.6rem .85rem;
  border-radius:12px;
  font-size:.88rem;
}
.button-block{width:100%}
.is-disabled{opacity:.48;pointer-events:none}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.stat-card{
  padding:1.1rem 1.15rem;
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.stat-card strong{
  font-size:clamp(1.5rem, 2vw, 2.2rem);
  line-height:1;
}
.stat-card span{color:var(--muted)}

.info-card{
  padding:1.25rem 1.3rem;
}

.feature-list{
  display:grid;
  gap:.7rem;
  list-style:none;
  padding:0;
}
.feature-list li{
  display:flex;
  gap:.65rem;
  align-items:flex-start;
  color:var(--muted);
}
.feature-list li::before{
  content:"✓";
  flex:0 0 auto;
  color:var(--success);
  font-weight:800;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.category-card{
  padding:1.2rem 1.2rem 1.25rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover,
.listing-card:hover,
.post-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 48px rgba(15,23,42,.11);
  border-color:rgba(29,78,216,.22);
}
.category-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(29,78,216,.12), rgba(15,23,42,.06));
  font-size:1.55rem;
}

.listing-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}

.listing-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.listing-card-media,
.post-card-media{
  aspect-ratio:1.2/0.82;
  overflow:hidden;
  background:#dbeafe;
}
.listing-card-media img,
.post-card-media img,
.featured-image img,
.image-preview-inline img,
.listing-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.listing-thumb-placeholder{
  width:100%;
  height:100%;
  min-height:220px;
  display:grid;
  place-items:center;
  background:
    linear-gradient(135deg, #0f172a, #1d4ed8);
  color:#fff;
}
.listing-thumb-placeholder span{
  font-size:3.5rem;
  line-height:1;
}
.single-placeholder{min-height:420px}

.listing-card-body,
.post-card-body{
  padding:1rem 1.05rem 1.15rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
  flex:1;
}
.listing-card-meta,
.post-meta{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.9rem;
}
.listing-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:.35rem .75rem;
  border-radius:999px;
  background:#e8f0ff;
  color:var(--primary);
  font-weight:800;
  font-size:.78rem;
}
.listing-meta-dot::before{content:"• ";color:#94a3b8}
.listing-card-title{
  font-size:1.12rem;
}
.listing-card-title a:hover,
.post-card h2 a:hover,
.text-link:hover{color:var(--primary)}
.listing-card-excerpt,
.post-card p,
.archive-description,
.entry-content,
.sidebar-list,
.lead-card p,
.auth-card p{
  color:var(--muted);
}
.listing-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-top:auto;
}
.listing-card-price{font-size:1.06rem}
.listing-card-location{font-size:.92rem;color:var(--muted)}

.split-panel{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:1rem;
  align-items:stretch;
}
.panel-copy{
  background:linear-gradient(135deg, rgba(29,78,216,.06), rgba(255,255,255,1));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.4rem;
  box-shadow:var(--shadow);
}
.panel-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.mini-card{
  padding:1.2rem;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  padding:0 0 1.3rem;
}
.site-footer{
  padding:52px 0 24px;
  background:#0f172a;
  color:#dbeafe;
  margin-top:72px;
}
.site-footer h3,
.site-footer h4{color:#fff}
.footer-links{
  list-style:none;
  padding:0;
  display:grid;
  gap:.55rem;
}
.footer-links a{color:#cbd5e1}
.footer-links a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:1rem;
  color:#94a3b8;
  font-size:.95rem;
}

.content-card{
  padding:1.45rem;
}
.article-header{margin-bottom:1rem}
.featured-image{margin:1rem 0;border-radius:20px;overflow:hidden}
.entry-content > *:last-child{margin-bottom:0}
.entry-content ul,
.entry-content ol{margin:0 0 1rem 1.2rem}

.filters-bar{
  padding:1rem;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:1rem;
  margin-bottom:1.2rem;
}
.filters-actions{
  display:flex;
  align-items:flex-end;
  gap:.75rem;
  flex-wrap:wrap;
}

.auth-layout{max-width:1180px}
.auth-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.auth-card h1,
.auth-card h2{margin-bottom:.55rem}
.stack-form{display:grid;gap:1rem}
.social-block{
  margin-top:.75rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
}
.social-buttons{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
}
.auth-signed{text-align:center}

.dashboard-layout{
  display:grid;
  grid-template-columns:minmax(260px,310px) minmax(0,1fr);
  gap:1rem;
  align-items:start;
}
.dashboard-sidebar{
  position:sticky;
  top:104px;
  display:grid;
  gap:1rem;
}
.dashboard-main{
  display:grid;
  gap:1rem;
}
.profile-card{
  display:flex;
  align-items:center;
  gap:1rem;
}
.avatar-circle{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:20px;
  background:linear-gradient(135deg, #1d4ed8, #0f172a);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:1.4rem;
  font-weight:800;
}
.quick-links{
  display:grid;
  gap:.5rem;
}
.quick-links a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:.8rem .9rem;
  border-radius:14px;
  color:var(--muted);
  font-weight:700;
}
.quick-links a:hover,
.quick-links a.is-active{
  background:#eef3ff;
  color:var(--primary);
}
.dashboard-panels{
  display:grid;
  gap:1rem;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-bottom:1rem;
}
.table-wrap{
  width:100%;
  overflow:auto;
}
.dashboard-table{
  width:100%;
  border-collapse:collapse;
  min-width:700px;
}
.dashboard-table th,
.dashboard-table td{
  padding:.9rem .85rem;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.dashboard-table th{
  color:var(--secondary);
  font-size:.92rem;
}
.actions-inline{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.actions-inline form{margin:0}

.lead-list{
  display:grid;
  gap:.85rem;
}
.lead-card{
  padding:1rem;
  border-radius:18px;
  border:1px solid var(--line);
  background:#f8fbff;
}
.lead-card-top{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:.5rem;
}
.lead-card-top span{color:var(--muted);font-size:.9rem}

.editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:1rem;
  align-items:start;
}
.side-tips{position:sticky;top:104px}
.image-preview-inline{
  display:grid;
  gap:.7rem;
  border:1px solid var(--line);
  border-radius:18px;
  padding:1rem;
  background:#f8fbff;
}

.listing-single-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.6fr);
  gap:1rem;
  align-items:start;
}
.listing-content-card{
  background:var(--surface);
  border:1px solid rgba(219,227,240,.95);
  border-radius:var(--radius);
  padding:1.4rem;
  box-shadow:var(--shadow);
}
.listing-header{margin-bottom:1rem}
.listing-inline-meta{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.95rem;
}
.listing-hero-media{
  border-radius:22px;
  overflow:hidden;
  margin:1rem 0 1.15rem;
}
.listing-lead{margin-bottom:1rem}
.listing-sidebar{
  display:grid;
  gap:1rem;
}
.sticky-card{
  position:sticky;
  top:104px;
}
.sidebar-list{
  display:grid;
  gap:.7rem;
}
.big-price{
  display:block;
  font-size:2rem;
  margin-bottom:.8rem;
}

.post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.post-card{
  overflow:hidden;
}
.post-meta{font-size:.92rem}

.adshub-empty-state{
  padding:2rem 1.5rem;
  border:1px dashed #bdd0f4;
  border-radius:24px;
  background:#f7fbff;
  text-align:center;
  display:grid;
  gap:.75rem;
  justify-items:center;
}

.adshub-alert{
  padding:1rem 1.15rem;
  border-radius:18px;
  margin-bottom:1rem;
  border:1px solid transparent;
  font-weight:700;
}
.adshub-alert-success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.adshub-alert-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.adshub-alert-info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.adshub-alert-warning{background:#fffbeb;color:#92400e;border-color:#fde68a}

.searchform-inline{
  display:flex;
  gap:.75rem;
  align-items:center;
  flex-wrap:wrap;
}
.pagination-wrap{
  margin-top:1.25rem;
  display:flex;
  justify-content:center;
}
.pagination-wrap .nav-links{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
}
.pagination-wrap .page-numbers{
  min-width:44px;
  min-height:44px;
  display:grid;
  place-items:center;
  padding:.5rem .85rem;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}
.pagination-wrap .current{
  background:#e8f0ff;
  color:var(--primary);
  border-color:#bfd1ff;
}

.comments-card{margin-top:1rem}
.comment-list{display:grid;gap:1rem;padding-left:1.1rem}
.comment-body{
  border:1px solid var(--line);
  border-radius:16px;
  padding:1rem;
  background:#f8fbff;
}

.breadcrumbs-small{
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap;
  color:var(--muted);
  margin-bottom:1rem;
}

.screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0
}

@media (max-width: 1180px){
  .hero-grid,
  .split-panel,
  .editor-layout,
  .listing-single-grid{grid-template-columns:1fr}
  .dashboard-layout{grid-template-columns:1fr}
  .dashboard-sidebar,
  .sticky-card,
  .side-tips{position:static}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .listing-grid,
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width: 960px){
  .nav-toggle{display:flex}
  .primary-nav{
    position:absolute;
    top:calc(100% + 10px);
    left:16px;
    right:16px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    border-radius:24px;
    padding:1rem;
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  .primary-nav.is-open{display:flex}
  .menu-list,
  .menu-actions{flex-direction:column;align-items:stretch}
  .menu-list a{justify-content:center}
  .section-heading{flex-direction:column;align-items:flex-start}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .search-grid,
  .field-grid.two-cols,
  .field-grid.three-cols,
  .auth-grid,
  .filters-bar{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .section{padding:56px 0}
  .hero-section{padding:52px 0 36px}
  .container{width:min(100vw - 20px, 1180px)}
  .hero-copy,
  .hero-panel,
  .content-card,
  .info-card,
  .listing-content-card{padding:1.05rem}
  .listing-grid,
  .post-grid,
  .category-grid,
  .panel-grid,
  .stats-grid{grid-template-columns:1fr}
  .button,
  .button-small{width:100%}
  .button-row,
  .hero-inline-actions,
  .search-actions,
  .social-buttons{display:grid;grid-template-columns:1fr}
  .listing-card-footer,
  .lead-card-top,
  .listing-inline-meta{flex-direction:column;align-items:flex-start}
  .dashboard-table{min-width:620px}
}

/* ===== Version 1.2 — Front-end annonceur + animations ===== */
.site-header.is-scrolled{
  background:rgba(248,251,255,.94);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}

body.nav-open{overflow:hidden}

.scroll-progress{
  position:fixed;
  inset:0 auto auto 0;
  height:3px;
  width:100%;
  transform-origin:left center;
  transform:scaleX(0);
  background:linear-gradient(90deg, var(--primary), #60a5fa 65%, #22c55e);
  z-index:90;
  pointer-events:none;
}

[data-reveal]{
  opacity:0;
  transform:translate3d(0, 28px, 0);
  transition:opacity .65s ease, transform .65s ease;
  will-change:transform, opacity;
}

[data-reveal="left"]{transform:translate3d(-36px, 0, 0)}
[data-reveal="right"]{transform:translate3d(36px, 0, 0)}
[data-reveal="up"]{transform:translate3d(0, 28px, 0)}
[data-reveal].is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

.hero-surface,
.glass-card{
  position:relative;
  overflow:hidden;
}
.hero-surface::before,
.glass-card::before{
  content:"";
  position:absolute;
  inset:auto -10% -40% auto;
  width:240px;
  height:240px;
  background:radial-gradient(circle, rgba(96,165,250,.22), transparent 68%);
  pointer-events:none;
}
.hero-surface::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(29,78,216,.06), rgba(15,23,42,0) 46%, rgba(34,197,94,.05));
  pointer-events:none;
}

.hero-section-pro{padding-block:84px 60px}
.hero-copy-pro{gap:1rem}
.hero-copy-pro h1{max-width:13ch}
.hero-feature-strip{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:.5rem;
}
.hero-feature-strip span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.55rem .85rem;
  border-radius:999px;
  background:#eef4ff;
  border:1px solid rgba(59,130,246,.16);
  color:#16408f;
  font-weight:700;
  font-size:.92rem;
}
.hero-panel-pro{
  justify-content:space-between;
  background:
    linear-gradient(180deg, rgba(29,78,216,.08), rgba(255,255,255,1) 32%),
    radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 42%);
}
.stats-grid-home .stat-card strong{font-size:clamp(1.8rem, 3vw, 2.7rem)}
.feature-panel{padding:1.2rem}

.workflow-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:1rem;
}
.workflow-card{
  padding:1.25rem;
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.workflow-card strong{
  font-size:1.4rem;
  color:var(--primary);
}

.auth-shell{display:grid;gap:1.1rem}
.auth-hero{
  padding:1.6rem;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);
  gap:1rem;
  align-items:end;
}
.auth-hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  justify-content:flex-end;
  align-self:center;
}
.auth-grid-pro{align-items:start}
.auth-benefits{
  margin-top:1rem;
  display:grid;
  gap:.75rem;
}
.auth-benefits > div,
.side-metrics > div{
  display:grid;
  gap:.2rem;
  padding:.8rem .9rem;
  border-radius:16px;
  border:1px solid var(--line);
  background:#f8fbff;
}
.auth-benefits strong,
.side-metrics strong{font-size:.98rem}
.auth-benefits span,
.side-metrics span{color:var(--muted);font-size:.94rem}
.social-block-pro{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
}

.workspace-hero-section{padding-top:72px}
.workspace-shell{
  display:grid;
  grid-template-columns:minmax(270px, .36fr) minmax(0, 1fr);
  gap:1.2rem;
  align-items:start;
}
.workspace-sidebar{display:grid;gap:1rem;position:sticky;top:108px}
.workspace-profile-card{
  padding:1.25rem;
  display:flex;
  align-items:center;
  gap:1rem;
}
.workspace-nav{
  padding:.75rem;
  display:grid;
  gap:.35rem;
}
.workspace-nav a{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-height:46px;
  padding:.8rem 1rem;
  border-radius:16px;
  color:var(--muted);
  font-weight:700;
  transition:background .22s ease, color .22s ease, transform .22s ease;
}
.workspace-nav a:hover,
.workspace-nav a.is-active{
  background:#eef4ff;
  color:var(--ink);
  transform:translateX(4px);
}
.workspace-note{padding:1.15rem}
.workspace-main{display:grid;gap:1rem}
.workspace-hero-card{
  padding:1.6rem;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.9fr);
  gap:1.25rem;
  align-items:stretch;
}
.workspace-hero-copy{display:grid;align-content:center}
.workspace-stats-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:.9rem;
}
.stat-card-strong{
  background:linear-gradient(135deg, rgba(29,78,216,.12), rgba(255,255,255,1));
}
.stat-number{display:block}
.workspace-highlight-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:1rem;
}
.highlight-card{
  padding:1.15rem;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.85rem;
  align-items:start;
}
.highlight-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eef4ff;
  font-size:1.4rem;
}
.workspace-section{padding:1.3rem}
.dashboard-card-grid,
.lead-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1rem;
}
.dashboard-listing-card{
  padding:1.1rem;
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, #fff, #f8fbff);
  box-shadow:var(--shadow-sm);
  display:grid;
  gap:.9rem;
}
.dashboard-listing-top{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:1rem;
}
.dashboard-listing-top h3{margin:0;font-size:1.08rem}
.dashboard-listing-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  color:var(--muted);
  font-size:.95rem;
}
.listing-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.45rem .7rem;
  border-radius:999px;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}
.listing-status-pill.is-publish{background:rgba(34,197,94,.12);color:#166534}
.listing-status-pill.is-draft{background:rgba(251,191,36,.16);color:#92400e}
.listing-status-pill.is-pending{background:rgba(59,130,246,.12);color:#1d4ed8}
.actions-inline-wrap{flex-wrap:wrap}
.lead-card-rich{
  padding:1rem;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
}
.account-editor-form{margin-top:.25rem}

.submit-section .content-wide{display:grid;gap:1rem}
.submit-hero{
  padding:1.45rem;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) auto;
  gap:1rem;
  align-items:end;
}
.submit-steps{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:.9rem;
}
.submit-step{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.95rem 1rem;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.submit-step span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef4ff;
  color:var(--primary);
  font-weight:800;
}
.submit-step.is-active{
  background:linear-gradient(135deg, rgba(29,78,216,.10), #fff);
  border-color:rgba(29,78,216,.24);
}
.editor-layout-pro{
  grid-template-columns:minmax(0,1.28fr) minmax(280px,.72fr);
  gap:1rem;
  align-items:start;
}
.submit-form-pro{padding:1.25rem}
.form-section{
  display:grid;
  gap:1rem;
  padding:1.05rem 0;
  border-top:1px solid var(--line);
}
.form-section:first-of-type{border-top:0;padding-top:0}
.section-mini-head h2{
  font-size:1.16rem;
  margin-bottom:.25rem;
}
.section-mini-head p{color:var(--muted);margin:0}
.align-end{align-items:end}
.field-upload input[type="file"]{padding:.85rem}
.upload-tip-card{
  padding:1rem;
  border-radius:18px;
  border:1px dashed rgba(29,78,216,.28);
  background:#f8fbff;
}
.upload-tip-card p{margin:.4rem 0 0;color:var(--muted)}
.side-tips-pro{
  position:sticky;
  top:108px;
  padding:1.25rem;
  display:grid;
  gap:1rem;
}
.side-metrics{display:grid;gap:.7rem}
.form-submit-row{padding-top:.25rem}

.file-note{
  display:block;
  margin-top:.45rem;
  color:var(--muted);
  font-size:.9rem;
}

@media (max-width: 1100px){
  .hero-grid,
  .workspace-hero-card,
  .auth-hero,
  .submit-hero,
  .workspace-shell,
  .editor-layout-pro,
  .workflow-grid,
  .workspace-highlight-grid{
    grid-template-columns:1fr;
  }

  .workspace-sidebar,
  .side-tips-pro{
    position:static;
  }

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

@media (max-width: 960px){
  .nav-toggle{display:flex}
  .primary-nav{
    position:fixed;
    inset:84px 16px auto 16px;
    z-index:60;
    display:none;
    flex-direction:column;
    align-items:stretch;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:0 24px 60px rgba(15,23,42,.16);
    padding:1rem;
    max-height:calc(100vh - 120px);
    overflow:auto;
  }
  .primary-nav.is-open{display:flex}
  .menu-list{flex-direction:column;align-items:stretch}
  .menu-list li{width:100%}
  .menu-actions{width:100%;flex-direction:column}
  .menu-actions .button{width:100%;justify-content:center}
  .workspace-stats-grid,
  .dashboard-card-grid,
  .lead-grid,
  .submit-steps,
  .auth-hero,
  .workspace-nav,
  .workflow-grid,
  .workspace-highlight-grid{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .hero-copy,
  .hero-panel,
  .workspace-section,
  .submit-form-pro,
  .auth-card,
  .workspace-hero-card,
  .submit-hero,
  .content-card,
  .info-card{
    padding:1rem;
  }

  .hero-feature-strip,
  .hero-inline-actions,
  .button-row,
  .search-actions,
  .auth-hero-badges{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-inline-actions .button,
  .button-row .button,
  .search-actions .button{
    width:100%;
    justify-content:center;
  }

  .dashboard-listing-top,
  .panel-head,
  .section-heading{
    flex-direction:column;
    align-items:flex-start;
  }

  .workspace-nav a:hover,
  .workspace-nav a.is-active{
    transform:none;
  }
}



/* ===== Dynamic v3 additions ===== */
.site-livebar{
  position:sticky;
  top:0;
  z-index:41;
  backdrop-filter:blur(12px);
  background:linear-gradient(90deg, rgba(15,23,42,.96), rgba(29,78,216,.88));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:transform .25s ease, opacity .25s ease;
}
.livebar-inner{
  display:flex;
  align-items:center;
  gap:1rem;
  min-height:46px;
}
.livebar-label,
.notification-panel-state{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  white-space:nowrap;
  font-size:.85rem;
  font-weight:700;
}
.pulse-dot{
  width:.62rem;
  height:.62rem;
  border-radius:999px;
  background:#34d399;
  box-shadow:0 0 0 0 rgba(52,211,153,.55);
  animation:pulseDot 1.8s infinite;
}
.livebar-track,
.live-marquee{
  position:relative;
  overflow:hidden;
  flex:1;
}
.livebar-list,
.live-marquee-track{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:max-content;
  animation:marqueeMove 28s linear infinite;
}
.livebar-track:hover .livebar-list,
.live-marquee:hover .live-marquee-track{
  animation-play-state:paused;
}
.live-pill,
.live-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
  border-radius:999px;
  padding:.55rem .9rem;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.10);
  color:inherit;
  font-weight:600;
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.live-chip{
  color:var(--ink);
  background:#fff;
  border-color:rgba(29,78,216,.10);
  box-shadow:var(--shadow-sm);
}
.live-pill.is-active,
.live-chip.is-active{
  transform:translateY(-3px);
  box-shadow:0 18px 34px rgba(15,23,42,.12);
}
.site-header{top:46px;transition:top .22s ease, box-shadow .22s ease, background .22s ease}
body.has-scrolled .site-header{top:0}
body.has-scrolled .site-livebar{transform:translateY(-100%);opacity:0;pointer-events:none}
.notification-center{
  position:relative;
}
.notification-toggle{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:46px;
  padding:.65rem .85rem;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.notification-toggle:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
  border-color:rgba(29,78,216,.25);
}
.notification-badge{
  display:grid;
  place-items:center;
  min-width:1.55rem;
  height:1.55rem;
  padding:0 .3rem;
  border-radius:999px;
  background:linear-gradient(135deg, #ef4444, #f97316);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
}
.notification-panel{
  position:absolute;
  right:0;
  top:calc(100% + .7rem);
  width:min(26rem, calc(100vw - 2rem));
  padding:1rem;
  border-radius:20px;
  border:1px solid rgba(219,227,240,.95);
  background:rgba(255,255,255,.98);
  box-shadow:0 22px 64px rgba(15,23,42,.16);
  backdrop-filter:blur(12px);
}
.notification-panel-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.95rem;
}
.notification-panel-head small{
  display:block;
  color:var(--muted);
  margin-top:.2rem;
}
.notification-list,
.notification-stream,
.activity-stack{
  display:grid;
  gap:.75rem;
}
.notification-item,
.notification-stream-item,
.activity-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:.8rem;
  padding:.85rem .95rem;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.notification-item:hover,
.notification-stream-item:hover,
.activity-item:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
  border-color:rgba(29,78,216,.22);
}
.notification-item-icon,
.activity-item-icon{
  display:grid;
  place-items:center;
  width:2.4rem;
  height:2.4rem;
  border-radius:14px;
  background:rgba(29,78,216,.08);
  font-size:1.05rem;
}
.notification-item-body,
.activity-item-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.12rem;
}
.notification-item-body strong,
.activity-item-body strong{
  font-size:.97rem;
}
.notification-item-body small,
.activity-item-body small,
.notification-item-meta,
.activity-item-meta{
  color:var(--muted);
  font-size:.82rem;
}
.tone-warning .notification-item-icon,
.tone-warning .activity-item-icon,
.notification-stream-item.tone-warning .notification-item-icon{background:rgba(245,158,11,.16)}
.tone-success .notification-item-icon,
.tone-success .activity-item-icon,
.notification-stream-item.tone-success .notification-item-icon{background:rgba(16,185,129,.16)}
.tone-danger .notification-item-icon,
.tone-danger .activity-item-icon,
.notification-stream-item.tone-danger .notification-item-icon{background:rgba(239,68,68,.16)}
.hero-section-active{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.hero-aurora{
  position:absolute;
  inset:-6rem -4rem auto;
  height:28rem;
  pointer-events:none;
  z-index:-1;
}
.hero-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(8px);
  opacity:.7;
}
.orb-one{
  width:20rem;
  height:20rem;
  right:5%;
  top:1rem;
  background:radial-gradient(circle at 30% 30%, rgba(96,165,250,.45), rgba(29,78,216,.08) 70%, transparent 100%);
}
.orb-two{
  width:16rem;
  height:16rem;
  right:22%;
  top:7rem;
  background:radial-gradient(circle at 30% 30%, rgba(52,211,153,.24), rgba(15,118,110,.04) 70%, transparent 100%);
}
.orb-three{
  width:18rem;
  height:18rem;
  left:4%;
  top:3rem;
  background:radial-gradient(circle at 30% 30%, rgba(167,139,250,.24), rgba(99,102,241,.05) 70%, transparent 100%);
}
.hero-copy-pro,
.hero-panel-pro,
.live-strip-card,
.workspace-live-card{
  position:relative;
  overflow:hidden;
}
.hero-copy-pro::after,
.hero-panel-pro::after,
.live-strip-card::after,
.workspace-live-card::after{
  content:"";
  position:absolute;
  inset:auto -20% -40% auto;
  width:12rem;
  height:12rem;
  border-radius:999px;
  background:radial-gradient(circle, rgba(29,78,216,.08), transparent 72%);
  pointer-events:none;
}
.live-strip-section{padding:0 0 24px}
.live-strip-card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(240,247,255,.98));
  border:1px solid rgba(219,227,240,.95);
  border-radius:var(--radius);
  padding:1.15rem;
  box-shadow:var(--shadow);
}
.live-strip-head,
.panel-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1rem;
}
.panel-head-compact{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:.9rem;
}
.live-activity-card .activity-stack{
  margin-top:.35rem;
}
.workspace-live-grid{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:1rem;
  margin-bottom:1rem;
}
.workspace-live-card{
  padding:1.35rem;
}
.quick-chip-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.75rem;
}
.quick-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  text-align:center;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-sm);
  font-weight:700;
  padding:.85rem 1rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-chip:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(29,78,216,.25);
}
.site-toast-stack{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:70;
  display:grid;
  gap:.75rem;
  width:min(24rem, calc(100vw - 2rem));
  pointer-events:none;
}
.site-toast{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.7rem;
  align-items:flex-start;
  padding:.9rem 1rem;
  border-radius:18px;
  background:rgba(15,23,42,.94);
  color:#fff;
  box-shadow:0 16px 40px rgba(15,23,42,.28);
  transform:translateY(12px);
  opacity:0;
  transition:opacity .24s ease, transform .24s ease;
}
.site-toast.is-visible{
  opacity:1;
  transform:translateY(0);
}
.site-toast-icon{
  display:grid;
  place-items:center;
  width:1.9rem;
  height:1.9rem;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-weight:900;
}
.site-toast.tone-success .site-toast-icon{background:rgba(16,185,129,.24)}
.site-toast.tone-warning .site-toast-icon{background:rgba(245,158,11,.24)}
.site-toast.tone-danger .site-toast-icon{background:rgba(239,68,68,.24)}
.site-backtotop{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:60;
  width:3rem;
  height:3rem;
  border-radius:999px;
  border:none;
  background:linear-gradient(135deg, #1d4ed8, #0f172a);
  color:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.25);
  opacity:0;
  transform:translateY(18px);
  pointer-events:none;
  cursor:pointer;
  transition:opacity .22s ease, transform .22s ease;
}
.site-backtotop.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.mobile-quickbar{
  position:fixed;
  left:50%;
  bottom:1rem;
  transform:translateX(-50%);
  z-index:58;
  display:none;
  align-items:stretch;
  gap:.45rem;
  width:min(31rem, calc(100vw - 1rem));
  padding:.55rem;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,227,240,.94);
  box-shadow:0 18px 50px rgba(15,23,42,.14);
  backdrop-filter:blur(18px);
}
.mobile-quickbar a{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.2rem;
  min-height:58px;
  border-radius:16px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
}
.mobile-quickbar a span{font-size:1rem}
.mobile-quickbar a.is-accent,
.mobile-quickbar a.is-current{
  background:rgba(29,78,216,.10);
  color:var(--primary);
}
.notification-center.is-open .notification-toggle{
  border-color:rgba(29,78,216,.25);
  box-shadow:var(--shadow);
}
[data-reveal]{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .5s ease var(--reveal-delay, 0ms), transform .5s ease var(--reveal-delay, 0ms);
}
[data-reveal="left"]{transform:translateX(-26px)}
[data-reveal="right"]{transform:translateX(26px)}
[data-reveal].is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}
.scroll-progress{
  position:fixed;
  left:0;
  top:0;
  z-index:75;
  width:100%;
  height:4px;
  transform-origin:left center;
  transform:scaleX(0);
  background:linear-gradient(90deg, #1d4ed8, #06b6d4, #34d399);
  box-shadow:0 10px 20px rgba(29,78,216,.2);
}
@keyframes marqueeMove{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - .375rem))}
}
@keyframes pulseDot{
  0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}
  70%{box-shadow:0 0 0 10px rgba(52,211,153,0)}
  100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}
}
@media (max-width: 1100px){
  .workspace-live-grid{grid-template-columns:1fr}
}
@media (max-width: 960px){
  .site-livebar{position:relative;top:auto}
  .site-header{top:0}
  body.has-scrolled .site-livebar{transform:none;opacity:1;pointer-events:auto}
  .notification-toggle-label{display:none}
  .notification-panel{right:auto;left:0}
  .live-strip-head,
  .panel-head,
  .panel-head-compact{flex-direction:column;align-items:flex-start}
}
@media (max-width: 760px){
  .hero-aurora{height:18rem}
  .quick-chip-grid{grid-template-columns:1fr}
  .site-toast-stack{bottom:5.9rem}
  .site-backtotop{bottom:6.1rem}
  .mobile-quickbar{display:flex}
}
@media (max-width: 640px){
  .site-header{top:40px}
  .livebar-inner{min-height:40px}
  .livebar-label{font-size:.76rem}
  .notification-panel{width:min(24rem, calc(100vw - 2rem))}
  .notification-item,
  .notification-stream-item,
  .activity-item{grid-template-columns:auto minmax(0,1fr)}
  .notification-item-meta,
  .activity-item-meta{grid-column:2 / -1}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .livebar-list,
  .live-marquee-track,
  .pulse-dot,
  [data-reveal],
  .site-toast,
  .site-backtotop,
  .hero-orb{animation:none !important;transition:none !important}
}

/* ===== Affwebank v3 additions ===== */
:root,
html[data-theme="light"]{
  color-scheme: light;
}
html[data-theme="dark"]{
  color-scheme: dark;
  --bg:#07111f;
  --surface:#0f1b2d;
  --surface-2:#132237;
  --ink:#e5eefb;
  --muted:#a8bad3;
  --line:#22354d;
  --primary:#60a5fa;
  --primary-dark:#3b82f6;
  --secondary:#e5eefb;
  --shadow:0 20px 48px rgba(0,0,0,.34);
  --shadow-sm:0 10px 26px rgba(0,0,0,.26);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.12), transparent 20rem),
    linear-gradient(180deg, #07111f 0%, var(--bg) 28%, #0b1628 100%);
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .mobile-quickbar,
html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .site-toast,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .listing-card,
html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .filters-bar,
html[data-theme="dark"] .search-hero-card,
html[data-theme="dark"] .quick-chip,
html[data-theme="dark"] .live-chip,
html[data-theme="dark"] .menu-contact-pill,
html[data-theme="dark"] .notification-toggle,
html[data-theme="dark"] .type-card,
html[data-theme="dark"] .policy-block,
html[data-theme="dark"] .site-spotlight-card,
html[data-theme="dark"] .sub-menu,
html[data-theme="dark"] .theme-mode-toggle{
  background:rgba(15,27,45,.96);
  color:var(--ink);
  border-color:var(--line);
}
html[data-theme="dark"] .site-footer{
  background:#07101d;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .searchform-inline input{
  background:#0b1727;
  color:var(--ink);
  border-color:var(--line);
}
html[data-theme="dark"] .button-secondary{
  background:#14243a;
  color:#93c5fd;
  border-color:#29446a;
}
html[data-theme="dark"] .button-ghost{
  background:#0f1b2d;
  color:var(--ink);
  border-color:var(--line);
}
html[data-theme="dark"] .category-icon,
html[data-theme="dark"] .type-card-icon,
html[data-theme="dark"] .notification-item-icon,
html[data-theme="dark"] .activity-item-icon,
html[data-theme="dark"] .theme-mode-icon{
  background:rgba(96,165,250,.15);
}

.site-topbar{
  background:rgba(15,23,42,.96);
  color:#e2e8f0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:42px;
}
.topbar-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem;
  font-size:.92rem;
}
.topbar-meta a,
.topbar-meta span{color:#e2e8f0}
.topbar-meta a:hover{color:#fff}
.topbar-badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .7rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:.85rem;
  font-weight:700;
}
.site-brand-fallback-logo{
  display:block;
  width:auto;
  height:58px;
  max-width:min(100%, 280px);
}
.site-brand-fallback-logo.is-footer{
  height:54px;
  filter:brightness(0) invert(1);
  opacity:.98;
}
.menu-contact-pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:46px;
  padding:.75rem 1rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(219,227,240,.95);
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  font-weight:700;
}
.menu-contact-pill:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.theme-mode-toggle{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:46px;
  padding:.65rem .95rem;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.theme-mode-toggle:hover{transform:translateY(-1px);box-shadow:var(--shadow);border-color:rgba(29,78,216,.25)}
.theme-mode-icon{
  display:grid;
  place-items:center;
  width:2rem;
  height:2rem;
  border-radius:999px;
  background:rgba(29,78,216,.10);
}
.menu-list > li{position:relative}
.menu-list .menu-item-has-children > a::after,
.menu-list > li > .sub-menu + a::after{content:""}
.menu-list .menu-item-has-children > a::before{
  content:"▾";
  font-size:.72rem;
  margin-left:.42rem;
  opacity:.7;
}
.sub-menu{
  list-style:none;
  padding:.55rem;
  margin:.4rem 0 0;
  position:absolute;
  left:0;
  top:100%;
  min-width:15rem;
  display:none;
  border-radius:18px;
  border:1px solid rgba(219,227,240,.95);
  background:rgba(255,255,255,.98);
  box-shadow:0 22px 64px rgba(15,23,42,.16);
  z-index:45;
}
.sub-menu li{width:100%}
.sub-menu a{
  width:100%;
  border-radius:14px;
  justify-content:flex-start;
}
.menu-list li:hover > .sub-menu,
.menu-list li:focus-within > .sub-menu{display:block}
.footer-contact-stack{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  margin-top:1rem;
}
.footer-contact-stack a{color:#cbd5e1}
.footer-contact-stack a:hover{color:#fff}
.content-card-inner{padding:2rem}
.page-card{overflow:hidden}
.single-cover img{display:block;width:100%;height:auto;object-fit:cover}
.policy-stack{display:grid;gap:1rem;margin-top:1.5rem}
.policy-block{
  padding:1.15rem 1.2rem;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(248,251,255,.9);
}
.policy-block h2{margin:0 0 .6rem;font-size:1.05rem}
.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.team-card{padding:1.4rem}
.team-avatar{
  width:74px;
  height:74px;
  border-radius:24px;
  display:grid;
  place-items:center;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.08em;
  color:#fff;
  background:linear-gradient(135deg, #2563eb, #0f172a);
  box-shadow:var(--shadow);
  margin-bottom:1rem;
}
.type-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.type-card{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  padding:1.15rem;
  border:1px solid rgba(219,227,240,.95);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.type-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:rgba(29,78,216,.25);
}
.type-card-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(29,78,216,.12), rgba(15,23,42,.06));
  font-size:1.55rem;
}
.type-card small{color:var(--muted)}
.site-spotlight{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:1rem;
  background:rgba(2,6,23,.44);
  backdrop-filter:blur(8px);
}
.site-spotlight-card{
  width:min(34rem, calc(100vw - 2rem));
  position:relative;
  padding:1.6rem;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(219,227,240,.95);
  box-shadow:0 30px 90px rgba(15,23,42,.22);
  transform:translateY(14px) scale(.98);
  opacity:0;
  transition:opacity .28s ease, transform .28s ease;
}
.site-spotlight.is-visible .site-spotlight-card{
  opacity:1;
  transform:translateY(0) scale(1);
}
.site-spotlight-close{
  position:absolute;
  top:.8rem;
  right:.8rem;
  width:2.4rem;
  height:2.4rem;
  border:none;
  border-radius:999px;
  background:rgba(15,23,42,.07);
  color:var(--ink);
  font-size:1.25rem;
  cursor:pointer;
}
.quick-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.quick-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  text-align:center;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-sm);
  font-weight:700;
  padding:.85rem 1rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-chip:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(29,78,216,.25)}
.not-found-card{text-align:center}
.post-thumb img{display:block;width:100%;height:auto}
.comments-card{margin-top:1.25rem}
.comment-list{padding-left:1.15rem}
.comment-list li{margin-bottom:1rem}
.policy-block ul{margin:.75rem 0 0 1rem}
.policy-block li{margin:.4rem 0;color:var(--muted)}
.legal-page-card .lead{max-width:72ch}
@media (max-width: 1100px){
  .type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 960px){
  .site-topbar-inner{min-height:unset;padding-block:.55rem;align-items:flex-start;flex-direction:column}
  .menu-contact-pill{display:none}
  .team-grid{grid-template-columns:1fr}
  .sub-menu{
    display:block;
    position:static;
    min-width:0;
    padding:.35rem 0 0 .55rem;
    margin:0;
    box-shadow:none;
    border:none;
    background:transparent;
  }
  .menu-list .menu-item-has-children > a::before{content:""}
}
@media (max-width: 760px){
  .type-grid,.quick-chip-grid{grid-template-columns:1fr}
  .site-spotlight-card{padding:1.25rem}
}
@media (max-width: 640px){
  .content-card-inner{padding:1.35rem}
  .topbar-meta{gap:.55rem .85rem;font-size:.84rem}
  .topbar-badge{font-size:.8rem}
  .site-brand-fallback-logo{height:50px}
}


/* ===== Affwebank v4 dynamic refresh ===== */
:root{
  --accent-2:#7c3aed;
  --accent-3:#0ea5e9;
  --glow:0 24px 70px rgba(29,78,216,.20);
}

body{
  background:
    radial-gradient(circle at 6% 10%, rgba(124,58,237,.10), transparent 26rem),
    radial-gradient(circle at 92% 0%, rgba(14,165,233,.12), transparent 22rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 32%, #eef4fb 100%);
}

.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.topbar-badge-group,
.topbar-links{
  display:flex;
  align-items:center;
  gap:.9rem;
  flex-wrap:wrap;
}
.topbar-links a{
  font-size:.84rem;
  font-weight:700;
  opacity:.95;
}
.topbar-links a:hover{opacity:1;text-decoration:underline}

.site-header-pro{
  box-shadow:0 12px 38px rgba(15,23,42,.06);
}

.menu-actions-pro{
  align-items:center;
  gap:.7rem;
}

.contact-icon-group{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.contact-icon-button{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-sm);
  font-size:1.05rem;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.contact-icon-button:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:var(--glow);
  border-color:rgba(29,78,216,.28);
}
.contact-icon-button.is-phone{background:linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.96))}
.contact-icon-button.is-mail{background:linear-gradient(135deg, rgba(124,58,237,.12), rgba(255,255,255,.96))}
.contact-icon-button.is-whatsapp{background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(255,255,255,.96))}

.notification-panel-actions{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  padding-top:1rem;
  margin-top:1rem;
  border-top:1px solid var(--line);
}

.affwebank-hero{
  padding-top:86px;
  padding-bottom:58px;
}
.hero-grid-affwebank{
  grid-template-columns:minmax(0, 1.28fr) minmax(340px, .92fr);
  gap:1.2rem;
  align-items:start;
}
.hero-copy-affwebank,
.hero-panel-affwebank{
  position:relative;
  overflow:hidden;
}
.hero-copy-affwebank::before,
.hero-panel-affwebank::before{
  content:"";
  position:absolute;
  inset:auto auto -70px -70px;
  width:210px;height:210px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(29,78,216,.10), transparent 70%);
  pointer-events:none;
}
.hero-kicker-row{
  display:flex;
  align-items:center;
  gap:.8rem;
  flex-wrap:wrap;
}
.mini-status-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.55rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(29,78,216,.18);
  font-size:.82rem;
  font-weight:700;
  color:var(--ink);
  box-shadow:var(--shadow-sm);
}
.hero-stats{margin-top:1.35rem}
.hero-chip-marquee{
  margin-top:1.2rem;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(219,227,240,.96);
  background:rgba(255,255,255,.76);
}
.hero-chip-track{
  display:flex;
  width:max-content;
  gap:.75rem;
  padding:.8rem .9rem;
  animation:adshub-marquee 24s linear infinite;
}
.hero-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.55rem .9rem;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(29,78,216,.12), rgba(124,58,237,.10));
  font-weight:800;
  font-size:.88rem;
  white-space:nowrap;
}
.hero-alert-card{
  padding:1.25rem;
  background:
    linear-gradient(180deg, rgba(124,58,237,.05), rgba(255,255,255,.96));
}
.alert-subscribe-shell{
  display:grid;
  gap:1rem;
}
.alert-subscribe-copy h2{
  margin-bottom:.35rem;
  font-size:clamp(1.22rem, 2vw, 1.65rem);
}
.alert-action-row{margin-top:.2rem}
.social-badge-row{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  margin-top:1rem;
}
.inline-banner{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.05rem;
  border-radius:20px;
  border:1px solid rgba(29,78,216,.14);
  box-shadow:var(--shadow-sm);
}
.inline-banner-soft{
  background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,246,255,.94));
}
.inline-banner p{margin:.25rem 0 0;color:var(--muted)}
.inline-banner-close{
  display:grid;
  place-items:center;
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:1.1rem;
  cursor:pointer;
}

.section-home-activity{padding-top:30px}
.split-panel-home-activity .panel-grid-notifications{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:.9rem;
}
.mini-card-notice{
  padding:1rem;
  border-radius:18px;
  border:1px solid rgba(219,227,240,.96);
  background:rgba(255,255,255,.98);
  display:flex;
  flex-direction:column;
  gap:.5rem;
  box-shadow:var(--shadow-sm);
}
.mini-card-notice strong{font-size:1rem}
.mini-card-notice span{color:var(--muted);font-size:.94rem}
.mini-card-notice.tone-success{background:linear-gradient(180deg, rgba(16,185,129,.07), rgba(255,255,255,.96))}
.mini-card-notice.tone-warning{background:linear-gradient(180deg, rgba(245,158,11,.09), rgba(255,255,255,.96))}
.mini-card-notice.tone-info{background:linear-gradient(180deg, rgba(59,130,246,.07), rgba(255,255,255,.96))}

.category-grid-home{
  grid-template-columns:repeat(4, minmax(0,1fr));
}
.category-card-home{
  position:relative;
  overflow:hidden;
}
.category-card-home::after{
  content:"";
  position:absolute;
  inset:auto -34px -34px auto;
  width:92px;height:92px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(124,58,237,.11), transparent 70%);
}
.types-chip-grid{
  grid-template-columns:repeat(4, minmax(0,1fr));
}
.quick-chip-type{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.75rem;
  padding:1rem 1.05rem;
  border-radius:18px;
  border:1px solid rgba(219,227,240,.95);
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow-sm);
}
.quick-chip-type span{font-size:1.15rem}

.alert-feature-strip{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:1rem;
}
.alert-feature-card,
.alert-feature-side{
  padding:1.3rem;
}
.alert-feature-side{
  border:1px solid rgba(219,227,240,.96);
  border-radius:var(--radius);
  background:rgba(255,255,255,.95);
  box-shadow:var(--shadow);
}
.alert-pill-list{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  margin-bottom:1rem;
}
.workspace-alert-form{
  margin-top:1rem;
}

.site-footer-rich{
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,251,.96));
}
.footer-brand-column h3{margin:.4rem 0 .2rem}
.footer-icon-row{margin-top:.85rem}
.footer-footnote{margin-top:1rem;color:var(--muted)}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.1rem 0 1.4rem;
  border-top:1px solid rgba(219,227,240,.96);
}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.footer-bottom-links a{font-weight:700;color:var(--muted)}
.footer-bottom-links a:hover{color:var(--primary)}

.floating-contact-dock{
  position:fixed;
  right:18px;
  bottom:104px;
  z-index:44;
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.floating-contact-dock .contact-icon-group{
  flex-direction:column;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
  padding:.6rem;
  border:1px solid rgba(219,227,240,.96);
  border-radius:22px;
  box-shadow:0 22px 48px rgba(15,23,42,.12);
}

.auth-section-pro .auth-shell-pro{
  display:grid;
  gap:1rem;
}
.auth-hero-pro{
  padding:1.4rem;
  background:linear-gradient(180deg, rgba(59,130,246,.06), rgba(255,255,255,.96));
}
.auth-extra-card{padding:1.25rem}

.workspace-shell-pro{
  align-items:start;
}
.workspace-section-pro .workspace-main{
  display:grid;
  gap:1rem;
}
.contact-page-icon-wrap{
  margin:.25rem 0 1rem;
}
.contact-icon-group-page .contact-icon-button{
  width:52px;height:52px;
}

body[data-theme="dark"] .mini-status-chip,
body[data-theme="dark"] .hero-chip-marquee,
body[data-theme="dark"] .contact-icon-button,
body[data-theme="dark"] .inline-banner-soft,
body[data-theme="dark"] .mini-card-notice,
body[data-theme="dark"] .quick-chip-type,
body[data-theme="dark"] .alert-feature-side,
body[data-theme="dark"] .floating-contact-dock .contact-icon-group{
  background:#0f1b2d;
  color:var(--ink);
  border-color:var(--line);
}
body[data-theme="dark"] .hero-alert-card,
body[data-theme="dark"] .auth-hero-pro{
  background:linear-gradient(180deg, rgba(124,58,237,.08), rgba(12,23,40,.98));
}
body[data-theme="dark"] .hero-chip{
  background:linear-gradient(135deg, rgba(59,130,246,.18), rgba(124,58,237,.16));
}
body[data-theme="dark"] .site-footer-rich{
  background:linear-gradient(180deg, rgba(7,17,31,.98), rgba(10,22,40,.96));
}
body[data-theme="dark"] .footer-bottom{
  border-color:var(--line);
}
body[data-theme="dark"] .footer-bottom-links a,
body[data-theme="dark"] .topbar-links a{color:var(--ink)}

@keyframes adshub-marquee{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}

@media (max-width: 1180px){
  .hero-grid-affwebank,
  .alert-feature-strip{
    grid-template-columns:1fr;
  }
  .types-chip-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}
@media (max-width: 960px){
  .floating-contact-dock{display:none}
  .category-grid-home,
  .types-chip-grid,
  .split-panel-home-activity .panel-grid-notifications{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .menu-actions-pro{
    width:100%;
  }
}
@media (max-width: 760px){
  .category-grid-home,
  .types-chip-grid,
  .split-panel-home-activity .panel-grid-notifications,
  .footer-bottom{
    grid-template-columns:1fr;
  }
  .footer-bottom{
    display:grid;
    justify-content:stretch;
  }
  .hero-kicker-row,
  .topbar-badge-group,
  .topbar-links{
    gap:.55rem;
  }
  .contact-icon-button{
    width:44px;height:44px;
  }
  .hero-chip-track{
    animation-duration:30s;
  }
}


/* ===== Affwebank v5 header refinement ===== */
:root{
  --container:min(1320px, calc(100vw - 32px));
}

html{scroll-padding-top:148px}

.site-header{
  background:rgba(248,251,255,.88);
  box-shadow:0 18px 52px rgba(15,23,42,.06);
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.92);
  box-shadow:0 22px 60px rgba(15,23,42,.10);
}
.header-inner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:1.25rem;
  min-height:82px;
}
.brand-group{min-width:max-content}
.brand-identity,
.site-brand,
.site-brand-link{
  display:inline-flex;
  align-items:center;
  gap:.78rem;
  min-width:0;
}
.site-brand-fallback-logo,
.site-brand .custom-logo,
.brand-identity .custom-logo{
  width:auto;
  height:46px;
  max-width:none;
}
.brand-text-link{
  display:inline-flex;
  align-items:center;
  min-width:0;
}
.brand-text-link strong{
  font-size:1.12rem;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--secondary);
}
.brand-text-link small,
.brand-text small{display:none !important}

.primary-nav{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:1rem;
  margin-left:0;
  min-width:0;
}
.menu-list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  min-width:0;
  padding:.18rem .15rem .4rem;
}
.menu-list::-webkit-scrollbar{display:none}
.menu-list > li{flex:0 0 auto}
.menu-list a{
  white-space:nowrap;
  min-height:42px;
  padding:.72rem .95rem;
  border-radius:15px;
  border:1px solid transparent;
  font-size:.95rem;
  line-height:1;
}
.menu-list a:hover,
.menu-list .current-menu-item > a,
.menu-list .current-menu-ancestor > a,
.menu-list .current_page_parent > a,
.menu-list .current-page-ancestor > a{
  background:rgba(255,255,255,.98);
  border-color:rgba(29,78,216,.13);
  box-shadow:0 12px 28px rgba(29,78,216,.10);
  color:var(--ink);
}
.menu-list .menu-item-has-children > a::before{
  font-size:.68rem;
  margin-left:.45rem;
}
.sub-menu{
  margin-top:.55rem;
  padding:.55rem;
  border-radius:20px;
}

.menu-actions,
.menu-actions-pro{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.55rem;
  flex-wrap:nowrap;
  min-width:max-content;
}
.header-utility-icons{
  display:flex;
  align-items:center;
  gap:.45rem;
}
.contact-icon-group-header,
.contact-icon-group{
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap:nowrap;
}
.contact-icon-button{
  width:42px;
  height:42px;
  border-radius:14px;
  font-size:1rem;
}
.theme-mode-toggle,
.notification-toggle{
  position:relative;
  width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  justify-content:center;
  border-radius:14px;
}
.theme-mode-icon{
  width:100%;
  height:100%;
  background:transparent;
}
.theme-mode-label,
.notification-toggle-label{display:none}
.notification-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:1.35rem;
  height:1.35rem;
  font-size:.72rem;
  box-shadow:0 8px 18px rgba(239,68,68,.28);
}
.header-account,
.header-cta{
  min-height:44px;
  padding:.78rem 1rem;
  border-radius:15px;
  white-space:nowrap;
}
.header-cta{box-shadow:0 18px 42px rgba(37,99,235,.20)}
.button-label-short{display:inline}
.button-label-long{display:none}
.site-header-pro .nav-toggle{justify-self:end;margin-left:0}

@media (min-width: 1181px){
  .primary-nav{display:grid !important}
}

@media (max-width: 1180px){
  .header-inner{
    grid-template-columns:auto auto;
    min-height:78px;
  }
  .nav-toggle{display:flex}
  .primary-nav{
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:calc(100% + 12px);
    grid-template-columns:1fr;
    gap:.95rem;
    padding:1rem;
    border-radius:24px;
    border:1px solid rgba(219,227,240,.95);
    background:rgba(255,255,255,.98);
    box-shadow:0 30px 80px rgba(15,23,42,.16);
    backdrop-filter:blur(14px);
  }
  .primary-nav.is-open{display:grid}
  .menu-list,
  .menu-actions,
  .menu-actions-pro,
  .header-utility-icons,
  .contact-icon-group{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
  }
  .menu-list{
    overflow:visible;
    padding:0;
    gap:.35rem;
  }
  .menu-list a,
  .theme-mode-toggle,
  .notification-toggle,
  .contact-icon-button,
  .header-account,
  .header-cta{
    width:100%;
    justify-content:center;
  }
  .theme-mode-label,
  .notification-toggle-label{display:inline-flex}
  .theme-mode-toggle,
  .notification-toggle{
    height:auto;
    padding:.78rem 1rem;
    gap:.6rem;
  }
  .theme-mode-icon{
    width:2rem;
    height:2rem;
    background:rgba(29,78,216,.10);
  }
  .button-label-short{display:none}
  .button-label-long{display:inline}
  .notification-badge{position:static;margin-left:.2rem}
}

@media (max-width: 640px){
  :root{--container:min(calc(100vw - 20px), 100vw - 20px)}
  html{scroll-padding-top:126px}
  .header-inner{min-height:72px;gap:.8rem}
  .site-brand-fallback-logo,
  .site-brand .custom-logo,
  .brand-identity .custom-logo{height:40px}
  .brand-text-link strong{font-size:1rem}
  .primary-nav{left:10px;right:10px}
}

/* ===== Affwebank v6 experience and footer refinement ===== */
:root{
  --accent:#7c3aed;
  --accent-2:#0ea5e9;
  --bg:#eef4fb;
  --surface:#ffffff;
  --surface-2:#f6f9ff;
  --ink:#0f172a;
  --muted:#5b6b85;
  --line:#d4def0;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --footer-bg:#081221;
  --footer-surface:rgba(255,255,255,.05);
  --footer-line:rgba(148,163,184,.18);
  --footer-ink:#f8fbff;
  --footer-muted:#b7c4d8;
  --shadow:0 22px 54px rgba(15,23,42,.10);
  --shadow-sm:0 12px 30px rgba(15,23,42,.08);
}

body{
  color:var(--ink);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 22rem),
    radial-gradient(circle at 0% 24%, rgba(124,58,237,.09), transparent 18rem),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 48%, #e8eff8 100%);
}

.site-topbar{
  background:linear-gradient(90deg, rgba(8,18,33,.96), rgba(15,23,42,.96));
  color:#e6eefb;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.site-topbar .topbar-badge{
  background:rgba(255,255,255,.08);
  color:#eff6ff;
  border:1px solid rgba(255,255,255,.08);
}
.site-topbar .topbar-links a{
  color:#cfe1ff;
}
.site-topbar .topbar-links a:hover{
  color:#ffffff;
}

.site-livebar{
  background:linear-gradient(90deg, rgba(14,26,46,.96), rgba(17,34,64,.96));
  color:#dbeafe;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.livebar-label{
  color:#ffffff;
}
.live-pill{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.10);
  color:#eff6ff;
}

.site-header{
  background:rgba(255,255,255,.76);
  border-bottom:1px solid rgba(212,222,240,.82);
  box-shadow:0 18px 48px rgba(15,23,42,.06);
  backdrop-filter:blur(16px);
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.92);
  box-shadow:0 24px 64px rgba(15,23,42,.12);
}
.header-inner{
  min-height:86px;
  gap:1.35rem;
}
.brand-text-link strong{
  font-size:1.14rem;
  letter-spacing:.01em;
  color:#0f172a;
}
.site-brand-fallback-logo,
.site-brand .custom-logo,
.brand-identity .custom-logo{
  height:48px;
}

.primary-nav{
  align-items:center;
  gap:1.15rem;
}
.menu-list{
  gap:.42rem;
  padding:.2rem 0;
}
.menu-list a{
  min-height:44px;
  padding:.78rem 1.02rem;
  border-radius:999px;
  font-weight:700;
  color:#344256;
  border:1px solid transparent;
  transition:background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.menu-list a:hover,
.menu-list .current-menu-item > a,
.menu-list .current-menu-ancestor > a,
.menu-list .current_page_parent > a,
.menu-list .current-page-ancestor > a{
  background:#ffffff;
  color:#0f172a;
  border-color:rgba(37,99,235,.12);
  box-shadow:0 14px 34px rgba(37,99,235,.10);
  transform:translateY(-1px);
}
.menu-list .menu-item-has-children > a::before{
  font-size:.70rem;
  margin-left:.48rem;
  opacity:.65;
}
.sub-menu{
  margin-top:.75rem;
  min-width:240px;
  padding:.65rem;
  border-radius:20px;
  border:1px solid rgba(212,222,240,.94);
  background:rgba(255,255,255,.99);
  box-shadow:0 28px 72px rgba(15,23,42,.14);
}
.sub-menu a{
  min-height:42px;
  border-radius:14px;
  font-weight:700;
  color:#37465d;
}
.sub-menu a:hover{
  background:#f6f9ff;
  color:#0f172a;
  box-shadow:none;
  transform:none;
}

.menu-actions,
.menu-actions-pro{
  gap:.6rem;
}
.header-utility-icons{
  gap:.48rem;
}
.contact-icon-button,
.theme-mode-toggle,
.notification-toggle{
  border:1px solid rgba(212,222,240,.88);
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.contact-icon-button:hover,
.theme-mode-toggle:hover,
.notification-toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.18);
  box-shadow:0 16px 36px rgba(37,99,235,.12);
}
.theme-mode-toggle,
.notification-toggle{
  color:#0f172a;
}
.header-account{
  border-color:rgba(37,99,235,.14);
  background:rgba(255,255,255,.94);
}
.header-cta{
  background:linear-gradient(135deg, #2563eb, #1d4ed8 56%, #7c3aed 120%);
  box-shadow:0 18px 44px rgba(37,99,235,.24);
}
.header-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 22px 52px rgba(37,99,235,.30);
}
.notification-panel{
  border:1px solid rgba(212,222,240,.9);
  box-shadow:0 28px 72px rgba(15,23,42,.16);
}

.site-footer-rich{
  position:relative;
  overflow:hidden;
  color:var(--footer-ink);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.22), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(124,58,237,.18), transparent 24rem),
    linear-gradient(180deg, #0d1728 0%, #091221 56%, #060d18 100%);
}
.site-footer-glow{
  position:absolute;
  inset:auto 0 0 auto;
  width:340px;
  height:340px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(59,130,246,.18), transparent 66%);
  filter:blur(8px);
  pointer-events:none;
}
.footer-shell{
  position:relative;
  padding:1.8rem 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.9fr) minmax(0,.95fr) minmax(0,1.02fr);
  gap:1rem;
  padding:1.1rem 0 2rem;
}
.site-footer-rich .footer-card{
  position:relative;
  padding:1.35rem 1.35rem 1.25rem;
  border-radius:26px;
  background:var(--footer-surface);
  border:1px solid var(--footer-line);
  box-shadow:0 20px 42px rgba(2,8,23,.18);
  backdrop-filter:blur(10px);
}
.footer-kicker{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:32px;
  padding:.4rem .8rem;
  margin:.15rem 0 .85rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#dbeafe;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.site-footer-rich h3,
.site-footer-rich h4{
  color:#ffffff;
}
.footer-brand-column h3{
  margin:.15rem 0 .5rem;
  font-size:1.32rem;
}
.footer-brand-column p,
.footer-card-intro,
.footer-footnote,
.site-footer-rich .footer-links a,
.site-footer-rich .footer-bottom,
.site-footer-rich .footer-bottom-links a{
  color:var(--footer-muted);
}
.footer-card-intro{
  margin-bottom:1rem;
  line-height:1.7;
}
.footer-brand .custom-logo,
.site-brand-fallback-logo.is-footer{
  height:48px;
  width:auto;
}
.footer-icon-row{
  margin-top:1rem;
}
.site-footer-rich .contact-icon-button{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.08);
  color:#ffffff;
  box-shadow:none;
}
.site-footer-rich .contact-icon-button:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 14px 30px rgba(2,8,23,.18);
}
.footer-status-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1rem;
}
.footer-status-badges span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.45rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#eff6ff;
  font-size:.82rem;
  font-weight:700;
}
.site-footer-rich .footer-links{
  list-style:none;
  margin:0;
  padding:0;
}
.footer-links-vertical{
  display:grid;
  gap:.4rem;
}
.site-footer-rich .footer-links a{
  display:flex;
  align-items:center;
  gap:.7rem;
  min-height:40px;
  padding:.55rem .15rem;
  font-weight:600;
  transition:color .22s ease, transform .22s ease;
}
.site-footer-rich .footer-links a:hover{
  color:#ffffff;
  transform:translateX(4px);
}
.footer-links-grid{
  display:grid;
  gap:.45rem;
}
.footer-link-with-icon{
  padding:.25rem 0;
}
.footer-link-icon{
  width:1.5rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
}
.footer-type-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.footer-type-pill{
  display:inline-flex;
  align-items:center;
  gap:.48rem;
  min-height:38px;
  padding:.55rem .78rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#eff6ff;
  font-size:.86rem;
  font-weight:700;
  transition:transform .22s ease, background .22s ease, border-color .22s ease;
}
.footer-type-pill:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.13);
  border-color:rgba(255,255,255,.14);
}
.footer-support-note{
  margin-top:1.1rem;
  padding:1rem;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:var(--footer-muted);
}
.footer-support-note strong{
  display:block;
  margin-bottom:.35rem;
  color:#ffffff;
}
.footer-footnote{
  margin-top:1rem;
  font-weight:700;
}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.15rem 0 1.7rem;
  border-top:1px solid var(--footer-line);
}
.footer-bottom span{
  color:var(--footer-muted);
}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.site-footer-rich .footer-bottom-links a{
  color:#e7eefb;
  font-weight:700;
}
.site-footer-rich .footer-bottom-links a:hover{
  color:#ffffff;
}

.floating-contact-dock .contact-icon-group{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(212,222,240,.94);
  box-shadow:0 24px 48px rgba(15,23,42,.14);
}
.floating-contact-dock .contact-icon-button{
  background:rgba(255,255,255,.98);
}

html[data-theme="dark"] body,
body[data-theme="dark"]{
  color:#e7eefb;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 24rem),
    linear-gradient(180deg, #07111f 0%, #0b1628 54%, #08111f 100%);
}
html[data-theme="dark"] .site-topbar,
body[data-theme="dark"] .site-topbar,
html[data-theme="dark"] .site-livebar,
body[data-theme="dark"] .site-livebar{
  background:linear-gradient(90deg, rgba(5,12,23,.98), rgba(10,18,34,.98));
}
html[data-theme="dark"] .site-header,
body[data-theme="dark"] .site-header{
  background:rgba(8,15,28,.82);
  border-bottom-color:rgba(71,85,105,.32);
}
html[data-theme="dark"] .site-header.is-scrolled,
body[data-theme="dark"] .site-header.is-scrolled{
  background:rgba(8,15,28,.94);
}
html[data-theme="dark"] .brand-text-link strong,
body[data-theme="dark"] .brand-text-link strong,
html[data-theme="dark"] .menu-list a,
body[data-theme="dark"] .menu-list a,
html[data-theme="dark"] .theme-mode-toggle,
body[data-theme="dark"] .theme-mode-toggle,
html[data-theme="dark"] .notification-toggle,
body[data-theme="dark"] .notification-toggle{
  color:#e7eefb;
}
html[data-theme="dark"] .menu-list a:hover,
html[data-theme="dark"] .menu-list .current-menu-item > a,
html[data-theme="dark"] .menu-list .current-menu-ancestor > a,
html[data-theme="dark"] .menu-list .current_page_parent > a,
html[data-theme="dark"] .menu-list .current-page-ancestor > a,
body[data-theme="dark"] .menu-list a:hover,
body[data-theme="dark"] .menu-list .current-menu-item > a,
body[data-theme="dark"] .menu-list .current-menu-ancestor > a,
body[data-theme="dark"] .menu-list .current_page_parent > a,
body[data-theme="dark"] .menu-list .current-page-ancestor > a{
  background:rgba(255,255,255,.06);
  border-color:rgba(96,165,250,.24);
  color:#ffffff;
  box-shadow:none;
}
html[data-theme="dark"] .sub-menu,
body[data-theme="dark"] .sub-menu,
html[data-theme="dark"] .primary-nav,
body[data-theme="dark"] .primary-nav,
html[data-theme="dark"] .notification-panel,
body[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .contact-icon-button,
body[data-theme="dark"] .contact-icon-button,
html[data-theme="dark"] .theme-mode-toggle,
body[data-theme="dark"] .theme-mode-toggle,
html[data-theme="dark"] .notification-toggle,
body[data-theme="dark"] .notification-toggle,
html[data-theme="dark"] .header-account,
body[data-theme="dark"] .header-account{
  background:#0f1b2d;
  border-color:rgba(71,85,105,.38);
  box-shadow:none;
}
html[data-theme="dark"] .site-footer-rich,
body[data-theme="dark"] .site-footer-rich{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(124,58,237,.15), transparent 24rem),
    linear-gradient(180deg, #060d18 0%, #040913 56%, #03070f 100%);
}

@media (max-width: 1180px){
  .header-inner{
    min-height:78px;
  }
  .primary-nav{
    background:rgba(255,255,255,.98);
    border:1px solid rgba(212,222,240,.96);
    box-shadow:0 32px 80px rgba(15,23,42,.18);
  }
  .menu-list{
    gap:.3rem;
  }
  .menu-list a{
    justify-content:space-between;
    border-radius:18px;
  }
  .menu-actions,
  .menu-actions-pro,
  .header-utility-icons,
  .contact-icon-group{
    gap:.45rem;
  }
  html[data-theme="dark"] .primary-nav,
  body[data-theme="dark"] .primary-nav{
    background:#08111f;
  }
}

@media (max-width: 1080px){
  .footer-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px){
  .footer-grid{
    grid-template-columns:1fr;
  }
  .footer-bottom{
    display:grid;
    justify-content:stretch;
  }
  .footer-bottom-links{
    gap:.75rem;
  }
}

@media (max-width: 640px){
  .site-brand-fallback-logo,
  .site-brand .custom-logo,
  .brand-identity .custom-logo,
  .footer-brand .custom-logo,
  .site-brand-fallback-logo.is-footer{
    height:42px;
  }
  .brand-text-link strong{
    font-size:1.02rem;
  }
  .site-footer-rich .footer-card{
    padding:1.15rem 1rem;
    border-radius:22px;
  }
}
