/* Convivly — Quantum Solutions */
@import url('design-tokens.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    color: var(--brand-navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--gray-600);
}

/* Auth Pages (Login/Register) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-teal) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.conversion-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--auth-panel-gradient);
    border: 1px solid var(--gray-200);
}

.conversion-card h3 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.conversion-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.conversion-kicker {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.conversion-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
    color: var(--gray-700);
}

.conversion-actions {
    text-align: center;
}

.celebration-card {
    background: linear-gradient(135deg, var(--surface-teal-tint) 0%, var(--surface-brand-tint) 100%);
}

/* RSVP invite flow */
.rsvp-panel {
    padding: 1.25rem 0.5rem;
}

.rsvp-panel__emoji {
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
}

.rsvp-panel h3 {
    margin: 0 0 0.5rem;
    color: var(--gray-800);
    font-size: 1.05rem;
    line-height: 1.4;
}

.rsvp-panel__hint {
    color: var(--gray-600);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
}

.rsvp-panel__back {
    margin-top: 0.65rem;
}

.rsvp-accept-step h3 {
    font-size: 1.2rem;
}

.rsvp-success-step h3 {
    margin-bottom: 0.5rem;
}

.rsvp-soft-promo {
    margin-top: 1.25rem;
    text-align: left;
}

.rsvp-soft-promo__divider {
    color: var(--gray-400);
    font-size: 0.75rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    overflow: hidden;
    white-space: nowrap;
}

.rsvp-soft-promo__kicker {
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.35rem;
}

.rsvp-premium-glass {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.08);
}

.rsvp-journey-tagline {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
    margin: 0 0 1rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(13, 27, 42, 0.06);
}

.rsvp-success-step__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #0d1b2a;
}

.rsvp-success-step__lead {
    font-weight: 700;
    color: #22c55e;
    margin: 0 0 0.75rem;
}

.rsvp-register-benefits {
    margin-bottom: 1.25rem;
}

.rsvp-register-benefits__card {
    padding: 1.25rem 1.15rem;
    border-radius: 16px;
}

.rsvp-register-benefits__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.45;
    color: #0d1b2a;
}

.rsvp-register-benefits__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    color: var(--gray-700);
    font-size: 0.92rem;
}

.rsvp-register-benefits__footer {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.rsvp-register-benefits__footer strong {
    color: #06b6d4;
}

.discover-organigo {
    display: grid;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.discover-hero {
    text-align: center;
    padding: 2rem 1.5rem;
}

.discover-hero__kicker {
    display: inline-block;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.65rem;
}

.discover-hero__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.25;
    color: #0d1b2a;
}

.discover-hero__lead {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: var(--gray-600);
    line-height: 1.55;
}

.discover-features {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.discover-feature {
    padding: 1.15rem;
}

.discover-feature__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.discover-feature h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #0d1b2a;
}

.discover-feature p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.discover-cta {
    padding: 1.5rem;
}

.discover-cta__tagline {
    font-weight: 700;
    color: #06b6d4;
    margin: 0 0 1rem;
}

.discover-cta__note {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .auth-container:has(.rsvp-register-benefits:not(.hidden)) .auth-card {
        max-width: 520px;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-hint {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.form-input:read-only {
    background: var(--gray-100);
    cursor: not-allowed;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:focus-visible,
.form-input:focus-visible,
.filter-btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.35);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--gradient-brand-hover);
    filter: saturate(1.05);
}

.btn-secondary {
    background: var(--brand-navy);
    color: var(--white);
}

.btn-secondary:hover {
    background: #152536;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #16a34a;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Alerts/Messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: var(--alert-error-bg);
    color: var(--danger);
    border: 1px solid var(--alert-error-border);
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--badge-confirmed-text);
    border: 1px solid var(--alert-success-border);
}

.alert-warning {
    background: var(--alert-warning-bg);
    color: #B45309;
    border: 1px solid var(--alert-warning-border);
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--brand-green-dark);
    border: 1px solid var(--alert-info-border);
}

.hidden {
    display: none !important;
}

/* Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.event-type {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Type Colors */
.type-conference {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-teal) 100%);
}

.type-reunion {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-green) 100%);
}

.type-fete {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.type-atelier {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #334155 100%);
}

.type-sport {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.type-autre {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.event-meta {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-meta strong {
    color: var(--gray-700);
}

.event-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-600);
}

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.dashboard-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.credits-card {
    margin-bottom: 1.5rem;
}

.credits-summary-layout {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
}

.credits-summary-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.credits-summary-metrics div {
    min-width: 90px;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

.credits-summary-metrics strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gray-800);
}

.credits-summary-metrics span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.offer-value-message,
.plan-progress-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.plan-progress {
    height: 10px;
    min-width: 140px;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 999px;
}

.plan-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 999px;
    transition: width 0.2s ease;
}

.plan-progress-large {
    height: 14px;
    width: 100%;
    margin-top: 1rem;
}

.offer-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.offer-hero h2 {
    margin: 0.5rem 0;
}

.offer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.offer-stat-card {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
}

.offer-stat-card strong {
    display: block;
    color: var(--gray-800);
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.offer-stat-card span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.activity-card {
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, var(--white), rgba(34, 197, 94, 0.03));
}

.activity-grid,
.badge-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.activity-stat-card,
.achievement-card,
.pricing-card {
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.activity-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-stat-card strong {
    color: var(--gray-800);
    font-size: 1.35rem;
}

.activity-stat-card span:last-child {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.motivation-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.motivation-pill,
.achievement-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    background: var(--surface-brand-tint);
    color: #3730a3;
    font-size: 0.9rem;
    font-weight: 500;
}

.achievement-chip.muted {
    background: var(--gray-100);
    color: var(--gray-600);
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.mini-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.premium-hero,
.pricing-hero {
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(16, 185, 129, 0.10));
}

.premium-hero h1,
.pricing-hero h1 {
    margin: 0.75rem 0;
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 3rem);
}

.premium-hero p,
.pricing-hero p {
    max-width: 760px;
    color: var(--gray-700);
    line-height: 1.7;
}

.achievement-card {
    position: relative;
}

.achievement-card.unlocked {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--white));
    animation: badgeUnlock 520ms ease-out both;
}

.achievement-medal {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.achievement-card h3,
.pricing-card h2 {
    margin-bottom: 0.5rem;
}

.achievement-card p,
.pricing-card li {
    color: var(--gray-600);
    line-height: 1.5;
}

.achievement-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-500);
}

@keyframes badgeUnlock {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 16px 32px rgba(16, 185, 129, 0.16);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.timeline-item p {
    color: var(--gray-600);
    margin: 0.25rem 0;
}

.timeline-item small {
    color: var(--gray-500);
}

.pricing-hero {
    text-align: center;
}

.pricing-hero p {
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card.highlighted {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
}

.pricing-card ul {
    padding-left: 1.25rem;
    flex: 1;
}

.landing-hero,
.landing-section,
.landing-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 2rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: center;
    min-height: 720px;
}

.landing-copy h1 {
    color: var(--gray-900);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1;
    margin: 1rem 0;
}

.landing-copy p,
.section-heading p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions,
.center-actions,
.trust-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.trust-row span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.dashboard-preview {
    padding: 1.5rem;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.preview-topbar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}

.preview-card.primary {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.preview-grid,
.steps-grid,
.feature-grid,
.testimonial-grid,
.faq-grid,
.landing-offers,
.cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.preview-grid {
    margin: 1rem 0;
}

.preview-grid div,
.step-card,
.feature-card,
.cockpit-card {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.preview-grid strong {
    display: block;
    color: var(--gray-900);
    font-size: 1.5rem;
}

.preview-grid span,
.step-card p,
.feature-card p,
.cockpit-card p {
    color: var(--gray-600);
}

.preview-progress,
.onboarding-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-200);
}

.preview-progress span,
#onboardingProgressBar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-heading h2 {
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0.75rem 0;
}

.step-card strong {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--badge-pending-bg);
    color: var(--primary-dark);
}

.feature-card span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.landing-offers div,
.testimonial-grid blockquote,
.faq-grid details {
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.landing-offers strong,
.landing-offers span,
.testimonial-grid span {
    display: block;
}

.landing-offers span,
.testimonial-grid blockquote,
.faq-grid p {
    color: var(--gray-600);
}

.landing-footer {
    padding-top: 2rem;
    padding-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--gray-600);
}

.landing-footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-footer a {
    color: var(--gray-600);
    text-decoration: none;
}

.notification-wrapper {
    position: relative;
}

.notification-count {
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
}

.notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 120;
    width: min(320px, 90vw);
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.notification-item {
    padding: 0.75rem 0;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.install-banner,
.onboarding-card {
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.08));
}

.install-banner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.onboarding-step {
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
}

.onboarding-step.done {
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--secondary);
}

.profile-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
}

