/* ===========================
   TFE Membership — Dashboard
   =========================== */

* { box-sizing: border-box; }

.tfe-app {
    display: flex;
    min-height: 100vh;
    background: #f4f1f1;
}

/* ── Sidebar ── */
.tfe-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #ede8e8;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.tfe-sidebar-logo {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid #ede8e8;
    margin-bottom: 1.5rem;
}

.tfe-sidebar-logo span {
    font-size: 13px;
    font-weight: 700;
    color: #6D2929;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tfe-sidebar-logo p {
    font-size: 11px;
    color: #888;
    margin: 2px 0 0;
}

.tfe-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}

.tfe-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.tfe-nav-item:hover {
    background: #f5f0f0;
    color: #282828;
}

.tfe-nav-item.active {
    background: #f5f0f0;
    color: #6D2929;
    font-weight: 600;
}

.tfe-nav-item .tfe-nav-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.tfe-nav-badge {
    margin-left: auto;
    background: #6D2929;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.tfe-nav-logout {
    padding: 0 0.75rem;
    margin-top: auto;
    border-top: 1px solid #ede8e8;
    padding-top: 1rem;
}

/* ── Main content ── */
.tfe-main {
    margin-left: 240px;
    flex: 1;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

.tfe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.tfe-topbar-title {
    font-size: 22px;
    font-weight: 700;
    color: #282828;
}

.tfe-topbar-meta {
    font-size: 13px;
    color: #888;
}

.tfe-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tfe-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8d5d5;
    color: #6D2929;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tfe-topbar-name {
    font-size: 13px;
    font-weight: 600;
    color: #282828;
}

.tfe-topbar-email {
    font-size: 11px;
    color: #888;
}

/* ── Panels ── */
.tfe-panel { display: none; }
.tfe-panel.active { display: block; }

/* ── Stat cards ── */
.tfe-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.tfe-stat-card {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.tfe-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}

.tfe-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #282828;
}

.tfe-stat-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.tfe-stat-card.tfe-stat-accent {
    background: #6D2929;
    border-color: #6D2929;
}

.tfe-stat-card.tfe-stat-accent .tfe-stat-label,
.tfe-stat-card.tfe-stat-accent .tfe-stat-value,
.tfe-stat-card.tfe-stat-accent .tfe-stat-sub {
    color: #fff;
}

.tfe-stat-card.tfe-stat-accent .tfe-stat-label {
    color: rgba(255,255,255,0.7);
}

/* ── Section header ── */
.tfe-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.tfe-section-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #282828;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    padding: 0;
    margin: 0;
}

/* ── Offer cards ── */
.tfe-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.tfe-offer-card {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s;
}

.tfe-offer-card:hover { border-color: #6D2929; }

.tfe-offer-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #282828;
    margin: 0;
}

.tfe-offer-card p {
    font-size: 13px;
    color: #555;
    margin: 0;
    flex-grow: 1;
    line-height: 1.5;
}

