:root{
  --aqo-bg:#f3f7fb;
  --aqo-panel:#ffffff;
  --aqo-panel-2:#f8fbff;
  --aqo-text:#0f172a;
  --aqo-muted:#5b6b82;
  --aqo-line:#d9e3f0;
  --aqo-line-strong:#c9d7ea;
  --aqo-primary:#1d4ed8;
  --aqo-primary-2:#15389b;
  --aqo-accent:#0f766e;
  --aqo-accent-2:#0b5d57;
  --aqo-danger:#b42318;
  --aqo-danger-bg:#fff0ef;
  --aqo-success:#166534;
  --aqo-success-bg:#edfdf3;
  --aqo-info:#1d4ed8;
  --aqo-info-bg:#eff6ff;
  --aqo-shadow:0 18px 45px rgba(15, 23, 42, 0.08);
  --aqo-shadow-soft:0 8px 24px rgba(15, 23, 42, 0.06);
  --aqo-radius-xl:28px;
  --aqo-radius-lg:20px;
  --aqo-radius-md:16px;
  --aqo-radius-sm:12px;
}

html body{background:linear-gradient(180deg,#f6f9fd 0%, #eef4fb 100%) !important;color:var(--aqo-text) !important;}
html body *{box-sizing:border-box;}
body.aqo-saas-active .site, body.aqo-saas-active .site-main, body.aqo-saas-active .content-area{background:transparent !important;}
body.aqo-saas-active .entry-content, body.aqo-saas-active .site-main{max-width:1280px;margin:0 auto;}

body.aqo-saas-active .aqo-front-card,
body.aqo-saas-active .aqo-card{
  position:relative;
  max-width:1180px !important;
  margin:26px auto !important;
  padding:28px !important;
  border:1px solid var(--aqo-line) !important;
  border-radius:var(--aqo-radius-xl) !important;
  background:linear-gradient(180deg,var(--aqo-panel) 0%, var(--aqo-panel-2) 100%) !important;
  box-shadow:var(--aqo-shadow) !important;
  overflow:hidden !important;
}

body.aqo-saas-active .aqo-front-card::before,
body.aqo-saas-active .aqo-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg,var(--aqo-primary),#4f46e5,var(--aqo-accent));
}

body.aqo-saas-active .aqo-panel-head,
body.aqo-saas-active .aqo-head-pro{
  display:flex !important;
  justify-content:space-between !important;
  gap:18px !important;
  align-items:flex-start !important;
  flex-wrap:wrap !important;
  margin-bottom:24px !important;
}

body.aqo-saas-active .aqo-head-main{min-width:0;flex:1 1 520px;}
body.aqo-saas-active .aqo-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:#eff6ff;color:var(--aqo-primary);
  font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  margin-bottom:14px;
}
body.aqo-saas-active .aqo-front-card h1,
body.aqo-saas-active .aqo-front-card h2,
body.aqo-saas-active .aqo-card h2,
body.aqo-saas-active .aqo-card h3{
  margin:0 0 10px !important;
  color:var(--aqo-text) !important;
  letter-spacing:-.03em;
}
body.aqo-saas-active .aqo-front-card h2,
body.aqo-saas-active .aqo-card h2{font-size:clamp(32px,3vw,46px) !important;line-height:1.04 !important;}
body.aqo-saas-active .aqo-card h3{font-size:22px !important;}
body.aqo-saas-active .aqo-head-sub,
body.aqo-saas-active .aqo-front-card p,
body.aqo-saas-active .aqo-card p,
body.aqo-saas-active .aqo-front-card li,
body.aqo-saas-active .aqo-card li,
body.aqo-saas-active .aqo-muted{color:var(--aqo-muted) !important;line-height:1.6 !important;}

body.aqo-saas-active .aqo-role-pill{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 16px;border:1px solid #dce7fb;background:#f7faff;
  border-radius:16px;color:#274472;font-weight:700;
}

body.aqo-saas-active .aqo-summary-grid,
body.aqo-saas-active .aqo-grid,
body.aqo-saas-active .aqo-grid-3{
  display:grid !important;gap:18px !important;
}
body.aqo-saas-active .aqo-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;margin:0 0 22px !important;}
body.aqo-saas-active .aqo-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
body.aqo-saas-active .aqo-grid-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
body.aqo-saas-active .aqo-stat{
  background:#fff;border:1px solid var(--aqo-line);border-radius:20px;padding:18px;box-shadow:var(--aqo-shadow-soft);
}
body.aqo-saas-active .aqo-stat-label{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--aqo-muted);font-weight:700;margin-bottom:8px;}
body.aqo-saas-active .aqo-stat-value{font-size:30px;line-height:1;color:var(--aqo-text);font-weight:800;margin-bottom:6px;}
body.aqo-saas-active .aqo-stat-note{font-size:14px;color:var(--aqo-muted);}

