/* Juno Dating — app components. Theme supplies the tokens; fallbacks keep it usable under any theme. */
:root {
	--j-ink: var(--juno-ink, #2a1422);
	--j-plum: var(--juno-plum, #6b2346);
	--j-rose: var(--juno-rose, #e4506d);
	--j-rose-dk: var(--juno-rose-dk, #c63a58);
	--j-blush: var(--juno-blush, #fbecef);
	--j-cream: var(--juno-cream, #fffaf7);
	--j-line: var(--juno-line, #ecdde2);
	--j-muted: var(--juno-muted, #7d6872);
	--j-ok: #2f8f5b;
	--j-radius: 20px;
	--j-shadow: 0 18px 50px -20px rgba(74, 20, 46, .35);
}

.juno-card { background: #fff; border: 1px solid var(--j-line); border-radius: var(--j-radius); padding: 28px; box-shadow: 0 2px 0 rgba(0,0,0,.02); }
.juno-card h2 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.juno-card h2:first-of-type { margin-top: 0; }
.juno-muted { color: var(--j-muted); font-size: .92rem; }
.juno-center { text-align: center; }
.juno-hp { position: absolute !important; left: -9999px; }

/* Buttons */
.juno-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--j-rose); background: var(--j-rose); color: #fff !important; font-weight: 600; font-size: .98rem; text-decoration: none !important; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; font-family: inherit; }
.juno-btn:hover { background: var(--j-rose-dk); border-color: var(--j-rose-dk); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(228, 80, 109, .6); }
.juno-btn--ghost { background: transparent; color: var(--j-plum) !important; border-color: var(--j-line); }
.juno-btn--ghost:hover { background: var(--j-blush); border-color: var(--j-blush); box-shadow: none; }
.juno-btn--danger { background: #b3261e; border-color: #b3261e; }
.juno-btn--danger:hover { background: #8c1d17; border-color: #8c1d17; }
.juno-btn--small { padding: 8px 16px; font-size: .88rem; }
.juno-btn--block { width: 100%; }
.juno-link { background: none; border: 0; padding: 0; color: var(--j-plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .92rem; }
.juno-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.juno-actions.juno-center { justify-content: center; }

/* Alerts */
.juno-alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: .95rem; }
.juno-alert ul { margin: 0; padding-left: 18px; }
.juno-alert--error { background: #fdecea; color: #8c1d17; border: 1px solid #f6c9c4; }
.juno-alert--ok { background: #e9f6ef; color: #1e5f3c; border: 1px solid #c3e6d2; }

/* Forms */
.juno-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--j-ink); margin-bottom: 16px; }
.juno-form input[type=text], .juno-form input[type=email], .juno-form input[type=password], .juno-form input[type=date], .juno-form input[type=number], .juno-form select, .juno-form textarea,
.juno-auth #loginform input[type=text], .juno-auth #loginform input[type=password] {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--j-line); border-radius: 12px; background: var(--j-cream); font: inherit; font-weight: 400; color: var(--j-ink); box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.juno-form input:focus, .juno-form select:focus, .juno-form textarea:focus, .juno-auth #loginform input:focus { outline: none; border-color: var(--j-rose); box-shadow: 0 0 0 4px rgba(228, 80, 109, .12); background: #fff; }
.juno-form input:disabled { opacity: .6; }
.juno-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.juno-form legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.juno-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.juno-check, .juno-radio { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.juno-check input, .juno-radio input { margin-top: 3px; accent-color: var(--j-rose); }

.juno-auth { max-width: 480px; margin: 0 auto; }
.juno-auth h2 { font-size: 1.8rem; margin: 0 0 6px; }
.juno-auth #loginform p { margin: 0 0 16px; }
.juno-auth #loginform label { font-weight: 600; font-size: .9rem; }
.juno-auth #loginform .login-remember label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.juno-auth #loginform .button-primary { width: 100%; padding: 13px; border-radius: 999px; border: 0; background: var(--j-rose); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.juno-auth #loginform .button-primary:hover { background: var(--j-rose-dk); }

/* Chips */
.juno-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.juno-chip { margin: 0 !important; cursor: pointer; }
.juno-chip input { position: absolute; opacity: 0; pointer-events: none; }
.juno-chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--j-line); border-radius: 999px; font-weight: 500; font-size: .9rem; background: #fff; transition: all .15s; }
.juno-chip input:checked + span { background: var(--j-rose); border-color: var(--j-rose); color: #fff; }
.juno-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(228, 80, 109, .3); }

/* Photos */
.juno-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.juno-photo { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--j-blush); margin: 0 !important; }
.juno-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.juno-photo__main, .juno-photo__remove { position: absolute; margin: 0 !important; cursor: pointer; }
.juno-photo__main { top: 8px; left: 8px; }
.juno-photo__remove { bottom: 8px; left: 8px; right: 8px; }
.juno-photo__main input, .juno-photo__remove input { position: absolute; opacity: 0; }
.juno-photo__main span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85); color: #bbb; font-size: 16px; }
.juno-photo__main input:checked + span { background: var(--j-rose); color: #fff; }
.juno-photo__remove span { display: block; text-align: center; padding: 6px; border-radius: 10px; background: rgba(42, 20, 34, .6); color: #fff; font-size: .8rem; font-weight: 500; }
.juno-photo__remove input:checked + span { background: #b3261e; }
.juno-photo--add { display: grid; place-items: center; border: 2px dashed #e2c6cf; background: var(--j-cream); text-align: center; color: var(--j-plum); font-weight: 600; cursor: pointer; }
.juno-photo--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.juno-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.juno-photo-preview img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; }
.juno-danger { margin-top: 24px; }
.juno-danger summary { cursor: pointer; font-weight: 600; }

/* Empty / loading */
.juno-empty { text-align: center; padding: 48px 24px; }
.juno-empty h3 { font-size: 1.5rem; margin: 0 0 8px; }
.juno-empty p { color: var(--j-muted); }
.juno-loading { display: flex; gap: 8px; justify-content: center; padding: 60px 0; }
.juno-loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--j-rose); animation: juno-bounce 1s infinite ease-in-out; }
.juno-loading span:nth-child(2) { animation-delay: .15s; }
.juno-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes juno-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Discover */
.juno-discover { max-width: 440px; margin: 0 auto; }
.juno-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.juno-filters input { width: 64px; padding: 7px 10px; border: 1.5px solid var(--j-line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.juno-filters input[name=city] { width: 130px; }
.juno-likes-badge { flex-basis: 100%; text-align: center; color: var(--j-rose); font-weight: 600; }
.juno-deck { position: relative; height: 620px; }
.juno-swipe { position: absolute; inset: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--j-shadow); display: flex; flex-direction: column; touch-action: pan-y; user-select: none; cursor: grab; will-change: transform; }
.juno-swipe:active { cursor: grabbing; }
.juno-swipe:not(:last-child) { transform: scale(.95) translateY(14px); filter: brightness(.97); }
.juno-swipe__media { position: relative; flex: 1; min-height: 0; background: var(--j-blush); }
.juno-swipe__media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.juno-card-dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; }
.juno-card-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); }
.juno-card-dots i.on { background: #fff; }
.juno-stamp { position: absolute; top: 36px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-size: 2rem; letter-spacing: 2px; opacity: 0; transition: opacity .1s; }
.juno-stamp--like { left: 22px; color: #3bb273; border-color: #3bb273; transform: rotate(-14deg); }
.juno-stamp--pass { right: 22px; color: #e4506d; border-color: #e4506d; transform: rotate(14deg); }
.juno-swipe.is-like .juno-stamp--like, .juno-swipe.is-pass .juno-stamp--pass { opacity: 1; }
.juno-swipe__info { padding: 18px 22px 20px; }
.juno-swipe__info h3 { margin: 0; font-size: 1.6rem; display: flex; align-items: center; gap: 8px; }
.juno-swipe__info h3 span { font-weight: 400; }
.juno-swipe__bio { margin: 8px 0; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.juno-dot { width: 10px; height: 10px; border-radius: 50%; background: #3bb273; display: inline-block; }
.juno-meta { color: var(--j-muted); font-size: .9rem; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.juno-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.juno-tags span { padding: 5px 12px; border-radius: 999px; background: var(--j-blush); color: var(--j-plum); font-size: .82rem; font-weight: 500; }
.juno-deck-actions { display: flex; justify-content: center; gap: 28px; margin-top: 24px; }
.juno-round { width: 68px; height: 68px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 10px 30px -10px rgba(74, 20, 46, .4); font-size: 28px; cursor: pointer; transition: transform .15s; }
.juno-round:hover { transform: scale(1.08); }
.juno-round--pass { color: #9b8a93; }
.juno-round--like { color: #fff; background: linear-gradient(135deg, #f0708a, #d63b63); }
.juno-hint { margin-top: 16px; }
.juno-empty--deck { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; background: #fff; border-radius: 24px; border: 1px dashed var(--j-line); }

/* Modal */
.juno-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(42, 20, 34, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.juno-modal[hidden] { display: none; }
.juno-modal__box { background: #fff; border-radius: 24px; padding: 32px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; animation: juno-pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.juno-modal__box h2 { margin-top: 0; }
@keyframes juno-pop { from { transform: scale(.9); opacity: 0; } }
body.juno-modal-open { overflow: hidden; }
.juno-match { text-align: center; background: linear-gradient(160deg, #fff 40%, var(--j-blush)); }
.juno-match h2 { font-size: 2.2rem; color: var(--j-rose); }
.juno-match__pics { display: flex; justify-content: center; margin: 20px 0; }
.juno-match__pics img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--j-shadow); }
.juno-match__pics img + img { margin-left: -24px; }

/* Member */
.juno-member { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.juno-member__photos { display: grid; gap: 12px; }
.juno-member__photos img { width: 100%; border-radius: 20px; aspect-ratio: 4/5; object-fit: cover; display: block; }
.juno-member__info { position: sticky; top: 100px; }
.juno-member__info h1 { margin: 0; font-size: 2.4rem; }
.juno-member__info h1 span { font-weight: 400; }
.juno-online { color: #2f8f5b; font-weight: 600; }
.juno-intent { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--j-plum); color: #fff; font-size: .85rem; font-weight: 600; }
.juno-bio { font-size: 1.05rem; line-height: 1.6; }
.juno-safety-links { margin-top: 20px; color: var(--j-muted); font-size: .9rem; }
.juno-safety-links .juno-link { color: var(--j-muted); }

/* Inbox */
.juno-inbox { display: grid; grid-template-columns: 320px 1fr; height: min(720px, 78vh); background: #fff; border: 1px solid var(--j-line); border-radius: 24px; overflow: hidden; box-shadow: var(--j-shadow); }
.juno-inbox__list { border-right: 1px solid var(--j-line); overflow-y: auto; }
.juno-inbox__list h2 { margin: 0; padding: 22px 20px 12px; font-size: 1.3rem; position: sticky; top: 0; background: #fff; z-index: 1; }
.juno-thread { display: flex; width: 100%; gap: 12px; align-items: center; padding: 12px 20px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.juno-thread:hover { background: var(--j-cream); }
.juno-thread.is-active { background: var(--j-blush); border-left-color: var(--j-rose); }
.juno-thread img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.juno-thread__body { flex: 1; min-width: 0; }
.juno-thread__body strong { display: block; }
.juno-thread__body small { display: block; color: var(--j-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juno-thread.is-unread small { color: var(--j-ink); font-weight: 600; }
.juno-thread__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .75rem; color: var(--j-muted); }
.juno-thread__meta i { font-style: normal; background: var(--j-rose); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.juno-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--j-cream); }
.juno-chat__empty { margin: auto; text-align: center; color: var(--j-muted); }
.juno-chat__heart { font-size: 48px; color: var(--j-rose); opacity: .35; }
.juno-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--j-line); }
.juno-chat__head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.juno-chat__head > div { flex: 1; }
.juno-chat__head a { color: inherit; text-decoration: none; }
.juno-chat__head small { display: block; color: var(--j-muted); }
.juno-chat__back { display: none; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--j-plum); padding: 0 6px 0 0; }
.juno-menu { position: relative; }
.juno-menu summary { list-style: none; cursor: pointer; font-size: 22px; padding: 4px 10px; border-radius: 10px; }
.juno-menu summary::-webkit-details-marker { display: none; }
.juno-menu summary:hover { background: var(--j-blush); }
.juno-menu > div { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--j-line); border-radius: 14px; box-shadow: var(--j-shadow); min-width: 150px; overflow: hidden; z-index: 5; }
.juno-menu button { display: block; width: 100%; padding: 11px 16px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.juno-menu button:hover { background: var(--j-blush); }
.juno-chat__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.juno-chat__intro { text-align: center; color: var(--j-muted); font-size: .85rem; margin-bottom: 12px; }
.juno-msg { max-width: 72%; align-self: flex-start; }
.juno-msg p { margin: 0; padding: 10px 15px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1px solid var(--j-line); line-height: 1.45; word-wrap: break-word; }
.juno-msg time { display: block; font-size: .7rem; color: var(--j-muted); margin: 3px 6px 6px; }
.juno-msg--mine { align-self: flex-end; text-align: right; }
.juno-msg--mine p { background: var(--j-rose); border-color: var(--j-rose); color: #fff; border-radius: 18px 18px 4px 18px; text-align: left; }
.juno-chat__form { display: flex; gap: 10px; padding: 14px 16px; background: #fff; border-top: 1px solid var(--j-line); align-items: flex-end; }
.juno-chat__form textarea { flex: 1; resize: none; padding: 12px 16px; border: 1.5px solid var(--j-line); border-radius: 22px; font: inherit; background: var(--j-cream); max-height: 140px; }
.juno-chat__form textarea:focus { outline: none; border-color: var(--j-rose); }

/* Toast */
.juno-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--j-ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .92rem; z-index: 10000; opacity: 0; transition: all .3s; box-shadow: var(--j-shadow); }
.juno-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 860px) {
	.juno-member { grid-template-columns: 1fr; }
	.juno-member__info { position: static; }
	.juno-inbox { grid-template-columns: 1fr; height: calc(100vh - 160px); border-radius: 18px; }
	.juno-inbox .juno-chat { display: none; }
	.juno-inbox.is-chatting .juno-inbox__list { display: none; }
	.juno-inbox.is-chatting .juno-chat { display: flex; }
	.juno-chat__back { display: block; }
}
@media (max-width: 560px) {
	.juno-card { padding: 20px; }
	.juno-row { grid-template-columns: 1fr; gap: 0; }
	.juno-photo-grid { grid-template-columns: repeat(2, 1fr); }
	.juno-deck { height: calc(100vh - 290px); min-height: 440px; }
	.juno-msg { max-width: 85%; }
}
@media (prefers-reduced-motion: reduce) {
	.juno-swipe, .juno-btn, .juno-round, .juno-modal__box { transition: none !important; animation: none !important; }
}
