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

:root {
    --lc-font: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    --lc-serif: 'Playfair Display', Georgia, serif;
    --lc-bg: #110a14;
    --lc-card: #1c1224;
    --lc-input-bg: #241832;
    --lc-border: #352347;
    --lc-pink: #ff2d55;
    --lc-pink-l: #ff6b8a;
    --lc-pink-d: #cc1a40;
    --lc-rose: #ff85a1;
    --lc-purple: #a855f7;
    --lc-text: #f8f0fc;
    --lc-muted: #a08bb5;
    --lc-dim: #6b5a7d;
    --lc-r: 16px;
}

.lc-app, .lc-app *, .lc-app *::before, .lc-app *::after { box-sizing: border-box; margin: 0; padding: 0; }

.lc-app {
    max-width: 600px;
    margin: 32px auto;
    font-family: var(--lc-font);
    color: var(--lc-text);
    background: var(--lc-bg);
    border-radius: 24px;
    border: 1px solid var(--lc-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.4), 0 0 80px rgba(255,45,85,.04);
}

/* ====== HEADER ====== */
.lc-header {
    text-align: center;
    padding: 44px 28px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,45,85,.06) 0%, transparent 100%);
}

.lc-hearts-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lc-float-heart {
    position: absolute;
    font-size: 18px;
    opacity: .12;
    animation: lcFloat 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.6s);
}
.lc-float-heart:nth-child(1) { left: 8%; top: 20%; }
.lc-float-heart:nth-child(2) { left: 85%; top: 10%; }
.lc-float-heart:nth-child(3) { left: 15%; top: 70%; }
.lc-float-heart:nth-child(4) { left: 75%; top: 65%; }
.lc-float-heart:nth-child(5) { left: 50%; top: 40%; }

@keyframes lcFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .12; }
    50% { transform: translateY(-15px) scale(1.2); opacity: .2; }
}

.lc-big-heart {
    font-size: 52px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: lcPulse 2s ease-in-out infinite;
}
@keyframes lcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.lc-header h2 {
    font-family: var(--lc-serif);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative; z-index: 1;
    background: linear-gradient(135deg, var(--lc-text), var(--lc-rose));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lc-header p {
    font-size: 14px;
    color: var(--lc-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
    position: relative; z-index: 1;
}

/* ====== CARD ====== */
.lc-card {
    margin: 8px 24px 0;
    padding: 28px;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-r);
    position: relative; z-index: 1;
}

/* ====== PERSON INPUT ====== */
.lc-person { margin-bottom: 4px; }
.lc-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lc-muted);
    margin-bottom: 8px;
}

.lc-input-wrap {
    display: flex;
    align-items: center;
    background: var(--lc-input-bg);
    border: 1.5px solid var(--lc-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border .25s;
}
.lc-input-wrap:focus-within { border-color: var(--lc-pink); box-shadow: 0 0 0 3px rgba(255,45,85,.12); }
.lc-input-icon { padding: 0 4px 0 14px; font-size: 18px; flex-shrink: 0; }
.lc-input {
    flex: 1;
    padding: 13px 14px 13px 8px;
    background: transparent;
    border: none;
    color: var(--lc-text);
    font-family: var(--lc-font);
    font-size: 15px;
    font-weight: 600;
    outline: none;
}
.lc-input::placeholder { color: var(--lc-dim); font-weight: 500; }

/* Gender radio */
.lc-gender-row { display: flex; gap: 8px; margin: 10px 0 0; }
.lc-g { cursor: pointer; }
.lc-g input { display: none; }
.lc-g span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    background: var(--lc-input-bg);
    border: 1.5px solid var(--lc-border);
    transition: all .2s;
}
.lc-g input:checked + span {
    border-color: var(--lc-pink);
    background: rgba(255,45,85,.12);
    color: var(--lc-pink-l);
}
.lc-g:hover span { border-color: var(--lc-pink-l); }

/* Divider */
.lc-divider { text-align: center; padding: 14px 0; }
.lc-div-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,45,85,.15), rgba(168,85,247,.1));
    border: 1px solid var(--lc-border);
    font-size: 22px;
    animation: lcPulse 2.5s ease-in-out infinite;
}

/* ====== CALCULATE BUTTON ====== */
.lc-btn-go {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lc-pink), var(--lc-pink-d));
    color: #fff;
    font-family: var(--lc-font);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 20px rgba(255,45,85,.25);
}
.lc-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,45,85,.35);
}
.lc-btn-hearts { font-size: 20px; }
.lc-disclaimer { text-align: center; font-size: 11px; color: var(--lc-dim); margin-top: 14px; line-height: 1.4; }

/* ====== QUOTE ====== */
.lc-quote {
    margin: 16px 24px 0;
    padding: 16px 20px;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    text-align: center;
    position: relative; z-index: 1;
}
.lc-quote p {
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--lc-rose);
    line-height: 1.55;
}

