/* --- friend-style.css --- */

html,
body {
    overflow-x: hidden;
    /* Disable horizontal scrolling */
}

/* Friends Page Specific Styles */
.friends-section {
    margin-top: 40px;
    background-color: var(--theme-card-bg);
    /* Match form container bg */
    padding: 20px;
    border-radius: 8px;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.friends-header h2 {
    font-size: 24px;
    color: var(--theme-accent);
}

/* Profile Card Layout (Swiper) */
.profile-card {
    background: var(--theme-background);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 650px;
    /* Default max-width - increased to allow more horizontal space */
    margin: 0 auto;
    width: 90%;
    box-sizing: border-box;
    max-height: 90vh;
    /* Prevent card from being taller than viewport */
    overflow-y: auto;
    /* Allow scrolling within the card if it's too tall */
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Profile Header (Card & Overview) */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* position: relative; --- REMOVED (was for liked-you badge) --- */
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--theme-accent);
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-header h3 {
    color: var(--theme-text-primary);
    font-size: 22px;
    margin: 0;
    word-break: break-word;
    /* Prevent long names overflowing */
}

.profile-header .match-score-display {
    /* Swiper card only */
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--theme-text-secondary);
}

/* Profile Info Section (Used in Overview and Card) */
.profile-info {
    display: grid;
    gap: 5px 15px;
    /* Default gap */
    margin-bottom: 15px;
    /* Use two columns for better layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    flex-grow: 0;
    /* Don't allow these specific sections to grow excessively */
    flex-shrink: 0;
}

.profile-info p {
    margin: 0 0 5px 0;
    /* Reduced bottom margin */
    color: var(--theme-text-secondary);
    font-size: 14px;
    display: flex;
    align-items: baseline;
    /* Align icon baseline with text */
    gap: 8px;
    line-height: 1.4;
    /* Improve readability */
    text-transform: none;
    /* Default, can be overridden */
    word-break: break-word;
    /* Allow long locations/etc to wrap */
}

/* Capitalize specific fields if desired */
.profile-info .capitalize-text {
    text-transform: capitalize;
}

.profile-info i.fa-fw {
    width: 1.3em;
    text-align: center;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 1px;
    /* Fine-tune vertical alignment */
}

.profile-info strong {
    color: var(--theme-text-secondary);
    margin-right: 5px;
    font-weight: bold;
}

.profile-info .bio-text {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Icon Colors - Unchanged */
.profile-info .icon-location {
    color: var(--color-unmatch-red);
}

/* Red */
.profile-info .icon-playstyle {
    color: var(--theme-primary);
}

/* Blue */
.profile-info .icon-role {
    color: #9b59b6;
}

/* Purple */
.profile-info .icon-gamemodes {
    color: #1abc9c;
}

/* Turquoise */
.profile-info i.icon-mic.mic-yes {
    color: var(--theme-secondary) !important;
}

/* Green */
.profile-info i.icon-mic.mic-no {
    color: var(--color-unmatch-red) !important;
}

/* Red */
.profile-info i.icon-mic.mic-sometimes {
    color: #f39c12 !important;
}

/* Orange */
.profile-info i.icon-mic {
    color: var(--theme-text-secondary);
}

/* Default Mic Grey */
.profile-info .icon-language {
    color: #f1c40f;
}

/* Yellow */
.profile-info .icon-gender {
    color: #e91e63;
}

/* Pink */
.profile-info .icon-age {
    color: #e67e22;
}

/* Orange */
.profile-info i.icon-bio {
    color: #7f8c8d;
}

/* Grey */
.profile-info .icon-elo-premier {
    color: var(--color-gold);
}

/* Gold */
.profile-info .icon-elo-faceit {
    color: var(--color-deep-orange);
}

/* Deep Orange */
.profile-info .icon-elo {
    color: var(--theme-text-secondary);
}

/* Default ELO Grey if shown */


/* Your Profile Overview Section Specifics - Unchanged */
.profile-overview {
    background-color: var(--theme-card-hover-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--theme-border);
}

.profile-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
}

.profile-overview-header.open {
    padding-bottom: 0;
}

.profile-overview-header h2 {
    margin: 0;
    color: var(--theme-text-secondary);
}

.toggle-profile-button {
    background: none;
    border: none;
    color: var(--theme-accent);
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}

