.tinder-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    padding: clamp(10px, 2vh, 18px) clamp(12px, 4vw, 24px) calc(32px + env(safe-area-inset-bottom, 14px));
    margin: 0 auto;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 32%),
                linear-gradient(180deg, rgba(3, 6, 12, 0.86) 0%, rgba(7, 11, 20, 0.9) 50%, rgba(4, 7, 14, 0.9) 100%);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
    justify-content: space-between;
}

body.tinder-page .page-shell {
    padding-top: clamp(78px, 9vh, 96px);
    padding-bottom: 0;
    max-width: 600px;
}

body.tinder-page .page-container {
    padding-left: 0;
    padding-right: 0;
}

.tinder-widget {
    position: relative;
    height: min(70vh, 760px);
    max-height: calc(100dvh - 240px);
    min-height: 440px;
    width: 100%;
    margin: 0;
    perspective: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.luxe-stack .card {
    position: absolute;
    inset: 0;
}

.card {
    --swipe-progress: 0;
    background: #0d0d0d;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}

.card-image-container {
    height: 100%;
    min-height: 440px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.28) 38%, rgba(0, 0, 0, 0.72) 100%);
}

.swipe-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: opacity 0.18s ease, transform 0.18s ease;
    background: rgba(0, 0, 0, 0.2);
}

.swipe-stamp--like {
    border: 2px solid #3aff90;
    color: #3aff90;
}

.swipe-stamp--dislike {
    border: 2px solid #ff8ec2;
    color: #ff5f9c;
}

.card.show-like .swipe-stamp--like,
.card.show-dislike .swipe-stamp--dislike,
.card[data-swipe-direction="right"] .swipe-stamp--like,
.card[data-swipe-direction="left"] .swipe-stamp--dislike {
    opacity: var(--swipe-progress, 1);
    transform: translateY(calc(-6px * (1 - var(--swipe-progress, 1)))) scale(calc(0.95 + 0.08 * var(--swipe-progress, 1)));
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
}

.card-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    opacity: 0.85;
    text-transform: uppercase;
}

.card h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.card-meta {
    margin: 0;
    font-size: 16px;
    opacity: 0.86;
}

.card.current-card {
    z-index: 2;
    transform: translateY(0);
}

.card.next-card {
    z-index: 1;
    opacity: 0.92;
    transform: scale(0.985) translateY(10px);
}

.card.swipe-right {
    transform: translateX(140%) rotate(14deg);
    opacity: 0;
}

.card.swipe-left {
    transform: translateX(-140%) rotate(-14deg);
    opacity: 0;
}

.tinder-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: min(440px, 100%);
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(3, 6, 12, 0.68);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.action-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.25s ease, filter 0.2s ease;
    color: #0a0a0a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-3px);
    filter: saturate(1.05);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn--refresh {
    background: #ffe780;
    color: #c67f00;
}

.action-btn--dislike {
    background: #ff6b74;
    color: #fff;
}

.action-btn--like {
    background: #5bf09f;
    color: #015031;
}

.action-btn--bag {
    background: #7ab8ff;
    color: #0f2d62;
}

.tinder-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: #0f0f0f;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.2);
}

.status-label {
    color: #383838;
    font-weight: 700;
}

.link-inline {
    color: #0f2140;
    font-weight: 700;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 90%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 720px) {
    .tinder-shell {
        padding: clamp(12px, 3vh, 18px) clamp(10px, 5vw, 18px) calc(28px + env(safe-area-inset-bottom, 12px));
        border-radius: 18px;
        min-height: 100dvh;
        max-height: none;
    }

    .tinder-widget {
        height: min(68vh, 640px);
        max-height: calc(100dvh - 230px);
        min-height: 380px;
    }

    .card-image-container {
        min-height: 380px;
    }

    .tinder-actions {
        width: min(420px, 100%);
    }
}
