body {
    background: linear-gradient(135deg, #1c1c1e, #2a2a2d);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e5e5e5;
}


/* Navbar */
/* Navbar */
.navbar {
    background-color: #18181b !important;
    padding: 0.8rem 1.5rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #cfcfcf !important;
    margin-left: 1.2rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ff4757 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width .3s;
    margin-top: 3px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-upgrade {
    margin-left: 1.5rem;
    background: #ff4757;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    color: #fff !important;
    font-weight: 500;
    transition: opacity .3s;
}

.btn-upgrade:hover {
    opacity: 0.85;
}

/* Profile Card */
.profile-wrapper {
    background-color: #2c2c2e;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.25);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    margin: 1.5rem auto;
    flex: 1;
}

/* Tinder-style photo container */
.photo-frame {
    position: relative;
    width: 100%;
    padding-top: 125%;
    /* 4:5 ratio */
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.profile-photo {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    transition: opacity 0.5s ease;
}

.card-body {
    padding: 1.5rem;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified {
    color: #1e90ff;
    font-size: 1.1rem;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #4cd137;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

.user-bio {
    color: #aaa;
    margin: 0.5rem 0 0.75rem;
}

/* User details */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.user-details span {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #ddd;
}

.user-details i {
    margin-right: 0.6rem;
    color: #ff4757;
    font-size: 1.1rem;
}

/* Interests Tags */
.interests {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Action Buttons */
.action-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.action-btns .btn {
    flex: 1;
    margin: 0 5px;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.7rem 0;
    border-radius: 50px;
    transition: transform 0.2s;
}

.btn-like {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
}

.btn-dislike {
    background: linear-gradient(135deg, #3a3a3c, #57585a);
    color: #fff;
}

.btn-next {
    background: linear-gradient(135deg, #1e90ff, #00aaff);
    color: #fff;
}

.btn:hover {
    transform: scale(1.05);
}

.tip {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ff6b81;
    text-align: center;
    font-style: italic;
}

/* Slider navigation */
.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(255, 107, 129, 0.9));
    border: none;
    color: #fff;
    font-size: 1.8rem;
    padding: 0.8rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.photo-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.photo-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-nav.prev {
    left: 15px;
}

.photo-nav.next {
    right: 15px;
}

/* Larger tap area for mobile */
@media (max-width: 768px) {
    .photo-nav {
        font-size: 2rem;
        padding: 1rem 1.2rem;
    }
}

/* Thumbnails */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnails img.active {
    border-color: #ff4757;
}

footer {
    background: #18181b;
    color: #aaa;
    margin-top: auto;
    padding: 1rem;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: #2c2c2e;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.3s ease;
}

.popup-content h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.popup-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.popup-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.popup-btn:hover {
    transform: scale(1.05);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.2rem;
    color: #aaa;
    cursor: pointer;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Адаптивная ширина модалки */
#ageCheckModal .modal-dialog {
  max-width: 400px;
  margin: auto;
}
@media (max-width: 576px) {
  #ageCheckModal .modal-dialog {
    max-width: 90%;
  }
}

/* Кнопки */
#ageCheckModal .btn {
  min-width: 120px;
}



#ageCheckModal .modal-content {
  background-color: #ffffff; /* Белый фон */
  color: #212529;           /* Тёмно-серый текст (Bootstrap text-dark) */
}

#ageCheckModal .modal-title,
#ageCheckModal p {
  color: #000000; /* Чисто чёрный для максимального контраста */
}


.about-section {
  background-color: #111;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  color: #eee;
}
.about-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
}
.about-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}