.toggle-profile-button .toggle-text {
    margin-right: 5px;
}

.toggle-profile-button i {
    transition: transform 0.3s ease-out;
}

.user-profile-details {
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid transparent;
    transition: padding 0.3s ease-out, border-color 0.3s ease-out, opacity 0.3s ease-out;
    display: none;
    opacity: 0;
}

.user-profile-details.open {
    display: block;
    padding-top: 20px;
    padding-bottom: 10px;
    border-top-color: var(--theme-border);
    opacity: 1;
}

.user-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px 25px;
    margin-bottom: 20px;
}

.profile-overview .profile-info {
    font-size: 0.95em;
}

.profile-overview .profile-info strong {
    min-width: 80px;
    display: inline-block;
}

.profile-overview .profile-info p {
    margin-bottom: 10px;
}

.profile-stats .profile-stats-heading {
    color: var(--theme-text-secondary);
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 5px;
    text-align: center;
}

.profile-stats ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 250px;
}

.profile-stats li {
    margin-bottom: 6px;
    color: var(--theme-text-secondary);
    font-size: 0.95em;
    display: flex;
    justify-content: space-between;
}

.profile-stats li strong {
    color: var(--theme-text-secondary);
}

.user-profile-details .edit-profile-button {
    margin-top: 25px;
    display: block;
    width: auto;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 12px;
    background-color: var(--theme-accent);
    color: var(--theme-background);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.user-profile-details .edit-profile-button:hover {
    background-color: var(--theme-accent);
}

.user-profile-details .edit-profile-button i {
    margin-right: 5px;
}

/* Swiper Card Specifics */
/* Swiper Card Specifics */
.potential-friend-card .profile-info {
    font-size: 14px;
    /* Slightly larger font for readability */
    grid-template-columns: 1fr 1fr;
    /* <<< Use 2 equal columns */
    gap: 8px 15px;
    /* Adjust row and column gap (row-gap column-gap) */
    margin-bottom: 20px;
    /* Add more space below this section */
}

/* Align items within the info paragraphs better */
.potential-friend-card .profile-info p {
    align-items: center;
    /* Vertically center icon and text */
    margin-bottom: 8px;
    /* More space between rows */
}

/* Ensure ELO paragraphs inside .profile-info also align */
.potential-friend-card .profile-info p i.fa-fw {
    margin-top: 0;
    /* Reset potential top margin */
    font-size: 1.1em;
    /* Consistent icon size */
}

/* Optional: Slightly less prominent labels */
.potential-friend-card .profile-info strong {
    color: var(--theme-text-secondary);
    font-weight: normal;
    /* Make labels less bold */
    margin-right: 4px;
}

.potential-friend-card .profile-info p {
    margin-bottom: 5px;
    align-items: center;
    line-height: 1.3;
}

.potential-friend-card .profile-info i.fa-fw {
    font-size: 1em;
    margin-top: 0;
}

/* --- ADDED: Profile Card Stats Section --- */
.profile-card-stats {
    margin-top: 10px;
    /* << REDUCED from 15px */
    padding-top: 10px;
    /* Reduced */
    border-top: 1px solid var(--theme-border);
    text-align: center;
}

.profile-card-stats h4 {
    color: var(--theme-text-secondary);
    font-size: 1em;
    /* Slightly smaller heading */
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-card-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    /* Distribute items evenly */
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 10px;
    /* Add gap between items */
}

.profile-card-stats li {
    color: var(--theme-text-secondary);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    /* Stack icon and text vertically */
    align-items: center;
    min-width: 80px;
    /* Give items some minimum width */
}

.profile-card-stats li i.fa-fw {
    font-size: 1.4em;
    /* Make icons slightly larger */
    margin-bottom: 5px;
    color: var(--theme-accent);
    /* Use accent color for icons */
    width: auto;
    /* Override default fixed width if needed */
}

.profile-card-stats li span {
    font-weight: bold;
    color: var(--theme-text-primary);
}

/* Footer Section - Pushed to bottom */
.profile-card-footer {
    margin-top: auto;
    /* Push footer to the bottom */
    padding-top: 10px;
    border-top: 1px solid var(--theme-border);
}

/* Adjust stats layout on smaller screens if needed */
@media (max-width: 400px) {
    .profile-card-stats ul {
        justify-content: center;
        /* Center items when they wrap */
    }

    .profile-card-stats li {
        min-width: 70px;
        font-size: 0.85em;
    }
}

/* --- END ADDED: Profile Card Stats Section --- */


/* Updated Bio Section Styles */
.profile-bio-section {
    margin-top: 10px;
    /* << REDUCED from 15px */
    padding-top: 10px;
    /* Reduced */
    border-top: 1px solid var(--theme-border);
    /* REMOVED max-height: 140px; */
    /* REMOVED overflow-y: auto; */
    margin-bottom: 15px;
    /* Keep space below bio before footer */
    /* REMOVED flex-grow: 1; (Let natural height work first) */
}

/* Fix for System Notification Card Bio Clipping */
.swiper-slide.is-system-notif .profile-card {
    min-height: 540px !important;
    /* Slightly more for safety in longer languages */
    height: auto !important;
    max-height: none !important;
    /* Overriding global 85vh */
    overflow-y: visible !important;
    /* Overriding global auto */
}

.swiper-slide.is-system-notif .profile-bio-section {
    max-height: none !important;
    overflow: visible !important;
    flex: 1 0 auto !important;
    height: auto !important;
    padding-bottom: 30px !important;
    /* Extra padding at bottom */
}

/* Dedicated class for system card bio to bypass inherited limits */
.system-bio-text {
    display: block !important;
    white-space: normal !important;
    /* Allow natural wrapping with <br> */
    word-break: break-word !important;
    line-height: 1.5 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

.profile-bio-section p {
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--theme-text-secondary);
    margin: 0;
    white-space: pre-wrap;
    /* Ensure whitespace is respected */
    word-break: break-word;
    /* Allow long words to break */
}

.profile-bio-section p i.fa-fw {
    margin-right: 8px;
    color: #a0a0a0;
}

.profile-bio-section p strong {
    display: none;
}


/* Swiper Container & Navigation */
.friend-swiper {
    position: relative;
    /* padding: 0 30px; -- Padding might vary based on media query */
    margin-bottom: 40px;
}



.friend-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    transition: transform 0.3s ease;
}



