* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #071226;
}

a {
    color: #145cff;
    text-decoration: none;
}

.association-auth-body {
    min-height: 100vh;
    background: #223fa3;
}

.association-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.association-auth-card {
    width: 374px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 26px 28px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10);
}

.association-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 59px;
    height: 37px;
    padding: 0 13px;
    border-radius: 4px;
    background: #1f62ff;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.association-auth-card > .association-logo {
    display: flex;
    width: 75px;
    margin: 0 auto 16px;
}

.association-auth-title {
    margin: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
}

.association-auth-subtitle {
    margin: 12px 0 28px;
    text-align: center;
    color: #45526b;
    font-size: 13px;
}

.association-form {
    display: grid;
    gap: 15px;
}

.association-login-form {
    gap: 18px;
}

.association-form label {
    display: grid;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0c1b38;
}

.association-form input,
.association-form select,
.association-form textarea {
    width: 100%;
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.association-form input,
.association-form select {
    height: 42px;
    padding: 0 14px;
}

.association-form textarea {
    min-height: 118px;
    padding: 12px 14px;
    resize: vertical;
}

.association-form input:focus,
.association-form select:focus,
.association-form textarea:focus {
    border-color: #1f62ff;
    box-shadow: 0 0 0 3px rgba(31, 98, 255, 0.12);
}

.association-input-wrap {
    position: relative;
    display: block;
}

.association-input-wrap input {
    padding-left: 34px;
}

.association-input-wrap::before,
.association-secure::before,
.association-fee-box li::before,
.association-help li::before {
    position: absolute;
    color: #8b97aa;
}

.association-icon-user::before {
    content: "♙";
    left: 11px;
    top: 11px;
}

.association-icon-mail::before {
    content: "✉";
    left: 11px;
    top: 11px;
}

.association-icon-phone::before {
    content: "⌕";
    left: 12px;
    top: 11px;
}

.association-icon-lock::before {
    content: "▢";
    left: 12px;
    top: 11px;
}

.association-icon-card::before {
    content: "▭";
    left: 11px;
    top: 11px;
}

.association-icon-user::before,
.association-icon-mail::before,
.association-icon-phone::before,
.association-icon-lock::before {
    content: "";
    width: 14px;
    height: 14px;
    top: 14px;
    background: currentColor;
}

.association-icon-user::before {
    left: 11px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.association-icon-mail::before {
    left: 11px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.association-icon-phone::before {
    left: 12px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.59 2.61a2 2 0 0 1-.45 2.11L8 9.69a16 16 0 0 0 6.31 6.31l1.25-1.25a2 2 0 0 1 2.11-.45c.84.27 1.71.47 2.61.59A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.59 2.61a2 2 0 0 1-.45 2.11L8 9.69a16 16 0 0 0 6.31 6.31l1.25-1.25a2 2 0 0 1 2.11-.45c.84.27 1.71.47 2.61.59A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.association-icon-lock::before {
    left: 12px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.association-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 41px;
    border: 0;
    border-radius: 8px;
    background: #1f62ff;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.association-primary-button:hover {
    background: #1452e9;
}

.association-disabled-button,
.association-disabled-button:hover {
    background: #9aa8bd;
    cursor: not-allowed;
}

.association-auth-switch,
.association-auth-back {
    margin: 22px 0 0;
    text-align: center;
    color: #3b465c;
    font-size: 12px;
}

.association-form-link {
    margin: -4px 0 0;
    text-align: right;
    font-size: 12px;
}

.association-auth-back {
    margin-top: 24px;
}

.association-form small,
.association-form-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 500;
}

.association-message {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.association-message-success {
    background: #ecfdf3;
    color: #027a48;
}

.association-message-error {
    background: #fef3f2;
    color: #b42318;
}

.association-app-body {
    min-height: 100vh;
    background: #f6f7f9;
}

.association-topbar {
    height: 58px;
    background: #fff;
    border-bottom: 1px solid #e2e6ec;
}

.association-topbar-inner {
    max-width: 1480px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.association-brand {
    font-size: 12px;
    color: #1b2b47;
}

.association-topbar nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #17233d;
}

.association-logout {
    color: #17233d;
}

.association-logout::before {
    content: "↪";
    margin-right: 8px;
    color: #17233d;
}

.association-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 40px 16px;
}

.association-page-head {
    margin-bottom: 28px;
}

.association-page-head h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.association-page-head p {
    margin: 0;
    color: #34445f;
    font-size: 13px;
}

.association-dashboard-grid,
.association-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.association-main-column {
    display: grid;
    gap: 18px;
}

.association-panel {
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.association-panel h2 {
    margin: 0 0 18px;
    font-size: 16px;
}

.association-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.association-panel-head h2 {
    margin: 0;
}

.association-status {
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff4cf;
    color: #a15c00;
    font-size: 12px;
}

.association-status-active {
    background: #dcfae6;
    color: #067647;
}

.association-fee-box,
.association-help {
    border: 1px solid #a8cbff;
    border-radius: 8px;
    background: #eef6ff;
}

.association-fee-box {
    padding: 22px 20px;
    margin-bottom: 14px;
}

.association-fee-box h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.association-fee-box strong {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
    font-weight: 400;
}

.association-fee-box p,
.association-help p {
    margin: 0 0 14px;
    color: #34445f;
    font-size: 12px;
    line-height: 1.5;
}

.association-fee-box ul,
.association-help ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 13px;
}

.association-fee-box li,
.association-help li {
    position: relative;
    padding-left: 21px;
}

.association-fee-box li::before,
.association-help li::before {
    content: "✓";
    left: 0;
    color: #00a96b;
}

.association-pay-link::before {
    content: "▭";
    margin-right: 9px;
}

.association-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.association-profile-form .association-form-grid label {
    grid-template-rows: 34px 42px auto;
    align-content: start;
}

.association-profile-form .association-form-grid label > span {
    min-height: 34px;
    display: flex;
    align-items: flex-end;
}

.association-profile-form .association-form-grid input,
.association-profile-form .association-form-grid select,
.association-profile-form .association-form-grid textarea {
    height: 42px;
    min-height: 42px;
}

.association-profile-form .association-form-grid textarea {
    padding-top: 10px;
    padding-bottom: 10px;
    resize: none;
}

.association-profile-form {
    margin-top: 10px;
}

.association-form-section-title {
    margin: 20px 0 12px;
    font-size: 15px;
    line-height: 1.3;
}

.association-muted {
    margin: 0 0 10px;
    color: #46566f;
    font-size: 13px;
    line-height: 1.5;
}

.association-payment-lock {
    margin-top: 12px;
}

.association-profile-pay {
    margin-top: 18px;
}

.association-missing-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #46566f;
    font-size: 12px;
    line-height: 1.6;
}

.association-button-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.association-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 0 16px;
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    background: #fff;
    color: #17233d;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.association-certificate-preview {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.association-certificate-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.association-certificate-page {
    max-width: 1040px;
}

.association-certificate-detail {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.association-certificate-full-preview {
    width: min(100%, 920px);
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.association-certificate-full-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.association-certificate-detail .association-button-row {
    width: min(100%, 420px);
}

.association-profile-photo {
    display: block;
    width: 120px;
    height: 144px;
    margin-top: 10px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e4e8ef;
}

.association-photo-field {
    display: grid;
    gap: 8px;
}

.association-field-title {
    font-size: 12px;
    font-weight: 700;
    color: #0c1b38;
}

.association-photo-uploader {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px dashed #9db7df;
    border-radius: 8px;
    background: #f8fbff;
}

.association-photo-preview {
    width: 112px;
    height: 134px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9eef7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f62ff;
    font-size: 34px;
    font-weight: 700;
}

.association-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.association-photo-actions {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.association-photo-actions p {
    margin: 0;
    color: #34445f;
    font-size: 13px;
}

.association-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.association-file-button {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    background: #1f62ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.association-file-button:hover {
    background: #1452e9;
}

.association-file-name {
    color: #58677e;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.association-cropper-modal[hidden] {
    display: none;
}

.association-cropper-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 19, 40, 0.56);
}

.association-cropper-dialog {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 18px;
}

.association-cropper-canvas {
    height: min(62vh, 520px);
    margin-bottom: 16px;
}

.association-cropper-canvas img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.association-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.association-info-list {
    margin: 0;
    display: grid;
    gap: 14px;
}

.association-info-list dt {
    color: #46566f;
    font-size: 12px;
}

.association-info-list dd {
    margin: 3px 0 0 8px;
    font-weight: 700;
    font-size: 13px;
}

.association-help {
    padding: 20px;
}

.association-help h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.association-back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 13px;
}

.association-payment-page {
    max-width: 730px;
}

.association-payment-grid {
    grid-template-columns: minmax(0, 454px) 215px;
}

.association-payment-card {
    padding: 22px 20px;
}

.association-secure {
    position: relative;
    margin-bottom: 20px;
    padding-left: 24px;
    color: #34445f;
    font-size: 12px;
}

.association-secure::before {
    content: "▢";
    left: 0;
    color: #00a96b;
}

.association-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.association-demo-note {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e4e8ef;
    text-align: center;
    color: #58677e;
    font-size: 11px;
}

.association-demo-payment-data {
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid #a8cbff;
    border-radius: 8px;
    background: #eef6ff;
}

.association-demo-payment-data h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.association-demo-payment-data p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 7px 0;
    color: #34445f;
    font-size: 12px;
}

