/* TIA Memberships - Public */

.mt-hero {
    --mt-primary: #1a365d;
    --mt-accent: #c9a227;
    background: var(--mt-primary);
    color: #fff;
    text-align: center;
    padding: 80px 30px 60px;
}
.mt-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(201,162,39,.15);
    color: var(--mt-accent);
    font-size: 28px;
}
.mt-hero h1 {
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}
.mt-hero p {
    max-width: 760px;
    margin: 14px auto 0;
    color: rgba(255,255,255,.76);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}
.mt-application-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    background: #f9fafb;
    padding: 64px 30px 96px;
}
.mt-form-card,
.mt-side-card,
.mt-note-card,
.mt-public-card,
.mt-plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.mt-form-card {
    padding: 32px;
}
.mt-form-card h2,
.mt-side-card h3,
.mt-note-card h3,
.mt-public-card h2,
.mt-plan-card h3 {
    margin: 0 0 20px;
    color: #1a365d;
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
}
.mt-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.mt-field {
    margin: 0;
}
.mt-width-100 { grid-column: span 12; }
.mt-width-50 { grid-column: span 6; }
.mt-width-34,
.mt-width-33 { grid-column: span 4; }
.mt-width-25 { grid-column: span 3; }
.mt-field label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.mt-field label span,
.mt-check b {
    color: #b91c1c;
}
.mt-field input,
.mt-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    padding: 10px 14px;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}
.mt-field input:focus,
.mt-field select:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 2px rgba(26,54,93,.12);
    outline: none;
}
.mt-section-title {
    margin-top: 4px;
    padding: 20px 0 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #1a365d;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.mt-section-title:first-child {
    padding-top: 4px;
}
.mt-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    line-height: 1.45;
}
.mt-check input {
    width: 16px;
    min-height: 16px;
    margin-top: 3px;
    flex: 0 0 auto;
}
.mt-check a {
    color: #1a365d;
    text-decoration: underline;
}
.mt-field-note {
    margin: 0;
    color: #6b7280;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}
.mt-submit,
.mt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 22px;
    border: 0;
    border-radius: 4px;
    background: #c9a227;
    color: #fff;
    cursor: pointer;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.mt-submit:hover,
.mt-button:hover {
    background: #b8911e;
    color: #fff;
}
.mt-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mt-side-card,
.mt-note-card {
    padding: 24px;
}
.mt-money-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}
.mt-money-row.muted {
    color: #6b7280;
    font-size: 13px;
}
.mt-money-row.total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    color: #1a365d;
    font-size: 16px;
    font-weight: 700;
}
.mt-mini-total {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
}
.mt-mini-total strong,
.mt-mini-total span {
    display: block;
}
.mt-mini-total span {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}
.mt-note-card {
    background: #fffbeb;
    border-color: #fde68a;
}
.mt-note-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mt-note-card li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    color: #374151;
    font-size: 14px;
}
.mt-note-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #c9a227;
}
.mt-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.mt-plan-card,
.mt-public-card {
    padding: 24px;
}
.mt-plan-price {
    margin: 0 0 10px;
    color: #1a365d;
    font-size: 32px;
    font-weight: 800;
}
.mt-plan-price span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}
.mt-status-form {
    display: grid;
    gap: 10px;
    max-width: 420px;
}
.mt-portal-registration {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.mt-portal-registration p {
    margin: 0;
}
.mt-portal-registration label,
.mt-status-form label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}
.mt-portal-registration input,
.mt-portal-registration select,
.mt-status-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    box-sizing: border-box;
}
.mt-portal-registration .mt-submit {
    grid-column: 1 / -1;
}
/* Plans grid (improved) */
.mt-plans { gap: 22px; }
.mt-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border-top: 4px solid var(--mt-plan-badge, #c9a227);
}
.mt-plan-card .mt-plan-badge {
    position: absolute;
    top: -8px; left: 26px;
    width: 12px; height: 12px;
    border-radius: 99px;
    background: var(--mt-plan-badge, #c9a227);
}
.mt-plan-desc {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
}
.mt-plan-fee {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 13px;
}
.mt-plan-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.mt-plan-features li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #374151;
    font-size: 14px;
    border-top: 1px solid #f3f4f6;
}
.mt-plan-features li:first-child { border-top: 0; }
.mt-plan-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 12px;
    width: 8px; height: 8px;
    border-radius: 99px;
    background: var(--mt-plan-badge, #c9a227);
}
.mt-plan-card .mt-button { margin-top: auto; }
.mt-button.mt-disabled {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}
.mt-button.mt-secondary {
    background: #ffffff;
    color: #1a365d;
    border: 1px solid #1a365d;
}

