
:root{
  --aqo-bg:#f4f7fb;
  --aqo-surface:#ffffff;
  --aqo-surface-2:#f8fafc;
  --aqo-border:#d9e1ec;
  --aqo-border-strong:#c6d1de;
  --aqo-text:#10233f;
  --aqo-muted:#5f6f86;
  --aqo-primary:#0f766e;
  --aqo-primary-strong:#0a5f58;
  --aqo-primary-soft:#e7f6f4;
  --aqo-secondary:#1e3a8a;
  --aqo-secondary-soft:#ecf2ff;
  --aqo-success:#18794e;
  --aqo-success-bg:#eaf8ef;
  --aqo-danger:#b42318;
  --aqo-danger-bg:#fdecec;
  --aqo-shadow:0 18px 50px rgba(16,35,63,.08);
  --aqo-radius:22px;
}

.aqo-wrap{max-width:1240px;margin:0 auto;padding:12px 8px 30px}
.aqo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0}
.aqo-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.aqo-flex{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.aqo-half{flex:1 1 520px;min-width:320px}

.aqo-card,
.aqo-front-card{
  position:relative;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid var(--aqo-border);
  border-radius:var(--aqo-radius);
  padding:26px;
  box-shadow:var(--aqo-shadow);
  margin:20px 0;
  color:var(--aqo-text);
}

.aqo-card h1,.aqo-card h2,.aqo-card h3,
.aqo-front-card h1,.aqo-front-card h2,.aqo-front-card h3{
  margin:0 0 8px;
  color:var(--aqo-text);
  letter-spacing:-.02em;
}

.aqo-card h2,.aqo-front-card h2{font-size:clamp(28px,3vw,44px);line-height:1.05}
.aqo-card h3,.aqo-front-card h3{font-size:clamp(20px,2vw,26px);line-height:1.15}
.aqo-card p,.aqo-front-card p,.aqo-card li,.aqo-front-card li{color:var(--aqo-muted);line-height:1.55}
.aqo-card ul,.aqo-front-card ul{padding-left:18px;margin:12px 0 0}
.aqo-card li,.aqo-front-card li{margin-bottom:8px}

.aqo-grid > .aqo-card{
  padding:22px;
  overflow:hidden;
}
.aqo-grid > .aqo-card::after{
  content:'';
  position:absolute;
  inset:auto -30px -40px auto;
  width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle,#dff7f3 0%,rgba(223,247,243,0) 70%);
}
.aqo-grid > .aqo-card p:last-child,
.aqo-grid > .aqo-card p{
  margin:0;
  font-size:34px;
  font-weight:800;
  color:var(--aqo-text);
}
.aqo-grid > .aqo-card h3{font-size:15px;text-transform:uppercase;letter-spacing:.08em;color:var(--aqo-muted);margin-bottom:14px}

.aqo-panel-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid var(--aqo-border);
}
.aqo-panel-head > div:first-child{flex:1 1 auto;min-width:0}
.aqo-panel-head p{margin:8px 0 0}
.aqo-panel-head strong{
  display:inline-block;
  background:var(--aqo-primary-soft);
  color:var(--aqo-primary-strong);
  border:1px solid #b8e3dd;
  padding:6px 10px;border-radius:999px;font-size:14px;font-weight:700;
}

.aqo-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 24px}
.aqo-tab{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;
  padding:10px 18px;
  border:1px solid var(--aqo-border-strong);
  background:#fff;
  border-radius:999px;
  text-decoration:none;
  color:var(--aqo-secondary);
  font-weight:700;
  transition:all .18s ease;
}
.aqo-tab:hover{border-color:var(--aqo-secondary);transform:translateY(-1px)}
.aqo-tab.active{
  background:linear-gradient(135deg,var(--aqo-secondary) 0%,#284aa6 100%);
  color:#fff;border-color:transparent;
  box-shadow:0 10px 24px rgba(30,58,138,.22);
}

.aqo-card input,
.aqo-card select,
.aqo-card textarea,
.aqo-front-card input,
.aqo-front-card select,
.aqo-front-card textarea{
  width:100%;max-width:100%;min-width:0;
  min-height:50px;
  padding:12px 14px;
  border:1px solid var(--aqo-border-strong);
  border-radius:14px;
  background:#fff;
  color:var(--aqo-text);
  font-size:16px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing:border-box;
}
.aqo-card input:focus,
.aqo-card select:focus,
.aqo-card textarea:focus,
.aqo-front-card input:focus,
.aqo-front-card select:focus,
.aqo-front-card textarea:focus{
  outline:none;
  border-color:var(--aqo-primary);
  box-shadow:0 0 0 4px rgba(15,118,110,.12);
  background:#fff;
}
.aqo-card textarea,.aqo-front-card textarea{min-height:118px;resize:vertical}
.aqo-card label,.aqo-front-card label{display:block;font-size:14px;font-weight:700;color:var(--aqo-text);margin:0 0 8px}
.aqo-card form > p,.aqo-front-card form > p{margin:0 0 16px}
.aqo-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:start}
.aqo-form-grid > p{margin:0;min-width:0}

