@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Reset & Core CSS Variables --- */
.lmc-wrapper {
    --lmc-primary: hsl(343, 100%, 62%);
    --lmc-primary-hover: hsl(343, 100%, 55%);
    --lmc-secondary: hsl(325, 83%, 39%);
    --lmc-success: #10ac84;
    --lmc-warning: #ff9f43;
    --lmc-neutral-dark: #2d3436;
    --lmc-neutral-light: #ffffff;
    --lmc-glass-bg: rgba(255, 255, 255, 0.85);
    --lmc-glass-border: rgba(255, 107, 139, 0.2);
    --lmc-font-heading: 'Playfair Display', Georgia, serif;
    --lmc-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lmc-shadow-premium: 0 20px 40px rgba(255, 107, 139, 0.12);
    --lmc-shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.8);
    
    font-family: var(--lmc-font-body);
    color: var(--lmc-neutral-dark);
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 2rem auto;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 30px;
    z-index: 1;
}

.lmc-wrapper * {
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Decorative Background Elements --- */
.lmc-decor-heart {
    position: absolute;
    font-size: 5rem;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    filter: blur(1px);
}
.lmc-decor-1 {
    top: -10px;
    left: -20px;
    animation: floatSlow 8s ease-in-out infinite alternate;
}
.lmc-decor-2 {
    bottom: -20px;
    right: -25px;
    animation: floatSlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-20px) rotate(15deg) scale(1.15); }
}

/* --- Main Card Glassmorphism --- */
.lmc-card {
    background: var(--lmc-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lmc-glass-border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--lmc-shadow-premium);
    position: relative;
}

/* --- Header & Step wizard tracker --- */
.lmc-header {
    text-align: center;
    margin-bottom: 2rem;
}
.lmc-logo {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 139, 0.35));
}
.lmc-header h2 {
    font-family: var(--lmc-font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    background: linear-gradient(135deg, var(--lmc-secondary), var(--lmc-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Step indicator line dots */
.lmc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}
.lmc-step-dot {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 107, 139, 0.15);
    border: 2px solid rgba(255, 107, 139, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.lmc-step-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}
.lmc-step-dot.active {
    background: var(--lmc-neutral-light);
    border-color: var(--lmc-primary);
    box-shadow: 0 0 10px rgba(255, 107, 139, 0.4);
}
.lmc-step-dot.active::after {
    background: var(--lmc-primary);
}
.lmc-step-dot.completed {
    background: var(--lmc-primary);
    border-color: var(--lmc-primary);
}
.lmc-step-dot.completed::after {
    content: '✓';
    color: var(--lmc-neutral-light);
    font-size: 0.75rem;
    font-weight: 800;
}
.lmc-step-dot span {
    position: absolute;
    bottom: -22px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    white-space: nowrap;
}
.lmc-step-dot.active span {
    color: var(--lmc-primary);
}
.lmc-step-dot.completed span {
    color: var(--lmc-secondary);
}
.lmc-step-line {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 107, 139, 0.15);
    margin: 0 8px;
}
.lmc-step-line.completed {
    background: var(--lmc-primary);
}

/* --- Panel Layouts --- */
.lmc-step-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}
.lmc-step-panel.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInPanel 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.lmc-hidden {
    display: none !important;
}

@keyframes slideInPanel {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lmc-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lmc-label {
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lmc-secondary);
}
.lmc-step-desc {
    font-size: 0.88rem;
    color: #636e72;
    margin: 0 0 0.5rem 0;
}

/* --- STEP 1: Her Profile Grid --- */
.lmc-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lmc-profile-card {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid rgba(255, 107, 139, 0.12);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.lmc-profile-card:hover {
    transform: translateY(-4px);
    background: var(--lmc-neutral-light);
    border-color: rgba(255, 107, 139, 0.3);
    box-shadow: 0 10px 22px rgba(255, 107, 139, 0.08);
}
.lmc-profile-card.active {
    background: var(--lmc-neutral-light);
    border-color: var(--lmc-primary);
    box-shadow: 0 10px 24px rgba(255, 107, 139, 0.16);
}

.lmc-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.lmc-profile-avatar-container {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--lmc-neutral-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.lmc-profile-card.active .lmc-profile-avatar-container {
    border-color: var(--lmc-primary);
}
.lmc-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lmc-profile-title {
    display: flex;
    flex-direction: column;
}
.lmc-profile-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--lmc-neutral-dark);
}
.lmc-profile-zodiac {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e056fd;
    margin-top: 2px;
}

.lmc-profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.lmc-profile-bio {
    font-size: 0.8rem;
    color: #57606f;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}
.lmc-profile-date-tag {
    background: rgba(255, 107, 139, 0.07);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    flex-direction: column;
    border: 1px solid rgba(255, 107, 139, 0.08);
}
.lmc-profile-card.active .lmc-profile-date-tag {
    background: rgba(255, 63, 108, 0.06);
}
.date-label {
    font-weight: 800;
    color: var(--lmc-secondary);
    text-transform: uppercase;
    font-size: 0.65rem;
    margin-bottom: 2px;
}
.date-val {
    color: var(--lmc-neutral-dark);
    font-weight: 600;
}

/* Badge shown when card active */
.lmc-select-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--lmc-primary);
    color: var(--lmc-neutral-light);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 63, 108, 0.3);
    opacity: 0;
    transform: translateY(5px);
}
.lmc-profile-card.active .lmc-select-badge {
    opacity: 1;
    transform: translateY(0);
}