/* Portal */
.mt-portal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin: 24px 0;
}
.mt-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 18px;
}
.mt-portal-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.mt-portal-header h2 { margin: 0; color: var(--mt-primary, #1a365d); }
.mt-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.mt-portal-stat {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
}
.mt-portal-stat span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.mt-portal-stat strong {
    color: #111827;
    font-size: 16px;
}
.mt-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.mt-portal-actions .mt-button { width: auto; margin: 0; padding: 12px 22px; }
.mt-portal-logout {
    margin-left: auto;
    color: #6b7280;
    font-size: 13px;
    text-decoration: underline;
}
.mt-portal-orders {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}
.mt-portal-orders h3 {
    margin: 0 0 8px;
    color: #1a365d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.mt-status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.mt-status-active { background: #dcfce7; color: #166534; }
.mt-status-in_grace_period { background: #fef3c7; color: #92400e; }
.mt-status-expired,
.mt-status-cancelled,
.mt-status-suspended { background: #fee2e2; color: #991b1b; }
.mt-status-pending { background: #e0e7ff; color: #3730a3; }

/* ============================================================
   Membership Credential — v2 (refined, premium)
   ============================================================ */
.mt-credential-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
}
.mt-cred-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 1px 2px rgba(15,23,42,.05),
        0 8px 20px rgba(15,23,42,.06),
        0 30px 60px -10px rgba(15,23,42,.18);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

/* --- Header --------------------------------------------------- */
.mt-cred-header {
    position: relative;
    padding: 24px 22px 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 50%),
        linear-gradient(135deg, var(--mt-primary, #1a365d) 0%, #0f1e3a 100%);
    color: #ffffff;
    text-align: center;
}
.mt-cred-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: .35;
}
.mt-cred-eyebrow {
    position: relative;
    color: var(--mt-accent, #c9a227);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.mt-cred-org {
    position: relative;
    margin-top: 10px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
}
.mt-cred-org-sub {
    position: relative;
    margin-top: 6px;
    color: rgba(255,255,255,.62);
    font-size: 10.5px;
    font-style: italic;
    letter-spacing: .04em;
}
.mt-cred-plan-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.mt-cred-plan-pill span {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--mt-badge, #c9a227);
    box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}

/* Hairline accent stripe between header and body */
.mt-cred-accent {
    height: 3px;
    background:
        linear-gradient(90deg, var(--mt-accent, #c9a227) 0%, var(--mt-badge, #c9a227) 60%, transparent 100%);
}

/* --- Role block ---------------------------------------------- */
.mt-cred-role-block {
    position: relative;
    padding: 26px 22px 22px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}
.mt-cred-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mt-primary, #1a365d);
    font-family: "Playfair Display", serif;
    font-size: 140px;
    font-weight: 800;
    letter-spacing: .02em;
    opacity: .035;
    pointer-events: none;
    user-select: none;
}
.mt-cred-role-title {
    position: relative;
    color: var(--mt-role, var(--mt-primary, #1a365d));
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.1;
}
.mt-cred-role-divider {
    position: relative;
    width: 56px;
    height: 2px;
    margin: 10px auto 0;
    background: var(--mt-role, var(--mt-primary, #1a365d));
    border-radius: 99px;
}
.mt-cred-role-member .mt-cred-role-title { color: #475569; }
.mt-cred-role-member .mt-cred-role-divider { background: #475569; }
.mt-cred-role-developer .mt-cred-role-title { color: #6d28d9; }
.mt-cred-role-developer .mt-cred-role-divider { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.mt-cred-role-president .mt-cred-role-title,
.mt-cred-role-vice_president .mt-cred-role-title { color: #a17a17; }
.mt-cred-role-president .mt-cred-role-divider,
.mt-cred-role-vice_president .mt-cred-role-divider {
    background: linear-gradient(90deg, #c9a227, #e8c25a);
}

/* --- Body (photo + info) ------------------------------------- */
.mt-cred-body {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 4px 22px 22px;
    align-items: start;
}
.mt-cred-photo {
    width: 110px;
    height: 138px;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    box-shadow:
        inset 0 0 0 4px #ffffff,
        0 2px 6px rgba(15,23,42,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mt-cred-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mt-cred-photo-initial {
    color: var(--mt-primary, #1a365d);
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 700;
    opacity: .72;
}
.mt-cred-info {
    margin: 0;
    padding: 4px 0 0;
    display: grid;
    gap: 12px;
}
.mt-cred-field {
    display: block;
}
.mt-cred-field dt {
    margin: 0;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.mt-cred-field dd {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}
.mt-cred-field-id dd {
    color: var(--mt-primary, #1a365d);
    font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    letter-spacing: .04em;
}
.mt-cred-lifetime {
    color: #c9a227;
    font-weight: 700;
}

/* --- QR block ------------------------------------------------ */
.mt-cred-qr-block {
    padding: 8px 22px 20px;
    text-align: center;
}
.mt-cred-qr-frame {
    display: inline-block;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 0 0 6px #f9fafb;
}
.mt-cred-qr-frame img {
    display: block;
    width: 150px;
    height: 150px;
}
.mt-cred-qr-caption {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 10.5px;
    letter-spacing: .04em;
    font-style: italic;
}

/* --- Signatures footer --------------------------------------- */
.mt-cred-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 24px 22px;
    border-top: 1px solid #f1f5f9;
    background:
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}
.mt-cred-sig {
    text-align: center;
    padding-top: 22px;
    position: relative;
}
.mt-cred-sig-line {
    position: absolute;
    top: 16px;
    left: 8px;
    right: 8px;
    height: 1px;
    background:
        repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 4px, transparent 4px, transparent 8px);
}
.mt-cred-sig span {
    color: #64748b;
    font-size: 10px;
    font-style: italic;
    letter-spacing: .08em;
}

/* --- Action buttons (below card) ----------------------------- */
.mt-credential-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.mt-credential-actions .mt-button { width: auto; margin-top: 0; }

/* --- Print --------------------------------------------------- */
@media print {
    body * { visibility: hidden; }
    .mt-cred-card, .mt-cred-card * { visibility: visible; }
    .mt-cred-card {
        position: absolute;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
        box-shadow: none;
        border-color: #cbd5e1;
    }
    .mt-credential-actions,
    .mt-portal-actions { display: none !important; }
}

/* --- Small viewports ---------------------------------------- */
@media (max-width: 420px) {
    .mt-cred-card { max-width: 100%; }
    .mt-cred-org { font-size: 30px; }
    .mt-cred-role-title { font-size: 24px; }
    .mt-cred-watermark { font-size: 110px; }
    .mt-cred-body { grid-template-columns: 100px 1fr; gap: 14px; }
    .mt-cred-photo { width: 100px; height: 124px; }
}

/* Verify page */
.mt-verify-card { text-align: center; padding: 36px 30px; }
.mt-verify-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-weight: 700;
}
.mt-verify-status.is-active { background: #dcfce7; color: #166534; }
.mt-verify-status.is-inactive { background: #fee2e2; color: #991b1b; }
.mt-verify-company {
    margin-top: -4px;
    color: #6b7280;
    font-size: 14px;
}
.mt-verify-photo {
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f4f6;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-verify-photo img { width: 100%; height: 100%; object-fit: cover; }
.mt-verify-photo span {
    color: var(--mt-primary, #1a365d);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 44px;
    font-weight: 700;
}
.mt-verify-events {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    text-align: left;
}
.mt-verify-events h3 {
    margin: 0 0 12px;
    color: var(--mt-primary, #1a365d);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.mt-verify-events ul { list-style: none; padding: 0; margin: 0; }
.mt-verify-events li {
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
}
.mt-verify-events li:first-child { border-top: 0; }
.mt-verify-events li strong {
    flex: 1 1 200px;
    color: #111827;
    font-size: 14px;
}
.mt-verify-event-date {
    color: #6b7280;
    font-size: 13px;
}
.mt-verify-event-status {
    padding: 3px 9px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.mt-verify-event-status-confirmed,
.mt-verify-event-status-paid { background: #dcfce7; color: #166534; }
.mt-verify-event-status-pending { background: #fef3c7; color: #92400e; }
.mt-verify-events-empty {
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

/* Portal photo uploader */
.mt-photo-uploader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}
.mt-photo-uploader-avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15,23,42,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mt-photo-uploader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mt-photo-uploader-avatar span {
    color: var(--mt-primary, #1a365d);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
}
.mt-photo-uploader-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt-photo-uploader .mt-button { width: auto; padding: 9px 16px; font-size: 13px; }
.mt-photo-remove {
    color: #b91c1c;
    font-size: 13px;
    text-decoration: none;
}
.mt-photo-remove:hover { text-decoration: underline; }
.mt-photo-success {
    width: 100%;
    margin: 4px 0 0;
    padding: 8px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    font-size: 13px;
}

/* Restricted / login */
.mt-restricted { padding: 36px 30px; }
.mt-restricted h2 { margin-top: 0; }
.mt-restricted-links {
    margin-top: 14px;
    font-size: 13px;
}
.mt-login-card { max-width: 420px; }
.mt-login-card #loginform { margin-top: 12px; }
.mt-login-card #loginform input[type=text],
.mt-login-card #loginform input[type=password] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    box-sizing: border-box;
}
.mt-login-card #loginform .submit input,
.mt-login-card #loginform #wp-submit {
    width: 100%;
    background: #c9a227;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}
.mt-activation-card { max-width: 480px; }
.mt-activation-card input[type=password] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    box-sizing: border-box;
}

/* Header login button / user chip */
.mt-loginbtn-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Inter, Arial, sans-serif;
}
.mt-loginbtn-left { justify-content: flex-start; }
.mt-loginbtn-center { display: flex; justify-content: center; }
.mt-loginbtn-right { display: flex; justify-content: flex-end; }

.mt-loginbtn {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease, color .15s ease, transform .05s ease;
}
.mt-loginbtn-button {
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--mt-accent, #c9a227);
    color: #ffffff !important;
}
.mt-loginbtn-button:hover { background: #b8911e; color: #ffffff !important; transform: translateY(-1px); }
.mt-loginbtn-pill {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--mt-primary, #1a365d);
    color: #ffffff !important;
}
.mt-loginbtn-pill:hover { background: #122846; color: #ffffff !important; }
.mt-loginbtn-link {
    padding: 4px 0;
    color: var(--mt-primary, #1a365d) !important;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.mt-loginbtn-link:hover { border-bottom-color: var(--mt-accent, #c9a227); }
.mt-loginbtn-apply {
    padding: 8px 14px;
    border-radius: 6px;
    background: transparent;
    color: var(--mt-primary, #1a365d) !important;
    border: 1px solid currentColor;
    font-weight: 600;
    font-size: 14px;
}
.mt-loginbtn-apply:hover { background: var(--mt-primary, #1a365d); color: #ffffff !important; }

/* User chip with CSS-only dropdown */
.mt-userchip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(26,54,93,.06);
    color: var(--mt-primary, #1a365d);
    font-family: Inter, Arial, sans-serif;
    cursor: pointer;
    outline: none;
    transition: background .15s ease;
}
.mt-userchip:hover,
.mt-userchip:focus,
.mt-userchip:focus-within { background: rgba(26,54,93,.12); }
.mt-userchip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--mt-primary, #1a365d);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}
.mt-userchip-label {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-align: left;
}
.mt-userchip-label small {
    color: #6b7280;
    font-size: 11px;
    letter-spacing: .03em;
}
.mt-userchip-label strong {
    color: var(--mt-primary, #1a365d);
    font-size: 14px;
    font-weight: 700;
}
.mt-userchip-caret { color: var(--mt-primary, #1a365d); opacity: .7; transition: transform .15s ease; }
.mt-userchip:hover .mt-userchip-caret,
.mt-userchip:focus .mt-userchip-caret,
.mt-userchip:focus-within .mt-userchip-caret { transform: rotate(180deg); }

.mt-userchip-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s;
    z-index: 99;
}
.mt-userchip:hover .mt-userchip-menu,
.mt-userchip:focus .mt-userchip-menu,
.mt-userchip:focus-within .mt-userchip-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mt-userchip-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: #111827 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.mt-userchip-menu a:hover { background: rgba(26,54,93,.06); color: var(--mt-primary, #1a365d) !important; }
.mt-userchip-signout {
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 1px solid #eef2f7;
    color: #b91c1c !important;
}
.mt-userchip-signout:hover { background: #fee2e2; color: #991b1b !important; }

@media (max-width: 980px) {
    .mt-application-layout {
        grid-template-columns: 1fr;
    }
    .mt-credential-body { grid-template-columns: 1fr; text-align: center; }
    .mt-credential-meta div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .mt-hero {
        padding: 58px 20px 44px;
    }
    .mt-hero h1 {
        font-size: 28px;
    }
    .mt-application-layout {
        padding: 36px 16px 60px;
    }
    .mt-form-card {
        padding: 22px;
    }
    .mt-width-50,
    .mt-width-34,
    .mt-width-33,
    .mt-width-25 {
        grid-column: span 12;
    }
    .mt-portal-registration {
        grid-template-columns: 1fr;
    }
}
