/* ════════════════════════════════════════════════════════════════════════════
   AUTH & DONATION STYLES — Museo delle Voci Sintetiche
   A refined, museum-quality authentication and patronage experience
   ════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   CSS VARIABLES (Museo Design System)
   ═══════════════════════════════════════════ */
:root {
    --museo-bg: #0a0a0a;
    --museo-bg-elevated: #0d0d0d;
    --museo-bg-card: #111111;
    --museo-gold: #c9a227;
    --museo-gold-light: #d4af37;
    --museo-gold-pale: #e8d48a;
    --museo-gold-glow: rgba(201, 162, 39, 0.15);
    --museo-gold-dim: rgba(201, 162, 39, 0.4);
    --museo-white: #f5f5f5;
    --museo-white-muted: rgba(245, 245, 245, 0.7);
    --museo-white-dim: rgba(245, 245, 245, 0.4);
    --museo-border: rgba(201, 162, 39, 0.2);
    --museo-border-hover: rgba(201, 162, 39, 0.5);
    --museo-error: #c94a4a;
    --museo-success: #4ac970;
    --museo-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --museo-font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Accent color for account button — can be overridden per-page */
    --auth-accent: var(--museo-gold);
    --auth-accent-light: var(--museo-gold-light);
    --auth-accent-glow: var(--museo-gold-glow);
    --auth-accent-dim: var(--museo-gold-dim);
    --auth-border: var(--museo-border);
    --auth-border-hover: var(--museo-border-hover);
}

/* ═══════════════════════════════════════════
   ACCOUNT BUTTON — Header Integration
   ═══════════════════════════════════════════ */
.museo-header__controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.museo-header__account-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--auth-border);
    color: var(--museo-white-muted);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.museo-header__account-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--auth-accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.museo-header__account-btn:hover {
    border-color: var(--auth-accent-dim);
    color: var(--auth-accent-light);
}

.museo-header__account-btn:hover::before {
    opacity: 1;
}

.museo-header__account-btn svg {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.museo-header__account-btn:hover svg {
    transform: scale(1.1);
}

.museo-header__account-status {
    position: relative;
    font-size: 0.65rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logged-in state with accent color */
.museo-header__account-btn.logged-in {
    border-color: var(--auth-accent);
    color: var(--auth-accent);
}

.museo-header__account-btn.logged-in::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: var(--auth-accent);
    border-radius: 50%;
    animation: pulseAccent 2s ease-in-out infinite;
}

@keyframes pulseAccent {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ═══════════════════════════════════════════
   AUTH MODAL — Refined Overlay
   ═══════════════════════════════════════════ */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.auth-modal.visible {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
}

/* Modal Content Container */
.auth-modal__content {
    position: relative;
    background: var(--museo-bg-elevated);
    max-width: 440px;
    width: 92%;
    padding: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal.visible .auth-modal__content {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

/* Ornate Border Frame */
.auth-modal__content::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg,
        var(--museo-gold) 0%,
        var(--museo-gold-dim) 25%,
        var(--museo-border) 50%,
        var(--museo-gold-dim) 75%,
        var(--museo-gold) 100%);
    z-index: -1;
}

.auth-modal__content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--museo-bg-elevated);
    z-index: -1;
}

/* Corner Ornaments */
.auth-modal__corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--museo-gold);
    border-style: solid;
    z-index: 10;
}

.auth-modal__corner--tl {
    top: 8px;
    left: 8px;
    border-width: 1px 0 0 1px;
}

.auth-modal__corner--tr {
    top: 8px;
    right: 8px;
    border-width: 1px 1px 0 0;
}

.auth-modal__corner--bl {
    bottom: 8px;
    left: 8px;
    border-width: 0 0 1px 1px;
}

.auth-modal__corner--br {
    bottom: 8px;
    right: 8px;
    border-width: 0 1px 1px 0;
}

/* Close Button */
.auth-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--museo-border);
    color: var(--museo-white-dim);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.auth-modal__close:hover {
    border-color: var(--museo-gold);
    color: var(--museo-gold);
    transform: rotate(90deg);
}

/* Modal Inner Padding */
.auth-modal__inner {
    padding: 3rem 2.5rem 2.5rem;
}

/* Header Section */
.auth-modal__header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal__emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--museo-gold-dim);
    transform: rotate(45deg);
}

.auth-modal__emblem-inner {
    transform: rotate(-45deg);
    font-family: var(--museo-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--museo-gold);
    letter-spacing: 0.05em;
}