/* --- STEP 2: Your Profile inputs --- */
.lmc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.5rem;
}
.lmc-sub-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f4f4f;
}
.lmc-input-group, .lmc-select-group {
    position: relative;
    display: flex;
    align-items: center;
}
.lmc-input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    pointer-events: none;
}
.lmc-input, .lmc-select {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 2px solid rgba(255, 107, 139, 0.2);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--lmc-font-body);
    font-weight: 600;
    outline: none;
    color: var(--lmc-neutral-dark);
    appearance: none;
    -webkit-appearance: none;
}
.lmc-select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF3F6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.lmc-input:focus, .lmc-select:focus {
    border-color: var(--lmc-primary);
    background: var(--lmc-neutral-light);
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.12);
}

/* --- STEP 3: Chemistry Quiz Choice list --- */
.lmc-quiz-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.lmc-quiz-question-block {
    display: none;
}
.lmc-quiz-question-block.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: quizSlideIn 0.35s ease-out;
}
@keyframes quizSlideIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.lmc-quiz-question {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--lmc-neutral-dark);
    border-left: 4px solid var(--lmc-primary);
    padding-left: 10px;
}

.lmc-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lmc-quiz-opt {
    position: relative;
    cursor: pointer;
}
.lmc-quiz-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.opt-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid rgba(255, 107, 139, 0.12);
    border-radius: 14px;
    height: 100%;
}
.lmc-quiz-opt:hover .opt-box {
    background: var(--lmc-neutral-light);
    border-color: rgba(255, 107, 139, 0.25);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.05);
}
.lmc-quiz-opt input[type="radio"]:checked + .opt-box {
    background: var(--lmc-neutral-light);
    border-color: var(--lmc-primary);
    box-shadow: 0 6px 16px rgba(255, 107, 139, 0.15);
}

.opt-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.opt-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lmc-neutral-dark);
}
.lmc-quiz-opt input[type="radio"]:checked + .opt-box .opt-text strong {
    color: var(--lmc-primary);
}
.opt-text span {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}

/* --- STEP 4: Scanning Scanner Panel --- */
.lmc-loading-content {
    text-align: center;
    padding: 1rem 0;
}
.lmc-heart-loader {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heart-icon-beating {
    font-size: 3rem;
    z-index: 2;
    animation: heartbeat 0.8s ease-in-out infinite;
}
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--lmc-primary);
    border-radius: 50%;
    animation: ripple 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.lmc-scanning-checklist {
    max-width: 420px;
    margin: 1.5rem auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lmc-scan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.02);
    font-size: 0.88rem;
    font-weight: 600;
    color: #636e72;
    opacity: 0.5;
}
.lmc-scan-item.active {
    opacity: 1;
    background: var(--lmc-neutral-light);
    border-color: rgba(255, 107, 139, 0.15);
    color: var(--lmc-neutral-dark);
}
.lmc-scan-item.completed {
    opacity: 1;
    background: rgba(16, 172, 132, 0.05);
    border-color: rgba(16, 172, 132, 0.15);
    color: #10ac84;
}
.scan-icon {
    font-size: 1.1rem;
}
.lmc-scan-item.active .scan-icon {
    display: inline-block;
    animation: spinSlow 1.5s linear infinite;
}
@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.lmc-progress-bar-container {
    width: 85%;
    height: 8px;
    background: rgba(255, 107, 139, 0.12);
    border-radius: 10px;
    margin: 1.5rem auto 0 auto;
    overflow: hidden;
}
.lmc-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--lmc-primary), var(--lmc-secondary));
    border-radius: 10px;
}

