/**
 * DataFirefly CRM B2B - Front-office Styles
 */

/* Stats */
.dfcrm-front-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dfcrm-front-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.dfcrm-front-stat .stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.dfcrm-front-stat .stat-txt {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Sections */
.dfcrm-front-section {
    margin-bottom: 35px;
}

.dfcrm-front-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

/* Categories */
.dfcrm-front-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dfcrm-front-cat-card {
    display: block;
    padding: 16px 22px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    min-width: 160px;
}

.dfcrm-front-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #7c3aed;
    text-decoration: none;
    color: inherit;
}

.cat-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.cat-card-stats {
    display: flex;
    gap: 12px;
}

.cat-card-stats span {
    font-size: 12px;
    color: #64748b;
}

/* Products Grid */
.dfcrm-front-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.dfcrm-front-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.dfcrm-front-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dfcrm-front-product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.product-views-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.product-card-details {
    padding: 12px 14px 6px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-category {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px 12px;
}

.product-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.dfcrm-btn-view {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 8px;
}

.dfcrm-unavailable {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
}

/* Timeline */
.dfcrm-front-timeline {
    position: relative;
    padding-left: 20px;
}

.dfcrm-front-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.timeline-date {
    width: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    flex-shrink: 0;
    padding-top: 2px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
}

.dot-brevo {
    background: #3b82f6;
}

.dot-site {
    background: #10b981;
}

.timeline-info {
    flex: 1;
}

.timeline-info a {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}

.timeline-info a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.timeline-source {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.timeline-campaign {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* Empty state */
.dfcrm-front-empty {
    text-align: center;
    padding: 50px 20px;
}

.dfcrm-front-empty svg {
    margin-bottom: 20px;
}

.dfcrm-front-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.dfcrm-front-empty p {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .dfcrm-front-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .dfcrm-front-stats {
        gap: 10px;
    }
    .dfcrm-front-stat {
        padding: 14px 10px;
    }
    .dfcrm-front-stat .stat-num {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .dfcrm-front-products {
        grid-template-columns: 1fr;
    }
}


/* ============================== */
/* MISS JUNE CLUB — LOYALTY PAGE  */
/* ============================== */

.mjclub-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: spartan, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Campaign banner */
.mjclub-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-radius: 0;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}
.mjclub-banner-icon { font-size: 22px; }
.mjclub-banner-text { font-size: 13px; font-weight: 500; line-height: 1.5; }
.mjclub-banner-text strong { font-weight: 700; }
.mjclub-banner-sub { display: block; font-size: 11px; opacity: 0.75; margin-top: 2px; }

/* Hero: tier + points */
.mjclub-hero {
    text-align: center;
    padding: 40px 24px 32px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    margin-bottom: 32px;
    position: relative;
}
.mjclub-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border: 1.5px solid;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mjclub-tier-icon { font-size: 20px; }
.mjclub-tier-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
}
.mjclub-points-display { margin-bottom: 6px; }
.mjclub-points-num {
    font-size: 56px;
    font-weight: 600;
    color: #000;
    line-height: 1;
    font-family: "Playfair Display", Georgia, serif;
}
.mjclub-points-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 6px;
    font-weight: 500;
}
.mjclub-expiry-alert {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: #fff8e7;
    border: 1px solid #f0dca0;
    font-size: 12px;
    color: #8a6d20;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.mjclub-pending-alert {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #f0f5ff;
    border: 1px solid #ccdcf5;
    font-size: 12px;
    color: #3b5fa0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Progress bar */
.mjclub-progress-section {
    margin-bottom: 36px;
    padding: 0 4px;
}
.mjclub-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mjclub-progress-bar {
    height: 6px;
    background: #f0ebe3;
    overflow: hidden;
}
.mjclub-progress-fill {
    height: 100%;
    transition: width 1s ease;
}
.mjclub-progress-info {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    letter-spacing: 0.2px;
}
.mjclub-progress-info strong {
    color: #000;
}

/* Sections */
.mjclub-section {
    margin-bottom: 40px;
}
.mjclub-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #efe9df;
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0.3px;
}

/* Benefits grid */
.mjclub-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.mjclub-benefit-card {
    text-align: center;
    padding: 24px 16px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    transition: border-color 0.3s;
}
.mjclub-benefit-card:hover {
    border-color: #c9a96e;
}
.mjclub-benefit-icon { display: block; font-size: 26px; margin-bottom: 8px; }
.mjclub-benefit-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}
.mjclub-benefit-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* Rewards grid */
.mjclub-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.mjclub-reward-card {
    text-align: center;
    padding: 28px 16px 24px;
    background: #fff;
    border: 1.5px solid #efe9df;
    transition: all 0.3s;
    position: relative;
}
.mjclub-reward-card:hover {
    border-color: #c9a96e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.12);
}
.mjclub-reward-locked {
    opacity: 0.45;
    pointer-events: none;
}
.mjclub-reward-amount {
    font-size: 30px;
    font-weight: 600;
    color: #c9a96e;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1;
}
.mjclub-reward-points {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin: 8px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mjclub-reward-min {
    font-size: 11px;
    color: #aaa;
}
.mjclub-reward-validity {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 14px;
}
.mjclub-reward-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: spartan, sans-serif;
}
.mjclub-reward-btn:hover {
    background: #c9a96e;
}
.mjclub-reward-need {
    font-size: 11px;
    color: #c0392b;
    font-weight: 500;
    margin-top: 8px;
}

