/* ==========================================================
   Love Calculator 24x7 — styles (romantic red/pink, Jost font)
   ========================================================== */

.lc24x7,
.lc24x7 * {
	box-sizing: border-box;
	font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lc24x7 [hidden] { display: none !important; }

.lc24x7 {
	--lc-red: #ff2d55;
	--lc-deep: #d81b60;
	--lc-pink: #ff6b95;
	--lc-blush: #fff0f4;
	--lc-ink: #3c1220;
	--lc-muted: #9c6a7c;
	--lc-grad: linear-gradient(135deg, #ff2d55 0%, #ff5e7e 55%, #ff8fab 100%);
	max-width: 860px;
	margin: 0 auto;
	padding: 12px;
	color: var(--lc-ink);
}

/* ---------- header ---------- */
.lc-header { text-align: center; padding: 18px 8px 6px; }
.lc-header-hearts { font-size: 44px; animation: lcFloat 2.6s ease-in-out infinite; }
.lc-title {
	margin: 6px 0 4px;
	font-size: clamp(30px, 5vw, 44px);
	font-weight: 700;
	background: var(--lc-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0.5px;
}
.lc-subtitle { margin: 0 auto 8px; max-width: 560px; color: var(--lc-muted); font-size: 16px; }

/* ---------- cards ---------- */
.lc-card {
	background: #fff;
	border: 1px solid #ffd9e3;
	border-radius: 22px;
	box-shadow: 0 10px 34px rgba(255, 45, 85, 0.10);
	padding: 26px;
	margin: 18px 0;
}

/* ---------- form ---------- */
.lc-persons { display: flex; gap: 18px; align-items: stretch; }
.lc-person { flex: 1; min-width: 0; }
.lc-person-label { font-weight: 600; font-size: 17px; margin-bottom: 12px; color: var(--lc-deep); }
.lc-heart-divider { display: flex; align-items: center; justify-content: center; }
.lc-heart-divider span {
	font-size: 26px; color: var(--lc-red);
	animation: lcBeat 1.1s ease-in-out infinite;
}
.lc-label { display: block; font-size: 14px; font-weight: 500; margin: 12px 0 5px; color: var(--lc-ink); }
.lc-req { color: var(--lc-red); }
.lc-opt { color: var(--lc-muted); font-weight: 400; font-size: 12px; }

.lc24x7 .lc-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.6px solid #ffd0dd;
	border-radius: 12px;
	font-size: 16px;
	background: var(--lc-blush);
	color: var(--lc-ink);
	outline: none;
	transition: border-color .18s, box-shadow .18s;
}
.lc24x7 .lc-input:focus { border-color: var(--lc-red); box-shadow: 0 0 0 4px rgba(255, 45, 85, .12); background: #fff; }

.lc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.lc24x7 .lc-pill {
	border: 1.6px solid #ffd0dd;
	background: #fff;
	color: var(--lc-muted);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all .15s;
}
.lc24x7 .lc-pill:hover { border-color: var(--lc-pink); color: var(--lc-deep); }
.lc24x7 .lc-pill.active {
	background: var(--lc-grad);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(255, 45, 85, .35);
}

.lc-status-row { margin-top: 16px; }
.lc-select { appearance: auto; }

.lc-error {
	margin-top: 14px;
	background: #fff2f5;
	border: 1.5px solid #ffb3c6;
	color: #c2185b;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 15px;
	animation: lcShake .4s;
}

.lc24x7 .lc-calc-btn {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 16px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .4px;
	color: #fff;
	background: var(--lc-grad);
	border: none;
	border-radius: 16px;
	cursor: pointer;
	box-shadow: 0 8px 26px rgba(255, 45, 85, .4);
	transition: transform .15s, box-shadow .15s;
}
.lc24x7 .lc-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 45, 85, .5); }
.lc24x7 .lc-calc-btn:active { transform: translateY(0); }
.lc-btn-heart { display: inline-block; animation: lcBeat 1.1s infinite; }

/* ---------- loading ---------- */
.lc-loading { text-align: center; padding: 44px 20px; }
.lc-loading-heart {
	font-size: 74px; color: var(--lc-red); line-height: 1;
	animation: lcBeat .55s ease-in-out infinite;
	filter: drop-shadow(0 6px 18px rgba(255,45,85,.4));
}
.lc-loading-msg { margin-top: 14px; font-size: 18px; color: var(--lc-muted); }

/* ---------- result ---------- */
.lc-result { text-align: center; position: relative; overflow: hidden; }
.lc-result-names { font-size: clamp(22px, 4vw, 30px); font-weight: 600; color: var(--lc-deep); margin-bottom: 8px; }

.lc-score-heart { position: relative; width: 190px; height: 176px; margin: 10px auto 4px; }
.lc-score-heart-shape {
	position: absolute; inset: 0;
	background: var(--lc-grad);
	clip-path: path('M95 170 C 22 118 -12 62 22 26 C 48 -2 86 8 95 34 C 104 8 142 -2 168 26 C 202 62 168 118 95 170 Z');
	animation: lcBeat 1.4s ease-in-out infinite;
	filter: drop-shadow(0 10px 24px rgba(255,45,85,.45));
}
.lc-score-num {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 52px; font-weight: 700; padding-bottom: 14px;
	text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.lc-score-num small { font-size: 26px; font-weight: 600; margin-top: 10px; }

.lc-verdict { font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; margin: 6px 0 4px; }
.lc-boosts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.lc-boost-chip {
	font-size: 13px; background: var(--lc-blush); color: var(--lc-deep);
	border: 1px solid #ffd0dd; border-radius: 999px; padding: 4px 12px;
}

.lc-section-title { font-weight: 600; font-size: 17px; color: var(--lc-deep); margin-bottom: 12px; }
.lc-section-title.lc-big { font-size: 21px; }

/* quote */
.lc-quote {
	max-width: 560px; margin: 14px auto 0; padding: 16px 20px;
	background: var(--lc-blush); border: 1px solid #ffd9e3; border-radius: 16px;
}
.lc-quote-main { font-size: 16px; color: var(--lc-ink); }
.lc-quote-en { font-size: 15px; font-style: italic; color: var(--lc-deep); margin-top: 6px; font-weight: 500; }
.lc-quote-hindi { font-size: 15px; font-style: italic; color: var(--lc-red); margin-top: 4px; font-weight: 500; }

/* deep analysis tiles */
.lc-analysis { margin-top: 24px; }
.lc-analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
.lc-ana-tile {
	border: 1.5px solid #ffd9e3; border-radius: 16px; padding: 16px 10px;
	background: #fff; text-align: center; transition: transform .15s;
}
.lc-ana-tile:hover { transform: translateY(-2px); }
.lc-ana-icon { font-size: 26px; }
.lc-ana-label { font-size: 11.5px; letter-spacing: 1.2px; color: var(--lc-muted); font-weight: 600; margin: 6px 0 2px; text-transform: uppercase; }
.lc-ana-val { font-size: 26px; font-weight: 700; color: var(--lc-red); }

/* versus (who's who) */
.lc-versus { margin-top: 26px; }
.lc-versus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 620px; margin: 0 auto; }
.lc-vs-card {
	display: flex; align-items: center; gap: 10px;
	border: 1.5px solid #ffd9e3; background: var(--lc-blush);
	border-radius: 14px; padding: 11px 14px; text-align: left;
}
.lc-vs-emoji { font-size: 22px; flex-shrink: 0; }
.lc-vs-label { flex: 1; font-size: 13.5px; color: var(--lc-muted); line-height: 1.25; }
.lc-vs-winner {
	background: var(--lc-grad); color: #fff; font-weight: 600; font-size: 13.5px;
	border-radius: 999px; padding: 4px 12px; white-space: nowrap; max-width: 46%;
	overflow: hidden; text-overflow: ellipsis;
	box-shadow: 0 3px 10px rgba(255,45,85,.3);
}

/* cosmic grid */
.lc-cosmic { margin-top: 26px; }
.lc-cosmic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 620px; margin: 0 auto; }
.lc-cos-tile {
	border: 1.5px solid #ffc7d6; border-radius: 16px; padding: 14px 8px;
	background: #fff; text-align: center;
}
.lc-cos-icon { font-size: 22px; }
.lc-cos-label { font-size: 10.5px; letter-spacing: 1px; color: var(--lc-muted); font-weight: 600; margin: 5px 0 3px; text-transform: uppercase; }
.lc-cos-val { font-size: 15.5px; font-weight: 700; color: var(--lc-deep); line-height: 1.2; }