/* --- STEP 5: Results Dashboard --- */
.lmc-result-content {
    text-align: center;
    animation: fadeUpReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeUpReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lmc-result-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}
.lmc-result-badge.matched {
    background: rgba(16, 172, 132, 0.12);
    color: var(--lmc-success);
    border: 1px solid rgba(16, 172, 132, 0.25);
}
.lmc-result-badge.unmatched {
    background: rgba(255, 159, 67, 0.12);
    color: var(--lmc-warning);
    border: 1px solid rgba(255, 159, 67, 0.25);
}

/* Match VS Overlay Circles */
.lmc-match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}
.lmc-match-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--lmc-neutral-light);
    border: 3px solid var(--lmc-neutral-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lmc-match-circle.user-side {
    border-color: #54a0ff;
}
.lmc-match-circle.partner-side {
    border-color: var(--lmc-primary);
}
.avatar-placeholder {
    font-size: 2.8rem;
}
.avatar-img-result {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.avatar-tag {
    position: absolute;
    bottom: -10px;
    background: var(--lmc-neutral-dark);
    color: var(--lmc-neutral-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.lmc-match-circle.user-side .avatar-tag {
    background: #54a0ff;
}
.lmc-match-circle.partner-side .avatar-tag {
    background: var(--lmc-primary);
}

.lmc-match-heart-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.heart-pulse-large {
    font-size: 2.5rem;
    animation: heartbeat 1s ease-in-out infinite;
}
.lmc-score-text {
    font-family: var(--lmc-font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--lmc-secondary);
    margin-top: 3px;
}

/* Dashboard Report Accordion widgets */
.lmc-dashboard-report {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 1.8rem;
}

.lmc-report-widget {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 107, 139, 0.15);
    border-radius: 16px;
    padding: 16px;
}
.lmc-report-widget.highlight {
    border-color: var(--lmc-primary);
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255, 107, 139, 0.05) 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 139, 0.05);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 107, 139, 0.15);
    padding-bottom: 6px;
}
.widget-icon {
    font-size: 1.1rem;
}
.widget-header h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lmc-secondary);
}
.widget-body {
    font-size: 0.88rem;
    color: #485460;
    line-height: 1.5;
    margin: 0;
}

.widget-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: #485460;
    line-height: 1.5;
}
.widget-list li {
    margin-bottom: 6px;
}
.widget-list li strong {
    color: var(--lmc-neutral-dark);
}

/* Love Letter Generator text area styling */
.widget-sub-msg {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0 0 10px 0;
}
.lmc-letter-container {
    position: relative;
    width: 100%;
}
.lmc-letter-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 139, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: var(--lmc-font-heading);
    font-style: italic;
    color: #2c3e50;
    resize: none;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    line-height: 1.5;
}
.lmc-letter-textarea:focus {
    border-color: var(--lmc-primary);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 0 0 3px rgba(255, 107, 139, 0.1);
}

.lmc-copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--lmc-neutral-dark);
    color: var(--lmc-neutral-light);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--lmc-font-body);
}
.lmc-copy-btn:hover {
    background: var(--lmc-primary);
    box-shadow: 0 4px 10px rgba(255, 63, 108, 0.25);
}
.lmc-copy-toast {
    background: #10ac84;
    color: var(--lmc-neutral-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
}

/* Comment Box bottom style */
.lmc-comment-box {
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(255, 107, 139, 0.25);
    padding: 14px 16px;
    border-radius: 12px;
    font-style: italic;
    line-height: 1.5;
    margin: 8px 0;
    font-size: 0.95rem;
    color: #485460;
    text-align: center;
}

/* --- BUTTONS & NAVROWS --- */
.lmc-nav-row {
    margin-top: 1rem;
}
.lmc-nav-row.double-nav {
    display: flex;
    gap: 12px;
}
.lmc-nav-row.double-nav .lmc-back-btn {
    width: 30%;
}
.lmc-nav-row.double-nav .lmc-next-btn {
    width: 70%;
}

.lmc-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--lmc-font-body);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--lmc-primary), var(--lmc-secondary));
    color: var(--lmc-neutral-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 63, 108, 0.3);
    border-bottom: 3px solid rgba(0,0,0,0.15);
    position: relative;
}
.lmc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 63, 108, 0.4);
}
.lmc-btn:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
}
.btn-sparkle {
    display: inline-block;
    animation: spinSparkle 2s linear infinite;
}
@keyframes spinSparkle {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.lmc-btn-secondary {
    background: transparent;
    color: var(--lmc-secondary);
    border: 2px solid var(--lmc-glass-border);
    box-shadow: none;
    border-bottom: 2px solid var(--lmc-glass-border);
}
.lmc-btn-secondary:hover {
    background: rgba(255, 107, 139, 0.06);
    box-shadow: none;
    border-color: var(--lmc-primary);
}

.lmc-cta-btn {
    animation: pulseCta 2.5s infinite;
}
@keyframes pulseCta {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(255, 63, 108, 0.5); }
    100% { transform: scale(1); }
}