.association-demo-payment-data strong {
    color: #071226;
    font-size: 13px;
    text-align: right;
}

.association-order p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e4e8ef;
    font-size: 13px;
}

.association-order p:last-child {
    border-bottom: 0;
    font-size: 16px;
}

.association-app-messages {
    max-width: 1480px;
    margin: 16px auto 0;
    padding: 0 16px;
}

.association-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dcfae6;
    color: #067647;
    font-size: 12px;
    font-weight: 700;
}

.association-success-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    border-color: #abefc6;
    background: #f6fef9;
}

.association-success-panel h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.association-success-panel p {
    margin: 0;
    color: #34445f;
    font-size: 13px;
}

.association-progress-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.association-progress-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 82px;
    padding: 14px;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    background: #fff;
}

.association-progress-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f7;
    color: #46566f;
    font-weight: 700;
    font-size: 13px;
}

.association-progress-step strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.association-progress-step p {
    margin: 0;
    color: #58677e;
    font-size: 12px;
    line-height: 1.35;
}

.association-progress-step.is-current {
    border-color: #9fc2ff;
    background: #f3f8ff;
}

.association-progress-step.is-current > span {
    background: #1f62ff;
    color: #fff;
}

.association-progress-step.is-complete {
    border-color: #abefc6;
    background: #f6fef9;
}