.friend-swiper .swiper-button-next,
.friend-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent);
    background-color: rgba(40, 44, 52, 0.7);
    border-radius: 50%;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    --swiper-navigation-size: 22px;
}

.friend-swiper .swiper-button-next:hover,
.friend-swiper .swiper-button-prev:hover {
    background-color: rgba(40, 44, 52, 0.9);
}

.friend-swiper .swiper-button-prev {
    left: 0px;
}

.friend-swiper .swiper-button-next {
    right: 0px;
}

.friend-swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Swiping Visual Feedback */
.friend-swiper .swiper-slide-active.swiping-right .profile-card {
    box-shadow: 0 0 25px 3px rgba(76, 175, 80, 0.6);
    transition: box-shadow 0.1s ease-out;
}

.friend-swiper .swiper-slide-active.swiping-left .profile-card {
    box-shadow: 0 0 25px 3px rgba(244, 67, 54, 0.6);
    transition: box-shadow 0.1s ease-out;
}

/* Last Seen & Action Buttons (Card) */
.last-seen {
    font-size: 0.85em;
    color: var(--theme-text-secondary);
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 5px;
    box-sizing: border-box;
}

.last-seen i.fa-eye {
    margin-right: 4px;
}

.profile-actions {
    display: flex;
    justify-content: space-around;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Existing button styles remain the same */
.profile-actions button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 32px;
    padding: 5px;
    color: inherit;
    transition: transform 0.2s, color 0.2s;
}

.profile-actions button:hover {
    transform: scale(1.2);
}

.profile-actions button:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

.profile-actions .dislike i {
    color: var(--color-dislike-red);
}

.profile-actions .like i {
    color: var(--color-like-green);
}

.profile-actions .dislike:hover i {
    color: var(--color-dislike-hover);
}

.profile-actions .like:hover i {
    color: var(--color-like-hover);
}

/* --- Liked You Badge CSS REMOVED --- */

/* No More Profiles Card */
.swiper-slide.no-more-profiles .profile-card {
    min-height: 200px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--theme-text-secondary);
}

.swiper-slide.no-more-profiles .profile-card p {
    font-size: 1.1em;
}

.swiper-slide.no-more-profiles .profile-card p small {
    font-size: 0.8em;
    color: var(--theme-text-secondary);
    display: block;
    margin-top: 10px;
}