.event-cover-banner {
    min-height: 180px;
    display: flex;
    align-items: end;
    padding: 1.5rem;
    margin: -2rem -2rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.event-cover-banner strong,
.event-cover-banner span {
    display: block;
}

.event-cover-banner strong {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.event-summary-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.event-summary-row span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.credits-pack-box {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.credit-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credit-history-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.credit-history-row p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.credit-history-row small {
    color: var(--gray-500);
}

.filter-btn {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-primary {
    background: linear-gradient(135deg, var(--surface-brand-tint) 0%, var(--surface-teal-tint) 100%);
    border: 1px solid var(--alert-info-border);
}

.stat-primary .stat-value {
    color: var(--primary);
}

.stat-success {
    background: linear-gradient(135deg, var(--alert-success-bg) 0%, #BBF7D0 100%);
    border: 1px solid var(--alert-success-border);
}

.stat-success .stat-value {
    color: var(--success);
}

.stat-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

.stat-danger .stat-value {
    color: var(--danger);
}

.stat-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.stat-warning .stat-value {
    color: var(--warning);
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.action-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.event-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-actions {
    max-width: 520px;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* Clickable Event Cards */
.event-card-link {
    display: block;
    text-decoration: none;
}

.event-card-clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.event-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fecaca;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Participants List */
.participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: background 0.2s;
}

.participant-row:hover {
    background: var(--gray-100);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.participant-name {
    font-weight: 600;
    color: var(--gray-800);
}

.participant-email {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.participant-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Event Card Footer */
.event-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

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

.invitation-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.invitation-card:hover {
    box-shadow: var(--shadow);
}

.invitation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.invitation-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.invitation-actions {
    display: flex;
    gap: 0.75rem;
}

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

.participation-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.participation-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.participation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.participation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.participation-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.participation-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* Button Success/Danger variants */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Badge Primary */
.badge-primary {
    background: var(--badge-confirmed-bg);
    color: var(--badge-confirmed-text);
}

/* Responsive */
@media (max-width: 640px) {
    .nav {
        padding: 1rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-links {
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .user-info {
        width: 100%;
    }

    .main {
        padding: 5rem 1rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

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

    .credits-summary-layout,
    .offer-hero,
    .activity-footer,
    .credits-pack-box {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .credits-summary-metrics {
        width: 100%;
    }

    .credits-summary-metrics div {
        flex: 1;
    }

    .participant-row,
    .invitation-header,
    .participation-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .participant-meta,
    .invitation-actions,
    .action-row {
        justify-content: flex-start;
        width: 100%;
    }
}

/* ==================== Brand Identity Sprint V1 ==================== */
.brand-proof-strip {
    max-width: 1180px;
    margin: -3rem auto 4rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.brand-proof-strip div,
.mini-screen,
.demo-video-placeholder,
.legal-hero {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.brand-proof-strip div {
    padding: 1.25rem;
    text-align: center;
}

.brand-proof-strip strong {
    display: block;
    font-size: 1.6rem;
    color: var(--text-strong);
    letter-spacing: -0.05em;
}

.brand-proof-strip span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-demo-shell {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.demo-video-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 35% 25%, rgba(34, 197, 94, 0.2), transparent 28%),
        radial-gradient(circle at 70% 65%, rgba(16, 185, 129, 0.2), transparent 30%),
        var(--surface);
}

.play-button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-premium);
    margin-bottom: 1rem;
}

.demo-video-placeholder strong {
    font-size: 1.45rem;
    color: var(--text-strong);
}

.demo-video-placeholder span {
    color: var(--text-muted);
}

.demo-screens {
    display: grid;
    gap: 1rem;
}

.mini-screen {
    padding: 1.5rem;
    min-height: 112px;
    position: relative;
    overflow: hidden;
}

.mini-screen span {
    position: absolute;
    inset: auto 1rem 1rem auto;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 68%);
}

.mini-screen strong {
    display: block;
    color: var(--text-strong);
    margin-bottom: 0.35rem;
}

.mini-screen p {
    color: var(--text-muted);
}

.empty-state {
    border: 1px dashed rgba(34, 197, 94, 0.28);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.07), rgba(16, 185, 129, 0.08));
}

.empty-state h3::before {
    content: "🎉 ";
}

.legal-page {
    max-width: 1120px;
}

.legal-hero {
    padding: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 32%),
        var(--surface);
}

.legal-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    letter-spacing: -0.06em;
    color: var(--text-strong);
}

.legal-hero p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: var(--text-muted);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.brand-illustration {
    min-height: 180px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.2), transparent 26%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.85), rgba(240,253,244,0.7));
}

.confetti-piece {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 14px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 900ms ease-in forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(540deg);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .brand-proof-strip,
    .product-demo-shell,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .brand-proof-strip {
        margin: 0 1rem 2rem;
    }
}

/* ==================== Responsive Premium V1 ==================== */
:root {
    --touch-target: 48px;
    --page-gutter: clamp(1rem, 3vw, 2.5rem);
    --content-max: 1320px;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

img {
    object-fit: cover;
}

input,
select,
textarea,
button {
    font: inherit;
}

body {
    font-size: clamp(14px, 0.92vw, 18px);
}

h1 {
    font-size: clamp(2rem, 4vw, 4.75rem);
}

h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.btn,
button,
input[type="button"],
input[type="submit"] {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}

.main,
.landing-section,
.pricing-hero,
.legal-page {
    width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
}

.landing-section,
.pricing-hero {
    margin-inline: auto;
}

.stats-grid,
.events-grid,
.pricing-grid,
.feature-grid,
.steps-grid,
.offer-stats-grid,
.activity-grid,
.cockpit-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.pricing-grid {
    align-items: stretch;
}

.pricing-card,
.event-card,
.stat-card,
.feature-card,
.step-card {
    height: 100%;
}

.two-columns {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.participants-list,
.invitations-list,
.participations-list {
    display: grid;
    gap: 0.75rem;
}

.participant-row,
.invitation-header,
.participation-header {
    min-width: 0;
}

.participant-info,
.participant-meta,
.event-meta,
.participant-email,
.participant-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.action-row,
.invitation-actions,
.event-actions,
.hero-actions,
.center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-row > *,
.invitation-actions > *,
.event-actions > * {
    flex: 0 1 auto;
}

.auth-container {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.auth-card {
    width: min(100%, 520px);
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.profile-avatar {
    width: clamp(72px, 12vw, 120px);
    height: clamp(72px, 12vw, 120px);
}

/* Mobile: < 576px */
@media (max-width: 575.98px) {
    :root {
        --page-gutter: 1rem;
    }

    body {
        -webkit-text-size-adjust: 100%;
    }

    .main {
        width: 100%;
        padding: 1rem 1rem calc(6rem + env(safe-area-inset-bottom));
    }

    body.app-shell .main {
        padding-top: 1rem;
    }

    .header {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid var(--border-soft);
        border-bottom: none;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav {
        min-height: 64px;
        padding: 0.55rem 0.75rem;
        align-items: center;
    }

    .logo,
    .user-info {
        display: none;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(74px, 1fr);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        gap: 0.45rem;
        padding: 0;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a,
    .nav-links button,
    .nav-links .btn {
        width: 100%;
        min-height: 54px;
        padding: 0.4rem 0.45rem;
        border-radius: 18px;
        font-size: 0.72rem;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
        flex-direction: column;
        gap: 0.1rem;
    }

    .nav-links a[href="/create_event.html"],
    .nav-links a[href="/create_event.html"].btn {
        background: var(--gradient-brand);
        color: #fff;
        box-shadow: 0 12px 26px rgba(34, 197, 94, 0.26);
    }

    .theme-toggle {
        min-width: 54px;
    }

    .landing-hero {
        min-height: auto;
        padding: 2rem 1rem 3rem;
        gap: 1.5rem;
    }

    .landing-copy h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .hero-actions .btn,
    .center-actions .btn,
    .auth-card .btn,
    .conversion-actions .btn {
        width: 100%;
    }

    .trust-row,
    .credits-summary-metrics,
    .preview-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .brand-proof-strip {
        grid-template-columns: 1fr;
        margin: 0 1rem 2rem;
    }

    .product-demo-shell,
    .landing-hero,
    .two-columns,
    .profile-hero,
    .credits-summary-layout,
    .offer-hero,
    .activity-footer,
    .credits-pack-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .dashboard-preview {
        transform: none;
        border-radius: 24px;
    }

    .demo-video-placeholder {
        min-height: 240px;
    }

    .card,
    .event-card,
    .pricing-card,
    .auth-card,
    .conversion-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .stats-grid,
    .events-grid,
    .pricing-grid,
    .feature-grid,
    .steps-grid,
    .offer-stats-grid,
    .activity-grid,
    .cockpit-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .participant-row,
    .invitation-header,
    .participation-header {
        flex-direction: column;
        align-items: stretch;
    }

    .participant-meta,
    .invitation-actions,
    .action-row,
    .event-actions {
        width: 100%;
        justify-content: stretch;
    }

    .participant-meta .btn,
    .invitation-actions .btn,
    .action-row .btn,
    .event-actions .btn {
        flex: 1 1 100%;
    }

    #invitationResult > div,
    #responseSection > div {
        flex-direction: column;
        display: flex !important;
    }

    #copyLinkBtn,
    #acceptBtn,
    #declineBtn {
        width: 100%;
    }
}

/* Large mobile: 576 - 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .main {
        width: min(100% - 2rem, 720px);
        padding-bottom: 6rem;
    }

    .stats-grid,
    .events-grid,
    .pricing-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-hero,
    .product-demo-shell,
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* Tablet: 768 - 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main,
    .landing-section,
    .pricing-hero,
    .legal-page {
        width: min(100% - 2rem, 920px);
    }

    .stats-grid,
    .events-grid,
    .pricing-grid,
    .feature-grid,
    .offer-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-hero,
    .product-demo-shell,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links .btn,
    .nav-links a {
        padding-inline: 0.85rem;
    }
}

/* Laptop: 992 - 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main,
    .landing-section,
    .pricing-hero,
    .legal-page {
        width: min(100% - 2.5rem, 1120px);
    }

    .stats-grid,
    .events-grid,
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop app shell: 1200px+ */
@media (min-width: 1200px) {
    body.app-shell .header {
        top: 1rem;
        left: 1rem;
        bottom: 1rem;
        right: auto;
        width: 276px;
        border: 1px solid var(--border-soft);
        border-radius: 28px;
    }

    body.app-shell .nav {
        height: 100%;
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1.25rem;
    }

    body.app-shell .logo {
        display: flex;
    }

    body.app-shell .nav-links {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        gap: 0.45rem;
    }

    body.app-shell .nav-links a,
    body.app-shell .nav-links button,
    body.app-shell .nav-links .btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
    }

    body.app-shell .theme-toggle {
        justify-content: center;
    }

    body.app-shell .main {
        margin-left: 304px;
        width: min(calc(100% - 336px), 1280px);
        padding-top: 2rem;
    }

    .stats-grid,
    .events-grid,
    .feature-grid,
    .offer-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Desktop: 1200 - 1599px */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .landing-hero,
    .landing-section,
    .pricing-hero {
        width: min(100% - 4rem, 1320px);
        margin-inline: auto;
    }
}

/* Large desktop: 1600px+ */
@media (min-width: 1600px) {
    :root {
        --content-max: 1480px;
    }

    body.app-shell .main {
        width: min(calc(100% - 360px), 1480px);
    }

    .landing-hero,
    .landing-section,
    .pricing-hero {
        width: min(100% - 6rem, 1480px);
        margin-inline: auto;
    }

    .stats-grid,
    .events-grid,
    .feature-grid,
    .offer-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==================== UX Excellence V1 ==================== */
.page-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.page-transition.page-ready {
    opacity: 1;
    transform: translateY(0);
}

.page-transition.page-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.smart-skeleton .spinner,
.smart-skeleton > p {
    display: none;
}

.skeleton-stack {
    width: min(100%, 520px);
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.skeleton-title {
    width: 62%;
    height: 1.65rem;
}

.skeleton-short {
    width: 42%;
}

.mobile-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(var(--mobile-quickbar-height) + 1rem + env(safe-area-inset-bottom));
    z-index: 120;
    min-height: 56px;
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: white;
    text-decoration: none;
    box-shadow: 0 22px 44px rgba(34, 197, 94, 0.34);
    animation: fabEnter 360ms ease both;
}

.mobile-fab span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.25rem;
}

.global-search {
    position: relative;
    min-width: min(100%, 280px);
}

.global-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: var(--text-strong);
    background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
}

.global-search input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.11);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 420px;
    overflow: auto;
    padding: 0.45rem;
    border-radius: 20px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    z-index: 220;
}

.global-search-result {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    text-decoration: none;
}

.global-search-result:hover,
.global-search-result:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.global-search-result strong {
    color: var(--text-strong);
}

.global-search-result span,
.global-search-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.global-search-empty {
    padding: 0.85rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.celebration-toast {
    position: fixed;
    left: 50%;
    top: max(1rem, env(safe-area-inset-top));
    z-index: 10000;
    width: min(calc(100% - 2rem), 420px);
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.celebration-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.celebration-toast strong {
    color: var(--text-strong);
}

.celebration-toast span {
    color: var(--text-muted);
}

.event-timeline {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.timeline-step {
    position: relative;
    min-height: 92px;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
}

.timeline-step strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.92rem;
}

.timeline-step span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: var(--gray-100);
}

.timeline-step.done span {
    background: rgba(34, 197, 94, 0.14);
    color: var(--success);
}

.timeline-step.active {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 18px 38px rgba(34, 197, 94, 0.1);
}

.timeline-step.active span {
    background: rgba(34, 197, 94, 0.12);
    color: var(--primary);
}

.cockpit-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 197, 94, 0.16), transparent 28%),
        radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.16), transparent 24%),
        var(--surface);
}