/* ── Badges ── */
.tfe-badge {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.tfe-badge-used {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tfe-badge-active {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.tfe-badge-inactive {
    background: #ffeee8;
    color: #c0392b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ── Redeem button ── */
.tfe-redeem-btn {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 4px;
    transition: background 0.15s;
    text-transform: none;
    letter-spacing: 0;
    align-self: flex-start;
}

.tfe-redeem-btn:hover { background: #4e1e1e; }
.tfe-redeem-btn:disabled { background: #ccc; cursor: not-allowed; }

.tfe-redeem-msg {
    font-size: 12px;
    margin: 0;
}

/* ── Redeemed list ── */
.tfe-redeemed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2rem;
}

.tfe-redeemed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
}

.tfe-redeemed-name {
    font-size: 13px;
    font-weight: 600;
    color: #282828;
    flex-grow: 1;
}

.tfe-redeemed-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* ── Messages ── */
.tfe-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tfe-message-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    transition: border-color 0.15s;
}

.tfe-message-item.unread {
    border-left: 3px solid #6D2929;
}

.tfe-message-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6D2929;
    flex-shrink: 0;
    margin-top: 5px;
}

.tfe-message-dot.read { background: #ddd; }

.tfe-message-body { flex: 1; }

.tfe-message-title {
    font-size: 13px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 2px;
}

.tfe-message-text {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.tfe-message-date {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    margin-top: 2px;
}

/* ── Newsletter ── */
.tfe-newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.tfe-newsletter-card {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
    cursor: pointer;
}

.tfe-newsletter-card:hover {
    border-color: #6D2929;
    transform: translateY(-2px);
}

.tfe-newsletter-thumb {
    height: 100px;
    background: #f5f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.tfe-newsletter-body { padding: 14px; }

.tfe-newsletter-date {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tfe-newsletter-title {
    font-size: 13px;
    font-weight: 700;
    color: #282828;
    margin-bottom: 6px;
    line-height: 1.4;
}

.tfe-newsletter-excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

/* ── Billing ── */
.tfe-billing-plan {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.tfe-billing-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #282828;
}

.tfe-billing-plan-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.tfe-billing-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tfe-billing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    font-size: 13px;
}

.tfe-billing-row-name {
    flex: 1;
    font-weight: 600;
    color: #282828;
}

.tfe-billing-row-date { color: #888; font-size: 12px; white-space: nowrap; }
.tfe-billing-row-amount { font-weight: 700; color: #282828; white-space: nowrap; }

.tfe-billing-row-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    white-space: nowrap;
}

/* ── Settings ── */
.tfe-settings-card {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tfe-settings-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #282828;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede8e8;
}

.tfe-settings-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.tfe-settings-field label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tfe-settings-field input {
    padding: 9px 12px;
    border: 1px solid #ede8e8;
    border-radius: 6px;
    font-size: 14px;
    color: #282828;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.15s;
}

.tfe-settings-field input:focus {
    outline: none;
    border-color: #6D2929;
}

/* ── Danger zone ── */
.tfe-danger-zone {
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tfe-danger-zone h4 {
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #fce8e8;
}

.tfe-danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tfe-danger-row:last-child { margin-bottom: 0; }

.tfe-danger-row p {
    font-size: 13px;
    color: #555;
    margin: 0;
    flex: 1;
}

.tfe-btn-danger {
    background: transparent;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.tfe-btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* ── Upgrade banner ── */
.tfe-upgrade-banner {
    background: #6D2929;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tfe-upgrade-banner p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    flex: 1;
}

.tfe-upgrade-banner strong { color: #fff; }

.tfe-btn-upgrade {
    background: #fff;
    color: #6D2929;
    border: none;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
}

.tfe-btn-upgrade:hover { background: #f5f0f0; }
.tfe-btn-upgrade:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Empty state ── */
.tfe-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
    font-size: 13px;
    background: #fff;
    border: 1px solid #ede8e8;
    border-radius: 8px;
}

.tfe-empty-icon { font-size: 32px; margin-bottom: 8px; }

/* ── Action button ── */
.tfe-btn-action {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.tfe-btn-action:hover { background: #4e1e1e; }
.tfe-btn-action:disabled { background: #ccc; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .tfe-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        padding: 1rem;
        overflow-x: auto;
    }
    .tfe-nav {
        flex-direction: row;
        padding: 0;
        gap: 4px;
    }
    .tfe-nav-item { padding: 7px 10px; font-size: 12px; }
    .tfe-main { margin-left: 0; padding: 1.25rem; }
    .tfe-stats-grid { grid-template-columns: 1fr 1fr; }
    .tfe-sidebar-logo { display: none; }
    .tfe-nav-logout { border-top: none; padding-top: 0; margin-top: 0; }
}

/* Titre */
#tfe-dashboard h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #282828;
    margin-bottom: 0.5rem;
    text-transform: none !important;
}

#tfe-dashboard h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #282828;
    margin: 2rem 0 1rem;
    text-transform: none;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #6D2929;
    padding-bottom: 0.4rem;
}

/* Statut */
.tfe-status {
    display: inline-block;
    background: #f5f0f0;
    border-left: 4px solid #6D2929;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: #282828;
    margin-bottom: 1rem;
}

/* Bouton déconnexion */
.tfe-logout {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

#tfe-logout-btn {
    background: transparent;
    border: 1px solid #6D2929;
    color: #6D2929;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}

#tfe-logout-btn:hover {
    background: #6D2929;
    color: #fff;
}

/* Grille d'offres */
.tfe-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Carte d'offre */
.tfe-offer-card {
    border: 1px solid #e0d6d6;
    padding: 1.2rem;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(109, 41, 41, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tfe-offer-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #282828;
    margin: 0;
}

.tfe-offer-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    flex-grow: 1;
}

/* Badge */
.tfe-badge {
    display: inline-block;
    background: #6D2929;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

/* Bouton utiliser l'offre */
.tfe-redeem-btn {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    margin-top: 0.5rem;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tfe-redeem-btn:hover {
    background: #4e1e1e;
}

.tfe-redeem-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.tfe-redeem-msg {
    font-size: 0.85rem;
    margin: 0;
}

/* ===========================
   TFE Membership — Inscription
   =========================== */

#tfe-inscription-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#tfe-inscription-form h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #282828;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #6D2929;
    padding-bottom: 0.5rem;
    text-transform: none !important;
}

#tfe-form p {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#tfe-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #282828;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#tfe-form input,
#tfe-form select {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: #282828;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#tfe-form input:focus,
#tfe-form select:focus {
    outline: none;
    border-color: #6D2929;
}

#tfe-form button[type="submit"] {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}

#tfe-form button[type="submit"]:hover {
    background: #4e1e1e;
}

#tfe-msg {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #6D2929;
}

/* Upgrade de tier */
.tfe-upgrade {
    background: #f5f0f0;
    border-left: 4px solid #6D2929;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tfe-upgrade p {
    margin: 0;
    font-size: 0.9rem;
    color: #282828;
    flex-grow: 1;
}

#tfe-upgrade-btn {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    white-space: nowrap;
}

#tfe-upgrade-btn:hover {
    background: #4e1e1e;
}

#tfe-upgrade-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#tfe-upgrade-msg {
    font-size: 0.85rem;
    width: 100%;
    margin: 0;
}

/* ===========================
   TFE Membership — Connexion
   =========================== */

#tfe-login-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#tfe-login-form h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #282828;
    text-transform: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

#tfe-login p {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#tfe-login label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #282828;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#tfe-login input[type="email"],
#tfe-login input[type="password"] {
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: #282828;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#tfe-login input[type="email"]:focus,
#tfe-login input[type="password"]:focus {
    outline: none;
    border-color: #6D2929;
}

.tfe-remember {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
}

.tfe-remember label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: none !important;
    font-size: 0.9rem !important;
    cursor: pointer;
}

.tfe-remember input[type="checkbox"] {
    width: auto;
    accent-color: #6D2929;
}

#tfe-login button[type="submit"] {
    background: #6D2929;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
    width: 50%;
    display: block;
    margin: auto;
    
}