.aqo-btn,
.aqo-card .button,
.aqo-front-card .button,
.aqo-front-card #wp-submit{
  appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;
  border:0;
  border-radius:14px;
  padding:12px 18px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  background:linear-gradient(135deg,var(--aqo-primary) 0%,#15998e 100%);
  color:#fff;
  box-shadow:0 12px 24px rgba(15,118,110,.18);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.aqo-btn:hover,
.aqo-card .button:hover,
.aqo-front-card .button:hover,
.aqo-front-card #wp-submit:hover{transform:translateY(-1px);opacity:.98;color:#fff}
.aqo-btn-outline{background:#fff!important;color:var(--aqo-primary)!important;border:1px solid #9ccfc9!important;box-shadow:none!important}
.aqo-btn-secondary{background:linear-gradient(135deg,var(--aqo-secondary) 0%,#3357bb 100%)!important;box-shadow:0 12px 24px rgba(30,58,138,.18)!important}

.aqo-alert{padding:14px 16px;border-radius:14px;margin:14px 0;font-weight:700}
.aqo-alert-error{background:var(--aqo-danger-bg);color:var(--aqo-danger);border:1px solid #f2c2c2}

.aqo-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;border:1px solid var(--aqo-border);border-radius:18px}
.aqo-table thead th{
  position:sticky;top:0;z-index:1;
  background:#f7f9fc;
  color:var(--aqo-muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
  font-weight:800;
}
.aqo-table th,.aqo-table td{padding:14px 16px;border-bottom:1px solid #e8edf4;text-align:left;vertical-align:middle}
.aqo-table tbody tr:hover td{background:#fcfdff}
.aqo-table tbody tr:last-child td{border-bottom:0}
.aqo-table code{word-break:break-all;font-size:12px;background:#f4f7fb;padding:4px 8px;border-radius:999px;color:var(--aqo-secondary)}
.aqo-table a{color:var(--aqo-primary);font-weight:700;text-decoration:none}
.aqo-table a:hover{text-decoration:underline}
.aqo-qr-img{width:76px;height:76px;display:block;border-radius:12px;padding:6px;background:#fff;border:1px solid var(--aqo-border)}

.aqo-scan-status{padding:16px 18px;border-radius:16px;font-weight:800;margin:14px 0;font-size:15px;border:1px solid transparent}
.aqo-scan-status-idle{background:var(--aqo-secondary-soft);color:var(--aqo-secondary);border-color:#d8e3ff}
.aqo-scan-status-success{background:var(--aqo-success-bg);color:var(--aqo-success);border-color:#bbe2cb}
.aqo-scan-status-error{background:var(--aqo-danger-bg);color:var(--aqo-danger);border-color:#f0c0c0}
.aqo-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.aqo-video{width:100%;max-width:480px;border-radius:18px;background:#101828;display:block;border:1px solid var(--aqo-border);box-shadow:0 10px 30px rgba(16,24,40,.15)}
.aqo-result{margin-top:16px;border:1px solid var(--aqo-border);border-radius:16px;padding:18px;background:var(--aqo-surface-2);min-height:52px;color:var(--aqo-text)}
.aqo-result strong{font-size:18px;color:var(--aqo-text)}

.aqo-front-card #loginform{max-width:420px}
.aqo-front-card #loginform p{margin:0 0 14px}
.aqo-front-card #loginform label{display:block;margin-bottom:8px;font-weight:700;color:var(--aqo-text)}
.aqo-front-card .login-remember label{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--aqo-muted)}
.aqo-front-card input[type="checkbox"]{min-height:auto;width:auto}

.aqo-mini{font-size:13px;color:var(--aqo-muted)}

@media (max-width: 1100px){
  .aqo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 900px){
  .aqo-grid-3,.aqo-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .aqo-wrap{padding:8px 0 24px}
  .aqo-card,.aqo-front-card{padding:20px;border-radius:18px}
  .aqo-grid,.aqo-grid-3,.aqo-form-grid{grid-template-columns:1fr}
  .aqo-panel-head{flex-direction:column;align-items:flex-start}
  .aqo-tabs{gap:10px}
  .aqo-tab{width:100%}
  .aqo-table{display:block;overflow-x:auto;white-space:nowrap}
}