.cockpit-welcome h1 {
    margin: 0.75rem 0 0.35rem;
}

.cockpit-welcome p {
    color: var(--text-muted);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

@keyframes fabEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1199.98px) {
    .global-search {
        order: -1;
        flex: 1 1 100%;
        width: 100%;
    }

    .global-search-results {
        min-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .mobile-fab {
        display: flex;
    }

    .global-search {
        display: none;
    }

    .event-timeline {
        grid-template-columns: 1fr;
    }

    .cockpit-welcome {
        grid-template-columns: 1fr;
    }

    .quick-actions .btn {
        flex: 1 1 100%;
    }

    .timeline-step {
        min-height: auto;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 0.75rem;
    }

    .timeline-step span {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition,
    .page-transition.page-ready,
    .page-transition.page-leaving {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mobile-fab,
    .celebration-toast {
        animation: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== Convivly Premium UI V2 ==================== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-soft);
    color: var(--text-strong);
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    z-index: -1;
}

.header {
    background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.nav {
    max-width: 1320px;
}

.logo {
    color: var(--text-strong);
    font-weight: 850;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: url('/icons/convivly-mark.svg') center / 24px 24px no-repeat, var(--gradient-brand);
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

.nav-links {
    gap: 0.75rem;
}

.nav-links a:not(.btn),
.user-info {
    color: var(--text-muted);
}

.main {
    max-width: 1320px;
    padding-top: 7rem;
}

.card,
.event-card,
.invitation-card,
.participation-card,
.pricing-card,
.feature-card,
.step-card,
.cockpit-card,
.activity-stat-card,
.offer-stat-card,
.stat-card,
.conversion-card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    animation: premiumFadeUp 420ms ease both;
}

.card:hover,
.event-card:hover,
.pricing-card:hover,
.feature-card:hover,
.step-card:hover,
.cockpit-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.card-title,
.landing-copy h1,
.section-heading h2,
.pricing-hero h1,
.profile-hero h1 {
    color: var(--text-strong);
    letter-spacing: -0.055em;
}

.card-title {
    font-weight: 800;
}

.card-subtitle,
.event-meta,
.participant-email,
.pricing-card li,
.feature-card p,
.step-card p {
    color: var(--text-muted);
}

.btn {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(34, 197, 94, 0.28);
}

.btn-secondary {
    background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
    color: var(--text-strong);
    border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
    background: var(--brand-navy);
    color: var(--white);
    border-color: var(--brand-navy);
}

.form-input,
select.form-input,
textarea.form-input {
    background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    color: var(--text-strong);
    min-height: 46px;
}

.form-input:focus {
    border-color: var(--focus-border);
    box-shadow: var(--focus-ring);
}

.badge {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    font-weight: 750;
}

.stats-grid,
.events-grid,
.feature-grid,
.steps-grid,
.pricing-grid,
.cockpit-grid,
.activity-grid {
    gap: 1rem;
}

.stat-card {
    min-height: 126px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% 35%;
    height: 120px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14), transparent 65%);
}

.stat-value {
    color: var(--text-strong);
    font-weight: 850;
    letter-spacing: -0.06em;
}

.plan-progress,
.onboarding-progress,
.preview-progress {
    background: color-mix(in srgb, var(--gray-200) 70%, transparent);
    border-radius: 999px;
    overflow: hidden;
}

.plan-progress-bar,
.onboarding-progress > div,
.preview-progress span {
    background: var(--gradient-brand);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.22);
}

.landing-hero {
    min-height: 86vh;
    padding: 9rem 2rem 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 3rem;
}

.landing-copy h1 {
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    max-width: 900px;
}

.landing-copy p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 720px;
}

.dashboard-preview {
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(239,246,255,0.78));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    transform: perspective(900px) rotateY(-7deg) rotateX(4deg);
}

