@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #ff4d6d;
    --secondary: #c9184a;
    --accent: #ff8fa3;
    --bg-dark: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    scrollbar-gutter: stable; /* Forhindrer siden i at rykke sig når scrollbar forsvinder */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Header & Nav */
header {
    padding: 1.4rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-login {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    margin: 20px auto;
    max-width: calc(100% - 40px);
    border-radius: 40px;
    background: url('../images/hero_dating_bg.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 90%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    background: rgba(13, 10, 35, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 4rem 3rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 850px;
    margin: 0 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Profiles Grid */
.main-content {
    padding: 4rem 5%;
    margin: 20px auto 60px;
    max-width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    animation: fadeIn 0.8s ease-out forwards;
}

.profile-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.profile-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(48, 43, 99, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover .profile-img img {
    transform: scale(1.1);
}

.profile-img i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Blurred avatar for guests */
.profile-img.blurred i,
.profile-img.blurred img {
    filter: blur(15px);
}

.profile-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    z-index: 2;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4cd137;
}

.status-dot.offline {
    background: #555;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    z-index: 2;
}

.profile-body {
    padding: 1.1rem;
}

.profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-name.blurred {
    filter: blur(7px);
    user-select: none;
}

.profile-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.profile-sub.blurred {
    filter: blur(5px);
    user-select: none;
}

.profile-bio {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.interest-tag {
    padding: 0.18rem 0.55rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Card Actions Unified */
.card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.act-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.act-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.act-btn.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

.act-btn.primary:hover {
    opacity: 0.9;
    transform: none;
}

.act-btn.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.act-btn.locked:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5rem;
}

footer p {
    color: var(--text-muted);
}

/* Toast System */
.custom-toast {
    position: fixed;
    top: 20px;
    right: -350px;
    background: rgba(15, 12, 41, 0.95);
    border: 1px solid var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transition: right 0.5s ease-out;
    max-width: 320px;
}

.custom-toast.show {
    right: 20px;
}

.custom-toast a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}




/* ==============================================
   PC LAYOUT - CENTRERET (Definitiv version)
   Kun for skærme > 992px
   ============================================== */
@media (min-width: 993px) {

    /* Centrer hele siden */
    body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: #0b091a !important;
    }
    
    .app-container {
        width: 100% !important;
        max-width: 1200px !important;
    }

    /* Header - centreret og svæver i toppen */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 1200px !important;
        height: 75px !important;
        padding: 0 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: rgba(15, 12, 41, 0.92) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
    }

    /* Navigation links */
    .desktop-nav {
        display: flex !important;
    }

    .desktop-nav ul {
        display: flex !important;
        gap: 3rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .desktop-nav a {
        color: rgba(255,255,255,0.7) !important;
        text-decoration: none !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        padding: 0.4rem 0 !important;
        transition: color 0.25s !important;
        position: relative !important;
    }

    .desktop-nav a:hover {
        color: #fff !important;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 0; height: 2px;
        background: var(--primary);
        transition: width 0.3s;
    }

    .desktop-nav a:hover::after {
        width: 100%;
    }
}

/* ── Integrated Event Chat ── */
.event-card-chat {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-chat-header {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.event-chat-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-arrow {
    transition: transform 0.3s ease;
}

.event-card-chat.expanded .chat-arrow {
    transform: rotate(180deg);
}

.event-chat-body {
    display: none;
    flex-direction: column;
    height: 300px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card-chat.expanded .event-chat-body {
    display: flex;
}

.event-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-msg {
    display: flex;
    gap: 0.8rem;
    animation: slideUp 0.3s ease-out;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-body {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.8rem;
    border-radius: 0 12px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.event-msg.own {
    flex-direction: row-reverse;
}

.event-msg.own .msg-body {
    background: rgba(255, 77, 109, 0.15);
    border-radius: 12px 0 12px 12px;
}

.msg-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.event-chat-input {
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-chat-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.event-chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.event-chat-input button:active {
    transform: scale(0.9);
}

.loading-msg, .empty-chat {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 2rem 0;
    opacity: 0.6;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.desktop-nav a { position: relative; }
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after { width: 100%; }

/* Burger knap - altid synlig efter ønske */
.mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 12px;
    position: relative;
    z-index: 10001;
}
.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

/* ── Sidebar Base (fælles for alle sider) ── */
/* Skjult som standard. mobile.css / desktop.css styrer enhedsspecifik adfærd. */
.sidebar {
    display: none;
    position: fixed;
    z-index: 50000;
    background: rgba(13, 10, 35, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.sidebar.show {
    display: block;
}

/* ── Sidebar Nav & Common Elements ── */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.3rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    transition: color 0.25s;
}

.sidebar-nav a:hover {
    background: rgba(255, 77, 109, 0.12);
    color: white;
    transform: translateX(4px);
}

.sidebar-nav a:hover i {
    color: var(--primary);
}

.sidebar-nav li.active a {
    background: rgba(255, 77, 109, 0.15);
    color: white;
    font-weight: 600;
}

.sidebar-nav li.active a i {
    color: var(--primary);
}

/* ── Integrated Event Chat ── */
.event-card-chat {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-chat-header {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.event-chat-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-arrow {
    transition: transform 0.3s ease;
}

.event-card-chat.expanded .chat-arrow {
    transform: rotate(180deg);
}

.event-chat-body {
    display: none;
    flex-direction: column;
    height: 300px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card-chat.expanded .event-chat-body {
    display: flex;
}

.event-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-msg {
    display: flex;
    gap: 0.8rem;
    animation: slideUp 0.3s ease-out;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-body {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.8rem;
    border-radius: 0 12px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.event-msg.own {
    flex-direction: row-reverse;
}

.event-msg.own .msg-body {
    background: rgba(255, 77, 109, 0.15);
    border-radius: 12px 0 12px 12px;
}

.msg-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.event-chat-input {
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-chat-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.event-chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.event-chat-input button:active {
    transform: scale(0.9);
}

.loading-msg, .empty-chat {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 2rem 0;
    opacity: 0.6;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.desktop-nav a { position: relative; }
.desktop-nav a::after {
    color: rgba(255,255,255,0.4);
    transition: color 0.25s;
}

.sidebar-nav a:hover {
    background: rgba(255, 77, 109, 0.12);
    color: white;
    transform: translateX(4px);
}

.sidebar-nav a:hover i {
    color: var(--primary);
}

.sidebar-nav li.active a {
    background: rgba(255, 77, 109, 0.15);
    color: white;
    font-weight: 600;
}

.sidebar-nav li.active a i {
    color: var(--primary);
}


/* ── Kompakt Chat Design ── */
.comment-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
    align-items: flex-start;
}
.c-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 45px;
}
.c-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 77, 109, 0.25);
}
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    max-width: 50px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}
.c-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.comment-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.9rem;
    border-radius: 0 12px 12px 12px;
    position: relative;
    font-size: 0.88rem;
}
.c-time {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 0.1rem;
    margin-left: 0.1rem;
}
.c-text {
    line-height: 1.4;
    display: block;
}
/* ── Event Detail Modal ── */
.detail-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.detail-modal.active {
    display: flex;
}

.detail-modal-content {
    background: #121026;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-modal.active .detail-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-hero {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.modal-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.modal-category {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

.modal-body {
    padding: 2rem;
}

.modal-header-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-meta-row {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.modal-meta-row i {
    color: var(--primary);
    margin-right: 5px;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-section h3 i { color: var(--primary); }

.modal-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-grid-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.modal-grid-item i {
    width: 36px; height: 36px;
    background: rgba(255, 77, 109, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.modal-grid-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.modal-grid-item div {
    font-size: 0.9rem;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
}
.c-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.comment-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.9rem;
    border-radius: 0 12px 12px 12px;
    position: relative;
    font-size: 0.88rem;
}
.c-time {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 0.1rem;
    margin-left: 0.1rem;
}
.c-text {
    line-height: 1.4;
    display: block;
}
/* ── Event Detail Modal ── */
.detail-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.detail-modal.active {
    display: flex;
}

.detail-modal-content {
    background: #121026;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-modal.active .detail-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-hero {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.modal-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.modal-category {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-header-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-meta-row {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.modal-meta-row i {
    color: var(--primary);
    margin-right: 5px;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-section h3 i { color: var(--primary); }

.modal-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-grid-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.modal-grid-item i {
    width: 36px; height: 36px;
    background: rgba(255, 77, 109, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.modal-grid-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.modal-grid-item div {
    font-size: 0.9rem;
    color: white;
}

@media (max-width: 600px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-body { padding: 1.5rem; }
}

/* ══ Custom Modal ══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.custom-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}
.modal-overlay.show .custom-modal {
    transform: scale(1);
}
.modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}
.modal-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.modal-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.modal-btn.confirm { background: var(--primary); color: white; }
.modal-btn.cancel { background: rgba(255, 255, 255, 0.1); color: white; }
.modal-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ══ Match Card Chat ══ */
.match-card-chat {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.match-chat-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    transition: background 0.3s;
}
.match-chat-header:hover { background: rgba(255,255,255,0.02); }
.match-chat-body {
    display: none;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
}
.match-chat-body.show { display: block; }
.match-messages {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}
.match-msg {
    max-width: 85%;
    padding: 0.6rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.match-msg.received { align-self: flex-start; background: rgba(255,255,255,0.08); color: white; border-bottom-left-radius: 2px; }
.match-msg.sent { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 2px; }

.match-chat-input {
    display: flex;
    gap: 8px;
}
.match-chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
}
.match-chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.clickable-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.clickable-card:active {
    transform: translateY(-2px);
}
/* --- Role Based Navigation Menus --- */
.nav-group {
    position: relative;
    cursor: pointer;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s;
    height: 100%; /* Ensure same height as other nav items */
    padding: 0;
}

.nav-group:hover .nav-label {
    color: var(--primary);
}

.nav-group.admin .nav-label {
    color: #ffb703; /* Golden admin color */
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    min-width: 220px;
    display: none; /* Changed from visibility:hidden to display:none */
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 9999;
}

.nav-group:hover .nav-dropdown {
    display: flex;
    transform: translateX(-50%) translateY(0);
}






.nav-dropdown a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    display: block;
}

.nav-dropdown a:hover {
    background: rgba(255, 77, 109, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

.nav-group.admin .nav-dropdown {
    border-color: rgba(255, 183, 3, 0.3);
}

.nav-group.admin .nav-dropdown a:hover {
    background: rgba(255, 183, 3, 0.1);
    color: #ffb703;
}

/* ─── Profile Common Styles ─── */
.profile-page        { max-width: 1100px; margin: 130px auto 5rem; padding: 0 2rem; }
.profile-hero        { position: relative; border-radius: 40px; margin-bottom: 2rem; overflow: visible !important; }
.hero-cover          { height: 300px; border-radius: 40px; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.hero-avatar-wrap    { position: absolute; left: 2rem; bottom: 25px; z-index: 100; }
.hero-avatar         { width: 250px; height: 250px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.15); background: #1a1a2e; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.hero-avatar img     { width: 100%; height: 100%; object-fit: cover; }
.hero-actions        { position: absolute; top: 1.5rem; right: 1.5rem; display: flex; gap: 0.8rem; z-index: 150; }
.hero-btn            { padding: 0.7rem 1.4rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); color: white; font-size: 0.9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.hero-btn:hover      { border-color: var(--primary); transform: translateY(-2px); }
.profile-header      { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 2.5rem; margin-bottom: 2rem; }
.profile-name-row    { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.profile-name-row h1 { font-size: 2.5rem; font-weight: 900; color: white; }
.verified-badge      { background: rgba(76,209,55,0.1); color: #4cd137; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; border: 1px solid rgba(76,209,55,0.2); }
.profile-cols        { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }
.profile-card        { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 2rem; margin-bottom: 2rem; }
.profile-card .section-title { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; text-align: left; }
.profile-card .section-title i { color: var(--primary); }
.photo-grid          { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.photo-slot          { aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.photo-slot img      { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-slot:hover img{ transform: scale(1.1); }
.action-card         { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 1.5rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.action-big-btn      { width: 100%; padding: 1.2rem; border-radius: 16px; border: none; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.8rem; transition: all 0.3s; font-size: 1rem; text-decoration: none; }
.action-big-btn.primary { background: linear-gradient(45deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 10px 20px rgba(255,77,109,0.2); }
.action-big-btn:hover   { transform: translateY(-3px); opacity: 0.9; }
.suggested-card      { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 16px; cursor: pointer; transition: background 0.3s; }
.suggested-card:hover{ background: rgba(255,255,255,0.05); }
.custom-toast        { position: fixed; bottom: 30px; right: 30px; background: #1a1a2e; color: white; padding: 1rem 2rem; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--primary); z-index: 1000; transform: translateY(100px); transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275); }
.custom-toast.show   { transform: translateY(0); }
.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* ── Restricted Access Styles ── */
.locked-container {
    position: relative;
    min-height: 400px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: rgba(15, 12, 41, 0.4);
    border-radius: 20px;
    cursor: pointer;
}

.lock-overlay-content {
    text-align: center;
    color: var(--primary);
}

.lock-overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.lock-overlay-content p {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.upgrade-card {
    background: rgba(15, 12, 41, 0.95);
    border: 1px solid var(--primary);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.filter-sidebar.locked {
    position: relative;
    cursor: pointer;
}

.filter-sidebar.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
    z-index: 10;
}

/* ─── Responsive View Toggles ─── */
.profile-view-desktop { display: block; }
.profile-view-mobile  { display: none; }

@media (max-width: 991px) {
    .profile-view-desktop { display: none; }
    .profile-view-mobile  { display: block; }
    .profile-page { margin-top: 90px; padding: 0 1rem; }

    /* Tighter cards on mobile */
    .profile-card        { padding: 1.2rem; border-radius: 18px; margin-bottom: 1rem; }
    .profile-card .section-title { font-size: 1rem; margin-bottom: 1rem; }
    .profile-header      { padding: 1.5rem 1rem; border-radius: 18px; margin-bottom: 1rem; }
    .action-card         { padding: 1rem; border-radius: 18px; margin-bottom: 1rem; gap: 0.7rem; }
    .action-big-btn      { padding: 0.9rem; font-size: 0.9rem; border-radius: 12px; }

    /* Activity cards on mobile */
    .activity-card-clickable { border-radius: 14px !important; }
}

/* ─── Likes Dropdown Styles ─── */
.header-likes-wrapper {
    position: relative;
}

.header-likes-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

.likes-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.dropdown-like-btn:hover {
    transform: scale(1.1);
    background: var(--secondary) !important;
}

.likes-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.likes-dropdown-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

.likes-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.likes-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@media (max-width: 991px) {
    .header-likes-dropdown {
        right: -10px !important;
        width: 290px !important;
    }
}

/* ─── Messages View Toggles ─── */
.messages-view-desktop { display: block; }
.messages-view-mobile  { display: none; }

@media (max-width: 991px) {
    .messages-view-desktop { display: none; }
    .messages-view-mobile  { display: block; }

    /* When in chat view: hide site header, prevent body scroll */
    body:has(.mob-chat-view) header {
        display: none !important;
    }
    body:has(.mob-chat-view) {
        overflow: hidden;
    }
}
