﻿/* #Default# */
@import url('https://fonts.googleapis.com/css2?family=Numans&family=Armata&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --focus-ring-color: #d4a017;
    --focus-ring-offset: 2px;
    --min-touch-target: 44px;
}

html, body {
    font-family: 'Numans', sans-serif;
    height: 100%;
    margin: 0;
    background-color: white;
    padding: 0;
    /*overflow-x: hidden;*/
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .logo-title, .dashboard-title, .profile-title, .settings-title {
    font-family: 'Armata', sans-serif;
}

html {
    overflow-y: scroll;
}

.light body,
.light .page {
    background-color: white;
    color: black;
}

a, .btn-link {
    color: #005a9e;
    text-underline-offset: 3px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    min-height: var(--min-touch-target);
    padding: 0.5rem 1rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 var(--focus-ring-offset) white, 0 0 0 calc(var(--focus-ring-offset) + 2px) var(--focus-ring-color);
    outline: none;
}

/* Override Bootstrap blue focus on all inputs globally */
input,
textarea,
select,
.form-control,
.form-select,
.form-check-input {
    -webkit-tap-highlight-color: transparent;
}

    input:focus,
    textarea:focus,
    select:focus,
    .form-control:focus,
    .form-select:focus,
    .form-check-input:focus {
        border-color: goldenrod !important;
        box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25) !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

.content {
    /*padding-top: 1.1rem;*/
}

#main-scroll-container {
    position: fixed !important;
    height: 94vh !important;
    height: calc(100dvh - 120px) !important;
    max-height: 100vh !important;
    top: 120px !important;
    bottom: 0 !important;
    /* overflow lives on .page so that position:fixed children (bottom-sheet, backdrop)
       are NOT contained by this element and remain viewport-relative */
    overflow: visible !important;
    z-index: auto !important;
}

    /* The actual scroll container — position:static so it does NOT trap fixed descendants */
    #main-scroll-container > .page {
        overflow-y: auto;
        height: 100%;
        padding-bottom: 70px;
        box-sizing: border-box;
    }

        /* Push the scrollbar track down so it doesn't visually overlap the nav header */
        #main-scroll-container > .page::-webkit-scrollbar-track {
            margin-top: 30px;
            margin-bottom: 10px;
        }

.top-row {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background-color: white !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.page {
    min-height: 100vh;
}

body, html {
    overflow: auto !important;
    height: auto !important;
    max-height: none !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    border-color: #B44B4B !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(180, 75, 75, 0.15) !important;
}

.validation-message {
    color: #7A2222;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/*   .validation-message::before {
        content: "\26A0  ";
        font-size: 0.7rem;
    }*/

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

#app {
    /*background-color: #121212;*/
}

.reset-password-title, .new-btn-label, .confirm-pw-label {
    color: black;
}

.validation-errors {
    list-style: none;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    background-color: #FDF5F5;
    border: none;
    border-left: 3px solid #380e0e;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #380e0e;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garantir que o padding est� inclu�do na largura e altura */
}

a, .btn-link {
    color: #005a9e;
    text-underline-offset: 3px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    min-height: var(--min-touch-target);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 var(--focus-ring-offset) white, 0 0 0 calc(var(--focus-ring-offset) + 2px) var(--focus-ring-color);
    outline: none;
}

.content {
    /*padding-top: 1.1rem;*/
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    border-color: #B44B4B !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(180, 75, 75, 0.15) !important;
}

.validation-message {
    color: #7A2222;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* .validation-message::before {
        content: "\26A0  ";
        font-size: 0.7rem;
    }*/

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

.fade-in {
    animation: fadeInMove 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(5px);
}

.fade-container {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

    .fade-container.loading {
        opacity: 0.4;
        pointer-events: none;
    }

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: darkgoldenrod;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    z-index: 9999;
}

    .back-to-top:hover {
        transform: scale(1.05);
    }

    .back-to-top:active {
        transform: scale(0.96);
    }

    .back-to-top:focus {
        outline: 2px solid var(--focus-ring-color);
        outline-offset: 2px;
    }

    .back-to-top.show {
        opacity: 1;
        pointer-events: auto;
    }

/* #Toast# */
.toast-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    animation: fadeInBackdrop 0.2s ease;
}

.toast-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 5px;
    z-index: 9999;
    padding: 2.5rem 2.5rem 2rem;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    animation: centerModalIn 0.22s ease;
    text-align: center;
}

    .toast-modal.subtle {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 340px;
        padding: 1rem 1.5rem 0.85rem;
        border-radius: 5px;
        animation: subtleToastIn 0.22s ease;
    }

        .toast-modal.subtle .toast-modal-text {
            font-size: 1rem;
        }

        .toast-modal.subtle .toast-modal-progress {
            background: gold;
        }

.toast-modal-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    width: 100%;
    border-radius: 5px;
    background: gold;
    transform-origin: left;
    animation: toastProgress var(--toast-duration, 3000ms) linear forwards;
}

.toast-modal.error .toast-modal-progress {
    background: #9d190f;
}

.toast-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: 50%;
    transition: color 0.15s ease;
}

    .toast-modal-close:hover {
        color: #333;
    }

.toast-modal-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    padding-right: 2rem;
    color: #222;
}

/* #Footer# */
.app-footer {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    color: #333;
    font-size: 1rem;
}

.footer-class {
    background-color: #fff;
}

.footer-container {
    margin-top: 2rem !important;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.footer-icons a {
    margin-right: 1rem;
    color: #333;
    font-size: 1.4rem;
}

    .footer-icons a:hover {
        color: #007bff;
    }

.social-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .social-icon:hover {
        transform: scale(1.15);
        opacity: 0.85;
    }

.social-facebook {
    color: #1877F2;
}

    .social-facebook:hover {
        color: blue;
    }

.social-instagram {
    color: #E1306C;
}

    .social-instagram:hover {
        color: darkred;
    }

.footer-column ul {
    list-style: none;
    padding: 0;
}

    .footer-column ul li a {
        color: #333;
        text-decoration: none;
    }

        .footer-column ul li a:hover {
            text-decoration: underline;
        }

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    margin-top: 1rem;
}

.footer-app-name {
    text-align: center;
}

.footer-contacts, .footer-links {
    text-align: center;
}

.footer-text {
    color: #595959;
    transition: color 0.2s ease;
}

.list-unstyled .footer-text:hover {
    color: darkgoldenrod;
}

.language-flag {
    width: 21px !important;
    height: 16px !important;
    vertical-align: middle !important;
    margin-right: 0.4rem;
    border-radius: 10%;
}

.en-flag {
    margin: 0 !important;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 4px;
}

.theme-title, .language-title {
    color: #595959;
    margin-right: 5px;
}

.theme-icon {
    font-size: 1.2rem;
    margin-right: 6px;
    transition: color 0.2s ease;
    color: darkgoldenrod;
    margin-left: 5px;
}

.dark-theme-icon {
    margin-right: 5px;
    color: #7f7f7f;
}

.theme-toggle, .language-toggle {
    position: relative;
    display: inline-block;
    width: 37px;
    height: 21px;
}

    .theme-toggle input, .language-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.language-toggle {
    vertical-align: bottom;
}

.language-label {
    margin-right: 0.4rem;
}

.language-toggle-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.language-toggle-switch {
    margin: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 7px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 14px;
        width: 14px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.2s;
        border-radius: 30%;
    }

input:checked + .slider {
    background-color: #5d5d5d;
}

    input:checked + .slider::before {
        transform: translateX(16px);
    }

/* #Spinner# */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(255, 255, 255, 0);
}

    .spinner-overlay.hide {
        opacity: 0;
        pointer-events: none;
    }

.nav-links-skeleton {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-auth-skeleton {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-skeleton-pill {
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e0e0e0 25%, #efefef 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.nav-skeleton-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e0e0e0 25%, #efefef 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.img-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #d8d8d8 25%, #ebebeb 50%, #d8d8d8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    z-index: 1;
    transition: opacity 0.3s ease;
}

    .img-shimmer.fade-out {
        opacity: 0;
        pointer-events: none;
        animation: none;
    }

.spinner-overlay-dashboard {
    margin-top: 2rem;
    padding: 1rem;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 158px;
}

.top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, darkgoldenrod 0%, gold 50%, darkgoldenrod 100%);
    background-size: 200% 100%;
    animation: loadingBarAnim 2.5s linear infinite;
    z-index: 9999;
}

/* #Keyframes# */
@keyframes loadingBarAnim {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slideFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

@keyframes slideToTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

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

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

@keyframes explode {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: scale(2) translate(var(--dx), var(--dy));
    }
}

@keyframes explode-big {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: scale(6) translate(var(--dx), var(--dy));
    }
}

@keyframes fadeInMove {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
    }

    40% {
        transform: scale(1.2);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes msgActionIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(-4px);
    }

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

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes subtleToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes msgTypingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes msgSlideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

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

@keyframes mobileDropdownIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes dropdownOpen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes centerModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes msgSlideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* #Admin# */
.admin-pending-posts-title, .admin-pending-events-title {
    font-size: 2rem;
    margin-top: 2rem;
}

.admin-title {
    color: #000;
    font-size: 3.5rem;
}

.btn-go-to-pending-events {
    background-color: moccasin !important;
}

.btn-go-to-pending-posts {
    background-color: #ff8b8b !important;
}

.btn-go-to-post-reports {
    background-color: lightblue !important;
}

.btn-go-to-reports {
    background-color: lawngreen !important;
}

.badge-event {
    background-color: #007bff;
    color: white;
    font-size: 1rem !important;
    line-height: 2.5 !important;
}

.badge-post {
    background-color: #ffc107;
    color: #212529;
    font-size: 1rem !important;
    line-height: 2.5 !important;
}

.btn-go-to-admin {
    margin: 0rem 1rem 0rem 0rem;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}

.event-main-image-admin, .post-card-image-admin {
    width: 12rem;
    height: 12rem;
    border-radius: 2px;
    object-fit: cover;
}

.admin-section .table tbody tr {
    border-bottom: 1px solid #bababa;
}

.admin-section .table td {
    max-width: 200px;
}