body.aqo-saas-active .aqo-tabs{display:flex !important;gap:12px !important;flex-wrap:wrap !important;margin:0 0 24px !important;}
body.aqo-saas-active .aqo-tab,
body.aqo-saas-active .aqo-tabs a{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  min-height:48px;padding:12px 20px !important;border-radius:999px !important;
  border:1px solid var(--aqo-line-strong) !important;background:#fff !important;
  color:#244264 !important;font-weight:700 !important;text-decoration:none !important;
  transition:all .18s ease;
}
body.aqo-saas-active .aqo-tab:hover,
body.aqo-saas-active .aqo-tabs a:hover{transform:translateY(-1px);border-color:#aec4eb !important;box-shadow:var(--aqo-shadow-soft);}
body.aqo-saas-active .aqo-tab.active,
body.aqo-saas-active .aqo-tabs a.active,
body.aqo-saas-active .aqo-tabs .current a,
body.aqo-saas-active .aqo-tabs .is-active{
  background:linear-gradient(135deg,var(--aqo-primary),#2e61f2) !important;color:#fff !important;border-color:transparent !important;
  box-shadow:0 12px 24px rgba(29,78,216,.24);
}

body.aqo-saas-active .aqo-card-section,
body.aqo-saas-active .aqo-front-card section,
body.aqo-saas-active .aqo-section{
  position:relative;background:rgba(255,255,255,.78);
  border:1px solid var(--aqo-line);border-radius:24px;padding:28px !important;margin:20px 0 !important;
}
body.aqo-saas-active .aqo-section-title{font-size:28px;font-weight:800;color:var(--aqo-text);margin-bottom:6px;}
body.aqo-saas-active .aqo-section-desc{margin-bottom:20px;color:var(--aqo-muted);}

body.aqo-saas-active .aqo-form-grid,
body.aqo-saas-active .aqo-form-pro{
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:20px !important;align-items:start !important;
}
body.aqo-saas-active .aqo-form-grid > *, body.aqo-saas-active .aqo-form-pro > *{min-width:0 !important;}
body.aqo-saas-active .aqo-span-2{grid-column:1 / -1;}

body.aqo-saas-active label{
  display:block !important;margin:0 0 8px !important;color:var(--aqo-text) !important;
  font-weight:700 !important;font-size:14px !important;letter-spacing:.01em;
}
body.aqo-saas-active input[type="text"],
body.aqo-saas-active input[type="email"],
body.aqo-saas-active input[type="password"],
body.aqo-saas-active input[type="number"],
body.aqo-saas-active input[type="search"],
body.aqo-saas-active select,
body.aqo-saas-active textarea{
  display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;
  min-height:54px !important;padding:14px 16px !important;
  background:#fff !important;color:var(--aqo-text) !important;
  border:1px solid var(--aqo-line-strong) !important;border-radius:16px !important;
  font-size:16px !important;line-height:1.35 !important;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.aqo-saas-active textarea{min-height:130px !important;resize:vertical !important;}
body.aqo-saas-active input:focus,
body.aqo-saas-active select:focus,
body.aqo-saas-active textarea:focus{
  outline:none !important;border-color:#7aa2ff !important;
  box-shadow:0 0 0 4px rgba(29,78,216,.12) !important;
}
body.aqo-saas-active input::placeholder, body.aqo-saas-active textarea::placeholder{color:#9aa7bb;}

body.aqo-saas-active .aqo-btn,
body.aqo-saas-active button,
body.aqo-saas-active input[type="submit"],
body.aqo-saas-active .button,
body.aqo-saas-active .wp-element-button{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  min-height:48px !important;padding:12px 18px !important;border-radius:16px !important;
  border:none !important;cursor:pointer !important;text-decoration:none !important;
  font-weight:700 !important;font-size:15px !important;
  color:#fff !important;background:linear-gradient(135deg,var(--aqo-accent),var(--aqo-accent-2)) !important;
  box-shadow:0 12px 24px rgba(15,118,110,.20);
  transition:all .18s ease;
}
body.aqo-saas-active .aqo-btn:hover,
body.aqo-saas-active button:hover,
body.aqo-saas-active input[type="submit"]:hover,
body.aqo-saas-active .button:hover,
body.aqo-saas-active .wp-element-button:hover{transform:translateY(-1px);opacity:.98;}
body.aqo-saas-active .aqo-btn-secondary{background:linear-gradient(135deg,var(--aqo-primary),#2e61f2) !important;box-shadow:0 12px 24px rgba(29,78,216,.18);} 
body.aqo-saas-active .aqo-btn-outline{background:#fff !important;color:var(--aqo-accent) !important;border:1px solid rgba(15,118,110,.25) !important;box-shadow:none !important;}

body.aqo-saas-active .aqo-actions{display:flex !important;gap:12px !important;flex-wrap:wrap !important;margin:18px 0 !important;}

body.aqo-saas-active .aqo-alert,
body.aqo-saas-active .aqo-scan-status{
  padding:15px 16px !important;border-radius:16px !important;font-weight:700 !important;border:1px solid transparent !important;
}
body.aqo-saas-active .aqo-alert-error,
body.aqo-saas-active .aqo-scan-status-error{background:var(--aqo-danger-bg) !important;color:var(--aqo-danger) !important;border-color:#f8c6c1 !important;}
body.aqo-saas-active .aqo-scan-status-success{background:var(--aqo-success-bg) !important;color:var(--aqo-success) !important;border-color:#b2e6bf !important;}
body.aqo-saas-active .aqo-scan-status-idle{background:var(--aqo-info-bg) !important;color:var(--aqo-info) !important;border-color:#bdd4ff !important;}

body.aqo-saas-active .aqo-video,
body.aqo-saas-active video{
  width:100% !important;max-width:560px !important;min-height:280px !important;object-fit:cover !important;
  border-radius:24px !important;border:1px solid var(--aqo-line) !important;background:#0f172a !important;
  box-shadow:var(--aqo-shadow-soft);
}
body.aqo-saas-active .aqo-result{
  margin-top:18px !important;padding:20px !important;border-radius:20px !important;border:1px solid var(--aqo-line) !important;background:#fff !important;
}

body.aqo-saas-active .aqo-table-wrap{overflow:auto !important;border-radius:20px !important;border:1px solid var(--aqo-line) !important;box-shadow:var(--aqo-shadow-soft);background:#fff;}
body.aqo-saas-active .aqo-table,
body.aqo-saas-active table{
  width:100% !important;border-collapse:separate !important;border-spacing:0 !important;background:#fff !important;
}
body.aqo-saas-active .aqo-table thead th,
body.aqo-saas-active table thead th{
  position:sticky;top:0;background:#f8fbff !important;color:#304767 !important;
  font-size:12px !important;text-transform:uppercase !important;letter-spacing:.06em !important;
}
body.aqo-saas-active .aqo-table th,
body.aqo-saas-active .aqo-table td,
body.aqo-saas-active table th,
body.aqo-saas-active table td{padding:15px 16px !important;border-bottom:1px solid #edf2f8 !important;vertical-align:top !important;}
body.aqo-saas-active .aqo-table tbody tr:hover,
body.aqo-saas-active table tbody tr:hover{background:#fbfdff !important;}
body.aqo-saas-active .aqo-qr-img{width:88px !important;height:88px !important;padding:6px !important;border-radius:14px !important;background:#fff !important;border:1px solid var(--aqo-line) !important;}
body.aqo-saas-active code{display:inline-block;padding:5px 8px;border-radius:10px;background:#f6f8fb;color:#0f172a;word-break:break-all;}

body.aqo-saas-active .aqo-login-card{max-width:480px !important;}
body.aqo-saas-active #loginform{display:grid;gap:16px;max-width:100%;}
body.aqo-saas-active #loginform .login-submit input{width:100%;}

body.aqo-saas-active .aqo-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:#f3f7ff;color:#2d4f88;font-size:13px;font-weight:700;}
body.aqo-saas-active .aqo-top-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;}

@media (max-width: 1100px){
  body.aqo-saas-active .aqo-summary-grid,
  body.aqo-saas-active .aqo-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body.aqo-saas-active .aqo-grid-3{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width: 760px){
  body.aqo-saas-active .aqo-front-card, body.aqo-saas-active .aqo-card{padding:20px !important;border-radius:22px !important;}
  body.aqo-saas-active .aqo-summary-grid,
  body.aqo-saas-active .aqo-grid,
  body.aqo-saas-active .aqo-grid-3,
  body.aqo-saas-active .aqo-form-grid,
  body.aqo-saas-active .aqo-form-pro{grid-template-columns:1fr !important;}
  body.aqo-saas-active .aqo-tab, body.aqo-saas-active .aqo-tabs a{width:100%;}
  body.aqo-saas-active .aqo-top-actions{justify-content:stretch;}
  body.aqo-saas-active .aqo-top-actions > *{width:100%;}
}