[data-theme="dark"] .dashboard-preview {
    background: linear-gradient(160deg, rgba(15,23,42,0.95), rgba(30,41,59,0.8));
}

.preview-card.primary,
.credits-card,
.profile-hero,
.pricing-card.highlighted,
.event-cover-banner {
    background: var(--gradient-brand);
    color: white;
    border: none;
    box-shadow: var(--shadow-premium);
}

.pricing-card.highlighted .pricing-price,
.pricing-card.highlighted h2,
.pricing-card.highlighted li,
.credits-card .card-title,
.credits-card .card-subtitle,
.profile-hero h1,
.profile-hero p {
    color: white;
}

.event-cover-banner {
    border-radius: 24px;
    padding: 2rem;
}

.participant-row {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
    padding: 1rem;
}

.install-banner {
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    box-shadow: var(--shadow-soft);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
}

.skeleton {
    min-height: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148,163,184,0.18), rgba(255,255,255,0.42), rgba(148,163,184,0.18));
    background-size: 220% 100%;
    animation: skeletonShimmer 1.3s ease infinite;
}

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

@keyframes skeletonShimmer {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding-top: 7.5rem;
    }

    .dashboard-preview {
        transform: none;
    }

    .nav {
        align-items: flex-start;
    }

    .nav-links {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }
}

@media (max-width: 640px) {
    .main {
        padding: 5.75rem 1rem 6rem;
    }

    .header {
        top: auto;
        bottom: 0;
        border-top: 1px solid var(--border-soft);
        border-bottom: none;
    }

    .nav {
        padding: 0.65rem 0.85rem;
    }

    .logo {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.35rem;
    }

    .nav-links .btn,
    .nav-links a,
    .nav-links button {
        min-height: 40px;
        padding: 0.55rem 0.7rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .landing-hero {
        padding: 3rem 1rem 6rem;
    }

    .landing-copy h1 {
        font-size: 3.1rem;
    }

    .card,
    .auth-card {
        border-radius: 20px;
        padding: 1.25rem;
    }

    .stats-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PREMIUM INVITATIONS V1 ==================== */

.create-event-wizard {
    max-width: 1100px;
    margin: 0 auto;
}

.create-event-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.create-event-submit-bar {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(34, 197, 94, 0.2);
    position: sticky;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 5;
}

.create-event-submit-bar__hint {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--gray-600);
}

.create-event-submit-bar .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.wizard-steps {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.wizard-step {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: var(--surface-elevated);
    color: var(--gray-600);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-step.is-active {
    color: var(--primary);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.12);
    transform: translateY(-1px);
}

.wizard-step.is-complete {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.35);
}

.wizard-panel[hidden] {
    display: none !important;
}

.invitation-studio {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.invitation-studio__toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.invitation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
    max-height: 420px;
    overflow: auto;
    padding: 0.25rem;
    scroll-snap-type: x proximity;
}

.invitation-gallery--mobile-swipe {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.invitation-gallery--mobile-swipe .invitation-thumb {
    flex: 0 0 72vw;
    max-width: 280px;
    scroll-snap-align: center;
}

.invitation-thumb {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 18px;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.invitation-thumb:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.invitation-thumb:hover {
    transform: translateY(-3px) scale(1.01);
}

.invitation-thumb.is-selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.22);
}

.invitation-thumb__canvas {
    position: relative;
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
}

.invitation-thumb.is-selected .invitation-thumb__canvas {
    border-color: var(--primary);
}

.invitation-thumb__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.invitation-thumb__label {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.invitation-thumb__badges {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.inv-badge--premium {
    background: rgba(255, 255, 255, 0.92);
    color: #92400e;
}

.inv-badge--new {
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
}

.inv-badge--recommended {
    background: rgba(34, 197, 94, 0.92);
    color: #fff;
}

.invitation-preview-shell {
    position: sticky;
    top: 6rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.95));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.invitation-preview-shell__title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invitation-card-preview {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    animation: premiumFadeUp 0.45s ease both;
}

.invitation-card-preview--interactive:hover {
    transform: scale(1.01);
    transition: transform 0.25s ease;
}

.invitation-card-preview__hero {
    padding: 1.4rem 1.2rem 1.1rem;
}

.invitation-card-preview__brand {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.92;
    margin-bottom: 0.55rem;
}

.invitation-card-preview__welcome {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.invitation-card-preview__title {
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 800;
}

.invitation-card-preview__type {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
}

.invitation-card-preview__body {
    background: #fff;
    padding: 1rem 1.1rem 1.15rem;
    color: var(--gray-800);
}

.invitation-card-preview__description {
    margin: 0 0 0.75rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.invitation-card-preview__meta {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.invitation-card-preview__meta div {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-soft);
}

.invitation-card-preview__meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
}

.invitation-card-preview__meta dd {
    margin: 0;
    font-weight: 700;
    color: var(--gray-900);
}

.invitation-card-preview__cta {
    width: 100%;
    margin-top: 0.9rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    font-weight: 800;
    color: #fff;
    background: var(--inv-primary, var(--primary));
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.25);
}

.inv-card-logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 0.65rem;
}

.invitation-customization {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.invitation-customization .form-group {
    margin-bottom: 0;
}

.invitation-customization .form-group--wide {
    grid-column: 1 / -1;
}

.invitation-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.invitation-preview-modal.is-open {
    display: flex;
}

.invitation-preview-modal__dialog {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 24px;
    background: var(--surface-elevated);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    animation: premiumFadeUp 0.3s ease both;
}

.invite-page-card-wrap {
    margin-bottom: 1.5rem;
}

.invite-page-card-wrap .invitation-card-preview {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .invitation-studio {
        grid-template-columns: 1fr;
    }

    .invitation-preview-shell {
        position: static;
    }
}

@media (max-width: 640px) {
    .desktop-only-block {
        display: none !important;
    }

    .mobile-only-inline {
        display: inline-flex !important;
    }

    .invitation-gallery {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.85rem;
        max-height: none;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
    }

    .invitation-gallery .invitation-thumb {
        flex: 0 0 72vw;
        max-width: 280px;
        scroll-snap-align: center;
    }

    .invitation-customization {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        gap: 0.5rem;
    }

    .wizard-step {
        min-width: 0;
        font-size: 0.82rem;
        padding: 0.7rem 0.55rem;
    }
}

@media (min-width: 641px) {
    .mobile-only-inline {
        display: none !important;
    }
}

/* ==================== INVITATION STUDIO V2 ==================== */

.studio-main { max-width: 1400px; margin: 0 auto; }
.studio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.studio-header h1 { margin: 0 0 0.35rem; }
.studio-header p { margin: 0; color: var(--gray-600); }
.studio-header__actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.studio-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
    gap: 1rem;
    align-items: start;
}

.studio-panel {
    background: var(--surface-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.studio-panel__title { margin: 0 0 0.85rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-600); }
.studio-panel__scroll { max-height: calc(100vh - 240px); overflow: auto; padding-right: 0.25rem; }
.studio-panel--center { padding: 1rem 1.1rem 1.25rem; }
.studio-preview-mount { min-height: 420px; display: flex; align-items: flex-start; justify-content: center; }
.studio-preview-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.studio-preview-label { font-weight: 700; color: var(--gray-600); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.studio-mobile-toggle { display: none; width: 100%; margin-top: 0.75rem; }

.studio-fieldset { border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.75rem; margin: 0.75rem 0 0; }
.studio-fieldset legend { font-weight: 700; font-size: 0.82rem; padding: 0 0.35rem; }
.studio-fieldset label { display: flex; gap: 0.5rem; align-items: center; margin: 0.35rem 0; font-size: 0.88rem; }
.studio-block-order { display: grid; gap: 0.45rem; }
.studio-block-item { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0.55rem; border-radius: 10px; background: var(--gray-50); font-size: 0.85rem; }
.studio-block-actions { display: flex; gap: 0.25rem; }

.explore-hero { margin-bottom: 1.25rem; }
.explore-hero h1 { margin: 0 0 0.35rem; }
.explore-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; align-items: end; }
.explore-fav-toggle { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; }
.collections-strip { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.35rem 0 1rem; scroll-snap-type: x mandatory; }
.collection-chip { flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--border-soft); background: var(--surface-elevated); border-radius: 999px; padding: 0.5rem 0.9rem; font-weight: 600; cursor: pointer; }
.collection-chip:hover { border-color: var(--primary); color: var(--primary); }
.explore-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.explore-card { display: grid; gap: 0.5rem; }
.explore-card__actions { display: flex; gap: 0.45rem; }
.explore-quick-preview { position: fixed; inset: 0; z-index: 1300; background: rgba(15,23,42,0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.explore-quick-preview__dialog { width: min(540px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-elevated); border-radius: 22px; padding: 1rem; box-shadow: var(--shadow-xl); }
.finder-dialog h2 { margin-top: 0; }
.finder-kicker { color: var(--primary); font-weight: 700; margin: 0.75rem 0; }
.finder-gallery { max-height: 320px; overflow: auto; }
.invitation-thumb__usage { position: absolute; left: 0.85rem; top: 0.65rem; font-size: 0.68rem; color: rgba(255,255,255,0.9); font-weight: 700; }
.inv-fav-pin { position: absolute; top: 0.55rem; right: 0.55rem; z-index: 2; }
.inv-badge--free { background: rgba(16,185,129,0.92); color: #fff; }
.inv-badge--seasonal { background: rgba(6,182,212,0.9); color: #fff; }
.inv-countdown { padding: 0.45rem 0.75rem; border-radius: 999px; background: rgba(255,255,255,0.16); font-weight: 700; font-size: 0.82rem; display: inline-flex; gap: 0.35rem; }
.inv-qr-wrap { margin-top: 0.85rem; }
.inv-qr-image { border-radius: 12px; border: 1px solid var(--border-soft); padding: 6px; background: #fff; }
.inv-qr-caption { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--gray-500); }

.inv-card--animated .inv-anim-title { animation: invFadeUp 0.7s ease both; }
.inv-card--animated .inv-anim-subtitle { animation: invFadeUp 0.9s ease both; }
.inv-card--animated .inv-anim-cta { animation: invPulse 2.4s ease-in-out infinite; }
.inv-card--animated.inv-card--theme-confetti .inv-anim-bg { animation: invBgShift 8s ease-in-out infinite alternate; }
.inv-card--animated.inv-card--theme-elegant .inv-anim-bg { animation: invGlow 5s ease-in-out infinite alternate; }
.inv-card--reduced-motion .inv-anim-title,
.inv-card--reduced-motion .inv-anim-subtitle,
.inv-card--reduced-motion .inv-anim-cta,
.inv-card--reduced-motion .inv-anim-bg { animation: none !important; }

@keyframes invFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes invPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(37,99,235,0.25); }
    50% { transform: scale(1.02); box-shadow: 0 14px 30px rgba(37,99,235,0.35); }
}
@keyframes invBgShift {
    from { filter: brightness(1); }
    to { filter: brightness(1.08) saturate(1.05); }
}
@keyframes invGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.06); }
}