/* Referral */
.mjclub-referral-card {
    display: flex;
    gap: 28px;
    padding: 32px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    align-items: center;
    flex-wrap: wrap;
}
.mjclub-referral-info {
    flex: 1;
    min-width: 240px;
}
.mjclub-referral-info p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px;
}
.mjclub-referral-stats {
    font-size: 12px;
    color: #aaa;
    display: flex;
    gap: 8px;
    font-weight: 500;
}
.mjclub-referral-code-box { text-align: center; }
.mjclub-referral-code {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #c9a96e;
    padding: 14px 28px;
    background: #fff;
    border: 2px dashed #c9a96e;
    margin-bottom: 14px;
    font-family: 'Courier New', monospace;
}
.mjclub-referral-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.mjclub-share-btn {
    display: inline-block;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d9ccb0;
    background: #fff;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    font-family: spartan, sans-serif;
}
.mjclub-share-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

/* Tiers overview */
.mjclub-tiers-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.mjclub-tier-card {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border: 1.5px solid #efe9df;
    position: relative;
    transition: all 0.3s;
}
.mjclub-tier-active {
    border-color: #c9a96e;
    background: #fdf9f3;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.12);
}
.mjclub-tier-card-icon { font-size: 32px; margin-bottom: 8px; }
.mjclub-tier-card-name {
    font-size: 14px;
    font-weight: 700;
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0.5px;
}
.mjclub-tier-card-pts {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    font-weight: 500;
}
.mjclub-tier-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #c9a96e;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* History — Summary Stats */
.mjhist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.mjhist-stat {
    text-align: center;
    padding: 18px 12px;
    background: #faf8f5;
    border: 1px solid #efe9df;
}
.mjhist-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 600;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1;
    margin-bottom: 4px;
}
.mjhist-stat-earned { color: #27ae60; }
.mjhist-stat-spent { color: #c0392b; }
.mjhist-stat-balance { color: #c9a96e; }
.mjhist-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* History — Filter Tabs */
.mjhist-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mjhist-filter {
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #efe9df;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: spartan, sans-serif;
    transition: all 0.25s;
}
.mjhist-filter:hover {
    border-color: #c9a96e;
    color: #333;
}
.mjhist-filter-active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.mjhist-filter-active:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* History — Month Separator */
.mjhist-month-sep {
    padding: 10px 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #c9a96e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #efe9df;
    margin-top: 8px;
}
.mjhist-month-sep:first-child {
    margin-top: 0;
}

/* History — Row */
.mjhist-list {
    border: 1px solid #efe9df;
    overflow: hidden;
}
.mjhist-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f0e8;
    transition: background 0.2s;
}
.mjhist-row:last-child { border-bottom: none; }
.mjhist-row:hover { background: #fdf9f3; }
.mjhist-hidden { display: none !important; }
.mjhist-pending { opacity: 0.55; }
.mjhist-cancelled { opacity: 0.35; }
.mjhist-cancelled .mjhist-detail { text-decoration: line-through; }

.mjhist-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f5;
    border: 1px solid #efe9df;
    font-size: 18px;
    flex-shrink: 0;
    border-radius: 50%;
}

.mjhist-content {
    flex: 1;
    min-width: 0;
}
.mjhist-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mjhist-type-label {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}
.mjhist-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mjhist-badge-pending { background: #fff8e7; color: #8a6d20; border: 1px solid #f0dca0; }
.mjhist-badge-cancelled { background: #fef2f2; color: #c0392b; border: 1px solid #f5cece; }

.mjhist-detail {
    font-size: 12px;
    color: #999;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mjhist-date {
    font-size: 11px;
    color: #ccc;
    margin-top: 1px;
    font-weight: 500;
}

.mjhist-points {
    flex-shrink: 0;
    text-align: right;
    font-size: 17px;
    font-weight: 700;
    font-family: "Playfair Display", Georgia, serif;
    min-width: 60px;
}
.mjhist-pts-plus { color: #27ae60; }
.mjhist-pts-minus { color: #c0392b; }
.mjhist-pts-unit {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: spartan, sans-serif;
}

/* History — Toggle button */
.mjhist-toggle {
    text-align: center;
    margin-top: 16px;
}
.mjhist-toggle-btn {
    padding: 10px 28px;
    background: #fff;
    border: 1.5px solid #efe9df;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: spartan, sans-serif;
    transition: all 0.3s;
}
.mjhist-toggle-btn:hover {
    border-color: #c9a96e;
    color: #c9a96e;
}

/* History — Responsive */
@media (max-width: 768px) {
    .mjhist-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mjhist-stat { padding: 14px 8px; }
    .mjhist-stat-num { font-size: 22px; }
    .mjhist-row { gap: 10px; padding: 12px 14px; }
    .mjhist-icon { width: 34px; height: 34px; font-size: 15px; }
    .mjhist-points { font-size: 15px; min-width: 50px; }
}
@media (max-width: 480px) {
    .mjhist-filters { gap: 4px; }
    .mjhist-filter { padding: 6px 12px; font-size: 10px; }
    .mjhist-stat-label { font-size: 9px; letter-spacing: 1px; }
}

/* How it works */
.mjclub-how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.mjclub-how-step {
    text-align: center;
    padding: 28px 16px 24px;
    background: #faf8f5;
    border: 1px solid #efe9df;
}
.mjclub-how-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border-radius: 50%;
}
.mjclub-how-step strong {
    display: block;
    font-size: 13px;
    color: #000;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.mjclub-how-step p {
    font-size: 11px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Result alerts */
.mjclub-success {
    padding: 20px;
    background: #f4faf5;
    border: 1px solid #c3e6c8;
    text-align: center;
    color: #1a6b2a;
    font-size: 13px;
    margin-top: 16px;
}
.mjclub-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #f5cece;
    text-align: center;
    color: #8b2020;
    font-size: 13px;
    margin-top: 16px;
}

/* Toast notification */
.mjclub-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    background: #000;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    font-size: 13px;
    z-index: 9999;
    animation: mjclub-slide-in 0.4s ease;
    max-width: 360px;
    letter-spacing: 0.2px;
}
.mjclub-toast strong { color: #c9a96e; }
@keyframes mjclub-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .mjclub-wrapper { padding: 0 16px 32px; }
    .mjclub-hero { padding: 28px 20px 24px; }
    .mjclub-points-num { font-size: 42px; }
    .mjclub-referral-card { flex-direction: column; padding: 24px 20px; gap: 20px; }
    .mjclub-rewards-grid { grid-template-columns: repeat(2, 1fr); }
    .mjclub-tiers-overview { grid-template-columns: repeat(2, 1fr); }
    .mjclub-how-grid { grid-template-columns: repeat(2, 1fr); }
    .mjclub-tier-card { padding: 20px 12px; }
}
@media (max-width: 480px) {
    .mjclub-referral-code { font-size: 18px; letter-spacing: 2px; padding: 12px 18px; }
    .mjclub-benefits-grid { grid-template-columns: 1fr 1fr; }
    .mjclub-rewards-grid { grid-template-columns: 1fr 1fr; }
    .mjclub-reward-card { padding: 20px 12px 18px; }
    .mjclub-reward-amount { font-size: 24px; }
    .mjclub-how-grid { grid-template-columns: 1fr 1fr; }
    .mjclub-section-title { font-size: 18px; }
}

/* CGV */
.mjclub-cgv { margin-top: 8px; }
.mjclub-cgv-content {
    margin-top: 12px;
    padding: 20px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    font-size: 12px;
    color: #777;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
}
.mjclub-cgv-content h3, .mjclub-cgv-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 14px 0 6px;
    font-family: "Playfair Display", Georgia, serif;
}
.mjclub-cgv-content ul { padding-left: 18px; }
.mjclub-cgv-content a { color: #c9a96e; }
.mjclub-cgv-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 11px;
}
.mjclub-cgv-content td, .mjclub-cgv-content th {
    padding: 6px 10px;
    border: 1px solid #efe9df;
    text-align: left;
}
.mjclub-cgv-content th {
    background: #f5f0e8;
    font-weight: 600;
}

/* ==========================================
   PHASE 5: Product Page Loyalty Widget
   ========================================== */
.mjclub-product-widget {
    margin: 12px 0;
    padding: 14px 18px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    font-family: spartan, sans-serif;
}
.mjclub-pw-main {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.mjclub-pw-main strong {
    color: #c9a96e;
    font-weight: 700;
}
.mjclub-pw-icon { font-size: 15px; }
.mjclub-pw-boost {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mjclub-pw-nudge {
    margin-top: 8px;
    font-size: 11px;
    color: #8a6d20;
    background: #fff8e7;
    padding: 8px 12px;
    border-left: 3px solid #c9a96e;
}
.mjclub-pw-unlock {
    margin-top: 8px;
    font-size: 11px;
    color: #1a6b2a;
    background: #f4faf5;
    padding: 8px 12px;
    border-left: 3px solid #27ae60;
}

/* ==========================================
   PHASE 6: Referral Tiers
   ========================================== */
.mjclub-referral-tiers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #efe9df;
}
.mjclub-referral-tiers-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.mjclub-referral-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.mjclub-rt-card {
    text-align: center;
    padding: 20px 14px;
    background: #fff;
    border: 1.5px solid #efe9df;
    position: relative;
    transition: all 0.3s;
}
.mjclub-rt-card.mjclub-rt-unlocked {
    border-color: #c9a96e;
    background: #fdf9f3;
}
.mjclub-rt-count {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
}
.mjclub-rt-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.mjclub-rt-rewards span {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #c9a96e;
    margin: 6px 4px 0;
}
.mjclub-rt-tier {
    display: block;
    font-size: 11px;
    color: #888 !important;
    font-style: italic;
}
.mjclub-rt-badge {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mjclub-referral-progress-text {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* ==========================================
   PHASE 6: Monthly Challenges
   ========================================== */
.mjclub-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.mjclub-challenge-card {
    padding: 22px 20px;
    background: #fff;
    border: 1.5px solid #efe9df;
    transition: all 0.3s;
}
.mjclub-challenge-card:hover {
    border-color: #c9a96e;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.1);
}
.mjclub-challenge-card.mjclub-challenge-done {
    background: #fdf9f3;
    border-color: #c9a96e;
}
.mjclub-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}
.mjclub-challenge-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}
.mjclub-challenge-timer {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    font-weight: 500;
}
.mjclub-challenge-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.5;
}
.mjclub-challenge-progress-bar {
    height: 5px;
    background: #f0ebe3;
    overflow: hidden;
    margin-bottom: 8px;
}
.mjclub-challenge-fill {
    height: 100%;
    background: #c9a96e;
    transition: width 0.8s ease;
}
.mjclub-challenge-done .mjclub-challenge-fill {
    background: #27ae60;
}
.mjclub-challenge-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
}
.mjclub-challenge-reward {
    color: #c9a96e;
    font-weight: 700;
}
.mjclub-challenge-complete {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   PHASE 6: Bundle Suggestion
   ========================================== */
.mjclub-bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.mjclub-bundle-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
    border: 1px solid #efe9df;
    background: #fff;
    overflow: hidden;
}
.mjclub-bundle-item:hover {
    border-color: #c9a96e;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.1);
}
.mjclub-bundle-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f5f0e8;
}
.mjclub-bundle-name {
    padding: 10px 10px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}
.mjclub-bundle-price {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    padding: 0 10px;
}
.mjclub-bundle-pts {
    font-size: 11px;
    color: #c9a96e;
    font-weight: 600;
    padding: 4px 10px 14px;
}
.mjclub-bundle-total {
    margin-top: 14px;
    padding: 14px 20px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    text-align: center;
    font-size: 13px;
    color: #555;
}
.mjclub-bundle-total strong {
    color: #000;
}

/* ==========================================
   PHASE 6: Free Shipping Badge
   ========================================== */
.mjclub-shipping-badge {
    padding: 18px 24px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.mjclub-shipping-badge strong {
    color: #000;
}
.mjclub-shipping-hint {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

/* ==========================================
   PHASE 6: Cart Shipping Progress
   ========================================== */
.mjclub-cart-shipping {
    margin: 12px 0;
    padding: 14px 18px;
    background: #faf8f5;
    border: 1px solid #efe9df;
}
.mjclub-cart-ship-bar {
    height: 4px;
    background: #f0ebe3;
    overflow: hidden;
    margin: 8px 0;
}
.mjclub-cart-ship-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a96e, #d4b87a);
    transition: width 0.5s;
}
.mjclub-cart-ship-text {
    font-size: 12px;
    color: #555;
    text-align: center;
    font-weight: 500;
}
.mjclub-cart-ship-text strong { color: #c9a96e; }

/* ==========================================
   PHASE 7: Wishlist Heart Button
   ========================================== */
.mjclub-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid #efe9df;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s;
    color: #ccc;
    border-radius: 0;
}
.mjclub-wish-btn:hover { background: #fff; color: #c0392b; border-color: #c0392b; }
.mjclub-wish-btn.mjclub-wish-active { color: #c0392b; background: #fff; }
.mjclub-wish-btn.mjclub-wish-loading { pointer-events: none; opacity: 0.5; }

/* ==========================================
   PHASE 7: Wishlist Page
   ========================================== */
.mjclub-wishlist-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.mjclub-wishlist-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
    margin-bottom: 20px;
}
.mjclub-wishlist-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.mjclub-wishlist-stat {
    flex: 1;
    text-align: center;
    padding: 18px 14px;
    background: #faf8f5;
    border: 1px solid #efe9df;
}
.mjclub-wishlist-stat .stat-num {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
}
.mjclub-wishlist-stat .stat-txt {
    display: block;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.mjclub-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
    font-size: 14px;
}
.mjclub-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.mjclub-wishlist-card {
    background: #fff;
    border: 1px solid #efe9df;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}
.mjclub-wishlist-card:hover {
    border-color: #c9a96e;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.1);
}
.mjclub-wishlist-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #f5f0e8;
}
.mjclub-wishlist-info {
    padding: 14px 16px;
}
.mjclub-wishlist-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.4;
}
.mjclub-wishlist-name a { color: inherit; text-decoration: none; }
.mjclub-wishlist-name a:hover { color: #c9a96e; }
.mjclub-wishlist-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}
.mjclub-wishlist-actions {
    display: flex;
    gap: 8px;
}
.mjclub-wishlist-atc {
    flex: 1;
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    font-family: spartan, sans-serif;
    text-align: center;
    text-decoration: none;
}
.mjclub-wishlist-atc:hover { background: #c9a96e; color: #fff; text-decoration: none; }
.mjclub-wishlist-remove {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #efe9df;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.mjclub-wishlist-remove:hover { border-color: #c0392b; color: #c0392b; }
.mjclub-wishlist-date {
    font-size: 10px;
    color: #ccc;
    margin-top: 6px;
}
.mjclub-wishlist-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mjclub-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================
   PHASE 8: Private Sales
   ========================================== */
.mjclub-private-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.mjclub-ps-card {
    padding: 22px 20px;
    background: #fff;
    border: 1.5px solid #efe9df;
    transition: all 0.3s;
}
.mjclub-ps-card.mjclub-ps-active {
    border-color: #27ae60;
    background: #fafff5;
}
.mjclub-ps-card.mjclub-ps-upcoming {
    border-color: #c9a96e;
    background: #fdf9f3;
}
.mjclub-ps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mjclub-ps-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
}
.mjclub-ps-badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mjclub-ps-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.5;
}
.mjclub-ps-password {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.mjclub-ps-code {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    padding: 6px 14px;
    background: #f5f0e8;
    border: 1px dashed #d9ccb0;
}
.mjclub-ps-timer {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* ==========================================
   PHASE 9: UGC Page — Partager & Gagner
   ========================================== */
.mjugc-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: spartan, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hero */
.mjugc-hero {
    text-align: center;
    padding: 40px 20px 36px;
    margin-bottom: 36px;
    background: #faf8f5;
    border: 1px solid #efe9df;
}
.mjugc-hero-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}
.mjugc-hero-sub {
    font-size: 13px;
    color: #888;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Types grid */
.mjugc-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}
.mjugc-type-card {
    text-align: center;
    padding: 30px 16px 26px;
    background: #fff;
    border: 1.5px solid #efe9df;
    transition: all 0.3s;
}
.mjugc-type-card:hover {
    border-color: #c9a96e;
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.1);
}
.mjugc-type-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.mjugc-type-pts {
    font-size: 20px;
    font-weight: 600;
    color: #c9a96e;
    font-family: "Playfair Display", Georgia, serif;
    margin-bottom: 6px;
}
.mjugc-type-name {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.mjugc-type-desc {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

/* Section title */
.mjugc-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #efe9df;
    letter-spacing: 0.3px;
}

/* Form */
.mjugc-form-section {
    margin-bottom: 40px;
}
.mjugc-form {
    max-width: 520px;
    text-align: left;
}
.mjugc-field {
    margin-bottom: 20px;
    text-align: left;
}
.mjugc-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: left;
}
.mjugc-optional {
    font-weight: 400;
    color: #aaa;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}
.mjugc-field select,
.mjugc-field input[type="number"],
.mjugc-field input[type="url"],
.mjugc-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-family: spartan, sans-serif;
    border: 1.5px solid #efe9df;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.mjugc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.mjugc-field select:focus,
.mjugc-field input:focus {
    border-color: #c9a96e;
}
.mjugc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #bbb;
    font-style: italic;
    text-align: left;
}
.mjugc-submit-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: spartan, sans-serif;
    transition: background 0.3s;
    border-radius: 0;
}
.mjugc-submit-btn:hover {
    background: #c9a96e;
}

/* Result messages */
.mjugc-result {
    margin-top: 16px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
}
.mjugc-result-ok {
    background: #f4faf5;
    border: 1px solid #c3e6c8;
    color: #1a6b2a;
}
.mjugc-result-err {
    background: #fef2f2;
    border: 1px solid #f5cece;
    color: #c0392b;
}

/* History */
.mjugc-history-section {
    margin-bottom: 40px;
}
.mjugc-history-list {
    border: 1px solid #efe9df;
    overflow: hidden;
}
.mjugc-history-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f0e8;
    gap: 16px;
    transition: background 0.2s;
}
.mjugc-history-row:last-child { border-bottom: none; }
.mjugc-history-row:hover { background: #fdf9f3; }
.mjugc-history-row:nth-child(even) { background: #faf8f5; }
.mjugc-history-row:nth-child(even):hover { background: #f5f0e8; }
.mjugc-history-type {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.mjugc-history-info {
    flex: 1;
    min-width: 0;
}
.mjugc-history-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.mjugc-history-product {
    font-weight: 400;
    color: #888;
}
.mjugc-history-date {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
    font-weight: 500;
}
.mjugc-history-status {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.mjugc-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mjugc-badge-ok {
    background: #f4faf5;
    color: #1a6b2a;
    border: 1px solid #c3e6c8;
}
.mjugc-badge-no {
    background: #fef2f2;
    color: #c0392b;
    border: 1px solid #f5cece;
}
.mjugc-badge-wait {
    background: #fff8e7;
    color: #8a6d20;
    border: 1px solid #f0dca0;
}
.mjugc-history-pts {
    font-size: 14px;
    font-weight: 700;
    color: #27ae60;
}
.mjugc-st-rejected {
    opacity: 0.5;
}

/* Back link */
.mjugc-back {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #efe9df;
}
.mjugc-back-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}
.mjugc-back-link:hover {
    color: #c9a96e;
    text-decoration: none;
}

/* Product Selector */
.mjugc-product-selector {
    position: relative;
}
.mjugc-ps-search-box {
    position: relative;
}
.mjugc-ps-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 36px;
    font-size: 13px;
    font-family: spartan, sans-serif;
    border: 1.5px solid #efe9df;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    box-sizing: border-box;
}
.mjugc-ps-input:focus {
    border-color: #c9a96e;
}
.mjugc-ps-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.mjugc-ps-clear:hover {
    color: #000;
}
.mjugc-ps-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #faf8f5;
    border: 1.5px solid #c9a96e;
}
.mjugc-ps-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mjugc-ps-remove {
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px 4px;
    transition: color 0.2s;
}
.mjugc-ps-remove:hover {
    color: #c0392b;
}
.mjugc-ps-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #efe9df;
    border-top: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mjugc-ps-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f0e8;
}
.mjugc-ps-option:last-child {
    border-bottom: none;
}
.mjugc-ps-option:hover {
    background: #fdf9f3;
}
.mjugc-ps-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f0e8;
}
.mjugc-ps-nothumb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f0e8;
    font-size: 16px;
    flex-shrink: 0;
}
.mjugc-ps-option-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mjugc-ps-empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

