:root {
    --am-burgundy: #4a0e1f;
    --am-burgundy-deep: #2e0612;
    --am-oxblood: #722f37;
    --am-gold: #c9a875;
    --am-gold-bright: #e0be8a;
    --am-gold-soft: #e8d5a8;
    --am-cream: #faf7f2;
    --am-paper: #f4ede0;
    --am-charcoal: #1f1a17;
    --am-mute: #6b5e52;
    --am-amber: #b8860b;
    --am-paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
}

.am-register-form h2,
.am-login-form h2,
.am-profile-edit-form h2,
.am-membership-status h3,
.am-events-list h2 {
    margin-bottom: 20px;
}

.am-register-form p,
.am-login-form p,
.am-profile-edit-form p {
    margin-bottom: 15px;
}

.am-register-form label,
.am-profile-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.am-register-form input[type="text"],
.am-register-form input[type="email"],
.am-register-form input[type="password"],
.am-profile-edit-form input[type="text"],
.am-profile-edit-form input[type="email"],
.am-profile-edit-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.am-register-form button,
.am-login-form button,
.am-profile-edit-form button {
    cursor: pointer;
}

.am-status-active {
    color: green;
}

.am-status-expired {
    color: red;
}

.am-status-pending {
    margin: 0;
    padding: 18px 20px;
    background: rgba(184, 134, 11, 0.08);
    border-left: 4px solid var(--am-amber);
    border-radius: 6px;
    color: var(--am-charcoal);
}

.am-status-pending p {
    margin: 0;
}

.am-status-pending p + p {
    margin-top: 8px;
    color: var(--am-mute);
    font-size: 14px;
}

.am-events-list ul {
    list-style: none;
    padding: 0;
}

.am-event-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.am-event-item h3 {
    margin-top: 0;
}

.am-membership-payment h2 {
    margin-bottom: 20px;
}

.am-error {
    color: red;
    margin-top: 15px;
}

.am-event-registration h2 {
    margin-bottom: 20px;
}

.am-event-item .am-error {
    color: red;
    margin-top: 10px;
}

/* ============================================
   ONBOARDING — multi-step card
   ============================================ */

.am-onboarding {
    max-width: 720px;
    margin: 64px auto;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
    box-shadow:
        0 30px 60px -25px rgba(74, 14, 31, 0.35),
        0 12px 28px -12px rgba(0, 0, 0, 0.15);
}

.am-onboarding-header {
    text-align: center;
    margin-bottom: 36px;
}

.am-onboarding-header h2 {
    margin: 0 0 12px;
}

.am-onboarding-intro {
    margin: 0;
    color: #666;
}

/* Stepper */

.am-onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.am-onboarding-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
    color: #999;
}

.am-onboarding-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 50%;
    left: -50%;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

