body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
    border-radius: 1rem;
}

.btn {
    border-radius: 999px;
}
/* ===== HERO BANNER ===== */
.hero {
   position: relative;
       height: 280px;
       border-radius: 20px;
       margin-bottom: 25px;
       background: url("https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?q=80&w=1600") center/cover no-repeat;
       overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15,23,42,.55), rgba(15,23,42,.15));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.hero-content p {
    opacity: .9;
}
/* ===== PROFILE CARDS ===== */
.profile-card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 30px;
}

.btn-primary:hover {
    opacity: .92;
}
body {
    background: linear-gradient(180deg, #ffffff, #f3f6ff);
}

@media (max-width: 768px) {
    .hero {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}
.btn-secondary {
    border-radius: 30px;
    opacity: 0.7;
}

.match-banner {
    animation: pop 0.6s ease;
    font-size: 1.2rem;
    border-radius: 15px;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0 }
    100% { transform: scale(1); opacity: 1 }
}
.navbar-brand img {
    transition: transform .2s ease, filter .2s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(255,77,109,.6));
}

/* ===== SWIPE STACK ===== */
.swipe-stage {
    position: relative;
    height: 520px;
    max-width: 720px;
    margin: 0 auto;
}

.swipe-card {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
    overflow: hidden;
    touch-action: none; /* важно для touch drag */
    user-select: none;
    transform: translate(0,0) rotate(0deg);
    transition: transform 180ms ease;
}

.swipe-card.is-under {
    transform: scale(0.97) translateY(8px);
    filter: blur(0.2px);
    opacity: 0.96;
}

.swipe-card .swipe-badge {
    position: absolute;
    top: 18px;
    padding: 8px 14px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 2px solid currentColor;
    background: rgba(255,255,255,.85);
    display: none;
}

.swipe-card .badge-like {
    left: 18px;
    color: #2ecc71;
    transform: rotate(-12deg);
}

.swipe-card .badge-nope {
    right: 18px;
    color: #ff4d6d;
    transform: rotate(12deg);
}

.swipe-card .card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swipe-card .card-top {
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.swipe-card .avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.swipe-card .card-body2 {
    padding: 0 18px 18px 18px;
    overflow: auto;
}

.swipe-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.swipe-actions .btn {
    border-radius: 999px;
    padding: 10px 18px;
}

@media (max-width: 768px) {
    .swipe-stage { height: 560px; }
}
/* ===== CARD CENTER DESIGN ===== */
.card-photo-center {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.card-main-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    border: 4px solid #fff;
}

.card-info-center {
    text-align: center;
    padding: 12px 18px 18px 18px;
}
.cookie-banner {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 12px 16px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* чтобы формы не растягивались */
.card-actions form {
    display: inline-flex;
}

/* одинаковая высота и аккуратная ширина */
.btn-like, .btn-skip {
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* если экран очень узкий — пусть красиво складываются */
@media (max-width: 360px) {
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .card-actions form, .btn-like, .btn-skip {
        width: 100%;
    }
}