@media (max-width: 1100px) {
    .studio-layout { grid-template-columns: 1fr; }
    .studio-panel--left, .studio-panel--right { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; max-height: 72vh; transform: translateY(110%); transition: transform 0.28s ease; border-radius: 20px 20px 0 0; }
    .studio-panel--left.is-mobile-open, .studio-panel--right.is-mobile-open { transform: translateY(0); }
    .studio-mobile-toggle { display: inline-flex; }
    .studio-panel__scroll { max-height: 52vh; }
}

@media (max-width: 640px) {
    .explore-toolbar { grid-template-columns: 1fr; }
    .explore-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ==================== MOBILE FIRST REFACTORING ==================== */

.mobile-content-tabs {
    display: none;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    margin-bottom: 0.9rem;
    scroll-snap-type: x proximity;
}

.mobile-content-tab {
    border: 1px solid var(--border-soft);
    background: var(--surface-elevated);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
}

.mobile-content-tab.is-active {
    color: var(--primary);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.mobile-cockpit {
    display: none;
    margin-bottom: 0.75rem;
    padding: 0.9rem;
}

.mobile-cockpit__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.mobile-cockpit__header h2 {
    margin: 0;
    font-size: 1rem;
}

.mobile-cockpit__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.mobile-kpi {
    border: 1px solid var(--border-soft);
    background: var(--gray-50);
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    display: grid;
    gap: 0.15rem;
}

.mobile-kpi span {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.mobile-kpi strong {
    font-size: 0.95rem;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-cockpit__actions {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.mobile-hidden-section {
}

.mobile-quickbar {
    display: none;
}

@media (max-width: 640px) {
    .mobile-main {
        padding-top: 5.1rem;
        padding-bottom: calc(var(--mobile-bottom-safe-space) + var(--mobile-quickbar-height) + env(safe-area-inset-bottom));
    }

    .mobile-hidden-section {
        display: none !important;
    }

    .mobile-content-tabs {
        display: flex;
    }

    /* Quickbar remplace les onglets internes sur mobile */
    body.app-shell:has(.mobile-quickbar) #dashboardMobileTabs {
        display: none;
    }

    .mobile-cockpit {
        display: block;
    }

    .mobile-quickbar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        background: color-mix(in srgb, var(--surface-elevated) 86%, transparent);
        border-top: 1px solid var(--border-soft);
        padding-left: max(0.35rem, env(safe-area-inset-left));
        padding-right: max(0.35rem, env(safe-area-inset-right));
        padding-top: 0.45rem;
        padding-bottom: calc(0.45rem + env(safe-area-inset-bottom));
        min-height: var(--mobile-quickbar-height);
        box-shadow: 0 -10px 30px rgba(13, 27, 42, 0.08);
    }

    .mobile-quickbar a {
        text-decoration: none;
        color: var(--gray-700);
        font-size: 0.7rem;
        font-weight: 700;
        text-align: center;
        display: grid;
        min-height: calc(var(--mobile-quickbar-height) - 18px);
        border-radius: 12px;
        transition: color 0.2s ease, background 0.2s ease;
        gap: 0.15rem;
        min-height: 48px;
        align-items: center;
    }

    .mobile-quickbar a.is-active {
        background: rgba(34, 197, 94, 0.1);
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-card,
    .card {
        padding: 0.85rem;
        border-radius: 14px;
    }

    .card-header {
        margin-bottom: 0.7rem;
    }

    .activity-stat-card {
        min-height: 70px;
        padding: 0.55rem;
    }

    .studio-mobile-steps {
        margin-top: 0.25rem;
    }

    .studio-panel__scroll .form-group {
        margin-bottom: 0.55rem;
    }
}

/* ==================== MOBILE EXPERIENCE 2026 ==================== */

.page-mission {
    display: none;
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.15);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-quickbar a.is-active {
    color: var(--primary);
}

body.mobile-compact .card,
body.mobile-compact .stat-card,
body.mobile-compact .event-card,
body.mobile-compact .conversion-card {
    padding: 0.65rem;
    border-radius: 12px;
}

body.mobile-compact .card-header {
    margin-bottom: 0.55rem;
}

body.mobile-compact .card-title {
    font-size: 1rem;
}

body.mobile-compact .card-subtitle,
body.mobile-compact .mobile-copy-hidden {
    display: none;
}

body.mobile-compact .stats-grid {
    gap: 0.4rem;
}

body.mobile-compact .stat-card {
    min-height: 64px;
}

body.mobile-compact .stat-value {
    font-size: 1.15rem;
}

body.mobile-compact .btn {
    min-height: 48px;
}

.mobile-accordion {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--surface-elevated);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.mobile-accordion > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.mobile-accordion > summary::-webkit-details-marker {
    display: none;
}

.mobile-accordion > summary::after {
    content: '▼';
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    opacity: 0.65;
}

.mobile-accordion[open] > summary::after {
    transform: rotate(180deg);
}

.mobile-accordion__body {
    padding: 0 0.85rem 0.85rem;
}

.offer-focus {
    display: grid;
    gap: 0.85rem;
}

.offer-gauge-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid rgba(34, 197, 94, 0.15);
    border-top-color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.offer-gauge-ring strong {
    font-size: 1.6rem;
    line-height: 1;
}

.activity-toolbar {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.activity-filter {
    border: 1px solid var(--border-soft);
    background: var(--surface-elevated);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 40px;
}

.activity-filter.is-active {
    color: var(--primary);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.activity-period {
    margin: 0.85rem 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.activity-timeline {
    display: grid;
    gap: 0.55rem;
}

.activity-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    padding: 0.65rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--gray-50);
}

.onboarding-wizard-step {
    display: none;
    animation: mobileFadeIn 0.25s ease;
}

.onboarding-wizard-step.is-visible {
    display: block;
}

.onboarding-wizard-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.onboarding-encouragement {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0.5rem 0 0.75rem;
}

.notification-row-collapsed {
    opacity: 0.72;
}

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

@media (max-width: 640px) {
    .page-mission {
        display: block;
    }

    .mobile-accordion > summary {
        display: flex;
    }

    .offer-details-panel {
        display: none;
    }

    .offer-details-panel.is-expanded {
        display: block;
    }

    .legal-grid .card {
        margin-bottom: 0;
    }

    .legal-grid {
        display: grid;
        gap: 0.5rem;
    }

    .pricing-grid .pricing-card ul {
        display: none;
    }

    .pricing-grid .pricing-card.is-expanded ul {
        display: block;
    }

    .explore-toolbar {
        position: sticky;
        top: 4.5rem;
        z-index: 40;
    }

    .landing-hero .trust-row span:nth-child(n+3) {
        display: none;
    }

    .brand-proof-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .profile-hero {
        padding: 0.85rem;
    }
}

@media (min-width: 641px) {
    .mobile-accordion > summary {
        display: none;
    }

    .mobile-accordion__body {
        padding: 0;
    }

    .mobile-accordion {
        border: none;
        background: transparent;
        margin-bottom: 1.5rem;
    }

    .offer-details-toggle {
        display: none;
    }

    .offer-details-panel {
        display: block !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-wizard-step,
    .mobile-accordion > summary::after {
        animation: none;
        transition: none;
    }
}

/* ==================== Convivly Brand Board Application ==================== */

.card,
.event-card,
.stat-card,
.auth-card,
.conversion-card,
.pricing-card {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
}

.card-title,
h1,
h2,
h3 {
    font-family: var(--font-family);
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

.landing-footer {
    background: var(--brand-navy);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2rem;
    padding: 2rem var(--page-gutter) 2.5rem;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.landing-footer strong,
.landing-footer a {
    color: var(--brand-white);
}

.landing-footer a:hover {
    color: var(--brand-green);
}

.landing-tagline strong,
.signature-highlight {
    color: var(--brand-green);
    font-weight: var(--font-weight-bold);
}

.badge-success {
    background: var(--badge-confirmed-bg);
    color: var(--badge-confirmed-text);
}

.badge-warning {
    background: var(--badge-pending-bg);
    color: var(--badge-pending-text);
}

.badge-danger {
    background: var(--badge-refused-bg);
    color: var(--badge-refused-text);
}

.mobile-quickbar a.is-active {
    color: var(--brand-green);
}

.mobile-content-tab.is-active,
.activity-filter.is-active {
    color: var(--brand-green);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.page-mission {
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.18);
    color: var(--brand-green-dark);
}

.plan-progress-bar,
.onboarding-progress > div,
.plan-progress-bar#onboardingProgress {
    background: var(--gradient-brand);
}

.stat-primary .stat-value {
    color: var(--brand-green);
}

.stat-card.stat-primary {
    border-color: rgba(34, 197, 94, 0.2);
}

.header .btn-secondary.btn-sm {
    background: transparent;
    color: var(--text-strong);
    border: 1px solid var(--border-soft);
}

.header .btn-secondary.btn-sm:hover {
    background: var(--brand-gray);
    color: var(--brand-navy);
    border-color: var(--border-soft);
}

.header .btn-primary.btn-sm {
    box-shadow: var(--shadow-brand);
}

.invite-event-panel {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--auth-panel-gradient);
    border: 1px solid var(--alert-info-border);
    border-radius: var(--radius-xl);
    text-align: center;
}

/* ==================== MOBILE NAVIGATION PREMIUM V1 ==================== */

body.app-shell {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.header {
    padding-top: env(safe-area-inset-top);
}

.mobile-fab {
    z-index: 1250;
    transition: transform 0.28s ease, opacity 0.24s ease, padding 0.24s ease, box-shadow 0.24s ease;
    will-change: transform, opacity;
}

.mobile-fab.is-compact {
    padding: 0.8rem 0.85rem;
    gap: 0;
    min-width: 56px;
    justify-content: center;
}

.mobile-fab.is-compact strong {
    display: none;
}

.mobile-fab.is-hidden {
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .mobile-fab {
        display: flex;
    }

    .mobile-copy-hidden {
        display: none !important;
    }

    body.app-shell .mobile-fab {
        bottom: calc(var(--mobile-quickbar-height) + 0.75rem + env(safe-area-inset-bottom));
    }

    .event-card-link,
    .participation-card-link {
        display: block;
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .event-card-clickable,
    .participation-card {
        padding: 0.75rem 0.85rem;
        margin-bottom: 0;
        border-radius: var(--radius-lg);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .event-card-clickable:active,
    .participation-card:active {
        transform: scale(0.985);
    }

    .event-card-clickable h3,
    .participation-card h3 {
        font-size: 1rem;
        margin: 0.35rem 0 0.45rem;
        line-height: 1.25;
    }

    .event-meta-compact {
        display: grid;
        gap: 0.2rem;
        font-size: 0.78rem;
        color: var(--text-muted);
        line-height: 1.35;
    }

    .event-meta-compact span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-card-footer {
        margin-top: 0.45rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--brand-green);
        opacity: 0.85;
    }

    .event-card-footer span {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .participation-header {
        margin-bottom: 0.45rem;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .participation-details {
        gap: 0.2rem;
    }

    .participation-details .event-meta {
        font-size: 0.78rem;
        margin: 0;
    }

    .events-grid,
    .participations-list {
        gap: 0.55rem;
    }

    body.mobile-compact .badge {
        font-size: 0.62rem;
        padding: 0.2rem 0.45rem;
    }

    body.mobile-compact .event-card-clickable .badge-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        margin-top: 0.35rem;
    }
}

@media (min-width: 641px) {
    .event-card-link:hover .event-card-clickable,
    .participation-card-link:hover .participation-card {
        transform: translateY(-2px);
        box-shadow: var(--shadow-premium);
        border-color: rgba(34, 197, 94, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-fab,
    .event-card-clickable,
    .participation-card {
        transition: none;
    }

    .dashboard-tab-transition [data-mobile-section]:not(.mobile-hidden-section) {
        animation: none !important;
    }
}

/* ==================== DASHBOARD COCKPIT V2 ==================== */

.cockpit-today {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.cockpit-hero-card {
    padding: 0.9rem 1rem;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(6, 182, 212, 0.08)), var(--surface-elevated);
    border: 1px solid rgba(34, 197, 94, 0.18);
    box-shadow: var(--shadow-soft);
}

.cockpit-hero-card__greeting {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-strong);
}

.cockpit-hero-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cockpit-hero-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cockpit-hero-card__event strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.cockpit-hero-card__countdown,
.cockpit-hero-card__participants {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.cockpit-hero-card__cta {
    margin-top: 0.65rem;
}

.cockpit-priority {
    padding: 0.8rem 0.9rem;
    display: grid;
    gap: 0.45rem;
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.05);
}

.cockpit-priority__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-green);
}

.cockpit-priority__message {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--text-strong);
}

.cockpit-kpi-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.cockpit-kpi-chip {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-soft);
}

.cockpit-kpi-chip span:first-child {
    font-size: 0.95rem;
}

.cockpit-kpi-chip strong {
    font-size: 1rem;
    line-height: 1.1;
}

.cockpit-kpi-chip small {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: lowercase;
}

.cockpit-create-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

.screen-header {
    margin-bottom: 0.65rem;
}

.screen-title {
    margin: 0;
    font-size: 1.25rem;
}

.screen-mission {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.invitation-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    margin-bottom: 0.65rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.invitation-tab {
    flex: 0 0 auto;
    border: 1px solid var(--border-soft);
    background: var(--surface-elevated);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.invitation-tab.is-active {
    color: var(--brand-green);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
}

.invitation-card--compact {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.45rem;
    background: var(--surface-elevated);
}

.invitation-card--compact summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
}

.invitation-card--compact[open] {
    padding-bottom: 0.7rem;
}

.events-section-card,
.participations-section-card {
    margin-top: 0.25rem;
}

.profile-hero {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.profile-hero__body h1 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
}

.profile-hero__email,
.profile-hero__since {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.profile-plan-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.55rem;
}

.profile-plan-remaining {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-green);
}

.profile-info-grid {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.profile-info-grid div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.profile-info-grid span {
    color: var(--text-muted);
}

.profile-stats-strip {
    margin-bottom: 1rem;
}

.desktop-only-stats {
    display: grid;
}

@media (max-width: 640px) {
    .desktop-only-stats {
        display: none !important;
    }

    .dashboard-tab-transition [data-mobile-section]:not(.mobile-hidden-section) {
        animation: dashboardTabIn 220ms ease both;
    }

    .dashboard-tab-forward [data-mobile-section]:not(.mobile-hidden-section) {
        animation-name: dashboardTabInForward;
    }

    .dashboard-tab-back [data-mobile-section]:not(.mobile-hidden-section) {
        animation-name: dashboardTabInBack;
    }

    .onboarding-card {
        padding: 0.8rem;
    }

    .onboarding-card .card-subtitle {
        display: none;
    }

    .events-section-card .card-subtitle,
    .participations-section-card .card-subtitle {
        display: none;
    }
}

@keyframes dashboardTabIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dashboardTabInForward {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dashboardTabInBack {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 641px) {
    .cockpit-kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-desktop-tabs {
        margin-bottom: 1rem;
    }
}

/* ==================== DELIGHT & NATIVE FEEL V1 ==================== */

.delight-hero {
    transition: background 240ms ease, border-color 240ms ease;
}

.delight-hero--morning {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(34, 197, 94, 0.08)), var(--surface-elevated);
    border-color: rgba(251, 191, 36, 0.22);
}

.delight-hero--afternoon {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(6, 182, 212, 0.08)), var(--surface-elevated);
}

.delight-hero--evening {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(34, 197, 94, 0.06)), var(--surface-elevated);
    border-color: rgba(99, 102, 241, 0.2);
}

.delight-hero--night {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.04)), var(--surface-elevated);
    border-color: rgba(6, 182, 212, 0.18);
}

.cockpit-hero-card__subtitle {
    margin: 0.2rem 0 0.45rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.cockpit-hero-priority {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: 0.45rem;
}

.cockpit-hero-priority--delight {
    border-top-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.04);
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.75rem 0.25rem 0;
    border-radius: 12px;
}

.cockpit-role-block {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.55rem;
}

.cockpit-progress {
    padding: 0.75rem 0.85rem;
    display: grid;
    gap: 0.4rem;
}

.cockpit-progress__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-green);
}

.cockpit-progress__bar,
.organigo-level-bar,
.event-health__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.cockpit-progress__bar span,
.organigo-level-bar span,
.event-health__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--gradient-brand);
    transition: width 220ms ease;
}