@media (max-width: 640px) {
	.lc-analysis-grid { grid-template-columns: repeat(3, 1fr); }
	.lc-versus-grid { grid-template-columns: 1fr; }
	.lc-cosmic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FLAMES */
.lc-flames { margin: 22px auto 0; padding: 18px; background: var(--lc-blush); border-radius: 16px; max-width: 520px; }
.lc-flames-letters { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.lc-flames-letters span {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; background: #fff; border: 1.5px solid #ffd0dd;
	font-weight: 600; color: var(--lc-muted); font-size: 17px;
}
.lc-flames-letters span.hit {
	background: var(--lc-grad); color: #fff; border-color: transparent; transform: scale(1.12);
	box-shadow: 0 6px 14px rgba(255,45,85,.35);
}
.lc-flames-word { font-size: 24px; font-weight: 700; color: var(--lc-red); }
.lc-flames-desc { color: var(--lc-muted); font-size: 15px; margin-top: 4px; }

/* bars */
.lc-bars-box { max-width: 520px; margin: 22px auto 0; text-align: left; }
.lc-bar-row { margin-bottom: 12px; }
.lc-bar-top { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 4px; }
.lc-bar-top b { color: var(--lc-deep); font-weight: 600; }
.lc-bar-track { height: 10px; background: #ffe3ea; border-radius: 999px; overflow: hidden; }
.lc-bar-fill {
	height: 100%; width: 0; border-radius: 999px;
	background: var(--lc-grad);
	transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* gif */
.lc-gif-box { margin-top: 24px; }
.lc-gif-frame {
	max-width: 340px; margin: 0 auto; border-radius: 16px; overflow: hidden;
	background: var(--lc-blush); min-height: 120px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid #ffd9e3;
}
.lc-gif-frame img { width: 100%; display: block; }
.lc-gif-fallback { padding: 30px; font-size: 34px; display: flex; gap: 10px; }
.lc-gif-fallback span { animation: lcFloat 1.8s ease-in-out infinite; }
.lc-gif-fallback span:nth-child(2) { animation-delay: .2s; }
.lc-gif-fallback span:nth-child(3) { animation-delay: .4s; }
.lc-gif-fallback span:nth-child(4) { animation-delay: .6s; }
.lc-gif-fallback span:nth-child(5) { animation-delay: .8s; }
.lc-gif-credit { font-size: 11.5px; color: var(--lc-muted); margin-top: 6px; }

/* export */
.lc-export { margin-top: 26px; }
.lc-export-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lc24x7 .lc-exp-btn {
	border: none; border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 600;
	cursor: pointer; color: #fff; transition: transform .15s, filter .15s;
}
.lc24x7 .lc-exp-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.lc-exp-wa { background: #25d366; }
.lc-exp-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.lc-exp-img { background: #7c4dff; }
.lc-exp-pdf { background: #ef4444; }

.lc24x7 .lc-again-btn {
	margin-top: 22px; background: #fff; border: 1.6px solid var(--lc-red); color: var(--lc-red);
	border-radius: 999px; padding: 10px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
	transition: all .15s;
}
.lc24x7 .lc-again-btn:hover { background: var(--lc-red); color: #fff; }

.lc-powered { margin-top: 16px; font-size: 13px; color: var(--lc-muted); }
.lc-powered a { color: var(--lc-red); text-decoration: none; font-weight: 600; }

/* hearts burst */
.lc-hearts-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lc-hearts-burst span {
	position: absolute; bottom: -30px; font-size: 20px; opacity: 0;
	animation: lcRise linear forwards;
}

/* ---------- meaning tiers ---------- */
.lc-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.lc-tier {
	border: 1.5px solid #ffd9e3; border-radius: 16px; padding: 14px 16px;
	background: #fff; transition: all .2s;
}
.lc-tier.active {
	background: var(--lc-blush); border-color: var(--lc-red);
	box-shadow: 0 8px 22px rgba(255,45,85,.18); transform: translateY(-2px);
}
.lc-tier-range { font-weight: 700; color: var(--lc-red); font-size: 15px; }
.lc-tier-name { font-weight: 600; font-size: 16.5px; margin: 2px 0 4px; }
.lc-tier p { margin: 0; font-size: 14px; color: var(--lc-muted); line-height: 1.5; }
.lc-disclaimer { margin: 16px 0 0; font-size: 13px; color: var(--lc-muted); text-align: center; }

/* ---------- famous ---------- */
.lc-famous-hint { margin: -6px 0 12px; font-size: 13.5px; color: var(--lc-muted); }
.lc-famous-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-famous-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border: 1.5px solid #ffd9e3; background: var(--lc-blush);
	border-radius: 14px; padding: 12px 16px; cursor: pointer; transition: all .15s;
}
.lc-famous-row:hover { border-color: var(--lc-red); background: #fff; transform: translateY(-2px); }
.lc-famous-names { font-weight: 600; font-size: 15.5px; }
.lc-famous-tag { display: block; font-weight: 400; font-size: 12.5px; color: var(--lc-muted); }
.lc-famous-score {
	background: var(--lc-grad); color: #fff; font-weight: 700; font-size: 15px;
	border-radius: 999px; padding: 5px 12px; white-space: nowrap;
	box-shadow: 0 4px 12px rgba(255,45,85,.3);
}

/* ---------- history ---------- */
.lc-history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-history-actions { display: flex; gap: 8px; }
.lc24x7 .lc-mini-btn {
	border: 1.5px solid #ffd0dd; background: #fff; color: var(--lc-deep);
	border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.lc24x7 .lc-mini-btn:hover { border-color: var(--lc-red); }
.lc24x7 .lc-mini-btn.lc-danger { color: #d32f2f; }
.lc-hist-empty { color: var(--lc-muted); font-size: 14.5px; }
.lc-hist-row {
	display: flex; align-items: center; gap: 12px; padding: 11px 4px;
	border-bottom: 1px dashed #ffd9e3; font-size: 15px;
}
.lc-hist-row:last-child { border-bottom: none; }
.lc-hist-names { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-hist-flames { font-size: 12.5px; color: var(--lc-muted); white-space: nowrap; }
.lc-hist-score { font-weight: 700; color: var(--lc-red); white-space: nowrap; }
.lc-hist-date { font-size: 12px; color: var(--lc-muted); white-space: nowrap; }

/* ---------- leaderboard ---------- */
.lc-leader-hint { margin: -6px 0 14px; font-size: 13.5px; color: var(--lc-muted); }
.lc-lead-row {
	display: flex; align-items: center; gap: 12px;
	border: 1.5px solid #ffd9e3; background: #fff;
	border-radius: 14px; padding: 11px 16px; margin-bottom: 8px;
	font-size: 15.5px; transition: transform .15s;
}
.lc-lead-row:hover { transform: translateX(3px); }
.lc-lead-row.top {
	background: var(--lc-blush); border-color: var(--lc-red);
	box-shadow: 0 6px 18px rgba(255,45,85,.16);
}
.lc-lead-rank { width: 40px; text-align: center; font-size: 20px; font-weight: 700; color: var(--lc-muted); flex-shrink: 0; }
.lc-lead-names { flex: 1; min-width: 0; font-weight: 600; color: var(--lc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-lead-score {
	background: var(--lc-grad); color: #fff; font-weight: 700; font-size: 14.5px;
	border-radius: 999px; padding: 5px 13px; white-space: nowrap;
	box-shadow: 0 4px 12px rgba(255,45,85,.3);
}

/* ---------- toast ---------- */
.lc-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
	background: var(--lc-ink); color: #fff; padding: 12px 22px; border-radius: 999px;
	font-size: 14.5px; z-index: 99999; box-shadow: 0 10px 30px rgba(0,0,0,.25);
	animation: lcToastIn .25s ease;
	max-width: 90vw; text-align: center;
}

/* ---------- animations ---------- */
@keyframes lcBeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(.98); } }
@keyframes lcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lcShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes lcRise {
	0% { opacity: 0; transform: translateY(0) rotate(0deg); }
	15% { opacity: 1; }
	100% { opacity: 0; transform: translateY(-560px) rotate(40deg); }
}
@keyframes lcToastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
	.lc-persons { flex-direction: column; }
	.lc-heart-divider { padding: 2px 0; }
	.lc-card { padding: 18px; }
	.lc-famous-table { grid-template-columns: 1fr; }
	.lc-hist-flames { display: none; }
}