/* UGC Responsive */
@media (max-width: 768px) {
    .mjugc-types-grid { grid-template-columns: repeat(2, 1fr); }
    .mjugc-type-card { padding: 22px 14px 20px; }
    .mjugc-hero { padding: 28px 16px; }
    .mjugc-hero-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .mjugc-types-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mjugc-type-pts { font-size: 17px; }
    .mjugc-type-name { font-size: 11px; }
    .mjugc-history-row { flex-wrap: wrap; gap: 8px; }
    .mjugc-history-status { width: 100%; flex-direction: row; justify-content: flex-start; }
}

/* ==========================================
   Wishlist / UGC links (bottom of loyalty)
   ========================================== */
.mjclub-wishlist-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #efe9df;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.mjclub-wishlist-link:hover {
    border-color: #c9a96e;
    color: #c9a96e;
    text-decoration: none;
}
.mjclub-wishlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #c9a96e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
}
.mjclub-wishlist-link:hover .mjclub-wishlist-count {
    background: #000;
}
.mjclub-ugc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #efe9df;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.mjclub-ugc-link:hover {
    border-color: #c9a96e;
    color: #c9a96e;
    text-decoration: none;
}

/* ==========================================
   CART LOYALTY WIDGET — One-click redeem
   ========================================== */
.mjcart-loyalty-widget {
    margin: 16px 0;
    padding: 18px 22px;
    background: #faf8f5;
    border: 1px solid #efe9df;
    font-family: spartan, sans-serif;
    font-size: 13px;
}
.mjcart-loyalty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.mjcart-loyalty-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
}
.mjcart-loyalty-balance {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}
.mjcart-loyalty-balance strong {
    color: #c9a96e;
    font-size: 16px;
}
.mjcart-rewards-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.mjcart-reward-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #efe9df;
    transition: all 0.3s;
}
.mjcart-reward-option:hover { border-color: #c9a96e; }
.mjcart-reward-option.mjcart-reward-locked {
    opacity: 0.4;
    pointer-events: none;
}
.mjcart-reward-label {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}
.mjcart-reward-cost {
    font-size: 11px;
    color: #aaa;
}
.mjcart-reward-btn {
    padding: 8px 18px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    font-family: spartan, sans-serif;
}
.mjcart-reward-btn:hover { background: #c9a96e; }
.mjcart-reward-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
}
.mjcart-result-msg {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    animation: mjcartFade 0.3s ease;
}
.mjcart-result-ok {
    background: #f4faf5;
    border: 1px solid #c3e6c8;
    color: #1a6b2a;
}
.mjcart-result-err {
    background: #fef2f2;
    border: 1px solid #f5cece;
    color: #c0392b;
}
@keyframes mjcartFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 600px) {
    .mjcart-loyalty-widget {
        padding: 14px 16px;
    }
    .mjcart-loyalty-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .mjcart-rewards-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .mjcart-reward-btn {
        padding: 6px 12px;
        min-width: 70px;
    }
}