.cockpit-progress__text,
.organigo-level-card__next {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cockpit-summary {
    padding: 0.75rem 0.85rem;
}

.cockpit-summary__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.cockpit-summary__list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--text-strong);
}

.weather-widget {
    display: none;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px dashed var(--border-soft);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.weather-widget.is-enabled {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.delight-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.04);
}

.delight-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.delight-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.delight-empty p {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.delight-reveal {
    opacity: 0;
    transform: translateY(8px);
}

.delight-reveal.is-visible,
.cockpit-today .delight-reveal {
    opacity: 1;
    transform: translateY(0);
    animation: delightReveal 220ms ease both;
}

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

.delight-btn {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.delight-btn:active {
    transform: scale(0.98);
}

.delight-pulse-success {
    animation: delightPulse 240ms ease;
}

@keyframes delightPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.event-health {
    margin-top: 0.5rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.12);
    font-size: 0.72rem;
}

.event-health--mid {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.18);
}

.event-health--low {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
}

.event-health__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.event-health__stats {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.organigo-level-card {
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.organigo-level-card__kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-green);
    margin-bottom: 0.25rem;
}

.organigo-level-card__label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
    .delight-reveal,
    .delight-btn,
    .cockpit-progress__bar span,
    .organigo-level-bar span,
    .event-health__fill {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.lifecycle-banner {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--gray-800);
    font-weight: 600;
}

