/* ── Leave Your Mark — Styles ──────────────────────────────────────────── */
#lym-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Stats */
.lym-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lym-stat { background: #f5f5f5; border-radius: 10px; padding: 12px 16px; flex: 1; text-align: center; min-width: 100px; }
.lym-stat-val { display: block; font-size: 22px; font-weight: 600; color: #1a1a1a; }
.lym-stat-lbl { font-size: 12px; color: #666; }

/* Canvas wrap */
.lym-canvas-wrap {
    position: relative;
    background: #888;
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
}
#lym-canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: crosshair;
    border-radius: 8px;
}

/* Zoom bar */
.lym-zoom-bar {
    display: flex; align-items: center; gap: 10px;
    margin-top: 12px; font-size: 13px; color: #666;
}
.lym-zoom-bar input[type=range] { flex: 1; }
.lym-zoom-info { margin-left: auto; font-size: 11px; color: #aaa; }

/* Tooltip */
.lym-tooltip {
    position: absolute;
    background: #1a1a1a; color: #fff;
    font-size: 12px; padding: 6px 10px;
    border-radius: 6px; pointer-events: none;
    display: none; z-index: 99;
    max-width: 220px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* Overlay */
.lym-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 10000;
    align-items: center; justify-content: center; padding: 16px;
}
.lym-overlay.open { display: flex; }

/* Modal */
.lym-modal {
    background: #fff; border-radius: 16px;
    padding: 28px; width: 100%; max-width: 440px;
    max-height: 90vh; overflow-y: auto; position: relative;
}
.lym-modal h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.lym-pixel-info { color: #888; font-size: 13px; margin: 0 0 16px; }
.lym-modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: #888;
}

/* Offres */
.lym-offers { display: flex; gap: 8px; margin-bottom: 16px; }
.lym-offer {
    flex: 1; border: 1.5px solid #e0e0e0;
    border-radius: 10px; padding: 10px 8px;
    cursor: pointer; text-align: center; transition: all 0.15s;
}
.lym-offer:hover { border-color: #7F77DD; background: #EEEDFE; }
.lym-offer.selected { border-color: #7F77DD; background: #EEEDFE; }
.lym-offer-price { font-size: 16px; font-weight: 700; color: #534AB7; }
.lym-offer-title { font-size: 12px; font-weight: 600; margin: 3px 0 2px; }
.lym-offer-desc { font-size: 11px; color: #888; }

/* Champs */
.lym-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lym-fields input[type="text"],
.lym-fields input[type="url"],
.lym-fields input[type="date"],
.lym-fields textarea {
    width: 100%; border: 1.5px solid #e0e0e0;
    border-radius: 8px; padding: 10px 12px;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.15s;
    box-sizing: border-box;
}
.lym-fields input:focus, .lym-fields textarea:focus { border-color: #7F77DD; }
.lym-upload-label {
    display: block; border: 2px dashed #e0e0e0;
    border-radius: 8px; padding: 14px;
    text-align: center; cursor: pointer;
    font-size: 13px; color: #666;
}
.lym-upload-label:hover { border-color: #7F77DD; }

/* Couleur */
.lym-color-picker label { font-size: 13px; color: #555; display: block; margin-bottom: 8px; }
.lym-color-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lym-swatch {
    width: 28px; height: 28px; border-radius: 50%;
    cursor: pointer; border: 3px solid transparent;
    transition: transform 0.12s, border-color 0.12s; flex-shrink: 0;
}
.lym-swatch:hover { transform: scale(1.2); }
.lym-swatch.selected { border-color: #1a1a1a; transform: scale(1.15); }
.lym-swatch-custom {
    background: conic-gradient(red,yellow,lime,cyan,blue,magenta,red);
    position: relative; overflow: hidden;
}
.lym-swatch-custom input[type="color"] {
    position: absolute; inset: 0; opacity: 0;
    cursor: pointer; width: 100%; height: 100%; border: none; padding: 0;
}

/* Stripe */
#lym-card-element { border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.lym-error { color: #e24b4a; font-size: 13px; min-height: 18px; }

/* Footer modal */
.lym-modal-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.lym-total { flex: 1; font-size: 14px; color: #444; }
.lym-total strong { color: #534AB7; font-size: 16px; }
.lym-btn-primary {
    background: #534AB7; color: #fff; border: none;
    border-radius: 8px; padding: 12px 20px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.lym-btn-primary:hover { background: #3C3489; }
.lym-btn-primary:disabled { background: #aaa; cursor: not-allowed; }
.lym-loading { font-size: 13px; color: #888; }

/* Succes */
.lym-success-msg { font-size: 20px; font-weight: 700; text-align: center; margin: 16px 0 8px; }
.lym-share-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.lym-share-btn { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; border: none; }
.lym-share-twitter  { background: #000; color: #fff; }
.lym-share-facebook { background: #1877F2; color: #fff; }
.lym-share-whatsapp { background: #25D366; color: #fff; }
.lym-share-copy     { background: #f0f0f0; color: #333; }

/* Modal lecture */
.lym-modal-view { max-width: 340px; }
.lym-view-capsule-tag { display: inline-block; background: #FAEEDA; color: #854F0B; font-size: 11px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.lym-view-msg { font-size: 16px; font-weight: 500; margin: 8px 0; }
.lym-view-meta { font-size: 12px; color: #888; }
.lym-view-img { width: 100%; border-radius: 8px; margin: 10px 0; }
.lym-view-link { font-size: 13px; color: #534AB7; text-decoration: none; }

/* Profil */
.lym-profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.lym-avatar { width: 56px; height: 56px; border-radius: 50%; background: #EEEDFE; color: #534AB7; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.lym-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lym-profile-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; }
.lym-tag-capsule { font-size: 11px; background: #FAEEDA; color: #854F0B; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-bottom: 8px; }
.lym-profile-img { width: 100%; border-radius: 6px; margin-bottom: 8px; }
.lym-profile-msg { font-size: 14px; color: #1a1a1a; margin-bottom: 8px; }
.lym-profile-link { font-size: 12px; color: #534AB7; text-decoration: none; display: block; margin-bottom: 8px; }
.lym-profile-meta { font-size: 11px; color: #aaa; margin-bottom: 10px; }

@media (max-width: 600px) {
    .lym-offers { flex-direction: column; }
    .lym-stats { flex-wrap: wrap; }
    .lym-modal { padding: 20px; }
    .lym-zoom-info { display: none; }
}