.association-progress-step.is-complete > span {
    background: #12b76a;
    color: #fff;
}

.association-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
}

.association-meta-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    background: #f8fafc;
}

.association-meta-grid dt {
    margin-bottom: 6px;
    color: #58677e;
    font-size: 11px;
}

.association-meta-grid dd {
    margin: 0;
    color: #071226;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.association-blocked-note {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #fedf89;
    border-radius: 8px;
    background: #fffbeb;
    color: #713b12;
    font-size: 13px;
}

.association-blocked-note strong {
    display: block;
    margin-bottom: 4px;
}

.association-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: #34445f;
    font-size: 13px;
    line-height: 1.45;
}

.association-check-list li {
    position: relative;
    padding-left: 22px;
}

.association-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a96b;
}

.association-payment-history {
    display: grid;
    gap: 10px;
}

.association-payment-history div {
    display: grid;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #e4e8ef;
}

.association-payment-history div:last-child {
    border-bottom: 0;
}

.association-payment-history span,
.association-payment-history em {
    color: #58677e;
    font-size: 12px;
    font-style: normal;
}

.association-payment-history strong {
    color: #071226;
    font-size: 14px;
}

.association-payment-page {
    max-width: 960px;
}

.association-certificate-detail .association-button-row {
    width: min(100%, 760px);
    justify-content: center;
}

.association-certificate-detail .association-secondary-button,
.association-certificate-detail .association-primary-button {
    flex: 1 1 0;
}

.association-certificate-meta {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .association-dashboard-grid,
    .association-payment-grid {
        grid-template-columns: 1fr;
    }

    .association-topbar-inner {
        align-items: center;
    }

    .association-brand {
        display: none;
    }

    .association-topbar nav {
        gap: 10px;
        font-size: 12px;
    }

    .association-form-row {
        grid-template-columns: 1fr;
    }

    .association-form-grid {
        grid-template-columns: 1fr;
    }

    .association-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .association-photo-uploader {
        grid-template-columns: 1fr;
    }

    .association-auth-card {
        padding: 24px 22px;
    }

    .association-success-panel,
    .association-progress-panel,
    .association-meta-grid {
        grid-template-columns: 1fr;
    }
}