.lifecycle-summary-card {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.lifecycle-summary-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.lifecycle-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.lifecycle-summary-grid span {
    display: block;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.lifecycle-summary-grid strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.lifecycle-gauge {
    margin-top: 0.75rem;
}

.lifecycle-gauge label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.lifecycle-gauge__bar {
    height: 8px;
    border-radius: 999px;
    background: var(--gray-200);
    overflow: hidden;
}

.lifecycle-gauge__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
}

.lifecycle-feedback-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lifecycle-feedback-card {
    width: 100%;
    max-width: 480px;
}

.lifecycle-feedback-question {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lifecycle-stars {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.lifecycle-star {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-300);
    padding: 0.15rem;
}

.lifecycle-star.is-active {
    color: #f59e0b;
}

.lifecycle-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.lifecycle-feedback-loading {
    text-align: center;
    padding: 2rem 0;
}

.reputation-card {
    display: grid;
    gap: 0.75rem;
}

.reputation-card__rating {
    font-size: 1.5rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .lifecycle-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Smart Share V1 */
.smart-share-panel {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.smart-share-panel h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.smart-share-panel p {
    margin: 0 0 0.9rem;
    color: var(--gray-600);
}

.smart-share-hint {
    margin-top: 0.75rem !important;
    font-size: 0.85rem;
    color: var(--gray-500) !important;
}

.smart-share-inline-actions,
.smart-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.smart-share-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: #fff;
    color: var(--gray-800);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.smart-share-btn:hover,
.smart-share-btn:focus-visible {
    border-color: var(--brand-green);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.smart-share-btn__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.smart-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1350;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.smart-share-modal.is-open {
    display: flex;
}

.smart-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.45);
}

.smart-share-modal__sheet {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(13, 27, 42, 0.18);
}

.smart-share-modal__header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.smart-share-modal__header p {
    margin: 0 0 1rem;
    color: var(--gray-600);
}

.smart-share-close {
    margin-top: 0.85rem;
}

.smart-share-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    z-index: 1300;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.smart-share-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.event-share-menu {
    position: relative;
}

.event-share-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.12);
    padding: 0.35rem;
    display: none;
    z-index: 30;
}

.event-share-menu.is-open .event-share-menu__dropdown {
    display: block;
}

.event-share-menu__dropdown button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.event-share-menu__dropdown button:hover,
.event-share-menu__dropdown button:focus-visible {
    background: var(--gray-50);
    outline: none;
}

@media (min-width: 768px) {
    .smart-share-modal {
        align-items: center;
        padding: 1rem;
    }

    .smart-share-modal__sheet {
        border-radius: 20px;
    }

    .smart-share-inline-actions,
    .smart-share-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.smart-share-open {
    overflow: hidden;
}

/* Smart Share V1.1 — viral cockpit + WhatsApp chooser */
.cockpit-share-widgets {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.cockpit-share-widgets__impact:empty {
    display: none;
}

.smart-share-impact-card {
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.06);
}

.smart-share-impact-card__kicker {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--gray-800);
}

.smart-share-impact-card__value {
    display: block;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #0d1b2a;
    margin-bottom: 0.5rem;
}

.smart-share-impact-card__channel {
    font-weight: 700;
    color: #22c55e;
    margin: 0.15rem 0 0.65rem;
}

.smart-share-impact-card__footer {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.smart-share-cockpit-card {
    padding: 0.25rem 0;
}

.smart-share-cockpit-card__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.smart-share-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.smart-share-cockpit-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(13, 27, 42, 0.03);
    font-size: 0.88rem;
}

.smart-share-cockpit-stat strong {
    font-size: 1rem;
    color: #0d1b2a;
}

.smart-share-cockpit-meta {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.smart-share-cockpit-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.smart-share-cockpit-meta span {
    color: var(--gray-600);
}

.smart-share-cockpit-empty {
    text-align: center;
    padding: 1.25rem 0.75rem;
}

.smart-share-cockpit-empty__icon {
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.smart-share-cockpit-empty h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.smart-share-cockpit-empty p {
    margin: 0 0 1rem;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.smart-share-wa-sheet h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.smart-share-wa-sheet__hint {
    margin: 0 0 1rem;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.smart-share-wa-options {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.smart-share-wa-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.smart-share-wa-option:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.smart-share-wa-option input {
    accent-color: #22c55e;
}

@media (min-width: 768px) {
    .cockpit-share-widgets {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }

    .smart-share-cockpit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==================== EVENT DETAILS DESKTOP V3 ==================== */

.event-details-page--v3 {
    width: 100%;
    max-width: min(1920px, 100%);
    margin: 0 auto;
    padding-left: clamp(1rem, 2vw, 1.75rem);
    padding-right: clamp(1rem, 2vw, 1.75rem);
}

.event-details-shell--v3 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.event-details-toolbar {
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

.event-details-toolbar__loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    padding: 0.5rem 0;
}

.event-details-toolbar__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-details-toolbar__main {
    min-width: 0;
    flex: 1 1 320px;
}

.event-details-toolbar__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.event-details-toolbar__meta-item {
    white-space: nowrap;
}

.event-details-toolbar__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.event-details-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.event-details-title {
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    margin: 0;
    line-height: 1.2;
    color: #0d1b2a;
    font-weight: 700;
}

.event-details-invite-btn {
    min-width: 200px;
    font-weight: 700;
    white-space: nowrap;
}

.event-kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
}

.event-kpi-card {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 27, 42, 0.08);
    backdrop-filter: blur(8px);
    min-width: 0;
}

.event-kpi-card--success {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(255, 255, 255, 0.85));
}

.event-kpi-card--warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.85));
}

.event-kpi-card--teal {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(255, 255, 255, 0.85));
}

.event-kpi-card__label {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-600);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-kpi-card__value {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
    color: #0d1b2a;
    font-weight: 700;
}

.event-kpi-card__value--sm {
    font-size: 0.85rem;
    font-weight: 600;
}

.event-timeline-strip {
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    overflow-x: auto;
}

.event-timeline-strip .event-timeline--horizontal {
    margin-top: 0;
}

.event-timeline-strip .timeline-step--horizontal {
    min-height: auto;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0;
}

.event-timeline--horizontal {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: min-content;
}

.timeline-step--horizontal {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--gray-600);
}

.timeline-step--horizontal.done {
    color: #15803d;
}

.timeline-step--horizontal.active {
    color: #0d1b2a;
    font-weight: 600;
}

.timeline-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    font-size: 0.65rem;
    background: rgba(13, 27, 42, 0.06);
}