/* ====== RESULTS ====== */
.lc-results { padding: 0 24px; position: relative; z-index: 1; animation: lcFadeUp .5s ease; }
@keyframes lcFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.lc-res-top { text-align: center; padding: 28px 0 8px; }
.lc-res-names { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lc-rn {
    font-family: var(--lc-serif);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--lc-text), var(--lc-rose));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lc-rn-heart { font-size: 24px; animation: lcPulse 1.5s ease-in-out infinite; }

/* Heart Gauge */
.lc-heart-gauge { display: flex; justify-content: center; padding: 16px 0 20px; }
.lc-heart-shape { position: relative; width: 200px; height: 200px; }
.lc-heart-svg { width: 100%; height: 100%; }
.lc-heart-pct {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--lc-serif);
    font-size: 40px; font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(255,45,85,.4);
}

/* Verdict */
.lc-verdict { text-align: center; margin-bottom: 24px; }
.lc-verdict-emoji { font-size: 48px; margin-bottom: 8px; animation: lcBounce .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes lcBounce { from { opacity:0; transform:scale(.3); } to { opacity:1; transform:scale(1); } }
.lc-verdict h3 {
    font-family: var(--lc-serif);
    font-size: 22px; font-weight: 700; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--lc-pink-l), var(--lc-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lc-verdict p { font-size: 14px; color: var(--lc-muted); max-width: 440px; margin: 0 auto; line-height: 1.55; }

/* FLAMES Box */
.lc-flames-box {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-r);
    padding: 22px;
    text-align: center;
    margin-bottom: 16px;
}
.lc-flames-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--lc-dim); margin-bottom: 14px;
}
.lc-flames-icons { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.lc-fi {
    display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 10px; border-radius: 10px; font-size: 11px; font-weight: 600;
    background: var(--lc-input-bg); border: 1.5px solid var(--lc-border); color: var(--lc-dim);
    transition: all .3s; min-width: 58px;
}
.lc-fi-icon { font-size: 18px; }
.lc-fi.active {
    border-color: var(--lc-pink);
    background: rgba(255,45,85,.1);
    color: var(--lc-pink-l);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255,45,85,.15);
}
.lc-flames-result {
    font-family: var(--lc-serif);
    font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--lc-pink-l);
}
.lc-flames-desc { font-size: 13px; color: var(--lc-muted); line-height: 1.5; }

/* Compatibility Bars */
.lc-details {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-r);
    padding: 22px;
    margin-bottom: 16px;
}
.lc-details h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }

.lc-bar-row { margin-bottom: 12px; }
.lc-bar-row:last-child { margin-bottom: 0; }
.lc-bar-hd { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.lc-bar-hd span:first-child { color: var(--lc-muted); font-weight: 600; }
.lc-bar-hd span:last-child { font-weight: 700; color: var(--lc-text); }
.lc-bar-track { height: 8px; background: var(--lc-input-bg); border-radius: 4px; overflow: hidden; }
.lc-bar-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--lc-pink), var(--lc-rose));
    transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* Tip Box */
.lc-tip-box {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(168,85,247,.06);
    border: 1px solid rgba(168,85,247,.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.lc-tip-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.lc-tip-box p { font-size: 13px; color: var(--lc-muted); line-height: 1.55; }

/* Action Buttons */
.lc-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.lc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 24px; border: none; border-radius: 10px;
    font-family: var(--lc-font); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.lc-btn-o { background: var(--lc-card); color: var(--lc-muted); border: 1.5px solid var(--lc-border); }
.lc-btn-o:hover { background: var(--lc-input-bg); color: var(--lc-text); }
.lc-btn-p { background: linear-gradient(135deg, var(--lc-pink), var(--lc-purple)); color: #fff; }
.lc-btn-p:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,45,85,.3); }

/* Footer */
.lc-foot {
    padding: 18px 24px;
    border-top: 1px solid var(--lc-border);
    text-align: center;
    position: relative; z-index: 1;
}
.lc-foot p { font-size: 11px; color: var(--lc-dim); line-height: 1.5; }

/* ====== RESPONSIVE ====== */
@media (max-width: 520px) {
    .lc-app { margin: 12px; border-radius: 16px; }
    .lc-header { padding: 32px 18px 16px; }
    .lc-header h2 { font-size: 24px; }
    .lc-card { margin: 8px 14px 0; padding: 20px; }
    .lc-quote { margin: 12px 14px 0; }
    .lc-results { padding: 0 14px; }
    .lc-flames-box, .lc-details { padding: 16px; }
    .lc-actions { flex-direction: column; }
    .lc-btn { justify-content: center; }
    .lc-rn { font-size: 18px; }
    .lc-heart-shape { width: 160px; height: 160px; }
    .lc-heart-pct { font-size: 32px; }
}