.am-onboarding-step.is-done:not(:first-child)::before,
.am-onboarding-step.is-current:not(:first-child)::before {
    background: var(--am-burgundy, #4a0e1f);
}

.am-step-marker {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 10px;
}

.am-onboarding-step.is-current .am-step-marker {
    background: var(--am-burgundy, #4a0e1f);
    border-color: var(--am-burgundy, #4a0e1f);
    color: #fff;
}

.am-onboarding-step.is-done .am-step-marker {
    background: var(--am-burgundy, #4a0e1f);
    border-color: var(--am-burgundy, #4a0e1f);
    color: #fff;
}

.am-step-label {
    font-size: 13px;
    line-height: 1.3;
}

.am-onboarding-step.is-current,
.am-onboarding-step.is-done {
    color: #222;
}

.am-onboarding-step.is-current .am-step-label {
    font-weight: 600;
}

/* Body */

.am-onboarding-welcome-text {
    text-align: center;
    font-size: 17px;
    margin: 0 0 24px;
}

.am-cta-text {
    text-align: center;
    margin: 0 0 20px;
}

.am-cta-box {
    margin-top: 8px;
}

/* Suppress nested form card shells inside onboarding */

.am-onboarding .am-register-form,
.am-onboarding .am-membership-payment {
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.am-onboarding .am-register-form .am-form-header,
.am-onboarding .am-membership-payment > h2 {
    display: none;
}

@media (max-width: 560px) {
    .am-onboarding {
        margin: 32px 16px;
    }

    .am-step-label {
        font-size: 11px;
    }

    .am-step-marker {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .am-onboarding-step:not(:first-child)::before {
        top: 14px;
    }
}

/* Error/Success Messages */
.am-error-messages {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.am-error-messages .am-error {
    color: #721c24;
    margin: 0;
    padding: 0;
    background: none;
}

.am-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.am-success {
    color: #155724;
    font-weight: bold;
    margin-bottom: 10px;
}

.am-login-link,
.am-register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.am-login-link a,
.am-register-link a {
    text-decoration: none;
    font-weight: bold;
}

.am-login-link a:hover,
.am-register-link a:hover {
    text-decoration: underline;
}

/* ============================================
   USER DASHBOARD — "Cantina" editorial design
   ============================================ */

.am-user-dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: var(--am-cream);
    color: var(--am-charcoal);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-feature-settings:
        "tnum" 1,
        "cv11" 1;
    line-height: 1.55;
}

/* --- Dashboard header --- */

.am-dashboard-header {
    text-align: center;
    margin-bottom: 56px;
}

.am-dashboard-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--am-oxblood);
    margin: 0 0 12px;
}

.am-user-dashboard h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: var(--am-charcoal);
    margin: 0 auto 18px;
    letter-spacing: -0.5px;
}

.am-user-dashboard h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    background: var(--am-gold);
    margin: 22px auto 0;
}

.am-dashboard-profile-link {
    text-align: center;
    margin: 0;
}

.am-dashboard-profile-link a {
    color: var(--am-mute);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.am-dashboard-profile-link a:hover {
    color: var(--am-burgundy);
    border-bottom-color: var(--am-gold);
}

/* --- Membership Passport (hero) --- */

.am-passport {
    position: relative;
    background: linear-gradient(
        160deg,
        var(--am-burgundy) 0%,
        var(--am-burgundy-deep) 100%
    );
    color: var(--am-cream);
    padding: 44px clamp(24px, 5vw, 56px) 36px;
    margin-bottom: 64px;
    box-shadow:
        0 30px 60px -25px rgba(74, 14, 31, 0.55),
        0 12px 28px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    isolation: isolate;
}

.am-passport::before {
    /* Paper grain overlay */
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--am-paper-grain);
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.am-passport::after {
    /* Gold inner border */
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 168, 117, 0.45);
    pointer-events: none;
    z-index: 0;
}

.am-passport > * {
    position: relative;
    z-index: 1;
}

.am-passport-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(201, 168, 117, 0.25);
}

.am-passport-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--am-gold);
    margin-bottom: 14px;
}

.am-passport-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--am-cream);
    margin: 0;
    letter-spacing: 0.5px;
}

.am-passport-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

/* Dates column */

.am-passport-dates dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.am-passport-date dt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--am-gold);
    margin-bottom: 6px;
}

.am-passport-date dd {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--am-cream);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.am-passport-date--empty dd {
    color: rgba(250, 247, 242, 0.4);
}

/* Wax seal */

.am-wax-seal {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.am-wax-seal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(201, 168, 117, 0.5);
    animation: am-seal-rotate 60s linear infinite;
}

.am-wax-seal-inner {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        var(--am-gold-bright) 0%,
        var(--am-gold) 45%,
        #8a6f3f 100%
    );
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.4),
        inset 0 -4px 10px rgba(0, 0, 0, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--am-burgundy-deep);
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.am-wax-seal-mark {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 -1px 0 rgba(0, 0, 0, 0.25);
}

.am-wax-seal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Slow shine sweep on active */
.am-wax-seal[data-status="membro_attivo"] .am-wax-seal-inner::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    animation: am-seal-shine 4.5s ease-in-out infinite;
    transform: rotate(20deg);
}

/* Status variants */
.am-wax-seal[data-status="non_membro"] .am-wax-seal-inner,
.am-wax-seal[data-status="membro_scaduto"] .am-wax-seal-inner {
    background: radial-gradient(
        circle at 30% 30%,
        #9c6e76 0%,
        #5e2731 50%,
        #3a1820 100%
    );
    color: var(--am-cream);
}