.timeline-step--horizontal.done .timeline-step__icon {
    background: rgba(34, 197, 94, 0.15);
}

.timeline-step--horizontal.active .timeline-step__icon {
    background: rgba(6, 182, 212, 0.15);
}

.timeline-step__connector {
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    margin: 0 0.35rem;
    background: rgba(13, 27, 42, 0.12);
    flex-shrink: 0;
}

.event-details-workspace {
    display: grid;
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    gap: 0.75rem;
    align-items: start;
    min-height: 0;
}

.event-details-participants {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 280px);
    min-width: 0;
    padding: 0.85rem 1rem 1rem;
}

.event-details-participants__head {
    margin-bottom: 0.65rem;
}

.event-details-participants .card-title {
    margin: 0;
    font-size: 1.05rem;
}

.event-details-participants .card-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
}

.participants-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.participants-search .form-input,
.participants-filter {
    height: 38px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.88rem;
}

.participants-list-shell--v3 {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.participants-list-shell__loading {
    text-align: center;
    padding: 2rem 1rem;
}

.participants-table--v3 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.participants-table__head {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 110px 110px 140px;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.participants-list--v3 {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 340px);
    min-height: 420px;
}

.participant-row--v3 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 110px 110px 140px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
    font-size: 0.88rem;
}

.participant-row--v3:hover {
    background: rgba(13, 27, 42, 0.02);
}

.participant-row--v3 .participant-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.participant-row--v3 .participant-email {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.participant-meta--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.participant-meta--actions .btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
}

.participant-meta__empty {
    color: var(--gray-400);
}

.event-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.event-details-sidebar__info {
    padding: 0.75rem 0.9rem;
}

.card-header--compact {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.card-header--compact .card-title {
    font-size: 0.95rem;
    margin: 0;
}

.event-info-dl {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
}

.event-info-dl > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.35rem;
}

.event-info-dl dt {
    margin: 0;
    color: var(--gray-500);
    font-weight: 600;
}

.event-info-dl dd {
    margin: 0;
    color: #0d1b2a;
}

.event-info-subtitle {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
}

.event-info-description {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.5;
    font-size: 0.85rem;
}

.event-info-description--muted {
    color: var(--gray-500);
    font-style: italic;
}

.event-details-sidebar__lifecycle .lifecycle-banner,
.event-details-sidebar__lifecycle .lifecycle-summary-card {
    margin: 0;
    font-size: 0.85rem;
}

.event-settings-band {
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
}

.event-settings-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-settings-band__label {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.event-settings-band__label strong {
    color: #0d1b2a;
}

.event-settings-band__label span {
    color: var(--gray-500);
}

.event-settings-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.event-settings-band__readonly {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.event-more-menu {
    position: relative;
}

.event-more-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 40;
    min-width: 220px;
    padding: 0.35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.12);
}

.event-more-menu__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0d1b2a;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.event-more-menu__item:hover,
.event-more-menu__item:focus-visible {
    background: rgba(13, 27, 42, 0.04);
    outline: none;
}

.event-more-menu__item--danger {
    color: #dc2626;
}

.event-more-menu__item[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.participants-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.participants-empty-state__hint {
    color: var(--gray-600);
    font-size: 0.88rem;
    margin: 0.5rem 0 0;
}

/* Invite Hub modal */
.invite-hub-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.invite-hub-modal.is-open {
    display: flex;
}

.invite-hub-modal.is-open .invite-hub-modal__sheet {
    opacity: 1;
    transform: translateY(0);
}

.invite-hub-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.48);
    animation: inviteHubFadeIn 0.2s ease;
}

.invite-hub-modal__sheet {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 48px rgba(13, 27, 42, 0.18);
    animation: inviteHubSlideUp 0.28s ease;
}

.invite-hub-modal__header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.invite-hub-modal__header p {
    margin: 0 0 1rem;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.invite-hub-channels {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.invite-hub-channel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.invite-hub-channel:hover,
.invite-hub-channel:focus-visible {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
    transform: translateY(-1px);
    outline: none;
}

.invite-hub-channel__icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.invite-hub-back {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.invite-hub-panel h3 {
    margin: 0 0 0.5rem;
}

.invite-hub-panel__hint {
    margin: 0 0 1rem;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.invite-hub-panel--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    color: var(--gray-600);
    text-align: center;
}

.invite-hub-panel--whatsapp .smart-share-wa-options {
    margin-bottom: 1rem;
}

.invite-hub-panel--whatsapp .smart-share-wa-option span {
    font-weight: 600;
}

.invite-hub-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--gray-50);
}

.invite-hub-result__row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invite-hub-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.invite-hub-qr-url {
    font-size: 0.8rem;
    color: var(--gray-600);
    word-break: break-all;
}

.invite-hub-pdf-preview {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(13, 27, 42, 0.04);
    margin-bottom: 1rem;
}

body.invite-hub-open {
    overflow: hidden;
}

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

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

@media (min-width: 768px) {
    .invite-hub-modal {
        align-items: flex-start;
        justify-content: center;
        padding: min(8vh, 64px) 1rem 1.5rem;
    }

    .invite-hub-modal__sheet {
        border-radius: 22px;
        max-height: min(82vh, 680px);
        box-shadow: 0 24px 64px rgba(13, 27, 42, 0.2);
        animation: inviteHubSlideDown 0.28s ease;
    }
}

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

@media (min-width: 1024px) {
    .event-details-page--v3 .mobile-content-tabs {
        display: none;
    }

    .event-details-page--v3 [data-event-section].mobile-hidden-section {
        display: block !important;
    }
}

@media (max-width: 1279px) {
    .event-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-details-workspace {
        grid-template-columns: 1fr;
    }

    .participants-list--v3 {
        max-height: min(55vh, 520px);
    }
}

@media (max-width: 1023px) {
    .event-details-toolbar__actions {
        width: 100%;
        justify-content: stretch;
    }

    .event-details-invite-btn {
        flex: 1;
    }

    .event-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participants-toolbar {
        grid-template-columns: 1fr;
    }

    .participants-table__head {
        display: none;
    }

    .participant-row--v3 {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.75rem;
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .participants-list--v3 {
        max-height: none;
        min-height: 280px;
    }

    .event-details-participants {
        min-height: auto;
    }
}

/* ── Smart Invitation Card V2 ───────────────────────────────────── */
.life-theme-picker-mount {
    margin-bottom: 1rem;
}

.life-theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.life-theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.life-theme-chip:hover {
    border-color: var(--primary, #22c55e);
}

.life-theme-chip.is-selected {
    border-color: var(--primary, #22c55e);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.life-theme-chip__emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.inv-card-shell {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.inv-card-shell--fullscreen {
    max-width: min(100%, 480px);
}

.inv-card-shell--whatsapp,
.inv-card-shell--share,
.inv-card-shell--qr,
.inv-card-shell--pdf {
    max-width: 360px;
}

.inv-card-viral-signature {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.625rem;
    color: rgba(15, 23, 42, 0.38);
    pointer-events: none;
    letter-spacing: 0.02em;
    z-index: 2;
}

.invite-hub-card-preview {
    margin: 1rem 0;
    padding: 0.5rem;
    background: var(--gray-50, #f9fafb);
    border-radius: 16px;
    border: 1px solid var(--gray-200, #e5e7eb);
    max-height: min(52vh, 480px);
    overflow-y: auto;
}

.invite-hub-card-preview--qr {
    max-height: min(60vh, 520px);
}

.invite-hub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.invite-hub-card-actions .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 640px) {
    .inv-card-shell--web {
        max-width: 100%;
    }

    .invite-hub-card-preview {
        max-height: 55vh;
    }
}

/* ── Living Invitation V3 ───────────────────────────────────────── */
.living-invite-body {
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

.living-invite-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #22C55E 0%, #06B6D4 100%);
    opacity: 0.35;
    transform: scale(1.05);
    transition: background 0.6s ease;
}

.living-invite-main {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    min-height: 100vh;
}

.living-invite-loading,
.living-invite-error {
    text-align: center;
    padding: 4rem 1rem;
    color: #e2e8f0;
}

.living-invite-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.living-countdown-badge {
    display: inline-flex;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    font-weight: 800;
    font-size: 0.95rem;
}

.living-role-badge {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    font-weight: 700;
}

.living-invite-card-wrap { position: relative; margin-bottom: 1.25rem; }

.inv-card-shell--living {
    animation: livingCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.living-viral-link {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: rgba(248, 250, 252, 0.45);
    text-decoration: none;
}

.living-invite-actions { display: flex; flex-direction: column; gap: 1rem; }

.living-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.living-rsvp {
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.living-rsvp__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }

.living-share__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

.living-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.6875rem;
    text-decoration: none;
}

.living-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: livingReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.living-reveal--delay-1 { animation-delay: 0.12s; }
.living-reveal--delay-2 { animation-delay: 0.24s; }

@keyframes livingReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes livingCardIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