#tfe-login button[type="submit"]:hover {
    background: #4e1e1e;
}

#tfe-login button[type="submit"]:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#tfe-login-msg {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tfe-login-links {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem !important;
    flex-direction: row !important;
}

.tfe-login-links a {
    color: #6D2929;
    text-decoration: none;
    font-weight: 600;
}

.tfe-login-links a:hover {
    text-decoration: underline;
}

/* Historique offres utilisées */
.tfe-redeemed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tfe-redeemed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0d6d6;
    background: #fafafa;
}

.tfe-redeemed-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #282828;
    flex-grow: 1;
}

.tfe-redeemed-date {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.tfe-badge-used {
    display: inline-block;
    background: #888;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Résiliation */
.tfe-cancel {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0d6d6;
}

.tfe-cancel p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

#tfe-cancel-btn {
    background: transparent;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}

#tfe-cancel-btn:hover {
    background: #c0392b;
    color: #fff;
}

#tfe-cancel-btn:disabled {
    border-color: #aaa;
    color: #aaa;
    cursor: not-allowed;
}

#tfe-cancel-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Membership inactif */
.tfe-status-inactive {
    background: #f5f0f0;
    border-left: 4px solid #aaa;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
}

.tfe-status-inactive p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.tfe-status-inactive a {
    color: #6D2929;
    font-weight: 600;
    text-decoration: none;
}