.auth-modal__title {
    font-family: var(--museo-font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--museo-white);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.auth-modal__subtitle {
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--museo-white-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Tabs Navigation */
.auth-modal__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--museo-border);
}

.auth-modal__tab {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--museo-white-dim);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.auth-modal__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--museo-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-modal__tab:hover {
    color: var(--museo-white-muted);
}

.auth-modal__tab.active {
    color: var(--museo-gold);
}

.auth-modal__tab.active::after {
    transform: scaleX(1);
}

/* Message Boxes */
.auth-modal__message {
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-modal__message.visible {
    display: flex;
}

.auth-modal__error {
    background: rgba(201, 74, 74, 0.1);
    border: 1px solid rgba(201, 74, 74, 0.3);
    color: var(--museo-error);
}

.auth-modal__success {
    background: rgba(74, 201, 112, 0.1);
    border: 1px solid rgba(74, 201, 112, 0.3);
    color: var(--museo-success);
}

/* Forms */
.auth-modal__form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal__form.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Input Fields */
.auth-modal__field {
    position: relative;
}

.auth-modal__input {
    width: 100%;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--museo-border);
    color: var(--museo-white);
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.auth-modal__input::placeholder {
    color: var(--museo-white-dim);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.auth-modal__input:focus {
    outline: none;
    border-color: var(--museo-gold);
    background: rgba(201, 162, 39, 0.03);
    box-shadow: 0 0 0 3px var(--museo-gold-glow);
}

/* Privacy Consent Checkbox */
.auth-modal__privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0;
}

.auth-modal__privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: var(--museo-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-modal__privacy-label {
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    color: var(--museo-white-muted);
    line-height: 1.5;
    cursor: pointer;
}

.auth-modal__privacy-label a {
    color: var(--museo-gold);
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.auth-modal__privacy-label a:hover {
    border-bottom-color: var(--museo-gold) !important;
}

/* Submit Button */
.auth-modal__submit {
    position: relative;
    margin-top: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.auth-modal__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--museo-gold);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal__submit span {
    position: relative;
    z-index: 1;
}

.auth-modal__submit:hover {
    color: var(--museo-bg);
}

.auth-modal__submit:hover::before {
    transform: translateX(0);
}

/* Forgot Password Link */
.auth-modal__forgot-link {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--museo-white-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-modal__forgot-link:hover {
    color: var(--museo-gold);
}

/* Logged In State */
.auth-modal__logged-in {
    text-align: center;
    padding: 1rem 0;
}

.auth-modal__user-info {
    margin-bottom: 2rem;
}

.auth-modal__user-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border: 1px solid var(--museo-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--museo-font-display);
    font-size: 1.5rem;
    color: var(--museo-gold);
    background: var(--museo-gold-glow);
}

.auth-modal__user-name {
    font-family: var(--museo-font-display);
    font-size: 1.25rem;
    color: var(--museo-white);
    margin-bottom: 0.25rem;
}

.auth-modal__user-email {
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    color: var(--museo-white-dim);
}

.auth-modal__user-role {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--museo-gold-glow);
    border: 1px solid var(--museo-gold-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--museo-gold);
}

.auth-modal__logout {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--museo-border);
    color: var(--museo-white-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__logout:hover {
    border-color: var(--museo-error);
    color: var(--museo-error);
}

/* Admin Panel Button (only for admin users) */
.auth-modal__admin-btn {
    display: block;
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--museo-gold-glow);
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__admin-btn:hover {
    background: var(--museo-gold);
    color: var(--museo-bg);
}

.auth-modal__admin-btn span {
    position: relative;
}

/* ═══════════════════════════════════════════
   DONATION SECTION — Patronage System
   ═══════════════════════════════════════════ */
.auth-modal__donations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--museo-border);
}

.auth-modal__donations-title {
    font-family: var(--museo-font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--museo-white);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.auth-modal__donations-subtitle {
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    color: var(--museo-white-dim);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Donation Tiers */
.auth-modal__tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-modal__tier {
    position: relative;
    padding: 1.25rem 0.75rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__tier:hover {
    border-color: var(--museo-gold-dim);
    background: rgba(201, 162, 39, 0.03);
}

.auth-modal__tier.selected {
    border-color: var(--museo-gold);
    background: var(--museo-gold-glow);
}

.auth-modal__tier-amount {
    font-family: var(--museo-font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--museo-gold);
    margin-bottom: 0.25rem;
}

.auth-modal__tier-label {
    font-family: var(--museo-font-ui);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--museo-white-dim);
}

/* Custom Amount */
.auth-modal__custom-amount {
    margin-bottom: 1rem;
}

.auth-modal__custom-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
    color: var(--museo-white);
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.auth-modal__custom-input::placeholder {
    color: var(--museo-white-dim);
}

.auth-modal__custom-input:focus {
    outline: none;
    border-color: var(--museo-gold);
}

/* Donate Button */
.auth-modal__donate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--museo-gold);
    border: none;
    color: var(--museo-bg);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__donate-btn:hover {
    background: var(--museo-gold-light);
    box-shadow: 0 4px 20px var(--museo-gold-glow);
}

.auth-modal__donate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Donation Message */
.auth-modal__donation-note {
    margin-top: 1rem;
}

.auth-modal__donation-textarea {
    width: 100%;
    height: 80px;
    padding: 0.9rem 1rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
    color: var(--museo-white);
    font-family: var(--museo-font-ui);
    font-size: 0.85rem;
    resize: none;
    transition: border-color 0.3s ease;
}

.auth-modal__donation-textarea::placeholder {
    color: var(--museo-white-dim);
}

.auth-modal__donation-textarea:focus {
    outline: none;
    border-color: var(--museo-gold);
}

/* Divider */
.auth-modal__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--museo-white-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--museo-border);
}