.am-wax-seal[data-status="non_membro"] .am-wax-seal-mark,
.am-wax-seal[data-status="membro_scaduto"] .am-wax-seal-mark,
.am-wax-seal[data-status="non_membro"] .am-wax-seal-label,
.am-wax-seal[data-status="membro_scaduto"] .am-wax-seal-label {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.am-wax-seal[data-status="in_attesa_pagamento"] .am-wax-seal-inner {
    background: radial-gradient(
        circle at 30% 30%,
        #d4a85f 0%,
        var(--am-amber) 45%,
        #6b4f08 100%
    );
    color: var(--am-burgundy-deep);
}

@keyframes am-seal-rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes am-seal-shine {
    0% {
        transform: translateX(-100%) rotate(20deg);
    }
    50% {
        transform: translateX(280%) rotate(20deg);
    }
    100% {
        transform: translateX(280%) rotate(20deg);
    }
}

/* QR column */

.am-passport-qr {
    text-align: center;
}

.am-passport-qr-frame {
    background: var(--am-cream);
    padding: 14px;
    display: inline-block;
    box-shadow:
        0 0 0 1px var(--am-gold) inset,
        0 4px 14px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.am-passport-qr-frame--empty {
    width: 168px;
    height: 168px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 247, 242, 0.06);
    box-shadow: 0 0 0 1px rgba(201, 168, 117, 0.3) inset;
    color: rgba(201, 168, 117, 0.55);
    font-size: 36px;
}

.am-membership-qr-img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0;
}

.am-membership-qr-fallback {
    width: 140px;
    height: 140px;
    background: #ece4d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.am-passport-qr-help {
    margin: 14px 0 0;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--am-gold);
    opacity: 0.85;
}

/* Passport footer */

.am-passport-footer {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(201, 168, 117, 0.25);
    text-align: center;
}

.am-passport-footer:empty {
    display: none;
}

.am-passport-notice,
.am-passport-cta {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(250, 247, 242, 0.85);
}

.am-passport-notice p,
.am-passport-cta p {
    margin: 0 0 10px;
    font-size: 14px;
}

.am-passport-notice strong {
    color: var(--am-gold-bright);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.am-passport-cta p {
    font-style: italic;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    margin-bottom: 18px;
    color: var(--am-cream);
}

.am-declaration-date {
    margin-top: 14px;
    color: rgba(250, 247, 242, 0.6);
    font-size: 12px;
    letter-spacing: 1px;
}

/* --- Section heading (used by ledger + tickets) --- */

.am-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.am-section-head h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: 26px;
    color: var(--am-burgundy);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.am-section-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--am-gold) 50%,
        transparent
    );
}

/* --- Ledger grid (payments + tickets) --- */

.am-ledger-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
}

/* --- Payment ledger --- */

.am-ledger-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.am-ledger-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: baseline;
    gap: 18px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(201, 168, 117, 0.35);
    transition: background 0.2s;
}

.am-ledger-row:first-child {
    border-top: 1px solid rgba(201, 168, 117, 0.35);
}

.am-ledger-row:hover {
    background: rgba(201, 168, 117, 0.08);
}

.am-ledger-date {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--am-mute);
    letter-spacing: 0.5px;
    min-width: 86px;
}

.am-ledger-type {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 19px;
    color: var(--am-burgundy);
    font-weight: 500;
}

.am-ledger-amount {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--am-charcoal);
    text-align: right;
}

/* --- Payment / event status pills --- */

.am-payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: transparent;
    line-height: 1.6;
}

.am-payment-status.am-status-completed,
.am-payment-status.am-status-confirmed {
    color: #2f6b3a;
    background: rgba(47, 107, 58, 0.08);
}

.am-payment-status.am-status-pending {
    color: var(--am-amber);
    background: rgba(184, 134, 11, 0.1);
}

.am-payment-status.am-status-failed {
    color: var(--am-burgundy);
    background: rgba(74, 14, 31, 0.08);
}

/* --- Tickets --- */

