.aqs-auth-container,
.aqs-dashboard {
    max-width: 480px;
    margin: 32px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 36, 50, 0.12);
    color: #16323d;
}

.aqs-dashboard {
    max-width: 760px;
}

.aqs-auth-container h2,
.aqs-dashboard h2,
.aqs-dashboard h3 {
    margin-top: 0;
    color: #0f2f3a;
}

.aqs-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aqs-auth-form label {
    font-weight: 600;
}

.aqs-auth-form input[type="text"],
.aqs-auth-form input[type="email"],
.aqs-auth-form input[type="password"],
.aqs-auth-form input[type="url"],
.aqs-auth-form input[type="tel"],
.aqs-auth-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #c8d8dd;
    border-radius: 10px;
    background: #ffffff;
    font-size: 16px;
}

.aqs-auth-form input:focus,
.aqs-auth-form select:focus {
    outline: 2px solid #0b6f7d;
    outline-offset: 1px;
}

.aqs-submit,
.aqs-advisor-button {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: #0f3d4a;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.aqs-submit:hover,
.aqs-advisor-button:hover {
    background: #0a2c36;
    color: #ffffff;
}

.aqs-auth-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.aqs-auth-message p {
    margin: 0 0 6px;
}

.aqs-auth-message p:last-child {
    margin-bottom: 0;
}

.aqs-auth-error {
    background: #b3261e;
    color: #ffffff;
}

.aqs-auth-error a {
    color: #ffffff;
    text-decoration: underline;
}

.aqs-auth-success {
    background: #1f7a45;
    color: #ffffff;
}

.aqs-auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    text-align: center;
}

.aqs-auth-links a {
    color: #0b6f7d;
    text-decoration: none;
}

.aqs-auth-links a:hover {
    text-decoration: underline;
}

.aqs-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

.aqs-checkbox input {
    margin-top: 4px;
}

.aqs-shop-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d8e5e8;
    border-radius: 12px;
    background: #f7fbfc;
}

.aqs-shop-fields[hidden] {
    display: none;
}

.aqs-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #d8e5e8;
    padding-bottom: 16px;
}

.aqs-logout {
    color: #0b6f7d;
    font-weight: 700;
    text-decoration: none;
}

.aqs-dashboard-section {
    padding: 18px 0;
    border-bottom: 1px solid #d8e5e8;
}

.aqs-dashboard-section:last-child {
    border-bottom: 0;
}

.aqs-dashboard-section p {
    margin: 8px 0;
}

.aqs-dashboard-action {
    text-align: center;
}

.aqs-delete-account {
    padding: 10px 16px;
    border: 1px solid #b3261e;
    border-radius: 10px;
    background: #ffffff;
    color: #b3261e;
    font-weight: 700;
    cursor: pointer;
}

.aqs-delete-account:hover {
    background: #b3261e;
    color: #ffffff;
}

@media (max-width: 640px) {
    .aqs-auth-container,
    .aqs-dashboard {
        margin: 18px 12px;
        padding: 20px;
    }

    .aqs-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== Dashboard / karta konta w stylu aqs-ui (@since 2.3.0) =====
   Tokeny (var(--c-*)) pochodzą z aqs-design (.aqs-ui). */
.aqs-ui.aqs-account { max-width: 620px; margin: 0 auto; }
.aqs-ui .aqs-account-card {
  background: var(--c-foam);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-soft);
  padding: 28px 30px 30px;
}
.aqs-ui .aqs-account-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-deep-2);
  letter-spacing: -.01em;
}
.aqs-ui .aqs-account-rows {
  display: grid;
  gap: 1px;
  background: var(--c-border-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.aqs-ui .aqs-account-row { display: grid; grid-template-columns: 42% 1fr; }
.aqs-ui .aqs-account-row__k {
  padding: 11px 14px;
  background: #f3f8f9;
  font-weight: 600;
  color: var(--c-slate);
}
.aqs-ui .aqs-account-row__v {
  padding: 11px 14px;
  background: var(--c-foam);
  color: var(--c-depth);
}
.aqs-ui .aqs-account-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.aqs-ui .aqs-account-badge--ok    { background: #e3f5ec; color: #1b7a4b; }
.aqs-ui .aqs-account-badge--warn  { background: #fdf0e3; color: #a4611a; }
.aqs-ui .aqs-account-badge--muted { background: #eef1f2; color: #5c6b70; }
.aqs-ui .aqs-account-actions { margin-top: 22px; }
.aqs-ui .aqs-account-logout {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--r-md);
  background: var(--c-water);
  color: var(--c-foam);
  text-decoration: none;
  font-weight: 600;
  transition: background .16s ease;
}
.aqs-ui .aqs-account-logout:hover { background: var(--c-deep-2); }

/* A41 / D-15: koniec wersji demo — zaproszenie, nie błąd */
.aqs-auth-info {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.aqs-auth-info a {
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: underline;
}

/* UX-05 (A41): ekran końca wersji STARTOWEJ */
.aqs-auth-end{max-width:560px;margin:8px auto;display:flex;flex-direction:column;gap:16px;font-family:"Manrope AQS",system-ui,-apple-system,"Segoe UI",sans-serif;color:#071b2a}
.aqs-auth-end__eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0a6d8a}
.aqs-auth-end__h1{margin:0;font-family:"Fraunces AQS",Georgia,serif;font-weight:600;font-size:clamp(26px,5vw,36px);line-height:1.12}
.aqs-auth-end__lead{margin:0;font-size:16px;line-height:1.6;color:#4c6472}
.aqs-auth-end__list{list-style:none;margin:0;padding:18px;display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e3eef3;border-radius:20px;box-shadow:0 10px 28px rgba(7,27,42,.06);font-size:15px;line-height:1.5}
.aqs-auth-end__list li{display:flex;gap:10px}
.aqs-auth-end__list li span{color:#0f6b51;font-weight:800}
.aqs-auth-end__cta{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:14px;background:#0b2a3d;color:#fff!important;font-weight:800;font-size:16px;text-decoration:none!important}
.aqs-auth-end__cta:hover{background:#103b54}
.aqs-auth-end__note{margin:0;font-size:13px;color:#4c6472}

/* A41: podpowiedź pod polem logowania */
.aqs-auth-hint{margin:-4px 0 12px;font-size:13px;line-height:1.5;color:#4c6472}