/* ═══════════════════════════════════════════
   PROTECTED CONTENT OVERLAY
   ═══════════════════════════════════════════ */
.protected-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
}

.protected-overlay.visible {
    display: flex;
}

.protected-overlay__content {
    text-align: center;
    max-width: 400px;
    padding: 3rem 2rem;
}

.protected-overlay__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--museo-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.protected-overlay__icon svg {
    width: 24px;
    height: 24px;
    color: var(--museo-gold);
}

.protected-overlay__title {
    font-family: var(--museo-font-display);
    font-size: 1.5rem;
    color: var(--museo-white);
    margin-bottom: 0.75rem;
}

.protected-overlay__text {
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    color: var(--museo-white-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.protected-overlay__btn {
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.protected-overlay__btn:hover {
    background: var(--museo-gold);
    color: var(--museo-bg);
}

/* ═══════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .auth-modal__content {
        width: 96%;
    }

    .auth-modal__inner {
        padding: 2.5rem 1.5rem 2rem;
    }

    .auth-modal__tiers {
        grid-template-columns: 1fr;
    }

    .auth-modal__tier {
        padding: 1rem;
    }

    .auth-modal__tier-amount {
        font-size: 1.2rem;
    }

    .museo-header__account-status {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════ */
.auth-modal__loading {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.auth-modal__loading.visible {
    display: flex;
}

.auth-modal__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--museo-border);
    border-top-color: var(--museo-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   LIKE BUTTON — Heart Toggle
   ═══════════════════════════════════════════ */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--museo-border);
    color: var(--museo-white-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    border-color: var(--museo-gold-dim);
    color: var(--museo-white);
}

.like-btn__icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.like-btn:hover .like-btn__icon {
    transform: scale(1.15);
}

.like-btn.liked {
    border-color: var(--museo-gold);
    color: var(--museo-gold);
    background: var(--museo-gold-glow);
}

.like-btn.liked .like-btn__icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-btn__count {
    font-weight: 600;
    min-width: 1.5em;
    text-align: center;
}

/* Mini Like Button (for archive items) */
.like-btn--mini {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
    gap: 0.3rem;
}

.like-btn--mini .like-btn__icon {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   COMMENTS SECTION — Discussion Area
   ═══════════════════════════════════════════ */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--museo-border);
}

.comments-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comments-section__title {
    font-family: var(--museo-font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--museo-white);
    letter-spacing: 0.05em;
}

.comments-section__count {
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    color: var(--museo-white-dim);
    padding: 0.3rem 0.8rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
}

/* Comment Form */
.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
}

.comment-form__textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: var(--museo-bg);
    border: 1px solid var(--museo-border);
    color: var(--museo-white);
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form__textarea::placeholder {
    color: var(--museo-white-dim);
}

.comment-form__textarea:focus {
    outline: none;
    border-color: var(--museo-gold);
}

.comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.comment-form__hint {
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    color: var(--museo-white-dim);
}

.comment-form__submit {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form__submit:hover {
    background: var(--museo-gold);
    color: var(--museo-bg);
}

.comment-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login Prompt for Comments */
.comment-form__login-prompt {
    text-align: center;
    padding: 2rem 1rem;
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    color: var(--museo-white-dim);
}

.comment-form__login-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form__login-btn:hover {
    background: var(--museo-gold);
    color: var(--museo-bg);
}

/* Comment List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comments-list--empty {
    text-align: center;
    padding: 2rem;
    font-family: var(--museo-font-ui);
    font-size: 0.85rem;
    color: var(--museo-white-dim);
    font-style: italic;
}

/* Single Comment */
.comment {
    padding: 1.25rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
    transition: border-color 0.3s ease;
}

.comment:hover {
    border-color: var(--museo-gold-dim);
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment__avatar {
    width: 32px;
    height: 32px;
    background: var(--museo-gold-glow);
    border: 1px solid var(--museo-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--museo-font-display);
    font-size: 0.85rem;
    color: var(--museo-gold);
}

.comment__meta {
    flex: 1;
}

.comment__author {
    font-family: var(--museo-font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--museo-white);
}

.comment__date {
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    color: var(--museo-white-dim);
}

.comment__content {
    font-family: var(--museo-font-ui);
    font-size: 0.9rem;
    color: var(--museo-white-muted);
    line-height: 1.7;
}

/* Pending Comment */
.comment--pending {
    border-style: dashed;
    opacity: 0.7;
}

.comment--pending::before {
    content: 'In attesa di approvazione';
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--museo-font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--museo-gold);
    padding: 0.25rem 0.5rem;
    background: var(--museo-gold-glow);
    width: fit-content;
}

/* ═══════════════════════════════════════════
   ENGAGEMENT BAR — Likes + Comments Summary
   ═══════════════════════════════════════════ */
.engagement-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--museo-border);
    border-bottom: 1px solid var(--museo-border);
    margin: 2rem 0;
}