.tfe-status-inactive a:hover {
    text-decoration: underline;
}

/* Suppression de compte */
.tfe-delete {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0d6d6;
}

.tfe-delete p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

#tfe-delete-btn {
    background: transparent;
    border: 1px solid #aaa;
    color: #aaa;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0;
    transition: border-color 0.2s, color 0.2s;
}

#tfe-delete-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}

#tfe-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#tfe-delete-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Réactivation */
#tfe-reactivate-btn {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

#tfe-reactivate-btn:hover {
    background: #4e1e1e;
}

#tfe-reactivate-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#tfe-reactivate-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.tfe-error-msg {
    background: #fdf0f0;
    border-left: 3px solid #6D2929;
    color: #6D2929;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── Reset Password ─────────────────────────────────── */
#tfe-reset-form {
    max-width: 480px;
    margin: 40px auto;
    padding: 32px;
}

#tfe-reset-form h2 {
    color: #6D2929;
    font-size: 22px;
    margin-bottom: 8px;
}

#tfe-reset-form > p {
    color: #282828;
    font-size: 14px;
    margin-bottom: 24px;
}

#tfe-reset-form form p {
    margin-bottom: 16px;
}

#tfe-reset-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 6px;
}

#tfe-reset-form input[type="email"],
#tfe-reset-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #282828;
    box-sizing: border-box;
}

#tfe-reset-form input:focus {
    outline: none;
    border-color: #6D2929;
}

#tfe-reset-form button[type="submit"] {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

#tfe-reset-form button[type="submit"]:hover {
    background: #5a2020;
}

#tfe-reset-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#tfe-forgot-msg,
#tfe-newpass-msg {
    margin-top: 12px;
    font-size: 14px;
}

/* ===========================
   TFE Membership — Flow
   =========================== */

.tfe-membership-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #282828;
}

.tfe-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.tfe-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfe-step-line {
    flex: 1;
    height: 1px;
    background: #e0d6d6;
    margin: 0 8px;
}

.tfe-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid #ccc;
    color: #888;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tfe-step-label {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.tfe-step-item.active .tfe-step-num {
    background: #6D2929;
    border-color: #6D2929;
    color: #fff;
}

.tfe-step-item.active .tfe-step-label {
    color: #282828;
    font-weight: 600;
}

.tfe-step-item.done .tfe-step-num {
    background: #e8d5d5;
    border-color: #6D2929;
    color: #6D2929;
}

.tfe-screen { display: none; }
.tfe-screen.visible { display: block; }

.tfe-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 1rem;
}

.tfe-billing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tfe-toggle-btn {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
}

.tfe-toggle-btn.active {
    background: #6D2929;
    border-color: #6D2929;
    color: #fff;
}

.tfe-save-badge {
    font-size: 11px;
    background: #e8d5d5;
    color: #6D2929;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: -20px;
}

.tfe-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .tfe-plans-grid { grid-template-columns: 1fr; }
}

.tfe-plan-card {
    border: 1.5px solid #e0d6d6;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    position: relative;
}

.tfe-plan-card:hover {
    border-color: #6D2929;
    transform: translateY(-2px);
}

.tfe-plan-card.selected {
    border-color: #6D2929;
    border-width: 2px;
}