.post-body-cell {
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-table td::before {
    content: "";
    font-weight: bold;
    margin-right: 0.5rem;
    display: none;
}

/* #Login# #Register# */
.login-container, .register-container {
    /*background-color: #d1d1d1;*/
    border-radius: 10px;
    margin-top: 7rem !important;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.login-header, .register-header, .forgotpassword-header, .age-title {
    margin: 0 0 1rem 0;
    color: #595959;
    font-weight: bold;
    font-size: 2rem;
}

.login-email-header {
    color: #595959;
}

.pw-wrapper .input-container {
    position: relative;
    width: 100%;
}

.pw-wrapper input, .loginEmail input, .profile-input {
    padding-right: 2.5rem !important;
    height: 2.8rem;
    text-align: left;
    padding-left: 0.75rem !important;
    font-size: 1rem !important;
    border: 2px solid #a5a5a5 !important;
}

.registerPassword input, .registerConfirmPassword input {
    padding-right: 2.5rem !important;
    text-align: left;
    padding-left: 0.75rem !important;
    font-size: 1rem !important;
}

.password-input, .username-input, .name-input {
    border: 2px solid #a5a5a5 !important;
}

/*    .password-input.invalid, .username-input.invalid, .name-input.invalid {
        border: 2px solid #B44B4B !important;
        box-shadow: 0 0 0 2px rgba(180, 75, 75, 0.15) !important;
    }*/

.btn-toggle-pw, .btn-toggle-pw-register {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
    z-index: 2;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

    .btn-toggle-pw:hover, .btn-toggle-pw-register:hover {
        color: black !important;
        background-color: transparent !important;
    }

    .btn-toggle-pw:focus, .btn-toggle-pw:active, .btn-toggle-pw:focus:active,
    .btn-toggle-pw-register:focus, .btn-toggle-pw-register:active, .btn-toggle-pw-register:focus:active {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: transparent !important;
        transform: translateY(-50%) !important;
    }

        .btn-toggle-pw:active, .btn-toggle-pw:focus:active,
        .btn-toggle-pw-register:active, .btn-toggle-pw-register:focus:active {
            opacity: 0.6;
        }

.registerPassword .input-container,
.registerConfirmPassword .input-container {
    position: relative;
    width: 100%;
}

.loginWrapper, .registerWrapper, .forgotPasswordWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loginForm, .registerForm, .forgotPasswordForm {
    width: 30rem;
    margin: 1rem auto;
    display: block;
    padding: 1rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .loginForm.show, .registerForm.show, .forgotPasswordForm.show {
        opacity: 1;
        transform: translateY(0);
    }

.loginEmail, .loginPassword, .registerEmail, .registerPassword, .registerConfirmPassword, .firstName, .lastName {
    margin-top: 2rem;
}

.login-btn, .logout-btn, .register-btn {
    /*transform: scale(1.05);*/
    margin-left: 1rem;
}

.logout-btn {
    transition: all 0.2s ease !important;
}

    .logout-btn:hover {
        background-color: #d1d1d1 !important;
    }

    .logout-btn:active {
        transform: scale(0.96);
    }

.formLabel {
    color: #595959;
}

/* Floating label inputs */
.reg-field {
    position: relative;
}

.reg-input {
    border: 1.5px solid #9e9e9e !important;
    border-radius: 0.75rem !important;
    background: none !important;
    padding: 1rem 0.9rem !important;
    font-size: 1rem !important;
    width: 100%;
    color: var(--text-color, #000) !important;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

.reg-label {
    position: absolute;
    left: 15px;
    top: 0;
    color: #888;
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    line-height: 1;
}

.reg-input:focus {
    outline: none !important;
    border-color: goldenrod !important;
    box-shadow: none !important;
}

    .reg-input:focus ~ .reg-label,
    .reg-input:not(:placeholder-shown) ~ .reg-label {
        transform: translateY(-50%) scale(0.8);
        background-color: var(--bg-color, #fff);
        padding: 0 0.2em;
        color: goldenrod;
    }

.loginBtn,
.registerBtn,
.forgotPasswordBtn,
.btn-reset-pw,
.btn-save-profile,
.continue-btn {
    margin: 2rem;
    min-width: 8rem;
    touch-action: manipulation;
    background-color: goldenrod !important;
    border: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    border-radius: 10px;
    letter-spacing: 1.5px;
    font-size: 15px;
    box-shadow: darkgoldenrod 0px 10px 0px 0px;
}

.privacy-policy-note {
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1rem;
    color: #666;
}

.loginBtn:disabled,
.registerBtn:disabled,
.continue-btn:disabled {
    background-color: goldenrod !important;
    color: #fff;
}

.loginBtn:hover,
.registerBtn:hover,
.forgotPasswordBtn:hover,
.btn-reset-pw:hover,
.btn-save-profile:hover,
.btn-submit-comment:hover,
.continue-btn:hover {
    box-shadow: darkgoldenrod 0px 7px 0px 0px !important;
}

.registerBtn:hover, .forgotPasswordBtn:hover {
    /*transform: scale(1.05);*/
}

.loginBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
}

    .loginBtn span {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    .loginBtn:active,
    .registerBtn:active,
    .forgotPasswordBtn:active,
    .continue-btn:active {
        background-color: goldenrod !important;
        box-shadow: darkgoldenrod 0px 0px 0px 0px !important;
        transform: translateY(5px) !important;
        transition: 200ms !important;
    }

    .loginBtn:focus, .btn-reset-pw {
        background-color: goldenrod !important;
        border-color: #595959 !important;
    }

.btn-save-profile {
    margin-right: 0 !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.login-create-wrapper {
    display: flex !important;
    gap: 1rem;
    justify-content: center;
    margin-left: 2.5rem;
}

    .login-create-wrapper .btn {
        white-space: nowrap;
        margin: 0px 0rem 0rem 0 !important;
    }

.forgotPassword-btn {
    margin: 2rem;
    color: grey;
    touch-action: manipulation;
    transition: all 0.2s ease;
}

.forgot-pw-login {
    text-decoration: underline !important;
}

.forgot-password-main {
    padding: 1.5rem;
    background-color: #d1d1d1;
    color: #f1f1f1;
    min-width: 18rem;
    box-sizing: border-box;
    margin-bottom: 5rem;
    margin-top: 5rem;
    /*border-radius: 35px;*/
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0rem 2rem;
    padding: 0.875rem 1.1rem;
    border-radius: 0.375rem;
    border: none;
    border-left: 4px solid;
    margin-top: 5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: alertSlideIn 0.22s ease;
}

.alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.alert-register a {
    color: darkgoldenrod;
}

    .alert-register a:hover {
        color: black;
    }

.alert-danger {
    background-color: #FDF5F5;
    border-left-color: #B44B4B;
    color: #7A2222;
    margin-top: 5rem;
}

.alert-success {
    background-color: #F4FAF6;
    border-left-color: #3E9B5A;
    color: #1D5C32;
    margin-top: 5rem;
}

.alert-info {
    background-color: #F1F5FD;
    border-left-color: #4A6FBF;
    color: #243D7A;
    margin-top: 5rem;
}

.forgot-pw-error-alert, .success-msg-alert, .feedback-msg-alert {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideDown 0.4s ease forwards;
}

.validation-errors {
    list-style: none;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    background-color: #FDF5F5;
    border: none;
    border-left: 3px solid #e68181;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #e68181;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

/*.validation-message::before {
    content: "\26A0  ";
    font-size: 0.75rem;
    margin-right: 0.25rem;
}*/

.forgotPassword-btn {
    margin-top: 2rem;
}

.btn-google,
.btn-facebook,
.btn-save-new-post,
.btn-save-new-event,
.btn-save-profile,
.btn-submit-comment {
    background-color: goldenrod !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    margin: 1rem;
    min-width: 8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    letter-spacing: 1.5px;
    font-size: 15px;
    box-shadow: darkgoldenrod 0px 10px 0px 0px !important;
}

    .btn-save-new-post:hover,
    .btn-save-new-event:hover,
    .btn-save-profile:hover {
        box-shadow: darkgoldenrod 0px 7px 0px 0px !important;
    }

    .btn-google:active,
    .btn-facebook:active,
    .btn-submit-comment:active {
        transform: scale(0.96);
        opacity: 0.85;
        transition: transform 0.05s ease, opacity 0.05s ease;
    }

    .btn-save-new-post:active,
    .btn-save-new-event:active,
    .btn-save-profile:active {
        background-color: goldenrod !important;
        box-shadow: darkgoldenrod 0px 0px 0px 0px !important;
        transform: translateY(5px) !important;
        transition: 200ms !important;
    }

.btn-google, .btn-facebook {
    color: #fff;
    border: none;
}

.btn-save-new-event {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bold-black-link {
    color: #000 !important;
    font-weight: bold;
    text-decoration: underline;
}

.confirm-email-card {
    border: none !important;
}

/* #Navmenu# */

/* ── Mobile web nav visibility ──
   MAUI-style top bar and bottom nav are for the native app only.
   Web browser always uses the hamburger nav regardless of device type. */
.web-mob-header,
.web-mob-nav {
    display: none !important;
}

    /* ── web-mob-header: keep login/register inside bounds ── */
    .web-mob-header .login-create-wrapper {
        margin-left: 0;
        gap: 0.3rem;
    }

    .web-mob-header .login-btn,
    .web-mob-header .register-btn {
        width: auto !important;
        min-width: unset !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.78rem !important;
        margin-left: 0 !important;
    }

/* ── Bottom nav (shared with MAUI, used by .web-mob-nav on browser mobile) ── */
.responsive-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    border-top: 1px solid #e5e5e5;
    z-index: 1000;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

    .responsive-nav .responsive-nav-inner {
        display: flex;
        justify-content: space-around;
        width: 100%;
        max-width: 480px;
    }

.nav-links,
.nav-links:visited,
.nav-links:active,
.nav-links:focus,
.nav-links:focus-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #595959;
    padding: 0.4rem 0.8rem;
    gap: 0.15rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: color 0.2s ease;
}

    .nav-links i {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .nav-links.active,
    .nav-links.active:visited,
    .nav-links.active:focus,
    .nav-links.active:active {
        color: darkgoldenrod !important;
    }

        .nav-links.active i {
            color: darkgoldenrod !important;
        }

.left-nav {
    display: flex;
    align-items: center;
}

.responsive-nav-web {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    /*background-color: #fff;*/
    align-items: center;
    position: static;
    width: 100%;
    z-index: 1000;
    transition: height 0.2s, opacity 0.2s;
}

    .responsive-nav-web .responsive-nav-inner,
    .responsive-nav-web .responsive-nav-inner-web {
        display: flex;
        gap: 1.5rem;
        width: 100%;
        max-width: 1200px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

.responsive-nav-inner-web i {
    color: #000;
}

.left-title:hover, .right-title:hover {
    color: black;
}

.left-title {
    float: left;
}

.user-wrapper {
    width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-a-wrapper {
    position: relative;
}

/* --- User clip-path dropdown (web only) --- */
.user-clip-nav {
    position: absolute;
    top: -1.3rem;
    left: 0;
    width: 170px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    clip-path: circle(22px at 35px 22px);
    /* clip-path closes in 0.375s; delay background snap until after close */
    transition: clip-path 0.375s ease-in, background-color 0s 0.375s;
    overflow: hidden;
    z-index: 1000;
    color: rgba(0,0,0,0.87);
}

.user-clip-nav:hover {
    background: #d5a900;
    clip-path: circle(300px at 35px 22px);
    /* on hover: background instant, clip-path expands */
    transition: clip-path 0.5s ease-out, background-color 0s;
}

.user-clip-icon {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(0,0,0,0.75);
    /* delay color snap until after clip-path closes (0.375s) */
    transition: color 0s 0.375s;
    text-align: left;
    user-select: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.user-clip-nav:hover .user-clip-icon {
    color: #fff;
    transition: color 0s;
}

.user-clip-item {
    display: block;
    width: 100%;
    line-height: 44px;
    padding: 0 18px;
    text-align: left;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    font-family: 'Numans', sans-serif;
}

.user-clip-item:hover {
    font-weight: 500;
    font-size: 1.25rem;
}

.dark .user-clip-nav {
    background: #2a2a2a;
    color: #fff;
}

.dark .user-clip-icon {
    color: #e0e0e0;
}

.dark .user-clip-item {
    color: #e0e0e0;
}

.nav-a:hover .icon-messages {
    color: darkgoldenrod !important;
}

a.nav-a[href="messages"]::after {
    display: none;
}

.logo-image {
    float: left;
    width: 4rem;
    max-height: 52px;
    object-fit: contain;
}

.nav-title {
    color: #000;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2rem;
    /* background: linear-gradient(135deg, #D4A017, #FFD700, #B8860B); */
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    letter-spacing: 3.5px;
    color: #bb8600;
}

.logo-subtitle {
    font-size: 1rem;
    color: #9a7a3a;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.submenu-wrapper-health,
.submenu-wrapper-memories,
.submenu-wrapper-community {
    /*   left: 50%;
    transform: translateX(-50%);*/
    /*margin-left: 0;*/
}

.submenu-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 10rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: center;
    transition: max-height 1s ease, opacity 1s ease;
}

    .submenu-wrapper.open {
        max-height: 500px;
        opacity: 1;
    }

.submenu-item {
    display: block;
    width: 90%;
    margin: 1rem auto;
    padding: 0.4rem 0.8rem;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.05s ease;
    text-decoration: none;
    border-radius: 4px;
}

    .submenu-item:hover {
        background-color: #f0e6c0;
    }

    .submenu-item:active {
        transform: scale(0.96);
        opacity: 0.85;
    }

.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

    .nav-header::before {
        content: '';
        top: 0;
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        /*background: rgba(255, 255, 255, 0.5);*/
        z-index: -1;
    }

.navbar-class {
    position: relative;
    display: inline;
    background-color: #fff;
}

.buttonsNavbar {
    display: inline-flex;
    align-items: center;
}

.nav-auth-area {
    min-width: 12rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.userInfo {
    position: relative;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0 0.5rem;
}

.logo {
    font-size: 2rem;
    color: black;
    text-decoration: none;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-class .nav-a {
    position: relative;
    font-size: 1.15rem;
    /*color: #595959;*/
    text-decoration: none;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.8s ease;
}

    .navbar-class .nav-a:active {
        transform: scale(0.96) !important;
    }

    .navbar-class .nav-a:hover {
        color: black;
    }

    .navbar-class .nav-a:active .nav-a-title {
        transform: scale(0.96);
        opacity: 0.85;
    }

.nav-a i {
    transition: color 0.4s ease;
}

.nav-a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: black;
    transition: width 0.3s ease;
}

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

.nav-a.active::after {
    width: 100%;
    background-color: goldenrod;
}

.navbar-class .nav-a::after {
    display: block;
}

.nav-a.submenu-item-profile:hover::after,
.nav-a.no-underline:hover::after,
.user-nav-a:hover::after {
    width: 0 !important;
}

.auth-btns .nav-a::after,
.login-create-wrapper .nav-a::after,
.settings-profile .nav-a::after,
.settingsProfileClasses .nav-a::after,
.submenu-item-profile.nav-a::after,
.user-nav-a::after {
    display: none !important;
}

.nav-a-title {
    font-family: "Ruslan Display", sans-serif !important;
    font-weight: 400;
    font-style: normal;
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 15%;
    font-size: 2.8rem;
    color: darkgoldenrod;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#menu-icon, #close-icon {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#menu-icon {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#close-icon {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.login-btn {
    color: white;
    font-weight: bold;
    min-width: 6rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .1) !important;
}

    .login-btn:hover {
        background-color: #ffefaf !important;
    }

.lang-switch,
.contact-btn,
.login-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .lang-switch:hover,
    .contact-btn:hover,
    .login-btn:hover,
    .register-btn:hover,
    .confirmed-email-btn:hover {
        background-color: #ebd397 !important;
        color: #595959 !important;
    }

    .login-btn:active,
    .register-btn:active,
    .lang-switch:active,
    .contact-btn:active,
    .forgotPassword-btn:active,
    .btn-reset-pw:active,
    .confirmed-email-btn:active {
        transform: scale(0.96);
        opacity: 0.85;
        transition: transform 0.05s ease, opacity 0.05s ease;
    }

.register-btn {
    border: 3px solid goldenrod !important;
}

.confirmed-email-btn, .btn-submit-comment {
    background-color: goldenrod !important;
    border: none !important;
}

.btn-submit-comment {
    margin: 0 0 2rem 0;
}

.lang-switch,
.contact-btn {
    font-size: 0.9rem !important;
}

/* #Notifications# */
.notifications-wrapper {
    position: relative;
    margin-right: 1rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notifications-btn {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition-duration: .3s;
    border: none;
    padding: 0;
}

    .notifications-btn:hover .bell {
        animation: bellRing 0.9s both;
    }

    .notifications-btn:active {
        transform: scale(0.8);
    }

.bell {
    width: 18px;
}

    .bell path {
        fill: #000;
    }

.dark .notifications-btn {
    background-color: #232728;
}

.dark .bell path {
    fill: white;
}

@keyframes bellRing {
    0%, 100% {
        transform-origin: top;
    }

    15% {
        transform: rotateZ(10deg);
    }

    30% {
        transform: rotateZ(-10deg);
    }

    45% {
        transform: rotateZ(5deg);
    }

    60% {
        transform: rotateZ(-5deg);
    }

    75% {
        transform: rotateZ(2deg);
    }
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: gold;
    border-radius: 50%;
}

.icon-with-badge {
    position: relative;
    display: inline-block;
}

.message-notification-dot {
    position: absolute;
    top: 0;
    right: -6px;
    min-width: 16px;
    height: 16px;
    background: darkgoldenrod;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.submenu-wrapper.notifications-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    min-width: 10rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: center;
    transition: max-height 1s ease, opacity 1s ease;
    display: flex;
    flex-direction: column;
}

    .submenu-wrapper.notifications-dropdown.open {
        max-height: min(500px, 60vh);
        opacity: 1;
        overflow: hidden;
    }

.notifications-title {
    margin: 10px;
    font-weight: bold;
}

.notifications-list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

.notification-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.no-notifications {
    padding: 10px;
    text-align: center;
    color: grey;
}

.clear-notications-btn {
    width: 100%;
    margin-top: 5px;
    color: #fff !important;
    background-color: darkgoldenrod !important;
}

/* #ScrollReveal# */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.30s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.20s;
}

.reveal-delay-5 {
    transition-delay: 0.40s;
}

.reveal-delay-6 {
    transition-delay: 0.60s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* #Home# */

.home-container, .dashboard-container, .admin-section {
    max-width: 100%;
    min-width: 18rem;
    overflow-x: hidden;
    padding: 1rem;
    /*min-height: 100vh;*/
    box-sizing: border-box;
    animation: fadeIn 1s ease;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

.banner {
    border-radius: 1rem;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 5rem;
    color: #595959;
    animation: slideDown 1s ease;
    min-width: 200px;
    width: 100%;
}

    .banner h1 {
        font-size: clamp(2.2rem, 5vw, 5rem);
        margin-bottom: 0.5rem;
        width: 100%;
        min-width: unset;
    }

    .banner h2 {
        margin-bottom: 2rem;
        margin-top: 2rem;
        font-size: clamp(1.5rem, 4vw, 3.5rem);
    }

    .banner h3 {
        margin-top: 2rem;
        font-size: clamp(1.2rem, 3vw, 2rem);
    }

    .banner p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

/* #PublicHome Stagger# */
.ph-hero-wrap {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
}

.homepage-friends-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 1.2rem;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
    margin: 0 auto;
}

.ph-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    border-radius: 0 0 1.2rem 1.2rem;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.ph-stagger {
    width: 100%;
    padding: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
    margin-top: -22%;
}

.ph-line {
    width: 100%;
    line-height: 1.1;
}

.ph-left {
    text-align: left;
}

.ph-right {
    text-align: right;
}

.ph-big {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--focus-ring-color, #d4a017);
    letter-spacing: -0.02em;
}

.ph-small {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: #454545;
    font-weight: 700;
    padding: 0.4rem 0;
}

/* #Carousel# */
.carousel-section {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
}

.carousel-section-title {
    margin-bottom: 1.5rem;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    flex: 1;
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 16px;
    margin: 0.3rem;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

    .carousel-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.62));
    border-radius: 0 0 16px 16px;
}

    .carousel-caption p {
        margin: 0;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 600;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }

.carousel-arrow {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #444;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    touch-action: manipulation;
}

    .carousel-arrow:hover {
        /*background: #fff;*/
        /*transform: scale(1.08);*/
    }

/*.carousel-arrow--left { margin-right: 0.75rem; }
.carousel-arrow--right { margin-left: 0.75rem; }*/

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    font-size: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .carousel-dot.active {
        background: goldenrod;
        transform: scale(1.3);
    }

.support-section {
    margin-top: 10rem;
}

    .support-section h2 {
        text-align: center;
        margin-bottom: 1rem;
        min-width: 200px;
    }

.support-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .support-links a {
        background-color: #ffe9c5;
        color: #8b5e00 !important;
        padding: 0.75rem 1.25rem;
        border-radius: 1.5rem;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

        .support-links a:hover {
            background-color: #f3c98b;
        }

.quick-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

    .quick-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 30px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }

        .quick-actions .btn:hover {
            transform: scale(1.05);
        }

/* #AgeVerification# */
.age-container {
    margin-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f5f7fa;
    padding: 1rem;
    overflow-y: auto;
}

.age-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

.title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

.age-dropdown-arrow {
    margin-left: 7rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.age-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.custom-select-age {
    position: relative;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    background: white;
    z-index: 1000;
}

    .custom-select-age:hover {
        border-color: goldenrod;
    }

.selected-age-value {
    font-size: 1.1rem;
}

.dropdown-list-age {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: white;
    border: 2px solid goldenrod;
    border-radius: 10px;
    margin-top: 5px;
    z-index: 1000;
}

.dropdown-item-age {
    padding: 0.6rem;
}

    .dropdown-item-age:hover {
        background: goldenrod;
        color: white;
    }

.age-page-overlay {
    position: relative;
}

.info-text {
    font-size: 0.9rem;
    color: #666;
}

.error-message {
    color: #d9534f;
    font-weight: 500;
}

/* #Dashboard# */

.dashboard-main {
    margin-top: 5rem;
}

.db-page {
    padding: 1.5rem 1rem 6rem;
    max-width: 600px;
    margin: 0 auto;
}

.db-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
}

.db-hello {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.db-subline {
    font-size: 1rem;
    color: #777;
    margin-top: 0.25rem;
    display: block;
}

.db-gold-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: goldenrod;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.2);
    flex-shrink: 0;
}

/* Cards */
.db-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.db-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 360px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

    .db-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.db-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.db-card:hover .db-card__img {
    transform: scale(1.04);
}

.db-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.78) 100% );
}

.db-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.db-card__top {
    display: flex;
    align-items: flex-start;
}

.db-card__tag {
    background: goldenrod;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.db-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.db-card__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

.db-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.db-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.db-stat__num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.db-stat__lbl {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.db-card--locations {
    background: linear-gradient(135deg, #2c1a00 0%, #5a3a00 40%, #3d2800 100%);
}

.db-cat-pills {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.db-cat-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    white-space: nowrap;
}

.db-card__btn {
    display: inline-flex;
    align-items: center;
    background: goldenrod;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    align-self: flex-start;
}

    .db-card__btn:hover,
    .db-card__btn:active {
        background: darkgoldenrod;
    }

.db-loading {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

/* Coming soon teaser */
.db-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    background: rgba(218, 165, 32, 0.08);
    border: 1px dashed rgba(218, 165, 32, 0.4);
}

.db-teaser__icon {
    font-size: 1.25rem;
}

.db-teaser__text {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* Responsive: tablet+ */
@media (min-width: 768px) {
    .db-page {
        max-width: 1300px;
        padding: 2rem 2rem 4rem;
    }

    .db-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .db-card {
        height: 480px;
    }

        .db-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
        }
}

@media (min-width: 1200px) {
    .db-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* #Profile# */
.profile-title, .settings-title {
    text-align: center;
    font-size: 2rem;
    color: #595959;
    margin: 2rem;
    font-family: 'Armata', sans-serif;
}

.profile-loading,
.profile-not-authenticated {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.2rem;
    color: #666;
    animation: fade-in 0.4s ease-out;
}

/* Profile Tabs - Pill Segmented Control */
#profileTabs {
    display: flex;
    border: none;
    border-radius: 50px;
    padding: 4px;
    margin: 0 auto 1.5rem auto;
    max-width: 600px;
    gap: 15px;
    justify-content: center;
}

    #profileTabs .nav-item {
        flex: 1;
        list-style: none;
    }

#edit-profile-tab, #change-password-tab {
    width: 100%;
    height: auto;
    min-height: 3rem;
    color: #666;
    /* background-color: #e5d391; */
    border: 1px solid #666;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-family: 'Numans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

    #edit-profile-tab:hover, #change-password-tab:hover {
        color: black;
        border: 3px solid #888;
    }

    #edit-profile-tab.active, #change-password-tab.active {
        color: black;
        border: 3px solid #666;
    }

        #edit-profile-tab.active:hover, #change-password-tab.active:hover {
            color: black;
            border: 3px solid #888;
        }

.profile-view {
    background-color: var(--bg-color);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    animation: fade-in 0.4s ease-out;
    max-width: 500px;
    margin: 0 auto;
}

.profile-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

    .profile-details label {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #888;
        margin-bottom: 0;
        padding-left: 0.25rem;
    }

    .profile-details span {
        margin-bottom: 0.6rem;
        color: #333;
        padding: 0.55rem 0.85rem;
        background: #f5f5f5;
        border-radius: 8px;
        border: 1px solid #e8e8e8;
        font-size: 0.95rem;
    }

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: transparent;
    border: 6px solid goldenrod;
}

    .profile-photo.visible {
        opacity: 1;
    }

    .profile-photo.hidden {
        opacity: 0;
    }

.btn-edit-profile {
    background-color: goldenrod;
    color: white;
    padding: 0.65rem 1.8rem;
    border: none;
    margin-top: 1.5rem;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Numans', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: darkgoldenrod 0px 10px 0px 0px;
}

    .btn-edit-profile:hover {
        box-shadow: darkgoldenrod 0px 7px 0px 0px !important;
    }

    .btn-edit-profile:active {
        background-color: goldenrod !important;
        box-shadow: darkgoldenrod 0px 0px 0px 0px !important;
        transform: translateY(5px) !important;
        transition: 200ms !important;
    }

.profile-form {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    animation: fade-in 0.4s ease-out;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    font-size: 1rem;
    font-family: 'Numans', sans-serif;
    line-height: 1.5;
    min-height: var(--min-touch-target);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    .form-control:focus {
        border-color: goldenrod;
        box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
        outline: none;
    }

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn-save {
    background-color: goldenrod;
    color: #fff;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Numans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

    .btn-save:hover {
        background-color: darkgoldenrod;
        transform: translateY(-1px);
    }

.btn-cancel {
    background-color: transparent;
    color: #666;
    padding: 0.65rem 1.5rem;
    margin-right: 0;
    margin-left: 0;
    border: 2px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Numans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

    .btn-cancel:hover {
        background-color: #f0f0f0;
        color: #333;
        border-color: #999;
    }

.profile-label {
    color: #888;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* #Settings# */


/* #Locations# */
.locations-main {
    padding: 1.5rem;
    min-width: 22rem;
    box-sizing: border-box;
    margin-bottom: 5rem;
    margin-top: 2.5rem;
    border-radius: 10px;
}

.locations-cards-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.locations-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #1f1f1f;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

    .locations-card:hover {
        transform: scale(1.02);
        cursor: pointer;
    }

.locations-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
    transition: opacity 0.2s, transform 0.2s;
}

.locations-card-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
}

    .locations-card-content h2 {
        font-size: 1.2rem;
        margin: 0;
        color: #fff;
    }

    .locations-card-content p {
        margin: 0.2rem 0 0;
        font-size: 0.95rem;
        color: #eee;
    }

/* Layout for 2 cards on top, 1 centered below */
.locations-card-1 {
    /*    grid-column: 1 / 2;
    grid-row: 1 / 2;*/
}

.locations-card-2 {
    /*grid-column: 2 / 3;
    grid-row: 1 / 2;*/
}

.locations-card-3 {
}


.locations-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    background: rgba(218, 165, 32, 0.08);
    border: 1px dashed rgba(218, 165, 32, 0.4);
}

.locations-teaser__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.locations-teaser__text {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.nearby-locations-page-title {
    font-family: "PT Serif", serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.nearby-locations-info {
    text-align: right;
    position: relative;
    font-size: 0.9rem;
}

.loading-container {
    text-align: center;
    margin-top: 2rem;
}

.nearby-locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nearby-location-card {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

    .nearby-location-card:hover {
        transform: scale(1.02);
    }

.nearby-location-card-image-container {
    flex-shrink: 0;
}

.nearby-location-card-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.nearby-location-card-content {
    margin-left: 1rem;
    flex-grow: 1;
}

    .nearby-location-card-content h4 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

.nearby-location-distance {
    font-size: 0.9rem;
    color: #666;
    margin: 2rem 0;
}

.nearby-location-address {
    font-size: 0.95rem;
    color: #444;
}

.nearby-location-description {
    font-size: 0.9rem;
    margin: 1.5rem 0px 2rem 0rem;
    color: #333;
}

.nearby-location-user-rating, .nearby-location-user-ratings-total {
    font-size: 0.9rem;
    color: #333;
}

.selected-radius-label {
    font-size: 0.85rem;
}

.radius-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    background-color: #f6f6f6;
    padding: 10px 20px;
    border-radius: 50px;
    justify-content: center;
}

.radius-button {
    background-color: darkgoldenrod;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 1rem;
    color: #f1f1f1;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 48px;
    transition: all 0.2s ease;
}

    .radius-button.active {
        background-color: gold;
        color: #000;
        outline: none;
        font-weight: bold;
        transform: scale(1.2);
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .radius-button:hover {
        background-color: gold;
        cursor: pointer;
        color: grey;
    }

    .radius-button.active:hover {
        background-color: gold;
        color: #000;
    }

.radius-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #f6f6f6;
    padding: 10px 20px;
    border-radius: 50px;
    justify-content: center;
}

    .radius-panel input[type="radio"] {
        display: none;
    }

.radius-btn {
    padding: 8px 16px;
    border: none;
    background-color: darkgoldenrod;
    color: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .radius-btn:hover {
        background-color: gold;
        cursor: pointer;
        color: #565656 !important;
    }

    .radius-btn.active {
        background-color: gold;
        color: #000;
        font-weight: bold;
        transform: scale(1.2);
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .radius-btn.disabled {
        background-color: #ccc;
        color: #999;
        cursor: not-allowed;
        opacity: 0.6;
        transform: none;
        margin-right: 0;
        margin-left: 0;
    }

        .radius-btn.disabled:hover {
            background-color: #ccc;
            color: #999;
            cursor: not-allowed;
        }

.pharmacy-icon {
    height: 4rem;
    width: 4rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.pill-icon {
    height: 2.5rem;
    width: 2.5rem;
    vertical-align: middle;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
}

.locations-list-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #Events# */
.events-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 35rem;
    margin: 0 auto 2rem auto;
}

.btn-clear-event-search {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.events-main, .profile-main {
    padding: 1.5rem 1rem;
    color: #f1f1f1;
    /*min-height: 100vh;*/
    min-width: 18rem;
    box-sizing: border-box;
    margin-bottom: 3rem;
    margin-top: 5.5rem !important;
    border-radius: 10px;
}

    .events-main h3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: black;
        font-weight: bold;
    }

.events-search, .new-post-input {
    width: 100%;
    flex: 1;
    padding: 0.5rem 3.5rem 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

    .events-search:focus {
        border-color: goldenrod;
    }

    .events-search:not(:placeholder-shown) {
        font-size: 1.3rem;
    }

.btn-search {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    border: none !important;
    border-left: 1px solid rgba(218, 165, 32, 0.3) !important;
    border-radius: 0 50px 50px 0 !important;
    color: darkgoldenrod !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem !important;
}

    .btn-search i {
        transition: transform 0.2s ease;
    }

    .btn-search:hover {
        color: goldenrod;
    }

    .btn-search:active {
        transform: scale(0.93);
    }

    .btn-search:focus {
        outline: none;
        box-shadow: none;
    }

/* Enlarge icon only when user has typed something (placeholder hidden) */
.events-search:not(:placeholder-shown) ~ .btn-search i {
    transform: scale(1.5);
}

/* Animated register button */
.evt-register-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: goldenrod;
    box-shadow: 0 0 0 2px goldenrod;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    touch-action: manipulation;
    margin: 1rem;
}

    .evt-register-button svg {
        position: absolute;
        width: 24px;
        fill: goldenrod;
        z-index: 9;
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .evt-register-button .arr-1 {
        right: 16px;
    }

    .evt-register-button .arr-2 {
        left: -25%;
    }

    .evt-register-button .circle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background-color: goldenrod;
        border-radius: 50%;
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .evt-register-button .text {
        position: relative;
        z-index: 1;
        transform: translateX(-12px);
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .evt-register-button:hover {
        box-shadow: 0 0 0 12px transparent;
        color: #212121;
        border-radius: 12px;
    }

        .evt-register-button:hover .arr-1 {
            right: -25%;
        }

        .evt-register-button:hover .arr-2 {
            left: 16px;
        }

        .evt-register-button:hover .text {
            transform: translateX(12px);
        }

        .evt-register-button:hover svg {
            fill: #212121;
        }

    .evt-register-button:active {
        scale: 0.95;
        box-shadow: 0 0 0 4px goldenrod;
    }

    .evt-register-button:hover .circle {
        width: 220px;
        height: 220px;
        opacity: 1;
    }

    .evt-register-button.registered {
        color: #af4949;
        box-shadow: 0 0 0 2px #af4949;
    }

        .evt-register-button.registered svg {
            fill: #af4949;
        }

        .evt-register-button.registered .circle {
            background-color: #af4949;
        }

        .evt-register-button.registered:hover {
            color: #fff;
        }

            .evt-register-button.registered:hover svg {
                fill: #fff;
            }

        .evt-register-button.registered:active {
            box-shadow: 0 0 0 4px #2d8a4e;
        }

    .evt-register-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.evt-register-row {
    display: grid;
    justify-content: center;
}

.featured-title, .events-title, .categories-title {
    font-size: 1.4rem;
    color: #595959;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: bold;
}

.no-events-message, .no-featured-events-message {
    color: black;
    text-align: left;
    font-size: 0.9rem;
}

.no-featured-events-message {
    margin-bottom: 6rem;
    margin-top: 3rem;
}

.card-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    margin-bottom: 8rem;
    list-style: none;
    padding: 0;
}

.featured-list, .events-list, .posts-list, .posts-grid {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.featured-list {
    grid-template-columns: repeat(2, 1fr);
}

.events-list, .posts-list {
    grid-template-columns: repeat(4, 1fr);
}

.card-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    background-color: #1f1f1f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

    .card-item:hover {
        transform: scale(1.02);
        cursor: pointer;
    }

.featured-events-item-list {
    height: 320px;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(1.05);
}

    .card-image.loaded {
        opacity: 1;
        transform: scale(1);
    }

.card-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

    .card-content h2 {
        font-size: 1.2rem;
        margin: 0;
        color: black !important;
    }

    .card-content p {
        margin: 0.2rem 0 0;
        font-size: 0.9rem;
        color: black !important;
    }

.evt-attendees-count {
    font-size: 0.8rem !important;
    margin-top: 0.3rem !important;
}

.featured-evt-tag, .evt-tag, .event-detail-type {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #d4af37;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
}

.event-detail-content {
    text-align: left;
}

.event-detail-type {
    display: inline-block;
    position: static;
    position: relative;
    width: auto;
    text-align: left;
    left: unset;
    top: unset;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.tag-art {
    background-color: #80c100 !important
}

.tag-food {
    background-color: #827693 !important;
}

.tag-activity, .tag-review {
    background-color: #f64b00 !important;
}

.tag-hangout {
    background-color: #af0ac3 !important;
}

.tag-party {
    background-color: #a5429d;
}

.tag-sports {
    background-color: #0096dd;
}

.tag-question {
    background-color: #029bbd !important;
}

.tag-memory {
    background-color: #d53e3e !important;
}

.tag-share {
    background-color: #7b934d !important;
}

.tag-health {
    background-color: #ef6a6a !important;
}

.tag-wellness {
    background-color: #69c144 !important;
}

.tag-nutrition {
    background-color: #00a7d9 !important;
}

.tag-activeliving {
    background-color: #cb6fc0 !important;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 4rem;
    padding: 0;
}

/* Source tabs: Community / Discover */
.source-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid darkgoldenrod;
}

.source-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: darkgoldenrod;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .source-tab.active {
        background-color: darkgoldenrod;
        color: #fff;
        font-weight: bold;
    }

    .source-tab:not(.active):hover {
        background-color: rgba(184, 134, 11, 0.1);
    }

.location-denied-message {
    background-color: #fff8e1;
    border: 1px solid #f0c040;
    color: #7a5c00;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.btn-categories-list {
    background-color: darkgoldenrod !important;
    color: white !important;
    border: none !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
}

    .btn-categories-list:hover {
        background-color: gold !important;
        cursor: pointer;
        color: grey !important;
    }

    .btn-categories-list.active {
        background-color: gold !important;
        color: #000 !important;
        font-weight: bold !important;
        transform: scale(1.05) !important;
        margin-right: 1rem !important;
        margin-left: 1rem !important;
    }

    .btn-categories-list.focus {
        box-shadow: none !important;
    }

.pagination-controls {
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: nowrap;
    padding: 10px;
}

.pagination-btn {
    background-color: darkgoldenrod;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    min-width: 70px;
}

    .pagination-btn:disabled {
        background-color: #c3c3c3;
        cursor: not-allowed;
    }

    .pagination-btn:not(:disabled):hover {
        /*background-color: #0056b3;*/
        transform: scale(1.05);
    }

.page-number {
    font-size: 16px;
    color: #333;
    transition: color 0.2s ease;
    margin: 5px;
}

    .page-number:hover {
        /*color: #007bff;*/
    }

.pagination-controls {
    animation: fadeIn 0.5s ease-out;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    min-height: 120px;
    overflow: hidden;
}

.event-image-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.event-main-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: 420px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.attendees-row {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: grey;
}

.attendee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 2px solid white;
}

.attendees-text {
    font-size: 0.9rem;
    color: grey;
}

.event-title {
    font-size: 1.6rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

.flatpickr-day.selected {
    background: goldenrod !important;
    border: none !important;
    color: #fff !important;
}

.event-datetime-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: grey;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.event-datetime-row-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.btn-ticketmaster-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.45rem 1rem;
    background-color: #f05537;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .btn-ticketmaster-link:hover {
        background-color: #c93f24;
        color: #fff !important;
    }

.event-description-title {
    font-size: 1.2rem;
    text-align: left;
    margin-top: 1rem;
}

.event-description {
    font-size: 1rem;
    text-align: left;
    color: #444;
}

.event-detail-title, .event-detail-location {
    color: #000;
    text-align: left;
}

.event-detail-location {
    color: #444;
}

.date-form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .date-form-group label {
        margin-bottom: 0.5rem;
    }

.date-input {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    cursor: pointer;
}

.event-datetime-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .event-datetime-group label {
        color: white;
        text-align: center;
    }

.event-date-input {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: grey !important;
    border-radius: 8px;
    padding: 0.5rem;
}

    .event-date-input:focus {
        border-color: #d4af37;
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
        outline: none;
    }

.event-time-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-width: 220px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.custom-time-dropdown {
    position: relative;
    min-width: 60px;
    user-select: none;
    margin: 0 2px;
    display: inline-block;
}

.custom-time-selected {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.3rem 1.7rem 0.3rem 0.7rem;
    font-size: 1rem;
    color: #595959;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 48px;
    transition: border 0.2s;
}

    .custom-time-selected:focus, .custom-time-selected:active {
        border: 1.5px solid #d4af37;
        outline: none;
    }

.custom-time-dropdown-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 110%;
    background: #fff;
    align-items: center;
    justify-content: flex-start;
    padding: 0.3rem 0;
    overflow-x: hidden;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    z-index: 20;
    pointer-events: none;
    transform: translateY(20px) scaleY(0.95);
    transition: max-height 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

    .custom-time-dropdown-list.open {
        max-height: 350px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scaleY(1);
    }

.custom-time-dropdown-item {
    /*padding: 0.5rem 1rem;*/
    cursor: pointer;
    font-size: 1rem;
    color: #595959;
    transition: background 0.15s;
    list-style: none;
    width: 100%;
    text-align: center;
}

    .custom-time-dropdown-item:hover {
        background: #f0e6c0;
    }

/* #Posts# */
.back-btn-container {
    text-align: left;
    margin-bottom: 1.2rem;
}

.btn-back {
    background-color: #fff;
    width: 12.5rem;
    height: 3rem;
    border-radius: 12px;
    border: none;
    position: relative;
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.btn-back-slider {
    background-color: goldenrod;
    border-radius: 8px;
    height: 2.4rem;
    width: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.5s ease;
    z-index: 2;
}

.btn-back span {
    position: relative;
    z-index: 1;
    transform: translateX(0.6rem);
    transition: color 0.3s ease;
    pointer-events: none;
    margin-left: 1rem;
}

.btn-back:hover .btn-back-slider {
    width: calc(100% - 8px);
}

.btn-back:hover span {
    color: #000;
}

.btn-back:active {
    scale: 0.96;
}

.no-posts-message {
    margin-top: 3rem;
    text-align: left;
    font-size: 0.9rem;
    color: black;
}

.posts-main {
    padding: 1.5rem 1rem;
    color: #f1f1f1;
    min-width: 18rem;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2.5rem;
    border-radius: 10px;
}

.post-details-container {
    margin-top: 5rem;
}

.btn-read-more {
    background-color: goldenrod !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0.35rem 1.1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: fit-content;
    margin-top: auto;
    align-self: flex-start;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}

    .btn-read-more:hover {
        background-color: darkgoldenrod !important;
        color: #fff !important;
    }

.switch-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    background-color: transparent;
    padding: 10px 0;
    border-radius: 50px;
    justify-content: center;
}

.posts-item-list {
    cursor: default !important;
    height: 450px !important;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background-color: #fff;
    overflow: hidden;
    display: flex;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card-image-container {
    position: relative;
    min-width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .post-card-image-container {
        width: 300px;
        min-width: 300px;
        height: 300px;
        flex-shrink: 0;
        flex-grow: 0;
    }
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

    .post-card-image.visible {
        opacity: 1;
    }

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
    color: white;
}

.post-like-pill {
    display: inline-flex;
    margin-bottom: 0.1rem;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e05a6a;
    background: rgba(224, 90, 106, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-left: 0;
    text-align: left;
    margin-right: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.post-tag-horizontal {
    background-color: darkgoldenrod;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: fit-content;
}

.switch-btn {
    padding: 8px 16px;
    border: none;
    background-color: darkgoldenrod;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .switch-btn:hover {
        background-color: gold;
        cursor: pointer;
        color: grey;
    }

    .switch-btn.active {
        background-color: gold;
        color: #000;
        font-weight: bold;
        transform: scale(1.2);
        margin-right: 1rem;
        margin-left: 1rem;
    }

.btn-create-mobile {
    background-color: goldenrod !important;
    border: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-right: 0;
    margin-left: auto;
    border-radius: 50px !important;
    color: white !important;
    font-weight: bold !important;
}

    .btn-create-mobile:hover, .btn-create-mobile:active, .btn-create-mobile:focus {
        background-color: gold !important;
        color: dimgrey !important;
        cursor: pointer;
    }

    .btn-create-mobile:active {
        transform: scale(0.96);
    }

.btn-create {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: goldenrod;
    box-shadow: 0 0 0 2px goldenrod;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    touch-action: manipulation;
    margin-left: auto;
    margin-right: 0;
}

    .btn-create .icon-1 {
        position: absolute;
        right: 16px;
        font-size: 1.1rem;
        z-index: 9;
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        color: goldenrod;
    }

    .btn-create .icon-2 {
        position: absolute;
        left: -25%;
        font-size: 1.1rem;
        z-index: 9;
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        color: goldenrod;
    }

    .btn-create .circle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background-color: goldenrod;
        border-radius: 50%;
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .btn-create .text {
        position: relative;
        z-index: 1;
        transform: translateX(-12px);
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .btn-create:hover {
        box-shadow: 0 0 0 12px transparent;
        color: #212121;
        border-radius: 12px;
    }

        .btn-create:hover .icon-1 {
            right: -25%;
            color: #212121;
        }

        .btn-create:hover .icon-2 {
            left: 16px;
            color: #212121;
        }

        .btn-create:hover .text {
            transform: translateX(12px);
        }

        .btn-create:hover .circle {
            width: 220px;
            height: 220px;
            opacity: 1;
        }

    .btn-create:active {
        scale: 0.95;
        box-shadow: 0 0 0 4px goldenrod;
    }

.filter-container {
    position: relative;
    display: flex;
    margin-bottom: 1rem;
}

.new-post-textArea {
    height: 11rem;
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 200px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .custom-dropdown.open {
        background-color: rgba(218, 165, 32, 0.12);
        border-color: goldenrod;
        z-index: 1000;
    }

        .custom-dropdown.open .custom-dropdown-selected {
            color: darkgoldenrod;
        }

/* Form dropdowns � white background, neutral colour when open */
.custom-dropdown-form.open {
    background-color: #fff;
    border-color: #aaa;
}

    .custom-dropdown-form.open .custom-dropdown-selected {
        color: #555;
    }

.custom-dropdown-form:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
}

/* On touch devices, suppress scale transforms on the dropdown trigger and items.
   Scaling during :active shifts the hit-test area mid-touch → wrong item selected. */
@media (hover: none) and (pointer: coarse) {
    .custom-dropdown-form:active {
        transform: none;
    }

    .custom-dropdown-item:active {
        transform: none !important;
    }
}

.custom-dropdown-events, .custom-dropdown-age {
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 300px;
}

    .custom-dropdown-events .custom-dropdown-selected,
    .custom-dropdown-selected-events, .custom-dropdown-selected-posts {
        color: var(--text-color, #333);
        font-weight: 500;
    }

.custom-dropdown-location-icon {
    color: goldenrod;
    margin-right: 6px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.custom-dropdown-filter-icon {
    color: goldenrod;
    margin-right: 6px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.custom-dropdown-selected-posts {
    justify-content: center;
    gap: 6px;
}

.custom-dropdown-age {
    height: 5rem;
}

.event-city-form-search {
    margin-bottom: 2rem;
}

.custom-dropdown-selected, .custom-dropdown-age {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.custom-dropdown-item {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
    transition: background-color 0.15s ease, color 0.15s ease;
    list-style: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .custom-dropdown-item:hover {
        background-color: rgba(218, 165, 32, 0.12);
        color: darkgoldenrod;
    }

    .custom-dropdown-item:active {
        background-color: rgba(218, 165, 32, 0.2);
        color: darkgoldenrod;
    }

.custom-dropdown-list-bigger {
    max-height: 400px;
}

.animate-dropdown {
    animation: dropdownOpen 0.15s ease-out;
}

.post-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.post-tag, .post-title {
    display: block;
}

.new-post-main, .new-event-main {
    min-width: 280px;
    padding: 2rem 1rem;
    color: #f1f1f1;
    min-height: 100vh;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 5rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.newPostWrapper, .newEventWrapper {
    width: 100%;
    max-width: 900px;
    min-width: 280px;
    padding: 30px;
    padding-bottom: 40px;
    background-color: darkgoldenrod;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    transform: translateZ(0);
}

.modal-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, darkgoldenrod 0%, gold 50%, darkgoldenrod 100%);
    background-size: 200% 100%;
    animation: loadingBarAnim 2.5s linear infinite;
    z-index: 1;
}

.newPostWrapper .form-group,
.newEventWrapper .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.newPostWrapper label,
.newEventWrapper label {
    margin-bottom: 6px;
    font-weight: 600;
    color: white;
    text-align: left !important;
}

.newPostWrapper input.form-control,
.newPostWrapper textarea.form-control,
.newPostWrapper select.form-control {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.validation-message {
    color: #7A2222;
    font-size: 0.9em;
    margin-top: 5px;
}

.photo-upload-wrapper {
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
}

.photo-upload-wrapper, .upload-photo-info {
    display: block !important;
}

.upload-photo-info {
    color: grey;
}

.custom-upload-label {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #cfcfcf;
    color: #595959 !important;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    /*margin: 0 auto;*/
    /*width: 10vh;*/
    text-align: center !important;
}

    .custom-upload-label:hover {
        background-color: gold;
    }

    .custom-upload-label:active {
        transform: scale(0.96);
    }

.photo-icon, .icon-create {
    margin-right: 1rem;
}

.form-group.text-center {
    text-align: center;
    margin-top: 10px;
}

.d-none {
    display: none;
}

.post-main-image-horizontal {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
}

.post-details-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.post-image-section {
    position: relative;
    width: 500px;
    flex-shrink: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.post-main-image-horizontal {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.like-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: all 0.2s ease;
}

    .like-button.liked {
        background-color: #ff9ac2;
    }

    .like-button:active {
        transform: scale(0.85);
    }

    .like-button:hover {
        transform: translateY(-2px);
    }

.explode-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e0245e;
    animation: explode 600ms forwards;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform-origin: center;
    pointer-events: none;
}

/* Registration success modal */
.reg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    animation: fadeInBackdrop 0.2s ease;
}

.reg-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    z-index: 9001;
    width: 88%;
    max-width: 400px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    animation: centerModalIn 0.25s ease;
}

.reg-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

    .reg-modal-close:hover {
        color: #333;
    }

.reg-modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.2rem;
}

.reg-modal-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}


.like-icon {
    font-size: 1.5rem;
    color: grey;
    transition: color 0.3s ease;
    pointer-events: none;
}

    .like-icon.liked {
        color: #e0245e;
    }

.post-detail-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.liked-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.overlapped-avatar {
    margin-left: -10px;
}

    .overlapped-avatar:first-child {
        margin-left: 0;
    }

.liked-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-created-by {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: 0.3rem;
    color: #595959;
}

    .post-created-by span {
        margin-left: 0.5rem;
    }

.btn-msg-author {
    background: none;
    border: none;
    color: goldenrod;
    padding: 0 0.4rem;
    margin-left: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .btn-msg-author:active,
    .btn-msg-author:focus {
        opacity: 0.7;
        outline: none;
        box-shadow: none;
    }

    .btn-msg-author:disabled {
        opacity: 0.4;
        cursor: default;
    }

.liked-text {
    color: #595959;
    margin-left: 0.5rem;
}

.post-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
}

.post-datetime-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #595959;
    margin-bottom: 1.5rem;
}

.post-description-title {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: black;
}

.post-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #595959;
}

.post-image-horizontal, .evt-image-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .post-image-horizontal.visible, .evt-image-horizontal.visible {
        opacity: 1;
    }

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 6px;*/
}

.comment-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .comment-form textarea.form-control {
        resize: vertical;
        min-height: 80px;
        border-radius: 0.375rem;
        border: 1px solid #ced4da;
        transition: border-color 0.3s ease;
    }

        .comment-form textarea.form-control:focus {
            border-color: goldenrod !important;
            box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25) !important;
            outline: none;
        }

    .comment-form button.btn-primary {
        align-self: flex-end;
        min-width: 110px;
    }

.comments-section {
    margin-top: 2rem;
}

.comment-box {
    background-color: var(--bs-body-bg);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.comment-body strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: darkgoldenrod;
}

.comment-body p {
    margin: 0 0 0.5rem 0;
    white-space: pre-wrap;
    color: black;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
    border: 1px solid #ced4da;
}

.post-login-to-comment, .post-no-comments-yet {
    margin-top: 4.5rem;
    color: #000;
}

.btn-inline-link {
    background: none !important;
    border: none !important;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 600 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.btn-report-post {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #101010 !important;
    font-size: 0.78rem !important;
    padding: 0.25rem 0.5rem !important;
    /* margin: 0.5rem auto 0; */
    opacity: 0.55;
    cursor: pointer;
    display: block !important;
}

    .btn-report-post:active,
    .btn-report-post:focus {
        opacity: 1;
        color: #888 !important;
        outline: none;
    }

    .btn-report-post:disabled {
        color: #ddd !important;
        opacity: 0.4;
        cursor: default;
    }

.btn-report-comment {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #000000 !important;
    font-size: 0.7rem !important;
    padding: 0.1rem 0.3rem !important;
    margin-left: 0.25rem;
    opacity: 0.8;
}

    .btn-report-comment:active,
    .btn-report-comment:focus {
        opacity: 1;
        color: #888 !important;
    }

    .btn-report-comment:disabled {
        color: #ddd !important;
        opacity: 0.4;
    }

.modal-reason {
    margin-top: 3rem !important;
}

/* #Messages# #Conversations# */
.messages-page {
    margin-top: 4rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    box-sizing: border-box;
}

/* ===============================
   Users & Search
   =============================== */
.user-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .user-result-item:hover {
        background-color: #f8f9fa;
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.selected-user-info {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* ===============================
   Conversations
   =============================== */
.conversation-item {
    position: relative;
    display: flex;
    padding: 20px;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, border 0.2s;
    background-color: #e9ecef;
    max-width: 100%;
    width: 100%; /* Ensure full page width */
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #6c757d;
    margin-top: 3rem;
}

    .conversation-item:hover {
        /*transform: translateY(-1px);*/
        border-color: goldenrod;
    }

    .conversation-item.unread {
        background: rgba(218, 165, 32, 0.15);
        font-weight: 500;
    }

.conversation-avatar {
    position: relative;
    margin-right: 10px;
}

    .conversation-avatar .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid goldenrod;
    }

/* ===============================
   Online/Offline Indicators
   =============================== */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

    .online-indicator.online {
        background: #28a745;
    }

    .online-indicator.offline {
        background: #aaa;
    }

/* ===============================
   Chat Container & Header
   =============================== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.chat-title {
    flex: 1;
}

    .chat-title h5 {
        margin: 0;
        font-weight: 600;
        color: #333;
    }

.chat-actions {
    display: flex;
    gap: 8px;
}

/* ===============================
   Messages Container
   =============================== */
.messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem;
    border: 1px solid #6c757d;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    height: 70vh;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    max-height: calc(100vh - 200px);
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.message {
    display: flex;
    max-width: 100%;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
}

    .message.sent {
        flex-direction: row-reverse;
        /*justify-content: flex-end !important;*/
    }

    .message.received {
        flex-direction: row;
        justify-content: flex-start !important;
    }

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 8px;
    object-fit: cover;
    border: 2px solid goldenrod;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 1rem;
    position: relative;
    background: #f1f1f1;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.message.sent .message-content {
    background: goldenrod;
    color: #fff;
}

.message.sent .message-header {
    color: #fff;
}

.message-sender {
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.message.received .message-content {
    background: gold;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

.message-header {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.message-meta {
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.message-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 4px;
}

/* ===============================
   Input Area
   =============================== */
.message-input-area {
    padding: 1rem;
    background-color: #fff;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 1000;
}

    .message-input-area .input-group {
        border: 2px solid goldenrod;
        border-radius: 8px;
        overflow: hidden;
        gap: 8px;
    }

    .message-input-area .form-control,
    .message-input-area input {
        border: none;
        box-shadow: none;
        border-radius: 20px;
        resize: none;
        max-height: 100px;
        flex: 1;
    }

    .message-input-area .btn,
    .message-input-area button {
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: goldenrod;
        border: none;
        color: white;
        flex-shrink: 0;
    }

    .message-input-area button {
        border-radius: 0 !important;
    }

        .message-input-area button:hover {
            background-color: darkgoldenrod !important;
        }

        .message-input-area button:disabled {
            background: grey;
        }

/* ===============================
   Badges & Indicators
   =============================== */
.unread-badge {
    background: goldenrod;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 5px 10px;
    margin-left: auto;
    flex-shrink: 0;
    position: absolute;
    top: 10px;
    left: 10px;
}

.typing-indicator-message {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 0.8rem;
    color: #888;
    gap: 8px;
    padding: 0 8px;
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

    .typing-dots span {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: goldenrod;
        animation: bounce 1.4s infinite ease-in-out;
    }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

/* ===============================
   Buttons
   =============================== */
.btn-new-message,
.btn-send-msg {
    background-color: goldenrod !important;
    color: white !important;
    border: none !important;
}

    .btn-send-msg:hover, .btn-new-message:hover {
        background-color: darkgoldenrod !important;
    }

.btn-refresh-conversation {
    color: #a3a3a3 !important;
    border-color: #a3a3a3 !important;
}

    .btn-refresh-conversation:hover {
        background-color: white !important;
        color: goldenrod !important;
        border-color: goldenrod !important;
    }

.conversations-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
    overflow-x: hidden !important;
}

.user-info {
    flex: 1;
}

.user-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 8px;
}

.conversation-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.conversation-header {
    display: block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    text-align: left;
}

    .conversation-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /*max-width: 180px;*/
        word-wrap: break-word;
        word-break: break-word;
    }

.last-message {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

    .last-message .sender {
        flex-shrink: 0;
        font-weight: 600;
        color: #333;
        /*max-width: 90px;*/
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .last-message .content {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.messages-header {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 8px !important;
    margin-top: 1.5rem;
}

    .messages-header h2 {
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: calc(100% - 200px) !important;
    }

/* #Maps# */
.map-container {
    max-width: 1200px;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-title {
    margin: 0;
    color: #333;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.radius-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radius-select {
    width: auto;
    min-width: 100px;
}

.leaflet-map {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.loading-container {
    text-align: center;
    padding: 2rem;
}

.locations-list {
    margin-top: 2rem;
}

.location-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #d5d5d5 !important;
    border-radius: 2% !important;
}

    .location-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .location-card .card-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        .location-card .card-body p.card-text:last-of-type {
            flex-grow: 1;
        }

.rating {
    color: #ffc107;
    font-weight: 600;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.loading-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Map Marker Styles */
.user-location-marker {
    background: transparent !important;
    border: none !important;
}

.user-marker-icon {
    background: #28a745;
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 14px;
}

.vet-location-marker {
    background: transparent !important;
    border: none !important;
}

.vet-marker-icon {
    background: #dc3545;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-size: 12px;
}

.vet-popup {
    font-size: 0.9rem;
    min-width: 200px;
}

    .vet-popup h6 {
        color: #007bff;
        margin: 0 0 0.5rem 0;
    }

.vet-location-marker {
    background: transparent;
    border: none;
}

/* #EmptyState# */
.empty-state-container {
    margin: 2rem 0;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.empty-state-suggestions {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.suggestions-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #495057;
}

    .suggestions-list li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

        .suggestions-list li:last-child {
            margin-bottom: 0;
        }

.empty-state-suggestions .btn-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

    .empty-state-suggestions .btn-link:hover {
        text-decoration: underline;
    }

/* #Skeleton# */

.skeleton-db-greeting {
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-db-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skeleton-db-card {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    width: 100%;
    height: 1rem;
    display: block;
}

@media (min-width: 768px) {
    .skeleton-db-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skeleton-db-card {
        height: 380px;
    }
}

@media (min-width: 1200px) {
    .skeleton-db-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* #Media# */
@media (hover: hover) and (pointer: fine) {
    .responsive-nav {
        min-height: 70px;
        position: fixed;
        top: 0;
        bottom: auto;
        border-top: none;
        border-bottom: 1px solid #ccc;
        justify-content: flex-start;
        padding: 0rem 6rem;
    }

    .responsive-nav-inner {
        padding: 0 5rem;
    }

    .events-search {
        width: 100% !important;
    }

    .nav-link {
        height: 60px;
        width: 93px;
    }

    .userInfo {
        text-align: right;
        margin-top: 1rem;
        margin-bottom: -1.5rem;
    }

    .contact-btn {
        margin-left: 0;
    }

    .icons {
        right: 3rem;
    }

    .map-container {
        padding: 1rem;
        margin-top: 5rem;
    }
}

@media (max-width: 1650px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-clip-nav {
        width: 140px;
        clip-path: circle(20px at 30px 20px);
    }

    .user-clip-nav:hover {
        clip-path: circle(250px at 30px 20px);
    }

    .user-clip-item {
        font-size: 1rem;
        line-height: 40px;
        padding: 0 14px;
    }

        .user-clip-item:hover {
            font-size: 1.05rem;
            font-weight: 500;
        }
}

@media (max-width: 1580px) {
    .logo-text {
        display: none;
    }

    .admin-section table,
    .admin-section thead,
    .admin-section tbody,
    .admin-section th,
    .admin-section td,
    .admin-section tr {
        display: block;
        width: 100%;
    }

    .admin-section thead {
        display: none;
    }

    .admin-section tbody tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.5rem;
        background: #f8f9fa;
    }

    .admin-section td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        padding-right: 1rem;
        border: none !important;
        text-align: center;
        margin: 0 auto;
        max-width: 100% !important;
    }

        .admin-section td::before {
            content: attr(data-label);
            position: absolute;
            top: 0.75rem;
            font-weight: bold;
            text-align: left;
            white-space: nowrap;
        }

    .post-table td, .event-table td, .postreports-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding-left: 5rem;
        position: relative;
        white-space: normal;
    }

        .post-table td::before, .event-table td::before {
            display: flex;
            position: relative;
            justify-content: center;
            transform: translateY(-50%);
            white-space: nowrap;
            font-weight: bold;
        }

        .post-table td.td-createdby::before, .event-table td.td-createdby::before {
            content: "CRIADO POR:";
        }

        .post-table td.td-createdat::before {
            content: "CRIADO EM:";
        }

        .post-table td.td-title::before {
            content: "TITULO:";
        }

        .post-table td.post-body-cell::before {
            content: "BODY:";
        }

        .event-table td.td-createdat::before {
            content: "CRIADO EM:";
        }

        .event-table td.td-name::before {
            content: "NOME:";
        }

        .event-table td.td-description::before {
            content: "DESCRICAO:";
        }

        .event-table td.td-date::before {
            content: "DATA:";
        }
}

@media (max-width: 1250px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .posts-list, .events-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1055px) {
    .post-detail-content, .post-created-by {
        text-align: center;
        display: block;
    }

        .post-created-by span {
            display: inline;
        }

    .liked-row, .post-datetime-row {
        display: block;
    }

    .liked-row {
        margin-top: -1rem;
    }

    .posts-list, .events-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-image-section {
        width: 100%;
    }
}

@media (max-width: 975px) {
    .banner h1 {
        /*font-size: 6rem;*/
    }

    .submenu-wrapper-health,
    .submenu-wrapper-memories,
    .submenu-wrapper-community {
        /*left: 40%;*/
    }

    .carousel-track {
        height: 300px;
    }

    .carousel-arrow {
        width: 56px;
        height: 56px;
        font-size: 1.9rem;
    }
}

@media (max-width: 930px) {
    .homepage-friends-img {
        width: 100%;
        height: 60%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card {
        display: flex;
        flex-direction: row;
        height: 200px;
    }

    .post-card-image-container {
        width: 200px;
        height: 180px;
        flex-shrink: 0;
    }

    .post-card-content {
        flex: 1;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .post-card-title {
        font-size: 1rem;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.3;
        flex: 0 1 auto;
    }

    .nearby-location-card {
        display: block;
    }

    .nearby-location-card-image-container {
        margin-bottom: 1rem;
    }

    .nearby-location-card-image {
        width: 100%;
        height: 200px;
    }

    .locations-cards-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .locations-card {
        min-height: 260px;
    }

    .locations-card-1,
    .locations-card-2,
    .locations-card-3 {
        grid-column: 1 / 2 !important;
        width: 100% !important;
    }
}

@media (max-width: 1150px) {
    .user-wrapper {
        position: absolute;
        top: 0;
        right: 1rem;
    }

    .notifications-wrapper {
        position: absolute;
        top: 5.2rem;
        right: 1rem;
    }

    .nav-a::after {
        width: 0 !important;
        background-color: transparent !important;
        transition: none !important;
    }

    .nav-a:hover::after {
        width: 0 !important;
    }

    .user-nav-a {
        width: 100px !important;
    }

    .notifications-dropdown {
        left: 0 !important;
    }

    .nav-a-messages {
        position: absolute !important;
        right: 3.2rem;
        top: 8rem;
        width: 1rem !important;
    }

    .submenu-wrapper-health,
    .submenu-wrapper-memories,
    .submenu-wrapper-community,
    .submenu-wrapper-settingsProfile {
        margin-left: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .submenu-wrapper-settingsProfile {
        left: 10%;
    }

    .submenu-item-profile {
        width: 100% !important;
    }

    .submenu-item {
        width: 230px;
    }

    .nav-link {
        padding: 0.3rem 0.8rem;
        height: 60px;
        width: 93px;
    }

    .lang-switch, .contact-btn, .login-btn, .logout-btn, .register-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        width: 150px !important;
    }

    .contact-btn {
        margin-left: 1.5rem;
    }

    .icons {
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
    }

    #check:checked ~ .icons #menu-icon {
        /*display: none;*/
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }

    .icons #close-icon {
        /*display: none;*/
    }

    #check:checked ~ .icons #close-icon {
        /*display: block;*/
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .navbar-class {
        position: absolute;
        display: block;
        top: 100%;
        left: 0;
        height: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
        transition: .3s ease;
        overflow: hidden;
    }

        .navbar-class.menu-open.menu-expanded {
            height: 22rem;
            overflow: visible;
        }

        .navbar-class.menu-open.menu-collapsed {
            height: 26rem;
            overflow: visible;
        }

        .navbar-class .nav-a {
            display: block;
            font-size: 1.1rem;
            margin: 0.4rem auto;
            text-align: center;
            width: 230px;
        }

    .right-nav {
        position: absolute;
        top: 0;
        right: 7rem;
    }

        .right-nav button {
            margin: 0;
            padding: 0;
            min-width: 6rem;
        }

    .buttonsNavbar {
        display: block;
    }

    .userInfo {
        display: none;
    }

    .submenu-wrapper {
        width: 100% !important;
    }

    .nav-auth-area {
        min-width: unset;
        justify-content: center;
    }

    .auth-btns {
        text-align: center;
        width: 100%;
        margin-top: 1rem;
    }

    .login-create-wrapper {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .event-main-image {
        width: 100%;
    }
}

@media (min-width: 1051px) {
    .navbar-class {
        display: block;
    }

    .notifications-wrapper:hover .notifications-dropdown {
        display: block;
    }

    .nav-a-wrapper:hover .submenu-wrapper {
        max-height: 500px;
        opacity: 1;
        transform: translate(-50%, 0);
        visibility: visible;
    }

    .nav-a-wrapper.disable-hover .submenu-wrapper {
        max-height: 0 !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}

/*
 * Hamburger dropdown for touch devices (pointer: coarse / S23, iPhone, etc.)
 * The (hover: hover) and (pointer: fine) block above does not apply to touch screens,
 * so .navbar-class stays display:inline there — height has no effect on inline elements.
 * This block mirrors the desktop dropdown behaviour for ≤1150px touch screens.
 */
@media (max-width: 1150px) {
    .navbar-class {
        position: absolute;
        display: block;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        transition: height 0.3s ease;
        overflow: hidden;
    }

    .dark .navbar-class {
        background: rgba(70, 70, 70, 0.98);
    }

    .navbar-class.menu-open.menu-expanded {
        height: 22rem;
        overflow: visible;
    }

    .navbar-class.menu-open.menu-collapsed {
        height: 26rem;
        overflow: visible;
    }

    /* Stack nav links vertically inside the open hamburger */
    .navbar-class .nav-a {
        display: block;
        font-size: 1.1rem;
        margin: 0.75rem auto;
        text-align: center;
        width: 230px;
    }
}

@media (max-width: 860px) {
    .banner h1 {
        /*font-size: 5rem;*/
    }

    .right-nav {
        position: relative;
        width: 100vh;
    }

    #check:checked ~ .navbar-class {
        /* height: 28rem;*/
    }

    .posts-list, .events-list, .featured-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .post-card-title {
        overflow: hidden;
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.2;
    }
}

@media (max-width: 785px) {
    .banner h2 {
        margin-top: 3rem;
        margin-top: 10rem;
    }

    .dashboard-container {
        padding: 1rem 0.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.25rem;
    }

    .dashboard-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .events-search {
        width: 100%;
    }

    .nav-link i {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 100px;
    }
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .chat-container {
        transition: transform 0.3s ease-in-out;
        will-change: transform;
    }

        .chat-container.keyboard-active {
            transform: translateY(var(--keyboard-offset, 0px)) !important;
        }

    .message-input-area {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        padding: 0.75rem;
        background-color: #fff !important;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999 !important;
        transition: bottom 0.3s ease-in-out;
    }

        .message-input-area.keyboard-active {
            position: fixed !important;
            bottom: 0 !important;
            z-index: 10000 !important;
        }

        .message-input-area input {
            font-size: 16px !important;
        }

    .messages-area {
        padding-bottom: 80px !important;
    }
}

@media (max-width: 768px) {
    .home-container {
        margin-top: -2rem;
    }

    .register-container {
        margin-top: 3rem !important;
    }

    .register-email, .registerForm {
        margin-top: 0 !important;
    }

    .login-container {
        margin-top: 2rem !important;
    }

    .dashboard-container {
        padding: 0.5rem;
        margin-top: 1rem !important;
    }

    /*.dashboard-card {
        width: 100% !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }*/

    .card-body {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.2rem;
    }

    .dashboard-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .list-group-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .dashboard-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .logo-image {
        width: 2.5rem;
        max-height: 36px;
        object-fit: contain;
    }

    .nav-header {
        padding: 0.4rem 5% !important;
    }

    .icons {
        font-size: 1.8rem;
    }

    #main-scroll-container {
        top: 54px !important;
    }

    .logo-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .banner h2 {
        font-size: 2rem;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .banner h3 {
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .submenu-wrapper-health,
    .submenu-wrapper-memories,
    .submenu-wrapper-community {
        /*left: 20%;*/
    }

    .navbar-class.menu-open.menu-expanded {
        height: 22rem;
        overflow: visible;
    }

    .navbar-class.menu-open.menu-collapsed {
        height: 26rem;
        overflow: visible;
    }

    /*  .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }*/

    .page-number {
        font-size: 14px;
    }

    .events-main, .posts-main {
        padding: 0.5rem;
        /*margin-top: 7rem;*/
        /*border-radius: 0px;*/
        min-width: 10rem;
    }

    .age-container {
        margin-top: 0;
        min-height: auto;
    }

    .card-item {
        height: 300px;
        margin-bottom: 1.5rem;
    }

    .card-list {
        margin-bottom: 4rem;
    }

    .featured-events-item-list {
        height: 300px;
    }

    .event-city-form-search {
        margin-bottom: 2rem;
    }

    .locations-main {
        min-width: 10rem;
    }

    .locations-card {
        min-height: 280px;
    }

    .event-image-container {
        max-height: 280px;
    }

    .event-main-image {
        max-width: 100%;
        max-height: 280px;
    }

    .carousel-track {
        height: 240px;
    }

    .carousel-arrow {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .carousel-caption {
        right: 0 !important;
        left: 0 !important;
    }

        .carousel-caption p {
            font-size: 1rem;
        }

    .footer-app-name {
        margin-bottom: 2rem;
    }

    .map-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .radius-controls {
        justify-content: center;
    }

    .leaflet-map {
        height: 400px !important;
    }

    .pagination-btn {
        padding: 12px;
        font-size: 12px;
    }

    .page-number {
        font-size: 12px;
    }

    .dashboard-main {
        margin-top: 1.5rem !important;
    }

    .events-main {
        margin-top: 2.5rem !important;
    }

    .help-page {
        margin-top: 2rem !important;
    }

    .post-details-container {
        margin-top: 2rem !important;
    }

    .new-event-main, .new-post-main {
        margin-top: 1rem !important;
    }

    .posts-main {
        margin-top: 0.2rem !important;
    }

    .conversation-header h5 {
        /*max-width: 150px;*/
    }

    .message-content {
        max-width: 85%;
    }

    .chat-title h5 {
        font-size: 18px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .messages-page {
        width: 100%;
        padding: 0;
    }

    .messages-area {
        max-height: calc(100vh - 160px);
    }

    .messages-header {
        padding: 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .chat-header {
        background-color: transparent;
    }

    .header-actions {
        display: flex;
        gap: 8px;
        margin-right: 5px;
    }

    .conversation-item {
        max-width: calc(100vw - 24px) !important;
        border: 1px solid #6c757d;
        padding: 10px 5px 10px 5px;
    }

    .conversation-content {
        max-width: calc(100% - 70px) !important;
    }

    .conversation-header h5 {
        /*max-width: 140px !important;*/
        font-size: 15px !important;
    }

    .last-message .content {
        max-width: calc(100% - 40px) !important;
    }

    .message-content {
        max-width: 85% !important;
    }

    .messages-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .locations-main {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
}

@media (min-width: 641px) {
    .nav-body {
        min-height: 100vh;
    }
}

@media (max-width: 641px) {
    /*.navbar-class {
        background: rgba(255, 255, 255, 1);
    }*/

    .banner {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
        padding: 1rem;
    }

        .banner h1 {
            /*font-size: 2rem;*/
            /*margin: 0;
            padding: 0;*/
        }

        .banner h3 {
            margin-top: 3rem;
        }

    .footer-app-name {
        text-align: center;
    }

    .toggle-container {
        justify-content: center;
    }

    .post-card {
        flex-direction: column;
        height: auto;
    }

    .post-card-image-container {
        width: 100%;
        height: 180px;
    }

    .post-card-content {
        padding: 1rem;
    }

    .conversation-header h5 {
        /*max-width: 120px;*/
    }

    .chat-title h5 {
        max-width: 150px;
    }

    .message-content {
        max-width: 90%;
    }

    .avatar {
        width: 44px;
        height: 44px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .conversation-item {
        max-width: calc(100vw - 16px) !important;
    }

    .conversation-content {
        max-width: calc(100% - 60px) !important;
    }

    .conversation-header h5 {
        /*max-width: 110px !important;*/
        font-size: 14px !important;
    }

    .last-message {
        font-size: 13px !important;
    }

        .last-message .content {
            max-width: calc(100% - 30px) !important;
        }

    .message-content {
        max-width: 90% !important;
    }

    .user-avatar {
        width: 36px !important;
        height: 36px !important;
    }
}

/* #General# */
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn-check:focus + .btn,
.btn-check:focus-visible + .btn {
    box-shadow: none !important;
    outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: none !important;
    outline: none !important;
}

.form-control:focus {
    box-shadow: none !important;
    outline: none !important;
}

.form-control:focus {
    border-color: var(--focus-ring-color) !important;
    box-shadow: 0 0 0 var(--focus-ring-offset) var(--focus-ring-color) !important;
}

.valid.modified:not([type=checkbox]) {
    border-color: #a5a5a5 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Fix password input text direction */
.password-input,
input[type="password"],
input[type="text"].password-input,
#password {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: normal !important;
    writing-mode: horizontal-tb !important;
    padding-left: 12px !important;
    text-indent: 0 !important;
    box-sizing: border-box !important;
}

    /* Additional focus state fixes */
    .password-input:focus,
    input[type="password"]:focus,
    input[type="text"].password-input:focus,
    #password:focus {
        direction: ltr !important;
        text-align: left !important;
        unicode-bidi: normal !important;
        writing-mode: horizontal-tb !important;
        padding-left: 12px !important;
        text-indent: 0 !important;
    }

/* #Accessibility - Elder Friendly# */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

p, li, td, th, label, span {
    line-height: 1.6;
}

button, [role="button"], a, select, input, textarea {
    min-height: var(--min-touch-target);
}

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 1rem;
    }

::placeholder {
    color: #767676;
    opacity: 1;
}


/* =============================================
   MICRO-INTERACTIONS (Web)
   spring easing: cubic-bezier(0.34, 1.56, 0.64, 1)
   ============================================= */

/* --- Buttons: hover lift + active press --- */
.btn {
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.18s ease !important;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
        opacity: 1;
    }

    .btn:active {
        transform: scale(0.93) !important;
        box-shadow: none !important;
    }

    .btn:disabled,
    .btn[disabled] {
        transform: none !important;
        box-shadow: none !important;
        transition: opacity 0.2s ease !important;
    }

    /* --- Primary action buttons: uiverse press-down shadow style --- */
    /* Double-class selectors (0,3,0) beat .btn:hover/.btn:active (0,2,0) */
    .btn.loginBtn,
    .btn.registerBtn,
    .btn.forgotPasswordBtn,
    .btn.btn-save-profile,
    .btn.btn-save-new-post,
    .btn.btn-save-new-event,
    .btn.btn-submit-comment,
    .btn-edit-profile,
    .btn.continue-btn {
        transition: all 0.3s ease !important;
        box-shadow: darkgoldenrod 0px 10px 0px 0px !important;
    }

    .btn.loginBtn:hover,
    .btn.registerBtn:hover,
    .btn.forgotPasswordBtn:hover,
    .btn.btn-save-profile:hover,
    .btn.btn-save-new-post:hover,
    .btn.btn-save-new-event:hover,
    .btn.btn-submit-comment:hover,
    .btn-edit-profile:hover,
    .btn.continue-btn:hover {
        box-shadow: darkgoldenrod 0px 7px 0px 0px !important;
        transform: none !important;
    }

    .btn.loginBtn:active,
    .btn.registerBtn:active,
    .btn.forgotPasswordBtn:active,
    .btn.btn-save-profile:active,
    .btn.btn-save-new-post:active,
    .btn.btn-save-new-event:active,
    .btn.btn-submit-comment:active,
    .btn-edit-profile:active,
    .btn.continue-btn:active {
        background-color: goldenrod !important;
        box-shadow: darkgoldenrod 0px 0px 0px 0px !important;
        transform: translateY(5px) !important;
        transition: 200ms !important;
    }

    .btn.loginBtn:focus:not(:active),
    .btn.registerBtn:focus:not(:active),
    .btn.forgotPasswordBtn:focus:not(:active),
    .btn.btn-save-profile:focus:not(:active),
    .btn.btn-save-new-post:focus:not(:active),
    .btn.btn-save-new-event:focus:not(:active),
    .btn.btn-submit-comment:focus:not(:active),
    .btn-edit-profile:focus:not(:active),
    .btn.continue-btn:focus:not(:active) {
        box-shadow: darkgoldenrod 0px 10px 0px 0px !important;
        transform: none !important;
        outline: none !important;
    }

/* --- Dropdown backdrop (click-outside to close) --- */
.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}

/* On touch devices: dim the backdrop and show the list as a centered modal */
@media (hover: none) and (pointer: coarse) {
    .dropdown-backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .custom-dropdown-list {
        position: fixed !important;
        /* Use vw/dvh viewport units instead of % to bypass the iOS Safari bug
           where % inside an overflow:auto container is relative to that container,
           not the viewport — causing the modal to follow the trigger position */
        top: 0 !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        width: 85vw !important;
        max-width: 360px !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        z-index: 1100 !important;
        border-radius: 0 0 20px 20px !important;
        border: none !important;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35) !important;
        overflow: hidden !important;
        overflow-y: auto !important;
        padding: 0 !important;
    }

        /* Drag-handle indicator at the top of the modal */
        .custom-dropdown-list::before {
            content: '';
            display: block;
            width: 36px;
            height: 4px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 2px;
            margin: 14px auto 10px;
            flex-shrink: 0;
        }

    .dark .custom-dropdown-list::before {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Larger, clearly-spaced items with a subtle divider */
    .custom-dropdown-list .custom-dropdown-item {
        padding: 16px 24px !important;
        font-size: 1.05rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
        text-align: center !important;
    }

    .dark .custom-dropdown-list .custom-dropdown-item {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .custom-dropdown-list .custom-dropdown-item:last-child {
        border-bottom: none !important;
    }

    /* Slide-up entrance animation for the modal */
    .animate-dropdown {
        animation: mobileDropdownIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
}

/* --- Custom dropdown press --- */
.custom-dropdown {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

    .custom-dropdown:hover {
        border-color: goldenrod;
    }

/* --- Dropdown list items --- */
.custom-dropdown-item {
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

    .custom-dropdown-item:active {
        transform: scale(0.97) !important;
        background-color: rgba(218, 165, 32, 0.2) !important;
        color: darkgoldenrod !important;
    }

/* --- Category chips --- */
.btn-categories-list {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease !important;
}

    .btn-categories-list:hover {
        transform: translateY(-2px);
    }

    .btn-categories-list:active {
        transform: scale(0.88) !important;
    }

/* ============================================================
   MESSAGES PAGE � Facebook/Instagram style
   Web (BlazorWASM) version
   top: 120px matches #main-scroll-container, no bottom nav
   ============================================================ */

.msg-page {
    position: relative;
    left: 0;
    margin-bottom: 5rem;
    margin-top: 7rem;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 930px) {
    .msg-page {
        margin-top: 4rem;
    }
}

.msg-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* -- Header -- */
.msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    gap: 8px;
}

.msg-header-title {
    font-family: 'Armata', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    color: var(--text-color);
}

.msg-header-back {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1.1rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
}

    .msg-header-back:active {
        background: rgba(0,0,0,0.08);
    }

.msg-new-btn {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: #d4a017;
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(212,160,23,0.35);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

    .msg-new-btn:active {
        transform: scale(0.88);
        background: #b8890e;
    }

.msg-delete-btn {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: none;
    background: none;
    color: #e53935;
    font-size: 1rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.15s, transform 0.15s;
}

    .msg-delete-btn:active {
        background: rgba(229,57,53,0.1);
        transform: scale(0.9);
    }

/* -- Chat header info -- */
.msg-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.msg-chat-header-name {
    font-weight: 700;
    font-size: 0.97rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.msg-chat-header-status {
    font-size: 0.72rem;
    color: #888;
    margin-top: 1px;
}

/* -- Search bar -- */
.msg-search-wrap {
    padding: 10px 16px 8px;
    background: var(--bg-color);
    flex-shrink: 0;
    margin-bottom: 2rem;
    border: 1px solid #d3d1d1;
}

.msg-search-wrap-inner {
    position: relative;
}

.msg-search-bar {
    width: 100%;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 22px;
    padding: 10px 16px 10px 40px;
    font-size: 0.88rem;
    font-family: 'Numans', sans-serif;
    color: var(--text-color);
    outline: none;
    transition: background 0.15s;
    min-height: 42px;
}

    .msg-search-bar:focus {
        background: rgba(0,0,0,0.09);
    }

    .msg-search-bar::placeholder {
        color: #aaa;
    }

    .msg-search-bar::-webkit-search-cancel-button,
    .msg-modal-search::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        height: 16px;
        width: 16px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a017'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 1;
    }

.msg-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.82rem;
    pointer-events: none;
}

/* -- Conversation list -- */
.msg-conv-list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

    .msg-conv-list::-webkit-scrollbar {
        width: 4px;
    }

    .msg-conv-list::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
    }

/* -- Conversation item -- */
.msg-conv-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
    margin-bottom: 1rem;
    transition: background 0.5s ease;
}

    .msg-conv-item:hover {
        background-color: #fcecac;
    }

    .msg-conv-item:active {
        background: rgba(0,0,0,0.04);
    }

    .msg-conv-item.long-pressed {
        background: rgba(229,57,53,0.05);
    }

/* -- Long-press delete overlay (touch / right-click) -- */
.msg-conv-delete-overlay {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient(to left, rgba(229,57,53,0.12) 60%, transparent);
    z-index: 5;
    animation: msgSlideInRight 0.18s ease;
}

.msg-conv-delete-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-family: 'Numans', sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229,57,53,0.35);
    transition: transform 0.15s, background 0.15s;
}

    .msg-conv-delete-action:active {
        transform: scale(0.93);
        background: #c62828;
    }

/* -- Avatar -- */
.msg-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.msg-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212,160,23,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4a017;
    overflow: hidden;
    flex-shrink: 0;
}

    .msg-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

    .msg-avatar.msg-avatar-sm {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

.msg-avatar-online::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #4caf50;
    border: 2px solid var(--bg-color);
    border-radius: 50%;
}

/* -- Conversation content -- */
.msg-conv-content {
    flex: 1;
    min-width: 0;
}

.msg-conv-row1 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.msg-conv-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-time {
    font-size: 0.72rem;
    color: #aaa;
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-conv-row2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.msg-conv-preview {
    font-size: 0.82rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

    .msg-conv-preview.unread {
        color: var(--text-color);
        font-weight: 600;
    }

.msg-unread-badge {
    min-width: 20px;
    height: 20px;
    background: #d4a017;
    color: #fff;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

/* -- Hover delete button (web-primary delete trigger) -- */
.msg-conv-hover-del {
    background: none;
    border: none;
    color: #e53935;
    font-size: 0.88rem;
    width: 42px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, background 0.12s;
}

/* -- Divider -- */
.msg-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 0 0 0 80px;
}

/* -- Empty state -- */
.msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    gap: 10px;
    flex: 1;
}

.msg-empty-icon {
    font-size: 3.2rem;
    opacity: 0.3;
    margin-bottom: 4px;
    color: var(--text-color);
}

.msg-empty-title {
    font-family: 'Armata', sans-serif;
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.65;
}

.msg-empty-sub {
    font-size: 0.84rem;
    color: #aaa;
}

/* -- Messages area -- */
.msg-messages-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .msg-messages-area::-webkit-scrollbar {
        width: 4px;
    }

    .msg-messages-area::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
    }

/* -- Load older indicator -- */
.msg-load-older {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 0.78rem;
    color: #aaa;
    gap: 8px;
    flex-shrink: 0;
}

/* -- Date separator -- */
.msg-date-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
}

.msg-date-sep-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
}

.msg-date-sep-label {
    font-size: 0.7rem;
    color: #aaa;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* -- Message row -- */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 1px;
}

    .msg-row.sent {
        justify-content: flex-end;
    }

    .msg-row.received {
        justify-content: flex-start;
    }

/* -- Bubble -- */
.msg-bubble {
    max-width: 80%;
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.48;
    word-break: break-word;
}

    .msg-bubble.sent {
        background: linear-gradient(135deg, #d4a017, #e8b820);
        color: #fff;
        border-bottom-right-radius: 5px;
    }

    .msg-bubble.received {
        background: rgba(0,0,0,0.07);
        color: var(--text-color);
        border-bottom-left-radius: 5px;
    }

/* -- Message meta -- */
.msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    justify-content: flex-end;
}

    .msg-meta.received {
        justify-content: flex-start;
    }

.msg-meta-time {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.72);
    line-height: 1;
}

.msg-bubble.received .msg-meta-time,
.msg-meta.received .msg-meta-time {
    color: #aaa;
}

.msg-status-icon {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.72) !important;
}

    .msg-status-icon.read {
        color: #fff !important;
    }

/* -- Message bubble wrapper (positions action menu) -- */
.msg-bubble-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

    .msg-bubble-wrap.sent {
        align-items: flex-end;
    }

    .msg-bubble-wrap.received {
        align-items: flex-start;
    }

/* -- Desktop hover action buttons on sent messages -- */
.msg-hover-actions {
    display: none;
    gap: 2px;
    align-items: center;
    margin-bottom: 4px;
}

.msg-bubble-wrap.sent:hover .msg-hover-actions {
    display: flex;
}

.msg-hover-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.72rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.12s, background 0.12s;
}

    .msg-hover-btn:hover {
        background: rgba(0,0,0,0.07);
        color: #555;
    }

    .msg-hover-btn.danger:hover {
        color: #e53935;
        background: rgba(229,57,53,0.08);
    }

.msg-bubble-wrap .msg-bubble {
    max-width: 100%;
}

.msg-bubble-active {
    opacity: 0.82;
}

/* -- Message action menu -- */
.msg-action-menu {
    display: flex;
    flex-direction: row;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    overflow: hidden;
    margin-top: 4px;
    animation: msgActionIn 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0,0,0,0.08);
}

.msg-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.72rem;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
}

    .msg-action-btn:hover {
        background: rgba(0,0,0,0.05);
    }

    .msg-action-btn i {
        font-size: 1rem;
        color: var(--text-color);
    }

    .msg-action-btn.danger,
    .msg-action-btn.danger i {
        color: #e53935;
    }

.msg-action-sep {
    width: 1px;
    background: rgba(0,0,0,0.1);
    margin: 8px 0;
}

/* -- Edit mode input bar -- */
.msg-input-bar.edit-mode {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.msg-edit-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #d4a017;
    padding: 0 4px;
    flex-shrink: 0;
    width: 100%;
}

    .msg-edit-indicator i {
        font-size: 0.78rem;
    }

    .msg-edit-indicator span {
        flex: 1;
    }

.msg-edit-cancel-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.9rem;
    padding: 0 4px;
    cursor: pointer;
    line-height: 1;
}

    .msg-edit-cancel-btn:hover {
        color: #555;
    }

.msg-input-bar-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

.msg-send-btn.edit {
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76,175,80,0.35);
}

    .msg-send-btn.edit:active {
        background: #388e3c;
    }

/* -- Typing dots -- */
.msg-typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}

    .msg-typing-dots span {
        width: 7px;
        height: 7px;
        background: #bbb;
        border-radius: 50%;
        animation: msgTypingBounce 1.2s infinite;
    }

        .msg-typing-dots span:nth-child(2) {
            animation-delay: 0.18s;
        }

        .msg-typing-dots span:nth-child(3) {
            animation-delay: 0.36s;
        }

/* -- Input bar -- */
.msg-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 12px 12px;
    background: var(--bg-color);
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.msg-input-wrap {
    flex: 1;
    background: rgba(0,0,0,0.06);
    border-radius: 22px;
    display: flex;
    align-items: flex-end;
    padding: 2px 14px;
    min-height: 44px;
}

.msg-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Numans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.45;
    max-height: 120px;
    overflow-y: hidden;
    padding: 9px 0;
    min-height: 26px;
}

    .msg-textarea::placeholder {
        color: #aaa;
    }

.msg-send-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #d4a017;
    color: #fff;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(212,160,23,0.35);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

    .msg-send-btn:active {
        transform: scale(0.88);
        background: #b8890e;
    }

    .msg-send-btn:disabled {
        opacity: 0.42;
        transform: none !important;
        cursor: not-allowed;
        box-shadow: none;
    }

/* -- Bottom sheet modals -- */
.msg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: msgFadeIn 0.18s ease;
    padding-bottom: 30px;
}

.msg-modal-sheet {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 16px 20px 36px;
    width: 100%;
    max-width: 640px;
    max-height: 82vh;
    overflow-y: auto;
    margin-bottom: 0rem;
    animation: msgSlideUpSheet 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

.msg-modal-handle {
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,0.13);
    border-radius: 2px;
    margin: 0 auto 18px;
}

.msg-modal-title {
    font-family: 'Armata', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

/* Modal search */
.msg-modal-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.msg-modal-search {
    width: 100%;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 22px;
    padding: 11px 16px 11px 40px;
    font-size: 0.88rem;
    font-family: 'Numans', sans-serif;
    color: var(--text-color);
    outline: none;
    min-height: 44px;
}

    .msg-modal-search::placeholder {
        color: #aaa;
    }

.msg-modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.82rem;
    pointer-events: none;
}

/* User result items */
.msg-user-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.12s;
}

    .msg-user-result:active {
        background: rgba(0,0,0,0.05);
    }

    .msg-user-result.selected {
        background: rgba(212,160,23,0.09);
        padding: 10px 12px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

.msg-user-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-color);
}

.msg-user-sub {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

/* Compose textarea */
.msg-compose-input {
    width: 100%;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: 'Numans', sans-serif;
    color: var(--text-color);
    outline: none;
    resize: none;
    min-height: 80px;
}

    .msg-compose-input::placeholder {
        color: #aaa;
    }

/* Modal action buttons */
.msg-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.msg-btn-cancel {
    flex: 1;
    padding: 13px;
    background: rgba(0,0,0,0.07);
    border: none;
    border-radius: 14px;
    font-family: 'Numans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.15s;
}

.msg-btn-send {
    flex: 1;
    padding: 13px;
    background: #d4a017;
    border: none;
    border-radius: 14px;
    font-family: 'Numans', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212,160,23,0.3);
    transition: background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .msg-btn-send:active {
        background: #b8890e;
        transform: scale(0.97);
    }

    .msg-btn-send:disabled {
        opacity: 0.48;
        cursor: not-allowed;
        transform: none !important;
    }

.msg-btn-delete {
    flex: 1;
    padding: 13px;
    background: #e53935;
    border: none;
    border-radius: 14px;
    font-family: 'Numans', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229,57,53,0.3);
    transition: background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .msg-btn-delete:active {
        background: #c62828;
        transform: scale(0.97);
    }

    .msg-btn-delete:disabled {
        opacity: 0.48;
        cursor: not-allowed;
        transform: none !important;
    }

/* Delete confirmation */
.msg-delete-confirm-icon {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}

.msg-delete-confirm-text {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 6px;
}

.msg-delete-confirm-warn {
    font-size: 0.8rem;
    color: #e53935;
    text-align: center;
}

/* -- Large screen centering -- */
@media (min-width: 768px) {
    .msg-page {
        max-width: 720px;
        left: 50%;
        right: auto;
        width: 720px;
        transform: translateX(-50%);
        border-left: 1px solid rgba(0,0,0,0.07);
        border-right: 1px solid rgba(0,0,0,0.07);
        box-shadow: 0 0 40px rgba(0,0,0,0.07);
    }

    .dark .msg-page {
        border-color: rgba(255,255,255,0.07);
        box-shadow: 0 0 40px rgba(0,0,0,0.25);
    }

    .msg-modal-backdrop {
        left: 0;
        right: 0;
        transform: none;
    }

    .msg-bubble {
        max-width: 65%;
    }
}

/* -- Hover states (pointer devices) -- */
@media (hover: hover) {
    /* Show delete on hover */
    .msg-conv-item:hover .msg-conv-hover-del {
        opacity: 1;
        pointer-events: auto;
    }

    .msg-conv-hover-del:hover {
        background: white;
        border: 1px solid #ffbf0d;
    }

    .msg-new-btn:hover {
        background: #c4930e;
        transform: scale(1.06);
    }

    .msg-header-back:hover {
        background: rgba(0,0,0,0.07);
    }

    .dark .msg-header-back:hover {
        background: rgba(255,255,255,0.08);
    }

    .msg-delete-btn:hover {
        background: rgba(229,57,53,0.09);
    }

    .msg-send-btn:hover:not(:disabled) {
        background: #c4930e;
        transform: scale(1.05);
    }

    .msg-btn-cancel:hover {
        background: rgba(0,0,0,0.11);
    }

    .dark .msg-btn-cancel:hover {
        background: rgba(255,255,255,0.14);
    }

    .msg-btn-send:hover:not(:disabled) {
        background: #c4930e;
    }

    .msg-btn-delete:hover:not(:disabled) {
        background: #c62828;
    }

    .msg-user-result:hover {
        background: rgba(0,0,0,0.04);
    }

    .dark .msg-user-result:hover {
        background: rgba(255,255,255,0.05);
    }
}

/* =============================================
   iOS / Safari Mobile Fixes
   ============================================= */

/* Fix backdrop-filter for Safari (requires -webkit- prefix) */
@media (max-width: 1150px) {
    .navbar-class {
        -webkit-backdrop-filter: blur(50px);
    }
}

/* Prevent 300ms tap delay on the hamburger and interactive nav elements */
label[for="check"],
.icons {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Safe area insets — accounts for iPhone notch / Dynamic Island / home indicator */
@supports (padding: max(0px)) {
    .nav-header {
        /* Extend header padding under notch when viewport-fit=cover is set */
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
    }

    #main-scroll-container {
        /* Push content below the taller header on notched devices */
        top: max(120px, calc(80px + env(safe-area-inset-top))) !important;
    }
    /* Responsive-nav (bottom bar on MAUI) — add home-indicator clearance */
    .responsive-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Prevent iOS Safari from auto-zooming the page when tapping inputs
   (triggered when font-size < 16px) */
@media (max-width: 930px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* On mobile, ensure the hamburger dropdown stacks its nav items vertically */
@media (max-width: 1150px) {
    .responsive-nav-web {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .responsive-nav-inner-web {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }
}

/* ─── Event type trigger button (also used for location, category pickers) ─── */
.evt-type-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: #999;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.evt-type-trigger--selected {
    color: var(--text-color, #222);
    border-color: goldenrod;
}

.evt-type-trigger:active {
    transform: scale(0.98);
    border-color: goldenrod;
}

.evt-type-trigger__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(218, 165, 32, 0.1);
    color: goldenrod;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.evt-type-trigger--selected .evt-type-trigger__icon {
    background: rgba(218, 165, 32, 0.18);
}

.evt-type-trigger__label {
    flex: 1;
    font-weight: 400;
}

.evt-type-trigger--selected .evt-type-trigger__label {
    font-weight: 500;
}

.evt-type-trigger__chevron {
    color: #bbb;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* =============================================
   Bottom Sheet Picker (shared dropdown style)
   ============================================= */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9000;
    animation: fadeInBackdrop 0.2s ease;
}

.bottom-sheet {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    width: 90%;
    max-width: 420px;
    background: var(--bg-color, #fff);
    border-radius: 16px;
    z-index: 9001;
    padding: 20px 0;
    animation: centerModalIn 0.22s ease;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .bottom-sheet {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        padding: 12px 0 env(safe-area-inset-bottom, 16px);
        animation: slideUpSheet 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    }

    .bottom-sheet-handle {
        display: block;
    }
}

.bottom-sheet-handle {
    display: none;
}

.bottom-sheet-title {
    font-family: 'Armata', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 12px;
    color: var(--text-color, #222);
    letter-spacing: 0.02em;
}

.bottom-sheet-list {
    list-style: none;
    margin: 0;
    padding: 0 4px 4px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.bottom-sheet-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 12px;
    margin: 2px 8px;
    transition: background 0.15s ease;
    position: relative;
}

    .bottom-sheet-item:active {
        background: rgba(218, 165, 32, 0.12);
        transform: scale(0.98);
    }

.bottom-sheet-item--active {
    background: rgba(218, 165, 32, 0.1);
}

.bottom-sheet-item__label {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--text-color, #222);
}

.bottom-sheet-item--active .bottom-sheet-item__label {
    font-weight: 600;
    color: darkgoldenrod;
}

.bottom-sheet-item__check {
    position: absolute;
    right: 20px;
    color: goldenrod;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bottom-sheet-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(218, 165, 32, 0.1);
    color: goldenrod;
    font-size: 1rem;
    flex-shrink: 0;
}

.bottom-sheet-item--active .bottom-sheet-item__icon {
    background: rgba(218, 165, 32, 0.22);
}

/* =============================================
   Custom Date-Time Picker (shared with MAUI)
   ============================================= */

.cdtp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cdtp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1rem 1rem;
    width: min(92vw, 360px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

.cdtp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cdtp-month-label {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.cdtp-nav-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #555;
    padding: 0 0.4rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

    .cdtp-nav-btn:disabled {
        color: #ccc;
        cursor: default;
    }

.cdtp-day-names-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.25rem;
}

.cdtp-dn {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
    padding: 0.15rem 0;
}

.cdtp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cdtp-cell {
    background: none;
    border: none;
    border-radius: 50%;
    aspect-ratio: 1;
    font-size: 0.82rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: unset;
}

    .cdtp-cell:hover:not(:disabled) {
        background: #f0f0f0;
        color: black;
    }

    .cdtp-cell.cdtp-other {
        color: #ccc;
    }

    .cdtp-cell.cdtp-today {
        color: #c8922a;
        font-weight: 700;
    }

    .cdtp-cell.cdtp-selected {
        background: #c8922a;
        color: black !important;
        font-weight: 700;
    }

    .cdtp-cell:disabled {
        opacity: 0.35;
        cursor: default;
    }

.cdtp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.cdtp-btn-cancel,
.cdtp-btn-back {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    touch-action: manipulation;
}

.cdtp-btn-next,
.cdtp-btn-confirm {
    background: #c8922a;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

    .cdtp-btn-next:disabled {
        opacity: 0.45;
        cursor: default;
    }

.cdtp-time-title {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #222;
    margin-bottom: 1rem;
}

.cdtp-time-display {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #c8922a;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.cdtp-colon {
    margin: 0 0.15rem;
}

.cdtp-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.cdtp-spin-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.cdtp-spin-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.3rem;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: unset;
}

    .cdtp-spin-btn:active {
        background: #e8e8e8;
    }

.cdtp-spin-val {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    min-width: 2.4rem;
    text-align: center;
}

.cdtp-spin-unit {
    font-size: 0.75rem;
    color: #888;
}

.cdtp-sep {
    font-size: 2rem;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 1rem;
}

.cdtp-trigger-btn {
    text-align: left;
    color: #333;
    background: #fff;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* #Help Page# */
.help-page {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 6rem;
    padding: 2rem 1.5rem 4rem;
}

.help-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.help-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.help-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
}

.help-section {
    margin-top: 3.5rem;
}

.help-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--focus-ring-color, #d4a017);
}

.help-section-intro {
    margin-bottom: 1.25rem;
    color: #555;
}

.help-contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.help-email {
    text-align: center;
}

.help-phone {
    text-align: center;
}

.help-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex: 0 0 auto;
    transition: box-shadow 0.2s;
}

    .help-contact-card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,0.1);
        color: inherit;
        text-decoration: none;
    }

.help-contact-icon {
    font-size: 1.6rem;
    color: var(--focus-ring-color, #d4a017);
    flex-shrink: 0;
}

.help-contact-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.1rem;
}

.help-contact-value {
    font-size: 1rem;
    font-weight: 600;
}

.help-social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-accordion .accordion-item {
    border-color: #e0e0e0;
    background-color: transparent;
}

.help-accordion .accordion-button {
    font-size: 1.05rem;
    font-weight: 500;
    background-color: transparent;
    color: inherit;
    box-shadow: none;
}

    .help-accordion .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .help-accordion .accordion-button:not(.collapsed) {
        background-color: transparent;
        color: inherit;
        box-shadow: none;
    }

        .help-accordion .accordion-button:not(.collapsed)::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23daa520'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

    .help-accordion .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

.help-accordion .accordion-body {
    font-size: 1rem;
    line-height: 1.7;
    background-color: transparent;
}

@media (max-width: 768px) {
    .help-page {
        padding: 1.5rem 1rem 3rem;
    }

    .help-title {
        font-size: 1.6rem;
    }

    .help-contact-cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .help-contact-card {
        width: 100%;
        justify-content: center;
        flex: 0 0 auto;
    }
}

/* #Settings toggle switch# */
.biometric-settings {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.setting-item {
    display: block;
}

.setting-info {
    flex: 1;
    min-width: 0;
}

    .setting-info h6 {
        margin: 0;
        padding: 0 0 4px 0;
        font-weight: 600;
        color: #595959;
    }

.setting-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Standalone toggle switch */
.biometric-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 3.2rem;
    height: 1.5rem;
    min-height: 1.5rem;
    border-radius: 1.5rem;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    outline: none;
}

    .biometric-switch::before {
        content: '';
        position: absolute;
        width: 1.1rem;
        height: 1.1rem;
        border-radius: 50%;
        background: #fff;
        top: 50%;
        left: 0.2rem;
        transform: translateY(-50%);
        transition: transform 0.2s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .biometric-switch:checked {
        background-color: goldenrod;
    }

        .biometric-switch:checked::before {
            transform: translate(1.7rem, -50%);
        }

    .biometric-switch:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* #Modal# */
.modal-title, .modal-body {
    color: black !important;
}

/* =====================================================
   DARK THEME — Web (BlazorWASM)
   ===================================================== */

/* CSS variable overrides */
.dark {
    --bg-color: #121212;
    --text-color: #ffffff;
    --focus-ring-color: #ffd700;
}

    /* Base / body */
    .dark body,
    .dark .page {
        background-color: #1e1e1e;
        color: white;
    }

    /* Toast */
    .dark .toast-modal {
        background: #1e1e1e;
    }

    .dark .toast-modal-text {
        color: #eee;
    }

    /* Footer */
    .dark .footer-class {
        background-color: #3b3b3b !important;
    }

    .dark .footer-text, .dark .theme-title, .dark .language-title {
        color: #fff;
    }

    /* Settings / theme icons */
    .dark .dark-theme-icon {
        color: #a0a0a0;
    }

    .dark .slider::before {
        background-color: grey;
    }

    .dark .setting-info h6, .dark .setting-info p {
        color: white !important;
    }

    /* Auth / login */
    .dark .age-container, .dark .age-card {
        background: #1e1e1e;
    }

    .dark .age-title, .dark .subtitle {
        color: white;
    }

    .dark .login-header, .dark .register-header, .dark .forgotpassword-header {
        color: #fff;
    }

    .dark .login-email-header {
        color: #fff;
    }

    .dark .formLabel {
        color: #fff;
    }

    .dark .forgotPassword-btn {
        color: #fff;
    }

        .dark .forgotPassword-btn:hover {
            color: darkgoldenrod;
            box-shadow: none !important;
        }

    .dark .alert-danger {
        background-color: #2D1A1A;
        border-left-color: #C0675A;
        color: #E8A09A;
    }

    .dark .alert-success {
        background-color: #152418;
        border-left-color: #5DBD79;
        color: #8FD8A8;
    }

    .dark .alert-info {
        background-color: #131D33;
        border-left-color: #6B8FD6;
        color: #9BB8F0;
    }

    .dark #email, .dark #password {
        background-color: #2a2a2a;
        color: white;
    }

    /* Navigation */
    .dark .btn-back {
        background-color: #2a2a2a;
        color: white;
    }

    .dark .responsive-nav {
        background-color: #3b3b3b;
        border-top-color: #555;
    }

    .dark .nav-links,
    .dark .nav-links:visited,
    .dark .nav-links:active,
    .dark .nav-links:focus,
    .dark .nav-links:focus-visible {
        color: #ccc !important;
    }

        .dark .nav-links.active,
        .dark .nav-links.active:visited,
        .dark .nav-links.active:focus,
        .dark .nav-links.active:active {
            color: goldenrod !important;
        }

    .dark .responsive-nav-inner-web i {
        color: #fff;
    }

    .dark .responsive-nav-web {
        background-color: #232728;
    }

    .dark .nav-title {
        color: #fff;
    }

    .dark .logo-subtitle {
        color: #d4b36a;
    }

    .dark .nav-header {
        background: #232728;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .dark .navbar-class {
        background-color: #232728;
    }

        .dark .navbar-class .nav-a {
            color: #fff;
        }

    /* Public home / banner */
    .dark .banner {
        color: #ededed;
    }

        .dark .banner h2 {
            color: white;
        }

    .dark .ph-hero-gradient {
        background: linear-gradient(to bottom, transparent, #121212);
    }

    .dark .ph-big {
        color: var(--focus-ring-color, #ffd700);
    }

    .dark .ph-small {
        color: #aaa;
    }

    /* Dashboard */
    .dark .db-hello {
        color: #fff;
    }

    .dark .db-subline {
        color: #999;
    }

    .dark .db-teaser {
        background: rgba(218, 165, 32, 0.06);
        border-color: rgba(218, 165, 32, 0.3);
    }

    .dark .db-teaser__text {
        color: #aaa;
    }

    /* Profile */
    .dark .profile-title, .dark .settings-title {
        color: #fff;
    }

    .dark .profile-details span {
        background: #2a2a2a;
        border-color: #444;
        color: #eee;
    }

    /* Locations */
    .dark .locations-teaser {
        background: rgba(218, 165, 32, 0.06);
        border-color: rgba(218, 165, 32, 0.3);
    }

    .dark .locations-teaser__text {
        color: #aaa;
    }

    .dark .radius-panel, .dark .location-card .card-body {
        background-color: #2a2a2a !important;
    }

    .dark .map-title, .dark .card-title-row {
        color: white;
    }

    /* Events / posts */
    .dark .featured-title, .dark .events-title, .dark .categories-title {
        color: #fff;
    }

    .dark .events-main h3 {
        color: white;
    }

    .dark .no-posts-message {
        color: white;
    }

    .dark .post-card {
        background-color: #2a2a2a;
    }

    .dark .post-card-title {
        color: #fff;
    }

    .dark .event-detail-location, .dark .post-created-by span, .dark .post-created-by {
        color: #cdcdcd;
    }

    .dark .event-detail-title, .dark .event-description, .dark .no-featured-events-message, .dark .no-events-message {
        color: white;
    }

    .dark .btn-msg-author {
        color: goldenrod;
    }

        .dark .btn-msg-author:hover {
            color: gold;
        }

    .dark .post-detail-title, .dark .post-description {
        color: white;
    }

    .dark .comment-form textarea.form-control {
        background-color: #2a2a2a;
        color: white;
    }

    .dark .custom-dropdown {
        background: #2a2a2a;
    }

        .dark .custom-dropdown.open {
            background-color: rgba(218, 165, 32, 0.15);
        }

    .dark .custom-dropdown-form.open {
        background-color: #2e2e2e;
        border-color: #777;
    }

    .dark .custom-dropdown-list {
        background: #2e2e2e;
        border-color: #444;
        color: #ddd;
    }

    .dark .custom-dropdown-item {
        color: #ddd;
    }

        .dark .custom-dropdown-item:hover {
            background-color: rgba(218, 165, 32, 0.15);
            color: goldenrod;
        }

    .dark .post-title {
        color: white;
    }

    .dark .reg-modal {
        background: #1e1e1e;
    }

    /* Inputs / forms */
    .dark ::placeholder {
        color: #a0a0a0;
    }

    /* Messaging */
    .dark .msg-header {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    .dark .msg-header-back:active {
        background: rgba(255,255,255,0.1);
    }

    .dark .msg-search-bar {
        background: rgba(255,255,255,0.09);
        color: #fff;
    }

        .dark .msg-search-bar:focus {
            background: rgba(255,255,255,0.13);
        }

    .dark .msg-conv-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
    }

    .dark .msg-conv-item:active {
        background: rgba(255,255,255,0.05);
    }

    .dark .msg-divider {
        background: rgba(255,255,255,0.07);
    }

    .dark .msg-messages-area::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
    }

    .dark .msg-date-sep-line {
        background: rgba(255,255,255,0.08);
    }

    .dark .msg-bubble.sent {
        background: linear-gradient(135deg, #b8890e, #d4a017);
    }

    .dark .msg-bubble.received {
        background: rgba(255,255,255,0.1);
    }

    .dark .msg-hover-btn:hover {
        background: rgba(255,255,255,0.1);
        color: #ccc;
    }

    .dark .msg-action-menu {
        background: #2a2a2a;
        box-shadow: 0 4px 20px rgba(0,0,0,0.42);
        border-color: rgba(255,255,255,0.08);
    }

    .dark .msg-action-btn:hover {
        background: rgba(255,255,255,0.06);
    }

    .dark .msg-action-sep {
        background: rgba(255,255,255,0.1);
    }

    .dark .msg-input-bar {
        border-top-color: rgba(255,255,255,0.07);
    }

    .dark .msg-input-wrap {
        background: rgba(255,255,255,0.09);
    }

    .dark .msg-modal-sheet {
        background: #1e1e1e;
    }

    .dark .msg-modal-handle {
        background: rgba(255,255,255,0.18);
    }

    .dark .msg-modal-search {
        background: rgba(255,255,255,0.09);
        color: #fff;
    }

    .dark .msg-user-result:active {
        background: rgba(255,255,255,0.06);
    }

    .dark .msg-compose-input {
        background: rgba(255,255,255,0.09);
        color: #fff;
    }

    .dark .msg-btn-cancel {
        background: rgba(255,255,255,0.1);
    }

    .dark .msg-search-wrap {
        border: none;
    }

    .dark .msg-textarea {
        color: #fff;
    }

    .dark .comment-box {
        background: #2a2a2a;
    }

    .dark .comment-body strong {
        color: darkgoldenrod;
    }

    .dark .comment-body p {
        color: white;
    }

    .dark .btn-report-comment {
        color: #6c757d !important;
    }

    /* Event type trigger */
    .dark .evt-type-trigger {
        background: #2a2a2a;
        border-color: #444;
        color: #777;
    }

    .dark .evt-type-trigger--selected {
        color: #f0f0f0;
        border-color: goldenrod;
    }

    /* Bottom sheet */
    .dark .bottom-sheet {
        background: #1e1e1e;
    }

    .dark .bottom-sheet-handle {
        background: rgba(255, 255, 255, 0.18);
    }

    .dark .bottom-sheet-title {
        color: #f0f0f0;
    }

    .dark .bottom-sheet-item--active {
        background: rgba(218, 165, 32, 0.14);
    }

    .dark .bottom-sheet-item__label {
        color: #e8e8e8;
    }

    .dark .bottom-sheet-item--active .bottom-sheet-item__label {
        color: goldenrod;
    }

    /* Date/time picker */
    .dark .cdtp-modal {
        background: #1e1e1e;
        color: #f0f0f0;
    }

    .dark .cdtp-month-label,
    .dark .cdtp-cell,
    .dark .cdtp-time-display,
    .dark .cdtp-spin-val,
    .dark .cdtp-time-title {
        color: #f0f0f0;
    }

        .dark .cdtp-cell.cdtp-other {
            color: #555;
        }

    .dark .cdtp-spin-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #ddd;
    }

    .dark .cdtp-btn-cancel,
    .dark .cdtp-btn-back {
        border-color: #444;
        color: #bbb;
    }

    .dark .cdtp-trigger-btn {
        background: var(--input-bg, #2a2a2a);
        color: #f0f0f0;
    }

    /* Help page */
    .dark .help-subtitle {
        color: #aaa;
    }

    .dark .help-section-intro {
        color: #bbb;
    }

    .dark .help-contact-card {
        border-color: #333;
    }

        .dark .help-contact-card:hover {
            box-shadow: 0 4px 14px rgba(255,255,255,0.05);
        }

    .dark .help-contact-label {
        color: #777;
    }

    .dark .help-accordion .accordion-item {
        border-color: #333;
    }

    .dark .help-accordion .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .dark .help-accordion .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23daa520'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    /* Biometric settings */
    .dark .biometric-settings {
        background: #2a2a2a;
    }

    .dark .biometric-switch {
        background-color: #555;
    }

        .dark .biometric-switch:checked {
            background-color: darkgoldenrod;
        }

    /* Post / Event create forms */
    .dark .newPostWrapper,
    .dark .newEventWrapper {
        background-color: #2a2a2a;
        color: white;
    }

        .dark .newPostWrapper input.form-control,
        .dark .newPostWrapper textarea.form-control,
        .dark .newPostWrapper select.form-control,
        .dark .newEventWrapper input.form-control,
        .dark .newEventWrapper textarea.form-control,
        .dark .newEventWrapper select.form-control {
            background-color: #2a2a2a;
            color: white;
            border-color: #444;
        }

        .dark .newPostWrapper label,
        .dark .newEventWrapper label {
            color: #e0e0e0;
        }

        .dark .newPostWrapper button[type="submit"],
        .dark .newEventWrapper button[type="submit"] {
            background-color: goldenrod !important;
            color: #fff !important;
            border-color: transparent !important;
        }

    /* User nav submenu (expanded dropdown) */
    .dark .submenu-wrapper {
        background-color: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    }

    .dark .submenu-item {
        color: white;
    }

        .dark .submenu-item:hover {
            background-color: #454545;
        }