.engagement-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    color: var(--museo-white-dim);
}

.engagement-bar__icon {
    font-size: 1rem;
}

.engagement-bar__value {
    font-weight: 600;
    color: var(--museo-white);
}

/* ═══════════════════════════════════════════
   MAGIC LINK — Passwordless Login
   ═══════════════════════════════════════════ */
.auth-modal__magic-toggle {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: var(--museo-bg-card);
    border: 1px solid var(--museo-border);
    color: var(--museo-white-muted);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__magic-toggle:hover {
    border-color: var(--museo-gold-dim);
    color: var(--museo-gold);
    background: var(--museo-gold-glow);
}

.auth-modal__magic-info {
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    color: var(--museo-white-dim);
    text-align: center;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* ═══════════════════════════════════════════
   EDIT PROFILE — Profile Management
   ═══════════════════════════════════════════ */
.auth-modal__edit-profile-btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--museo-border);
    color: var(--museo-white-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal__edit-profile-btn:hover {
    border-color: var(--museo-gold-dim);
    color: var(--museo-gold);
}

.auth-modal__profile-title {
    font-family: var(--museo-font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--museo-white);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.auth-modal__edit-note {
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    color: var(--museo-white-dim);
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    padding: 0.5rem;
    background: rgba(201, 162, 39, 0.05);
    border-left: 2px solid var(--museo-gold-dim);
}

/* ═══════════════════════════════════════════
   REGISTRATION SUCCESS — Elegant Confirmation
   ═══════════════════════════════════════════ */
.auth-modal__registration-success {
    text-align: center;
    padding: 1rem 0;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-success__ornament {
    font-size: 2rem;
    color: var(--museo-gold);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.registration-success__title {
    font-family: var(--museo-font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--museo-gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.registration-success__subtitle {
    font-family: var(--museo-font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--museo-white-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.registration-success__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--museo-gold), transparent);
    margin: 0 auto 1.5rem;
}

.registration-success__message {
    font-family: var(--museo-font-ui);
    font-size: 0.95rem;
    color: var(--museo-white);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.registration-success__note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid var(--museo-gold-dim);
    font-family: var(--museo-font-ui);
    font-size: 0.8rem;
    color: var(--museo-white-muted);
    margin-bottom: 2rem;
}

.registration-success__icon {
    font-size: 1.1rem;
    color: var(--museo-gold);
}

.registration-success__btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--museo-gold);
    color: var(--museo-gold);
    font-family: var(--museo-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-success__btn:hover {
    background: var(--museo-gold);
    color: var(--museo-bg);
}