.tfe-plan-card.tfe-featured {
    border-color: #6D2929;
}

.tfe-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #6D2929;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.tfe-plan-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6D2929;
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
}

.tfe-plan-card.selected .tfe-plan-check { display: flex; }

.tfe-plan-icon { font-size: 20px; margin-bottom: 8px; }

.tfe-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 4px;
}

.tfe-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: #6D2929;
    margin-bottom: 2px;
    text-align: center;
    margin-top: 10px;
}

.tfe-plan-per {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    display: block;
}

.tfe-plan-desc {
    font-size: 12px;
    color: #555;
    margin: 8px 0 10px;
    line-height: 1.5;
}

.tfe-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tfe-plan-features li {
    font-size: 12px;
    color: #555;
}

.tfe-custom-amount-box {
    border: 1px solid #e0d6d6;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #faf7f7;
}

.tfe-custom-amount-box label {
    font-size: 13px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.tfe-custom-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfe-currency-tag {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #e0d6d6;
    border-radius: 4px;
    padding: 6px 10px;
}

.tfe-custom-input-row input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #e0d6d6;
    border-radius: 4px;
    color: #282828;
}

.tfe-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f0f0;
    border-left: 3px solid #6D2929;
    padding: 10px 14px;
    margin-bottom: 1.5rem;
    font-size: 13px;
    color: #6D2929;
    font-weight: 600;
}

.tfe-btn-primary {
    background: #6D2929;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    width: 100%;
    transition: background 0.15s;
    text-align: center;
}

.tfe-btn-primary:hover { background: #4e1e1e; }
.tfe-btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.tfe-btn-back {
    background: transparent;
    border: 1px solid #ccc;
    color: #888;
    padding: 9px 20px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0;
    margin-bottom: 1.25rem;
    transition: border-color 0.15s, color 0.15s;
}

.tfe-btn-back:hover { border-color: #6D2929; color: #6D2929; }

.tfe-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.tfe-field label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tfe-field input {
    padding: 9px 12px;
    border: 1px solid #e0d6d6;
    border-radius: 4px;
    font-size: 14px;
    color: #282828;
    width: 100%;
    box-sizing: border-box;
}

.tfe-field input:focus {
    outline: none;
    border-color: #6D2929;
}

.tfe-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .tfe-field-row { grid-template-columns: 1fr; }
}

.tfe-order-recap {
    background: #faf7f7;
    border: 1px solid #e0d6d6;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 1.5rem;
}

.tfe-recap-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: #555;
}

.tfe-recap-total {
    font-weight: 600;
    color: #282828;
    border-top: 1px solid #e0d6d6;
    padding-top: 10px;
    margin-top: 6px;
}

.tfe-recap-total span:last-child { color: #6D2929; }

.tfe-payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.tfe-pay-tab {
    flex: 1;
    padding: 10px;
    border: 1.5px solid #e0d6d6;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    color: #888;
    background: #fff;
    transition: all 0.15s;
}

.tfe-pay-tab.active {
    border-color: #6D2929;
    color: #6D2929;
    background: #f9f4f4;
}

.tfe-pay-form { display: none; }
.tfe-pay-form.visible { display: block; }

.tfe-card-icons {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tfe-card-icon {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}

.tfe-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.tfe-provider-btn {
    padding: 10px;
    border: 1.5px solid #e0d6d6;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: all 0.15s;
}

.tfe-provider-btn.active {
    border-color: #6D2929;
    background: #f9f4f4;
}

.tfe-provider-name {
    font-size: 13px;
    font-weight: 600;
    color: #282828;
}

.tfe-provider-sub {
    font-size: 11px;
    color: #888;
}

.tfe-success-screen {
    text-align: center;
    padding: 3rem 1rem;
}

.tfe-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8d5d5;
    color: #6D2929;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.tfe-success-screen h2 {
    font-size: 20px;
    font-weight: 700;
    color: #282828;
    margin-bottom: 8px;
}

.tfe-success-screen p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}