.am-tickets-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.am-ticket {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: stretch;
    background: var(--am-paper);
    color: var(--am-charcoal);
    box-shadow:
        0 1px 0 var(--am-gold) inset,
        0 -1px 0 var(--am-gold) inset,
        0 8px 22px -14px rgba(74, 14, 31, 0.35);
    position: relative;
    /* Perforated edge between stub and body */
    background-image:
        radial-gradient(
            circle at 84px 8px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 24px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 40px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 56px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 72px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 88px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 104px,
            transparent 4px,
            var(--am-paper) 4.5px
        ),
        radial-gradient(
            circle at 84px 120px,
            transparent 4px,
            var(--am-paper) 4.5px
        );
}

.am-ticket-stub {
    background: var(--am-burgundy);
    background-image: var(--am-paper-grain);
    background-blend-mode: overlay;
    color: var(--am-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px;
    border-right: 1px dashed rgba(201, 168, 117, 0.5);
}

.am-ticket-day {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    color: var(--am-gold-bright);
    font-variant-numeric: tabular-nums;
}

.am-ticket-month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--am-cream);
    margin-top: 6px;
}

.am-ticket-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.am-ticket-body h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.25;
}

.am-ticket-body h3 a {
    color: var(--am-burgundy);
    text-decoration: none;
    background-image: linear-gradient(var(--am-gold), var(--am-gold));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s;
}

.am-ticket-body h3 a:hover {
    background-size: 100% 1px;
}

.am-ticket-date {
    margin: 0;
    font-size: 13px;
    color: var(--am-mute);
    letter-spacing: 0.5px;
}

.am-ticket-body .am-payment-status {
    align-self: flex-start;
    margin-top: 4px;
}

.am-tickets-cta {
    text-align: center;
    margin: 28px 0 0;
}

/* --- Empty state --- */

.am-empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed rgba(201, 168, 117, 0.5);
}

.am-empty-icon {
    display: block;
    font-size: 32px;
    color: var(--am-gold);
    margin-bottom: 12px;
    opacity: 0.7;
}

.am-no-data {
    color: var(--am-mute);
    font-style: italic;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    margin: 0;
}

/* --- Buttons (within dashboard) --- */

