
:root{--ath-blue:#2563EB;--ath-green:#10B981;--ath-navy:#1E293B;--ath-slate:#64748B;--ath-light:#F8FAFC}
.ath-form,.ath-portal{max-width:900px;margin:30px auto;padding:30px;background:#fff;border:1px solid #e5edf5;border-radius:20px;box-shadow:0 18px 50px rgba(30,41,59,.08)}
.ath-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ath-form label{display:block;font-weight:750;margin-bottom:7px;color:var(--ath-navy)}
.ath-form input[type=text],.ath-form input[type=email],.ath-form input[type=tel],.ath-form input[type=password],.ath-form select,.ath-form textarea{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.ath-form input:focus,.ath-form select:focus,.ath-form textarea:focus{outline:3px solid rgba(37,99,235,.18);border-color:var(--ath-blue)}
.ath-account-box{margin:24px 0;padding:20px;border:1px solid #cfe1ff;border-radius:14px;background:#f8fbff}
.ath-account-box legend{font-weight:850;color:var(--ath-navy)}
.ath-check-row{display:flex!important;gap:10px;align-items:flex-start}
.ath-submit{background:var(--ath-blue);color:#fff;border:0;border-radius:999px;padding:14px 24px;font-weight:850;cursor:pointer}
.ath-submit:hover{filter:brightness(.95)}
.ath-notice{max-width:900px;margin:24px auto;padding:20px;border-radius:14px}
.ath-success{background:#ecfdf5;border:1px solid #a7f3d0}
.ath-error{background:#fff1f2;border:1px solid #fecdd3}
.ath-ticket-list{display:grid;gap:18px}
.ath-ticket-card{padding:24px;border:1px solid #e5edf5;border-radius:16px;background:#fff}
.ath-ticket-head{display:flex;justify-content:space-between;gap:16px;align-items:center}
.ath-ticket-head h3{margin:0}
.ath-status{display:inline-block;background:#eef4ff;color:#1d4ed8;padding:7px 11px;border-radius:999px;font-size:.86rem;font-weight:800}
.ath-updates{margin-top:24px;border-top:1px solid #e5edf5;padding-top:18px}
.ath-update{padding:14px;border-radius:12px;background:var(--ath-light);margin-bottom:12px}
.ath-update p{margin-bottom:0}
@media(max-width:700px){.ath-form-grid{grid-template-columns:1fr}.ath-form,.ath-portal{padding:20px}.ath-ticket-head{align-items:flex-start;flex-direction:column}}


/* ATH Core 3 customer portal */
.ath-portal{max-width:1000px;margin:24px auto;color:#1E293B}
.ath-login{max-width:520px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;box-shadow:0 12px 35px rgba(15,23,42,.08)}
.ath-login input[type=text],.ath-login input[type=password]{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px}
.ath-login input[type=submit]{background:#2563EB;color:#fff;border:0;border-radius:8px;padding:12px 20px;font-weight:700;cursor:pointer}
.ath-portal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.ath-portal-header h2{margin-bottom:4px}
.ath-portal-actions{display:flex;gap:10px;flex-wrap:wrap}
.ath-button{display:inline-block;background:#2563EB;color:#fff!important;text-decoration:none!important;padding:10px 16px;border-radius:8px;font-weight:700}
.ath-button-secondary{background:#e2e8f0;color:#1E293B!important}
.ath-portal-section{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:22px}
.ath-ticket-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;margin:0 0 16px}
.ath-ticket-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.ath-ticket-head h2,.ath-ticket-head h3{margin:0}
.ath-status{display:inline-block;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:6px 11px;font-size:13px;font-weight:700;white-space:nowrap}
.ath-conversation{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px}
.ath-thread{display:flex;flex-direction:column;gap:14px;margin:24px 0}
.ath-message{max-width:78%;padding:14px 16px;border-radius:14px}
.ath-message p{margin:8px 0 0}
.ath-message-customer{align-self:flex-end;background:#dbeafe;border-bottom-right-radius:4px}
.ath-message-staff{align-self:flex-start;background:#ecfdf5;border-bottom-left-radius:4px}
.ath-message-meta{display:flex;gap:12px;justify-content:space-between;font-size:12px;color:#64748B}
.ath-reply-form{margin-top:28px;padding-top:22px;border-top:1px solid #e2e8f0}
.ath-reply-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:12px}
.ath-attachments{background:#f8fafc;border-radius:12px;padding:16px}
.ath-empty{text-align:center;padding:35px 20px}
@media(max-width:700px){
  .ath-portal-header,.ath-ticket-head{flex-direction:column}
  .ath-message{max-width:94%}
}

/* ATH Core 3.1.0 */
.ath-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.ath-priority{display:inline-block;border-radius:999px;padding:6px 11px;font-size:13px;font-weight:800;white-space:nowrap}
.ath-priority-high{background:#fff7ed;color:#c2410c}
.ath-priority-urgent{background:#fef2f2;color:#b91c1c}

/* ATH Core 3.3.0 */
.ath-payment{margin-top:16px;padding:16px;border-radius:12px}
.ath-payment-due{background:#fff7ed;border:1px solid #fed7aa}
.ath-payment-paid{background:#ecfdf5;border:1px solid #a7f3d0}
.ath-payment p{margin:8px 0 0}

/* ATH Core 3.2.0 */
.ath-form input[readonly]{background:#f1f5f9;color:#475569;cursor:not-allowed}