/* --- Floating Hearts Particles --- */
.lmc-particle-heart {
    position: absolute;
    color: var(--lmc-primary);
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 10;
    animation: floatHeartUp 2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes floatHeartUp {
    0% { transform: translateY(0) scale(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.9; transform: translateY(-20px) scale(1.2) rotate(15deg); }
    100% { transform: translateY(-120px) scale(0.6) rotate(-25deg); opacity: 0; }
}

/* --- RESPONSIVE STYLE RULES --- */
@media (max-width: 580px) {
    .lmc-card {
        padding: 1.5rem;
    }
    .lmc-profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .lmc-quiz-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .lmc-header h2 {
        font-size: 1.5rem;
    }
    .lmc-match-vs {
        gap: 0.8rem;
    }
    .lmc-match-circle {
        width: 72px;
        height: 72px;
    }
    .avatar-placeholder {
        font-size: 2.2rem;
    }
}

/* Heartbeat General Utility */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* --- SEO Info Article Content --- */
.lmc-info-content {
    margin-top: 3rem;
    padding: 2.2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--lmc-glass-border);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--lmc-shadow-premium);
    text-align: left;
}
.lmc-info-content h3 {
    font-family: var(--lmc-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lmc-secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed rgba(255, 107, 139, 0.15);
    padding-bottom: 10px;
    line-height: 1.4;
}
.lmc-info-content h4 {
    font-family: var(--lmc-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lmc-neutral-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--lmc-primary);
    padding-left: 10px;
}
.lmc-info-content p {
    font-size: 0.92rem;
    color: #485460;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.lmc-info-content ul {
    margin-bottom: 1.2rem;
    padding-left: 20px;
}
.lmc-info-content li {
    font-size: 0.92rem;
    color: #485460;
    line-height: 1.5;
    margin-bottom: 6px;
}
.lmc-info-content strong {
    color: var(--lmc-neutral-dark);
}

/* Profiles listing in article */
.lmc-info-profiles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.lmc-info-profile-item {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 107, 139, 0.1);
    border-left: 4px solid var(--lmc-primary);
}
.lmc-info-profile-item h5 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--lmc-secondary);
}
.lmc-info-profile-item p {
    margin-bottom: 6px;
}
.lmc-info-profile-item .date-val {
    color: var(--lmc-primary);
    font-weight: 700;
}

/* Info Table Styling */
.lmc-table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 139, 0.15);
}
.lmc-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
}
.lmc-info-table th {
    background: linear-gradient(135deg, var(--lmc-primary), var(--lmc-secondary));
    color: var(--lmc-neutral-light);
    padding: 12px 16px;
    font-weight: 700;
}
.lmc-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 107, 139, 0.1);
    color: #485460;
}
.lmc-info-table tr:last-child td {
    border-bottom: none;
}
.lmc-info-table tr:nth-child(even) {
    background: rgba(255, 107, 139, 0.03);
}

/* FAQ Item Styling */
.lmc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.lmc-faq-item {
    border-bottom: 1px solid rgba(255, 107, 139, 0.1);
    padding-bottom: 12px;
}
.lmc-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-question {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--lmc-secondary);
    margin: 0 0 6px 0;
}
.faq-answer {
    margin: 0;
}

@media (max-width: 580px) {
    .lmc-info-content {
        padding: 1.25rem;
        margin-top: 2rem;
    }
    .lmc-info-content h3 {
        font-size: 1.3rem;
    }
}