.am-user-dashboard .am-btn,
.am-btn {
    display: inline-block;
    background: var(--am-burgundy);
    color: var(--am-cream);
    padding: 12px 28px;
    border: 1px solid var(--am-burgundy);
    border-radius: 0;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.am-user-dashboard .am-btn:hover,
.am-btn:hover {
    background: var(--am-oxblood);
    border-color: var(--am-oxblood);
    color: var(--am-cream);
}

.am-btn--ghost {
    background: transparent;
    color: var(--am-gold);
    border-color: var(--am-gold);
}

.am-btn--ghost:hover {
    background: var(--am-gold);
    color: var(--am-burgundy-deep);
    border-color: var(--am-gold);
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .am-passport-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .am-passport-dates dl {
        flex-direction: row;
        justify-content: center;
        gap: 48px;
    }

    .am-ledger-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

@media (max-width: 560px) {
    .am-user-dashboard {
        padding: 32px 16px 60px;
    }

    .am-passport {
        padding: 32px 20px 28px;
    }

    .am-passport-dates dl {
        flex-direction: column;
        gap: 18px;
    }

    .am-ledger-row {
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
    }

    .am-ledger-date {
        grid-column: 1;
        grid-row: 1;
    }
    .am-ledger-type {
        grid-column: 1;
        grid-row: 2;
    }
    .am-ledger-amount {
        grid-column: 2;
        grid-row: 1;
    }
    .am-ledger-row .am-payment-status {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .am-ticket {
        grid-template-columns: 72px 1fr;
    }
}

/* --- Print --- */

@media print {
    body * {
        visibility: hidden;
    }
    .am-passport,
    .am-passport * {
        visibility: visible;
    }
    .am-passport {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: var(--am-burgundy) !important;
        box-shadow: none !important;
        border: 1px solid var(--am-gold);
    }
    .am-passport::before {
        display: none;
    }
    .am-passport-name,
    .am-passport-date dd {
        color: var(--am-burgundy) !important;
    }
    .am-passport-eyebrow,
    .am-passport-date dt,
    .am-passport-qr-help {
        color: var(--am-oxblood) !important;
    }
    .am-passport-footer .am-btn {
        display: none;
    }
}

/* Admin Members Page */
.am-admin-wrap table.form-table th {
    width: 250px;
}

.am-admin-wrap .am-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.am-admin-wrap .am-status-badge.am-status-non_membro {
    background-color: #f8f9fa;
    color: #6c757d;
}

.am-admin-wrap .am-status-badge.am-status-membro_attivo {
    background-color: #d4edda;
    color: #155724;
}

.am-admin-wrap .am-status-badge.am-status-membro_scaduto {
    background-color: #fff3cd;
    color: #856404;
}

.am-admin-wrap .am-status-badge.am-status-completed {
    background-color: #d4edda;
    color: #155724;
}

.am-admin-wrap .am-status-badge.am-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.am-admin-wrap .am-status-badge.am-status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   LOGIN & REGISTER — card
   ============================================ */

.am-login-form,
.am-register-form {
    max-width: 460px;
    margin: 64px auto;
    padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 56px);
    box-shadow:
        0 30px 60px -25px rgba(74, 14, 31, 0.35),
        0 12px 28px -12px rgba(0, 0, 0, 0.15);
}

.am-login-form .am-form-header,
.am-register-form .am-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.am-login-form .am-form-header h2,
.am-register-form .am-form-header h2 {
    margin: 0;
}

.am-login-form .am-form-footer,
.am-register-form .am-form-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.am-login-form .am-form-footer p,
.am-register-form .am-form-footer p {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.am-login-form .am-form-footer p:last-child,
.am-register-form .am-form-footer p:last-child {
    margin-bottom: 0;
}

.am-register-form .am-consent-group {
    margin: 18px 0;
    padding: 16px;
    background: var(--am-cream);
    border-radius: 6px;
}

.am-register-form .am-consent-item {
    margin: 0 0 12px;
}

.am-register-form .am-consent-item:last-of-type {
    margin-bottom: 0;
}

.am-register-form .am-consent-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: normal;
    line-height: 1.4;
    cursor: pointer;
}

.am-register-form .am-consent-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--am-burgundy);
}

.am-register-form .am-consent-item a {
    color: var(--am-burgundy);
    text-decoration: underline;
}

.am-register-form .am-required {
    color: var(--am-burgundy);
    font-weight: bold;
}

.am-register-form .am-consent-note {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: var(--am-mute);
}

@media (max-width: 560px) {
    .am-login-form,
    .am-register-form {
        margin: 32px 16px;
    }
}

/* Profile Edit */
.am-profile-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.am-profile-section h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.am-section-note {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Flash notices */
.am-notice {
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
    font-size: 15px;
    line-height: 1.5;
}

.am-notice-success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.am-notice-warning {
    background: #fff8e1;
    border-color: #f9a825;
    color: #6b4f00;
}

.am-notice-info {
    background: #eceff1;
    border-color: #607d8b;
    color: #37474f;
}

.am-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--am-mute);
}

.am-password-strength {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--am-mute);
}

.am-password-strength-bars {
    display: inline-flex;
    flex: 1 1 auto;
    gap: 3px;
    height: 6px;
    max-width: 240px;
}

.am-password-strength-bars span {
    flex: 1 1 0;
    background: rgba(31, 26, 23, 0.12);
    border-radius: 2px;
    transition: background-color 150ms ease;
}

.am-password-strength[data-strength="1"] .am-password-strength-bars span:nth-child(-n+1),
.am-password-strength[data-strength="2"] .am-password-strength-bars span:nth-child(-n+2),
.am-password-strength[data-strength="3"] .am-password-strength-bars span:nth-child(-n+3),
.am-password-strength[data-strength="4"] .am-password-strength-bars span:nth-child(-n+4) {
    background: currentColor;
}

.am-password-strength[data-strength="1"] { color: #dc3232; }
.am-password-strength[data-strength="2"] { color: #f56e28; }
.am-password-strength[data-strength="3"] { color: #b8860b; }
.am-password-strength[data-strength="4"] { color: #46b450; }

.am-password-strength-label {
    font-weight: 500;
    min-width: 5em;
}