/* Matches List Section - Unchanged */
.friend-list-section {
    margin-top: 40px;
}

.friend-list-section h3 {
    color: var(--theme-text-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-border);
}

#accepted-friends-list {
    margin-top: 0;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background-color: var(--theme-card-hover-bg);
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--theme-border);
    gap: 15px;
}

.match-item:last-child {
    border-bottom: none;
}

.match-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
}

.match-info {
    flex-grow: 1;
}

.match-info .match-name {
    margin-bottom: 3px;
}

.match-info .match-name a {
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.match-info .match-name a:hover {
    color: var(--theme-accent);
    text-decoration: underline;
}

.match-info .match-timestamp {
    font-size: 0.85em;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.match-info .match-timestamp i {
    font-size: 0.9em;
}

.match-info .match-timestamp .discord-username-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
}

.match-info .match-timestamp .discord-username {
    font-style: italic;
    color: var(--theme-text-secondary);
    cursor: pointer;
}

.match-info .match-timestamp .discord-username:hover {
    color: var(--theme-text-secondary);
}

.match-info .match-timestamp .discord-username-wrapper i.fa-discord {
    color: var(--color-discord-hover);
}

.match-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.match-actions .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.9em;
    min-width: 40px;
    text-align: center;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.match-actions .action-button i {
    margin: 0;
    font-size: 1.1em;
}

.match-actions .steam-profile {
    background-color: var(--color-steam-blue);
    color: white;
    border-color: var(--color-steam-border);
}

.match-actions .steam-chat {
    background-color: var(--color-steam-chat);
    color: white;
    border-color: var(--color-steam-chat-border);
}

.match-actions .unmatch-friend {
    background-color: var(--color-unmatch-red);
    color: white;
    border-color: var(--color-unmatch-border);
}

.match-actions .discord-link {
    background-color: var(--color-discord-purple);
    color: white;
    border-color: var(--color-discord-border);
    cursor: pointer;
}

/* Discord purple */
.match-actions .steam-profile:hover {
    background-color: var(--color-steam-hover);
    border-color: var(--color-steam-blue);
}

.match-actions .steam-chat:hover {
    background-color: var(--color-steam-chat-hover);
    border-color: var(--color-steam-chat);
}

.match-actions .unmatch-friend:hover {
    background-color: var(--color-unmatch-hover);
    border-color: var(--color-unmatch-red);
}

.match-actions .discord-link:hover {
    background-color: var(--color-discord-hover);
    border-color: var(--color-discord-purple);
}

.no-interactions {
    padding: 15px;
    color: var(--theme-text-secondary);
    font-style: italic;
    text-align: center;
}

/* --- FINAL FIX: Responsive Adjustments for Profile Card Width --- */
@media (min-width: 768px) {

    /* Styles for 768px up to 991px */
    .profile-card {
        max-width: 750px;
        flex: initial;
        /* <<< ADDED: Reset flex properties */
    }

    .friend-swiper {
        padding: 0 40px;
    }

    .friend-swiper .swiper-button-prev {
        left: 5px;
    }

    .friend-swiper .swiper-button-next {
        right: 5px;
    }
}

@media (max-width: 858px) {
    .potential-friend-card .profile-info {
        grid-template-columns: 1fr;
        /* <<< SWITCH TO 1 COLUMN */
        gap: 5px;
        /* Adjust gap for single column */
        font-size: 13px;
        /* Optional: Adjust font size like in old <600px rule */
    }

    .potential-friend-card .profile-info p {
        margin-bottom: 5px;
    }

    .potential-friend-card .profile-info i.fa-fw {
        font-size: 1em;
    }

    /* --- Include other relevant styles from your old max-width: 600px query --- */
    /* --- that should now apply up to 858px                     --- */

    .profile-card {
        padding: 15px;
        /* Example from old rule */
        max-width: 95%;
        /* Example from old rule */
        width: 95%;
        /* Example from old rule */
    }

    .profile-avatar {
        width: 60px;
        /* Example from old rule */
        height: 60px;
        /* Example from old rule */
        margin-right: 10px;
        /* Example from old rule */
    }

    .profile-header h3 {
        font-size: 18px;
        /* Example from old rule */
    }

    .profile-header .match-score-display {
        font-size: 0.8em;
        /* Example from old rule */
    }

    .profile-bio-section {
        /* Adjust bio height again for smaller screens */
        max-height: none;
        /* Expanded for accessibility */
        font-size: 0.85em;
    }

    .profile-actions button {
        font-size: 28px;
        /* Example from old rule */
    }

    .last-seen {
        font-size: 0.8em;
        /* Example from old rule */
        margin-bottom: 8px;
        /* Slightly less margin */
    }

    /* Swiper adjustments might also be needed here if they were in max-width: 600px */
    .friend-swiper {
        padding: 0 5px;
    }

    .friend-swiper .swiper-button-next,
    .friend-swiper .swiper-button-prev {
        width: 28px;
        height: 28px;
        margin-top: -14px;
        background-color: rgba(40, 44, 52, 0.5);
        --swiper-navigation-size: 18px;
    }

    .friend-swiper .swiper-button-prev {
        left: 5px;
    }

    .friend-swiper .swiper-button-next {
        right: 5px;
    }

}

/* End of @media (max-width: 858px) */

@media (min-width: 992px) {

    /* Styles for 992px up to 1199px */
    .profile-card {
        max-width: 750px;
        flex: initial;
        /* <<< ADDED: Reset flex properties */
    }

    .friend-swiper {
        padding: 0 45px;
    }

    .friend-swiper .swiper-button-prev {
        left: 8px;
    }

    .friend-swiper .swiper-button-next {
        right: 8px;
    }
}


@media (min-width: 1200px) {

    /* Styles for 1200px and up */
    .profile-card {
        max-width: 850px;
        flex: initial;
        /* <<< ADDED: Reset flex properties */
    }

    .friend-swiper {
        padding: 0 50px;
    }

    .friend-swiper .swiper-button-prev {
        left: 10px;
    }

    .friend-swiper .swiper-button-next {
        right: 10px;
    }
}

/* --- END FINAL FIX --- */


/* Responsive Adjustments (Original - may need tweaking with above changes) */
@media (max-width: 768px) {

    /* Applied below 768px now */
    .friends-section {
        padding: 15px;
    }

    .profile-card {
        padding: 20px;
        min-height: auto;
    }

    /* Already handled max-width above */
    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .user-profile-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 15px;
        max-width: 95%;
        width: 95%;
    }

    /* Ensure it doesn't exceed screen width */
    .profile-avatar {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .profile-header h3 {
        font-size: 18px;
    }

    .profile-header .match-score-display {
        font-size: 0.8em;
    }

    .potential-friend-card .profile-info {
        font-size: 14px;
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 8px 15px;
        margin-bottom: 8px;
        /* << REDUCED from 10px/15px */
    }

    .potential-friend-card .profile-info p {
        margin-bottom: 5px;
    }

    .potential-friend-card .profile-info i.fa-fw {
        font-size: 1em;
    }

    .profile-bio-section p {
        max-height: none;
        font-size: 0.85em;
    }

    .profile-actions button {
        font-size: 28px;
    }

    .last-seen {
        font-size: 0.8em;
        margin-top: 10px;
    }

    .friend-swiper {
        padding: 0 5px;
    }

    .friend-swiper .swiper-button-next,
    .friend-swiper .swiper-button-prev {
        width: 28px;
        height: 28px;
        margin-top: -14px;
        background-color: rgba(40, 44, 52, 0.5);
        --swiper-navigation-size: 18px;
    }

    .friend-swiper .swiper-button-prev {
        left: 5px;
    }

    .friend-swiper .swiper-button-next {
        right: 5px;
    }

    .match-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .match-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .match-actions .action-button {
        flex-grow: 1;
        justify-content: center;
        flex-basis: 45%;
    }
}

/* --- Mandatory Setup Prompt --- (Unchanged) */
.mandatory-setup-prompt {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-accent);
    border-radius: 8px;
    padding: 30px;
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mandatory-setup-prompt h2 {
    color: var(--theme-accent);
    margin-bottom: 15px;
}

.mandatory-setup-prompt p {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.mandatory-setup-prompt .setup-profile-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-like-green);
    color: var(--theme-text-primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mandatory-setup-prompt .setup-profile-button:hover {
    background-color: var(--color-like-hover);
}

.mandatory-setup-prompt .setup-profile-button i {
    margin-right: 8px;
}