:root{
  --pub-indigo:#2D3250;
  --pub-violet:#7077A1;
  --pub-mint:#F6B17A;
  --pub-bg:#F8FAFC;
  --pub-surface:#FFFFFF;
  --pub-text:#111827;
  --pub-muted:#64748B;
  --pub-border:#E2E8F0;
}
body.public-site{
  margin:0;
  font-family:'Segoe UI',Tahoma,Arial,sans-serif;
  background:#0f172a;
  color:var(--pub-text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.pub-header{
  position:sticky;
  top:0;
  z-index:99;
  background:#0f172a;
  backdrop-filter:blur(8px);
  border-bottom:1px solid #1e293b;
}
.pub-nav{
  max-width:1200px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
.pub-brand{
  font-weight:800;
  text-decoration:none;
  color:#fff;
  font-size:24px;
  display:inline-flex;
  align-items:center;
}
.pub-brand-logo{
  width:150px;
  height:auto;
  display:block;
}
.pub-brand-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.pub-quick-dashboard{
  display:none;
  text-decoration:none;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  background:linear-gradient(135deg,var(--pub-indigo),var(--pub-violet));
  color:#fff;
}
.pub-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid #334155;
  border-radius:10px;
  background:#111c31;
  padding:9px 8px;
  cursor:pointer;
}
.pub-menu-toggle span{
  display:block;
  height:2px;
  margin:5px 0;
  background:#e2e8f0;
  border-radius:2px;
}
.pub-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pub-links>a,.pub-dropdown>a{
  text-decoration:none;
  color:#ffffff;
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
}
.pub-caret{
  font-size:11px;
  margin-left:6px;
  opacity:.9;
}
.pub-links>a:hover,.pub-dropdown>a:hover{background:#1e293b;color:#ffffff}
.pub-cta{
  background:linear-gradient(135deg,var(--pub-indigo),var(--pub-violet));
  color:#fff !important;
}
.pub-dropdown{position:relative}
.pub-dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:260px;
  background:#fff;
  border:1px solid var(--pub-border);
  border-radius:14px;
  box-shadow:0 18px 34px rgba(15,23,42,.16);
  padding:8px;
}
.pub-dropdown:hover .pub-dropdown-menu{display:block}
.pub-dropdown-menu a{
  display:block;
  text-decoration:none;
  color:#334155;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
}
.pub-dropdown-menu a:hover{background:#f1f5ff;color:#312E81}
.pub-main{max-width:1200px;margin:0 auto;flex:1;width:100%}
.pub-main>h1{
  color:#ffffff;
  margin:18px 0 12px;
  font-size:36px;
  font-weight:800;
}
.hero{
  background:linear-gradient(130deg,var(--pub-indigo) 0%,#40497d 55%,var(--pub-violet) 100%);
  color:#fff;
  border-radius:22px;
  padding:34px;
  box-shadow:0 16px 34px rgba(45,50,80,.26);
}
.hero h1{margin:0 0 12px 0;font-size:38px;line-height:1.15}
.hero p{margin:0 0 14px 0;color:#E5E7EB;max-width:860px;font-size:17px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.card{
  background:var(--pub-surface);
  border:1px solid var(--pub-border);
  border-radius:14px;
  padding:16px;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.card h3{margin:0 0 8px 0;font-size:20px;color:var(--pub-indigo)}
.card p{margin:0 0 10px 0;color:var(--pub-muted)}
.badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.2px;
  color:#7C2D12;
  background:#FFF7ED;
  border:1px solid #FED7AA;
  border-radius:999px;
  padding:4px 9px;
  margin-bottom:9px;
}
.btn{
  display:inline-block;
  padding:10px 13px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--pub-violet),#8a93c1);
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.list a{
  display:block;
  padding:12px;
  background:#fff;
  border:1px solid var(--pub-border);
  border-radius:12px;
  text-decoration:none;
  color:#1F2937;
  font-weight:700;
}
.list a:hover{border-color:var(--pub-violet);box-shadow:0 8px 18px rgba(112,119,161,.15)}
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.feature-item{background:#fff;border:1px solid var(--pub-border);border-radius:14px;padding:14px}
.feature-item h4{margin:0 0 8px 0;color:#1E293B}
.feature-item p{margin:0;color:var(--pub-muted);font-size:14px}
.pub-footer{background:#0f172a;color:#cbd5e1;max-width:none;margin:0;padding:18px 16px;text-align:center}
.pub-footer a{color:#e2e8f0;text-decoration:none;font-weight:700}
.pub-footer a:hover{color:#ffffff;text-decoration:underline}
.pub-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;padding:16px;z-index:1200}
.pub-modal-backdrop.is-open{display:flex}
.pub-modal-card{width:min(560px,100%);background:#fff;border:1px solid #dbe3ef;border-radius:16px;box-shadow:0 20px 45px rgba(15,23,42,.34);padding:14px}
.pub-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.pub-modal-head h3{margin:0;font-size:21px;color:#0f172a}
.pub-modal-close{border:0;background:#eef2f7;color:#1e293b;width:34px;height:34px;border-radius:999px;font-size:18px;cursor:pointer}
.pub-modal-form{display:flex;flex-direction:column;gap:6px}
.pub-modal-form label{font-size:13px;font-weight:700;color:#334155}
.pub-modal-form input,.pub-modal-form textarea{border:1px solid #cbd5e1;border-radius:10px;padding:9px 10px;font-size:14px}
.pub-hp{display:none !important}
.pub-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.pub-modal-btn{border:0;border-radius:999px;padding:9px 14px;font-weight:700;background:linear-gradient(135deg,#2D3250,#7077A1);color:#fff;cursor:pointer}
.pub-modal-btn-light{background:#e2e8f0;color:#0f172a}
.pub-modal-msg{min-height:20px;font-size:13px;color:#475569;margin-top:3px}
.pub-modal-msg.is-error{color:#b91c1c}
.pub-modal-msg.is-ok{color:#166534}
.cookie-banner{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:1400;
  display:none;
}
.cookie-banner.is-open{display:block}
.cookie-banner-card{
  margin:0 auto;
  max-width:980px;
  background:#0b1324;
  border:1px solid #2f4367;
  border-radius:16px;
  box-shadow:0 20px 34px rgba(2,8,23,.45);
  color:#e2e8f0;
  padding:16px;
}
.cookie-banner-title{margin:0 0 6px 0;font-size:18px;color:#fff}
.cookie-banner-text{margin:0;color:#cbd5e1;font-size:14px;line-height:1.5}
.cookie-banner-actions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.cookie-btn{
  border:1px solid #3e527a;
  border-radius:999px;
  padding:9px 13px;
  font-weight:700;
  background:#1a2745;
  color:#fff;
  cursor:pointer;
}
.cookie-btn-primary{
  border-color:#7077A1;
  background:linear-gradient(135deg,#2D3250,#7077A1);
}
.cookie-btn-light{
  background:#e2e8f0;
  color:#0f172a;
  border-color:#cbd5e1;
}
.cookie-config-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:10px 0 0 0;
}
.cookie-config-item{
  border:1px solid #dbe3ef;
  border-radius:12px;
  padding:10px;
}
.cookie-config-item-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.cookie-config-item h4{margin:0;font-size:16px;color:#0f172a}
.cookie-config-item p{margin:6px 0 0 0;color:#334155;font-size:13px;line-height:1.45}
.cookie-switch{
  appearance:none;
  width:42px;
  height:24px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#cbd5e1;
  position:relative;
  cursor:pointer;
}
.cookie-switch:before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#fff;
  top:2px;
  left:2px;
  transition:all .2s ease;
}
.cookie-switch:checked{background:#1d4ed8;border-color:#1d4ed8}
.cookie-switch:checked:before{left:20px}
.cookie-switch:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:980px){
  .cards{grid-template-columns:1fr}
  .list{grid-template-columns:1fr}
  .feature-grid{grid-template-columns:1fr}
  .hero h1{font-size:30px}
  .pub-brand-logo{width:150px}
  .pub-nav{position:relative}
  .pub-brand-row{width:100%;justify-content:space-between}
  .pub-quick-dashboard{display:inline-block}
  .pub-menu-toggle{display:inline-block}
  .pub-menu-toggle{margin-right:10px}
  .pub-links{
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:100%;
    background:#0b1324;
    border:1px solid #22324f;
    border-radius:14px;
    padding:10px;
    box-shadow:0 20px 34px rgba(2,8,23,.45);
    z-index:120;
  }
  .pub-links.is-open{display:flex;flex-direction:column;align-items:stretch;gap:4px}
  .pub-links > a, .pub-dropdown > a{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .pub-dropdown{width:100%}
  .pub-dropdown-menu{
    position:static;
    display:none;
    margin-top:6px;
    background:#111c31;
    border-color:#2f4367;
    box-shadow:none;
  }
  .pub-dropdown:hover .pub-dropdown-menu{display:none}
  .pub-dropdown.is-open .pub-dropdown-menu{display:block}
  .pub-dropdown-menu a{color:#e2e8f0}
  .pub-dropdown-menu a:hover{background:#1e293b;color:#fff}
  .cookie-banner{left:12px;right:12px;bottom:12px}
  .cookie-banner-actions .cookie-btn{flex:1}
}
@media(max-width:767.98px){
  .pub-main{
    padding-left:14px !important;
    padding-right:14px !important;
    box-sizing:border-box;
  }
}
