.em-button,
.wp-block-button__link {
    background: var(--em-primary) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 9px 17px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.em-button:hover,
.wp-block-button__link:hover {
    background: var(--em-primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.em-button--secondary {
    background: var(--em-white) !important;
    color: var(--em-text) !important;
    border: 1px solid var(--em-border) !important;
    box-shadow: none !important;
}

.em-button--secondary:hover {
    background: var(--em-soft-green) !important;
    border-color: var(--em-primary) !important;
    color: var(--em-primary-dark) !important;
}

.em-connection-card,
.em-activity-toolbar,
.em-sync-status,
.em-event-filter,
.em-home-card {
    background: var(--em-white);
    border: 1px solid var(--em-border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(23, 33, 27, 0.05);
}

.em-sync-status {
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.5;
}

.em-sync-progress {
    background: #f0fdf4;
}

.em-sync-complete {
    background: var(--em-soft-green);
    border-color: #bbf7d0;
}

.em-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: var(--em-white);
    border: 1px solid var(--em-border);
    border-radius: 16px;
    overflow: hidden;
}

.em-table thead {
    background: var(--em-table-head);
    border-bottom: 1px solid var(--em-border);
}

.em-table th,
.em-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--em-border);
    text-align: left;
    font-size: 14px;
}

.em-table th {
    color: var(--em-brand);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.em-table tr:last-child td {
    border-bottom: none;
}

.em-table tr:hover {
    background: #f8fafc;
}

.em-activity-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 16px 0 20px;
}

.em-event-filter {
    margin-bottom: 24px;
}

.em-event-filter label {
    display: block;
    margin-bottom: 8px;
}

.em-event-filter select {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid var(--em-border);
    border-radius: 10px;
    background: var(--em-white);
}

.em-strava-connect {
    margin-top: 12px;
}

.em-strava-connect img {
    height: 48px;
    width: auto;
    display: block;
    transition: all 0.2s ease;
}

.em-strava-connect img:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.em-btn-primary {
    background: linear-gradient(135deg, #1fbf75, #18a66a);
    color: #fff;
}

.em-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(31, 191, 117, 0.28);
}

.em-btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #e54848);
    color: #fff;
}

.em-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(229, 72, 72, 0.28);
}

/* ── Supporter Badges ───────────────────────────────────────────────────── */

.em-supporter-badge img { display: inline-block; vertical-align: middle; }
.em-supporter-badge--small  img { width: 20px; height: 20px; }
.em-supporter-badge--medium img { width: 32px; height: 32px; }

.em-supporter-tile { text-align: center; padding: 12px; }
.em-supporter-tile img { display: block; margin: 0 auto 8px; }
.em-supporter-tile-label { font-size: 12px; color: #666; }

/* ── Supporter Page ─────────────────────────────────────────────────────── */

.em-supporter-current {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--em-soft-green, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.em-supporter-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

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

.em-supporter-card {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: #fff;
}

.em-supporter-card--active {
    border-color: #1fbf75;
    box-shadow: 0 0 0 2px rgba(31, 191, 117, 0.2);
}

.em-supporter-card h3 { margin: 12px 0 4px; font-size: 1.1rem; color: #1a2d5a; }
.em-supporter-card .em-price { font-size: 1.4rem; font-weight: 600; color: #1a2d5a; }
.em-supporter-card .em-period { font-size: 0.8rem; color: #888; }
.em-supporter-card hr { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 16px 0; }
.em-supporter-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.em-supporter-card ul li { padding: 4px 0; font-size: 14px; }
.em-supporter-card ul li::before { content: '✓ '; color: #2ecc71; font-weight: 600; }

.em-supporter-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #1a2d5a;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}
.em-supporter-btn:hover { opacity: 0.85; }
.em-supporter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Danke-Seite ────────────────────────────────────────────────────────── */

.em-danke {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.em-danke-badge { margin-bottom: 20px; }
.em-danke-headline { font-size: 1.6rem; color: #1a2d5a; margin: 0 0 12px; }
.em-danke-text { font-size: 1rem; color: #444; line-height: 1.6; margin-bottom: 28px; }

.em-danke-backfill {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}

.em-danke-backfill h3 { margin: 0 0 10px; color: #1a2d5a; }
.em-danke-backfill p  { margin: 0 0 16px; font-size: 0.95rem; color: #444; line-height: 1.5; }

.em-danke--processing { text-align: center; padding: 40px 20px; color: #666; }
.em-danke-link { margin-top: 28px; }
.em-danke-link a { color: #1a2d5a; font-weight: 600; text-decoration: none; }

.em-backfill-locked,
.em-backfill-supporter,
.em-backfill-box {
    /* Visuelles Styling wird von .em-profile-section übernommen */
    margin: 0;
}

.em-backfill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--em-border);
}

.em-backfill-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--em-text);
}

.em-backfill-tier-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.em-backfill-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.em-backfill-bar {
    flex: 1;
    height: 10px;
    background: var(--em-border);
    border-radius: 999px;
    overflow: hidden;
}

.em-backfill-fill {
    height: 100%;
    background: linear-gradient(90deg, #1fbf75, #18a66a);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.em-backfill-pct {
    font-size: 13px;
    font-weight: 600;
    color: #1a2d5a;
    min-width: 36px;
}

.em-backfill-count {
    font-size: 13px;
    margin: 4px 0 0;
}

.em-backfill-phase {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--em-text, #1e293b);
    margin-bottom: 8px;
}
.em-backfill-page-counter {
    font-weight: 400;
    color: var(--em-muted, #64748b);
}

/* Phase 0 (Strava-Fetch): blauer Balken mit dezenter Opacity-Puls */
.em-backfill-fill--fetch {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    animation: em-backfill-opacity-pulse 2s ease-in-out infinite;
}
@keyframes em-backfill-opacity-pulse {
    0%   { opacity: 1;   }
    50%  { opacity: 0.55; }
    100% { opacity: 1;   }
}

/* ── Icons ──────────────────────────────────────────────────────────────── */
.em-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.em-icon path,
.em-icon circle,
.em-icon rect,
.em-icon line,
.em-icon polyline,
.em-icon polygon {
    stroke: currentColor;
}
.em-icon-gold   { color: #F5A623; }
.em-icon-silver { color: #9B9B9B; }
.em-icon-bronze { color: #C47D3E; }
.em-icon-spinning {
    animation: em-spin 1s linear infinite;
}
@keyframes em-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.em-icon + span,
.em-icon + a,
span + .em-icon,
a + .em-icon {
    margin-left: 4px;
}