/* --- Floating Sticky Chat Widget --- */
.lmc-floating-chat {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1000;
    font-family: var(--lmc-font-body);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lmc-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp Green */
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.lmc-chat-trigger:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 28px rgba(18, 140, 126, 0.45);
}

.lmc-chat-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmc-chat-trigger svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.lmc-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Notification Bubble */
.lmc-chat-bubble {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 107, 139, 0.15);
    transform: translateY(15px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.lmc-chat-bubble.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.lmc-chat-bubble-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #25D366;
}

.lmc-chat-bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lmc-chat-bubble-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lmc-chat-bubble-name {
    font-size: 13px;
    font-weight: 800;
    color: #2d3436;
}

.lmc-chat-bubble-msg {
    font-size: 12px;
    color: #636e72;
    margin: 0;
    line-height: 1.3;
}

.lmc-chat-bubble-close {
    background: none;
    border: none;
    color: #b2bec3;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
    line-height: 1;
}
.lmc-chat-bubble-close:hover {
    color: #2d3436;
}

/* Chat Window */
.lmc-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #efeae2;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 1002;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lmc-chat-window.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lmc-chat-header {
    background: #075e54;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lmc-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.lmc-chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lmc-chat-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    border: 1.5px solid #075e54;
}

.lmc-chat-header-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lmc-chat-header-name {
    font-size: 14px;
    font-weight: 700;
}

.lmc-chat-header-status {
    font-size: 11px;
    opacity: 0.8;
}

.lmc-chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    line-height: 1;
}
.lmc-chat-close-btn:hover {
    opacity: 1;
}

.lmc-chat-body {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 250px;
    overflow-y: auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23efeae2" width="100" height="100"/><path d="M10 20 L20 10 M80 90 L90 80" stroke="%23e5ddd5" stroke-width="0.5"/></svg>');
}

.lmc-chat-msg {
    display: flex;
}
.lmc-chat-msg.system {
    justify-content: center;
}
.lmc-chat-msg.system span {
    background: rgba(225, 235, 245, 0.8);
    color: #54656f;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.lmc-chat-msg.partner {
    justify-content: flex-start;
}

.lmc-msg-bubble {
    background: white;
    color: #111b21;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 0 12px 12px 12px;
    max-width: 85%;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
}
.typing-dots span {
    animation: typingBlink 1.4s infinite both;
    font-weight: 800;
}
.typing-dots span:nth-child(2) {
    animation-delay: .2s;
}
.typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes typingBlink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.lmc-chat-footer {
    padding: 12px 16px;
    background: #f0f2f5;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.lmc-chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.lmc-chat-send-btn:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.lmc-chat-send-btn:active {
    transform: translateY(0);
    border-bottom-width: 0;
}

.lmc-whatsapp-icon {
    font-size: 16px;
}

/* Custom Profile Selector inside Chat Header */
.lmc-chat-profile-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--lmc-font-body);
    cursor: pointer;
    outline: none;
    padding: 4px 28px 4px 10px;
    margin: 0 0 3px 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    width: fit-content;
    max-width: 175px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lmc-chat-profile-select option {
    background: #075e54;
    color: white;
    font-size: 13px;
    padding: 8px;
}

/* Real Chat Form and Input */
.lmc-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.lmc-chat-input-field {
    flex-grow: 1;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    font-family: var(--lmc-font-body);
    width: 100%;
}

.lmc-chat-input-field:focus {
    border-color: #075e54;
}

.lmc-chat-send-icon-btn {
    background: #075e54;
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(7, 94, 84, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.lmc-chat-send-icon-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.lmc-chat-send-icon-btn svg {
    margin-left: 2px;
}

.lmc-chat-whatsapp-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.lmc-chat-whatsapp-row .lmc-chat-send-btn {
    padding: 6px 12px;
    font-size: 12px;
    width: 100%;
    border-radius: 8px;
}

.lmc-chat-msg.user {
    justify-content: flex-end;
}

.lmc-msg-bubble.user {
    background: #d9fdd3; /* Light green user bubble */
    border-radius: 12px 0 12px 12px;
}

@media (max-width: 480px) {
    .lmc-floating-chat {
        right: 16px;
        bottom: 90px;
    }
    .lmc-chat-bubble {
        width: 240px;
    }
    .lmc-chat-window {
        width: 290px;
    }
}
