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

/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bjd-grad: linear-gradient(135deg, #6a8dff 0%, #a06bff 55%, #d16bff 100%);
    --bjd-grad-soft: linear-gradient(135deg, #f5f4fd 0%, #fcf5ff 100%);
    --bjd-primary: #6c5ce7;
    --bjd-text: #242938;
    --bjd-radius: 16px;
    --bjd-shadow: 0 10px 30px rgba(60, 50, 130, 0.10);
    --bjd-shadow-sm: 0 4px 14px rgba(60, 50, 130, 0.08);
    /* Theme-derived tones (drive the whole modern look) */
    --s:    #ffffff;
    --tx:   #242938;
    --mut:  #8d9098;
    --bd:   #e3e3e5;
    --pa:   #f4f4f5;
    --pr:   #6c5ce7;
    --pill: #e7e5fb;
    --page-bg: #f6f7f9;
}

body {
    font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #f6f0ff 45%, #fdeffb 100%) no-repeat center center fixed;
    background-size: cover;
    color: #242938;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .doll-name, .username { font-family: 'Poppins', sans-serif; }

.container {
    max-width: 1500px;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.container.custom-container {
    max-width: 1500px;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.signup-error {
    color: rgb(230, 157, 157);
    margin-top: 10px;
}

#signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#signup-form input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.button-group.custom-button-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

.button-group.custom-button-group button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #6c5ce7;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-group.custom-button-group button:hover {
    background-color: #5649b8;
}

.site-header, .site-footer {
    background-color: transparent;
    border-radius: 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

.button-group button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #6c5ce7;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-group button:hover {
    background-color: #5649b8;
}

.site-header, .site-footer {
    background-color: transparent;
    border-radius: 10px;
}

.site-footer {
    margin-top: 20px;
    
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.logo img {
    height: 50px;
}

a {
    position: relative;
    text-decoration: none;
    color: #6c5ce7;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #897dec !important;
}

a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #6c5ce7;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #E5D0CC;
    font-weight: bold;
}

nav ul li a.active {
    font-size: 1.2em;
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
}

.search-bar input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 252px;
}

.user-icon img {
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.login-form input {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 200px;
}

.button-group button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #6c5ce7;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-group button:hover {
    background-color: #5649b8;
}

.banner {
    height: 300px;
    flex: 2;
}

.banner-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
}

.sidebar {
    flex: 1;
    padding: 10px;
    background-color: #f4f6fc;
    border-right: 1px solid #ddd;
    max-width: 252px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #242938;
    font-weight: bold;
}

.dropdown-toggle::after {
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.dropdown-toggle {
    background-color: #ffffff !important; 
    color: #E5D0CC !important; 
    border: none !important; 
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background-color: #cccccc !important; 
    color: #E5D0CC !important;
}

.dropdown-menu {
    background-color: #ffffff !important; 
    border: none !important; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item {
    color: #E5D0CC !important; 
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #cccccc !important; 
    color: #E5D0CC !important; 
}







/* My Dolls Dropdown Styling */
.dropdown2 .dropdown-toggle::after {
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.dropdown2 .dropdown-toggle {
    background-color: #ffffff !important; 
    color: #E5D0CC !important; 
    border: none !important; 
}

.dropdown2 .dropdown-toggle:hover,
.dropdown2 .dropdown-toggle:focus {
    background-color: #ffffff !important; 
    color: #E5D0CC !important;
}

.dropdown2 .dropdown-menu {
    background-color: none;
    border: none !important; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.dropdown2 .dropdown-item {
    color: #E5D0CC !important; 
}

.dropdown2 .dropdown-item:hover,
.dropdown2 .dropdown-item:focus {
    background-color: #ffffff !important; 
    color: #E5D0CC !important; 
}









.user-icon img {
    width: 130px;
    height: 130px; 
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px; 
    object-fit: cover; 
}

.user-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-area .dropdown {
    width: 90%; 
    text-align: center; 
}

.user-area .dropdown-toggle {
    width: 90%; 
    border-radius: 4px; 
}

.user-area .dropdown-menu {
    width: 90%; 
    text-align: left; 
}

.content {
    flex: 3;
    padding: 20px;
    background-color: #f4f6fc;
    color: #242938;
    min-width: 300px;
}

.login-error {
    display: none;
    color: #793a3a;
    background-color: rgba(216, 159, 159, 0.8);
    margin: 0 !important;
    text-align: center;
    font-weight: bold;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -30px;
    z-index: 30;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(87, 48, 48, 0.16);
}

.forgot-password-link {
    align-self: flex-end;
    width: min(100%, 200px);
    margin: -2px 0 0;
    color: var(--pr);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.forgot-password-link:hover,
.forgot-password-link:focus {
    color: var(--pr2);
    text-decoration: underline;
}

.site-footer {
    <!-- background: #ffffff; -->
    padding: 20px;
    text-align: center;
    <!-- border-radius: 0 0 8px 8px; -->
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}



.site-footer  {
    color: #897dec;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 20px 10 10 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer ul li {
    margin: 20 15px;
}

.site-footer ul li.footer-discord-link {
    flex-basis: 100%;
    margin-top: 10px;
}

.site-footer ul li a {
    color: #40378a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.site-footer ul li a:hover {
    color: #6c5ce7;
}


<!-- footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    
}

footer ul li {
    margin: 0 15px;
    margin-bottom: 20px;
}

footer ul li a {
    text-decoration: none;
    color: #a19c92;
    font-weight: bold;
}

.social-media a {
    margin: 0 10px;
    align-items: center !important;
    text-align: center !important;
}

.social-media img {
    height: 20px;

    align-items: center !important;
    text-align: center !important;
} -->

.form-horizontal .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-horizontal .control-label {
    flex: 0 0 150px;
    max-width: 150px;
    margin-bottom: 0;
    padding-top: 7px;
    text-align: right;
}

.form-horizontal .col-sm-10 {
    flex: 1;
}

.form-horizontal .col-sm-offset-2 {
    margin-left: 150px;
}

#settings-form .btn-primary {
    margin-top: 15px;
}

#settings-form .btn-danger {
    margin-top: 15px;
}

#avatar-preview {
    margin-top: 10px;
}

.profile-header {
    position: relative;
    width: 100%;
    height: 100px; /* Adjust the height as needed */
    <!-- overflow: hidden; -->
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-cover-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.5;
}

.profile-details {
    position: relative;
    text-align: center;
    margin-top: 75px; /* Adjust this value based on the height of the cover photo and profile picture */
}

.user-picture {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
}

.user-picture img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.username {
    top: 50px !important;
    margin-top: 50px !important;
    font-size: 2.5em;
    font-weight: bold;
}

.edit-profile-btn {
    position: absolute;
    top: 0px;
    right: 0px;
}

.profile-content {
    margin-top: 50px;
}

.profile-content {
    margin-top: 20px;
}

.form-horizontal .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-horizontal .control-label {
    flex: 0 0 150px;
    max-width: 150px;
    margin-bottom: 0;
    padding-top: 7px;
    text-align: right;
}

.form-horizontal .col-sm-10 {
    flex: 1;
}

.form-horizontal .col-sm-offset-2 {
    margin-left: 150px;
}

#cover-photo-form .btn-primary {
    margin-top: 15px;
}

.new-post-disabled,
.comment-disabled {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: #888;
    margin-bottom: 20px;
}

.new-post-disabled p,
.comment-disabled p {
    margin: 0;
    font-size: 1em;
}

.comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-username {
    font-weight: bold;
    color: #6c5ce7;
    text-decoration: none;
}



.speech-bubble {
    <!-- background-color: #f4f6fc; -->
    border-radius: 10px;
    padding: 10px;
    margin-left: 10px;
    position: relative;
    <!-- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); -->
}

.ql-toolbar {
    background-color: #BDBDBD;
    font-family: Arial, sans-serif;
}

.new-post-disabled,
.comment-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.new-post {
    margin-bottom: 20px;
}

.new-post textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.new-post input[type="file"],
.new-post select {
    margin-bottom: 10px;
}

.new-post .attachments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.new-post .attachment-field {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0;
    color: var(--tx);
    font-weight: 700;
}

.new-post .attachment-field span {
    white-space: nowrap;
}

.new-post .attachment-field input[type="file"] {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.new-post .composer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.new-post .composer-actions select {
    margin: 0;
}

.new-post .composer-actions button {
    margin-left: auto;
}

.new-post button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.new-post button:hover {
    background-color: #5649b8;
}

.feed {
    margin-top: 20px;
}

.post {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post img,
.post video {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 5px;
}

.post small {
    display: block;
    margin-top: 10px;
    color: #888;
}

.post-interactions {
    margin-top: 10px;
    color: #555;
}

.post-interactions span {
    margin-right: 15px;
}

.comments {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.comment {
    margin-bottom: 10px;
}

.comment small {
    display: block;
    color: #888;
}

.comment form {
    display: flex;
    flex-direction: column;
}

.comment textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.comment button {
    align-self: flex-end;
    padding: 5px 10px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment button:hover {
    background-color: #5649b8;
}

.comment small {
    display: block;
    color: #888;
}

.comment form {
    display: flex;
    flex-direction: column;
}

.comment textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.comment button {
    align-self: flex-end;
    padding: 5px 10px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment button:hover {
    background-color: #5649b8;
}



.about-section {
        background: #ffffff !important;
        color: #242938 !important;
        padding: 20px;
        border-radius: 8px;
    }

    .policy-section, .guidelines-section {
    padding: 20px;
    background: #ffffff !important;
    border-radius: 8px;
    margin-bottom: 20px;
}


.about-section h1, .about-section h2 {
        text-align: center;
        color: #242938 !important;
    }

.about-section p {
        text-align: justify;
        color: #242938 !important;
    }





    
    .contact-section {
        background: #c3c4c9;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .contact-section h1, .contact-section p {
        text-align: center;
        color: #242938;
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form label {
        display: block;
        margin-bottom: 5px;
        color: #242938;
    }

    .contact-form input, .contact-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #ffffff;
        color: #242938;
    }

    .contact-form button {
        padding: 10px 20px;
        background-color: #6c5ce7;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .contact-form button:hover {
        background-color: #5649b8;
    }

















    
/* User info */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;

    width: 100%;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin-bottom: 10px;
}

.user-info-item {
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-right: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.user-info-item:last-child {
    /* margin-right: 0; */
}

.user-info-item.bio-item {
    width: 100%;
    /* max-width: 800px; */
}

.user-info-item.social-media-item {
    width: 100%;
    /* max-width: 800px; */
    margin-top: 10px;

}

.user-info-item .label {
    font-weight: bold;
    color: #1c202c;
    display: block;
    margin-bottom: 5px;
}

.user-info-item .value,
.user-info-item .bio-content {
    color: #242938;
}



.social-media-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.social-media-links li {
    margin: 0;
    font-size: 0;
}

.social-media-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(120, 128, 145, .28);
    border-radius: 10px;
    background: #ffffff;
    color: #242938 !important;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    font-weight: bold;
}

.social-media-links a::before {
    display: none !important;
}

.social-media-links a::after {
    content: "↗";
    flex: 0 0 auto;
    color: #6c5ce7;
    font-size: 13px;
    line-height: 1;
}

.social-media-links a:hover {
    background: #f7f8fc;
    border-color: #6c5ce7;
    color: #111827 !important;
    text-decoration: none;
}












.doll-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    color: #242938 !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-in-out;
}

.doll-name {
    margin: 0;
    font-size: 2.5em;
    color: #242938;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.doll-additional-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    color: #242938;
}

.doll-additional-info p {
    margin: 0;
    font-size: 1.1em;
    padding: 5px 10px;
    background: var(--pill, #f4f6fc);
    color: var(--tx) !important;
    border: 1px solid var(--bd);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doll-additional-info p a {
    color: var(--tx) !important;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doll-details h3 {
    font-size: 1.8em;
    color: var(--tx) !important;
    margin-top: 20px;
    border-bottom: 2px solid var(--bd);
    padding-bottom: 10px;
    text-align: center;
}

.doll-details p {
    font-size: 1.2em;
    color: #242938;
    line-height: 1.6;
    padding: 10px;
    background: #f4f6fc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
}

.doll-details p:hover {
    background: #f2f2f2;
}






.gallery-item {
    <!-- background-color: #c3c4c9; -->
    border: 1px solid #f6f8fd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
    width: 100%;
    margin-top: 20px;
    margin-right: 30px;
    color: #242938;

}



.gallery-item-info {
    padding: 5px;
    background-color: #f4f6fc;
    text-align: center;
    height: auto; /* Remove fixed height */
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0; /* Ensure info does not shrink */
    text-decoration: none !important;
}

.gallery-item-stats {
    padding: 5px;
    background-color: #f4f6fc;
    /* display: flex;*/
    justify-content: space-between; 
    height: auto; /* Remove fixed height */

    align-items: center;
    font-size: 14px;
    color: #242938;
    flex-shrink: 0; /* Ensure stats do not shrink */
    text-decoration: none !important;
    border: 1px solid #ddd;
    border-radius: 10px;
}




.doll-card {
    background-color: #c3c4c9;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
    width: 100%;
    margin-top: 20px;
    margin-right: 30px;
    color: #242938;


}

/* Doll thumbnails: uniform square-ish crop instead of full-height images */
.doll-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.dolls-name {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #242938;
    text-align: center;
    background-color: #c3c4c9;
    text-decoration: none !important;

}








.preview-thumbnail .form-check {
    position: absolute;
    bottom: 5px;
    left: 5px;
    <!-- background: rgba(255, 255, 255, 0.7); -->
    background: #f4f6fc !important;
     
    padding: 2px 5px;
    border-radius: 3px;
}

.uploading-text {
    font-size: 16px;
    color: #242938 !important;
}

.upload-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f6fc;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
}

.upload-placeholder {
    text-align: center;
    color: #242938;
    font-size: 1.2em;
}

.modal-content {
    border-radius: 10px;
    color: #242938 !important;
    background: #f4f6fc !important;
}

.form-check {
    position: absolute;
    bottom: 5px;
    left: 5px;
    color: #242938 !important;
    background: #ffffff !important;
    padding: 2px 5px;
    border-radius: 3px;
}

.form-check2 {
    position: absolute;
    bottom: 0px;
    left: 20px;
    color: #242938 !important;
    background: #ffffff !important;
    padding: 2px 5px;
    border-radius: 3px;
}


.preview-thumbnail.uploading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e5e5;
    border-radius: 5px;
    z-index: 1;
}

.preview-thumbnail.uploading::after {
    content: 'Uploading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #242938 !important;
    z-index: 2;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.uploading-text {
    font-size: 16px;
    color: #242938 !important;
}

.pagination .page-link {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    background-color: #e5e5e5;

}

.pagination .page-link.active {
    background-color: #f5f7fc;
    color: #242938 !important;
    border-color: #e5e5e5;
}



.share-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #f4f6fc !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 1000;
}


.share-option {
    display: block;
    padding: 10px;
    color: #242938 !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.share-option:hover {
    background-color: #f5f7fc;
}





.comment-text {
    margin-top: 5px;
    width: 100% !important;/* Make the bubble take the full width */
    color: #242938;

}


.comment {
    display: flex;
    align-items: flex-start;
    border-radius: 10px;

    margin-bottom: 10px;
    width: 100% !important;/* Make the bubble take the full width */
    background-color: #dbdde2;



}





.comment-form-fixed {
    position: sticky;
    bottom: 0;
    background: #f4f6fc !important;
    padding: 10px;
    border-top: 1px solid #ddd;
    width: 100%;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    color: #242938 !important;
    background: #f4f6fc !important;

}




.comment-bubble {
    background-color: #dbdde2;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100% !important;/* Make the bubble take the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

.comment-timestamp {
    font-size: 12px;
    color: #242938 !important;
    margin-top: 5px;
}

.description-section {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #e5e5e5;
    color: #242938 !important;

}



.likes-dropdown {
    position: absolute;
    top: 40px; /* Adjusted to be below the button */
    left: 0;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background: #dbdde2;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
}

.likes-dropdown .like-item a {
    text-decoration: none;
    color: #6c5ce7 !important;
}

.likes {
    cursor: pointer;
    color: #6c5ce7 !important;
    display: inline-flex;
    align-items: center;
}

.likes:hover {
    color: #7b6ce9;
}


.likes-dropdown .like-item a:hover {
    text-decoration: none !important;
}















.friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #dbdde2;
    color: #242938 !important;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}









.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff !important;
    color: #242938 !important;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 300px; /* Set a fixed height for the review cards */
    width: 100%; /* Ensure the card takes up the full width of the container */
}









/* Reply Form */
.reply-form textarea {
    background-color: #f4f6fc !important;
    color: var(--text-color);
    border: 1px solid #444;
}

.reply-form button {
    background-color: #6c5ce7 !important;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.reply-form button:hover {
    background-color: #ffffff !important;
}



/* Reply List */
.reply-item {
    background-color: #f4f6fc;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #555;
}

.reply-item strong {
    color: #6c5ce7 !important;
}
.reply-item small {
    color: #242938 !important;
}


.thread-post {
    background-color: #f4f6fc !important;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #444;
}

/* Username clickable link */
.thread-post a {
    color: #6c5ce7 !important;
    font-weight: bold;
    text-decoration: none;
}
























.search-container input[type="text"] {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 5px;
    margin-right: 10px;
    background-color: #f4f6fc !important;
    color: #242938 !important;
}

.search-container button {
    background-color: #6c5ce7 !important;
    border: none;
    color: #242938 !important;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Back to Community Button */
.back-to-community {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #dbdde2;
    color: #242938 !important;
    text-decoration: none;
    border-radius: 5px;
}

.back-to-community:hover {
    background-color: #ffffff !important;
}

.thread-list ul li {
    background-color: #f4f6fc !important;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.thread-list ul li:hover {
    background-color: #f4f6fc !important;
}

.thread-list ul li a {
    color: #6c5ce7 !important;
    font-weight: bold;
    text-decoration: none;
}


.thread-list ul li .meta {
    color: #242938 !important;
    font-size: 14px;
    margin-top: 5px;
}

.create-thread-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #dbdde2;
    color: #242938 !important;
    text-decoration: none;
    border-radius: 5px;
}

.create-thread-btn:hover {
    background-color: #ffffff !important;
}


































.subforum {
        margin-top: 10px;
        border: 1px solid #eaeaea;
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Subforum List */
    .subforum ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .forum-section h2 {
        background-color: #dbdde2;
        color: #242938 !important;
        padding: 10px 15px;
        border-left: 5px solid #ff6f61;
        margin-top: 30px;
        font-size: 22px;
        font-weight: bold;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .subforum ul li {
        background-color: #f4f6fc !important;
        padding: 15px;
        border-bottom: 1px solid #eaeaea;
        transition: all 0.2s ease-in-out;
        display: flex;
        justify-content: space-between;
    }

    .subforum ul li a {
        text-decoration: none;
        font-size: 16px;
        color: #7b6ce9;
        font-weight: bold;
        display: flex;
        align-items: center;
    }

    .subforum ul li p {
        margin: 5px 0;
        font-size: 14px;
        color: #242938 !important;
        flex-grow: 1;
        padding-left: 10px;
    }

    .subforum ul li:hover {
        background-color: #f9f9f9;
        cursor: pointer;
    }

    /* Add right-side information, like posts and last post details */
    .subforum ul li .info {
        text-align: right;
        font-size: 12px;
        color: #242938 !important;
    }

    /* Forum Stats */
    .subforum ul li .info .posts-count {
        font-weight: bold;
        color: #242938 !important;
    }

    /* Hover Effect on Links */
    .subforum ul li a:hover {
        color: #242938 !important;
    }

    /* Chat Box */
#chat-box {
    background-color: #f4f6fc !important;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    height: 400px;
    overflow-y: scroll;
    color: #242938 !important;
}

#chat-box p {
    margin: 10px 0;
    padding: 5px;
    font-size: 14px;
    color: #242938 !important;
}

#chat-box p strong {
    font-size: 16px;
    color: #242938 !important;
    cursor: pointer;
}

#chat-box p small {
    color: #242938 !important;
    font-size: 12px;
}

/* Username hover effect */
#chat-box p strong:hover {
    text-decoration: underline;
    color: #7b6ce9;
}

#chat-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f4f6fc !important;
    color: #242938 !important;
}

#chat-form .btn {
    background-color: #f4f6fc !important;
    border: none;
    color: #242938 !important;
    padding: 10px 20px;
    cursor: pointer;
}

#chat-form .btn:hover {
    background-color: #f4f6fc !important;
}



































.modal-content {
    background-color: #f4f6fc !important;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    margin: auto; /* Centering fix */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #7b6ce9;
    cursor: pointer;
}

.close:hover {
    color: #6c5ce7 !important;
}


.modal-content h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #242938 !important;
}

.modal-content .profile-picture {
    border-radius: 50%;
    border: 5px solid #007bff;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.modal-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #242938 !important;
    margin-bottom: 25px;
    text-transform: capitalize;
}

/* QR Code Styling */
.card-preview #qrcode img {
    border: 8px solid #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    background: #f5f7fc;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Download Button */
#downloadCardBtn {
    background-color: #6152cf;
    color: #242938 !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    transition: background-color 0.3s ease;
}

#downloadCardBtn:hover {
    background-color: #7b6ce9;
}



























/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-area {
        max-width: 100%;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .search-bar input {
        width: 100%;
    }

    .user-icon img {
        height: 60px;
    }

    .login-signup button {
        padding: 8px 16px;
    }

    .banner {
        height: 200px;
    }

    .sidebar ul li {
        margin: 5px 0;
    }

    .content {
        padding: 10px;
    }

    footer ul {
        flex-direction: column;
    }

    footer ul li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .user-icon img {
        height: 40px;
    }

    .login-signup button {
        padding: 6px 12px;
        margin: 3px;
    }

    .banner {
        height: 150px;
    }

    .main-content {
        padding: 10px 5px;
    }

    .content {
        padding: 5px;
    }
}

/* =====================================================================
   DOLLVALE — MODERN REVAMP LAYER  (loaded last, so it wins)
   ===================================================================== */

/* ---- Shell & containers ---- */
.container,
.container.custom-container {
    max-width: 1300px;
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: var(--bjd-shadow);
    overflow: hidden;
}

/* Kill the dated animated underline on every link */
a::before { display: none !important; }
a { font-weight: 600; transition: color .2s ease, background .2s ease, transform .2s ease; }

/* ---- Top navigation ---- */
.navbar,
.navbar.navbar-custom {
    background: #ffffff;
    border-radius: 0;
    padding: 14px 26px;
    box-shadow: 0 2px 14px rgba(60, 50, 130, 0.06);
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 16px;
}
nav ul { gap: 4px; align-items: center; }
nav ul li { margin: 0 2px; }
nav ul li a,
nav ul li a.nav-link {
    color: #3a3f52 !important;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    transition: all .2s ease;
}
nav ul li a:hover,
nav ul li a.nav-link:hover {
    color: #6a3dff !important;
    background: #f0ecff;
}
nav ul li a.active,
nav ul li a.nav-link.active {
    color: #ffffff !important;
    background: var(--bjd-grad);
    border-bottom: none;
    font-size: 1em;
    box-shadow: 0 6px 16px rgba(140, 90, 255, .35);
}

/* Search box */
.search-bar input,
.search-container input[type="text"] {
    padding: 10px 18px !important;
    border: 1px solid #e6e3f5 !important;
    border-radius: 999px !important;
    background: #f6f5ff !important;
    color: #333 !important;
    outline: none;
    min-width: 220px;
}
.search-bar input:focus { border-color: #a06bff !important; background: #fff !important; }

/* ---- Buttons ---- */
.btn-primary,
.button-group button,
.new-post button,
.comment button,
.contact-form button,
.create-thread-btn,
.reply-form button,
#chat-form .btn {
    background: var(--bjd-grad) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(140, 90, 255, .28) !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
.btn-primary:hover,
.button-group button:hover,
.new-post button:hover,
.comment button:hover,
.contact-form button:hover,
.create-thread-btn:hover,
.reply-form button:hover,
#chat-form .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(140, 90, 255, .38) !important;
    color: #fff !important;
}
.btn-secondary {
    background: #f0ecff !important;
    color: #6a3dff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
}
.btn-secondary:hover { background: #e5dcff !important; color: #5a2ee0 !important; }
.btn-danger { border-radius: 999px !important; }

/* ---- User area dropdowns (fix light-on-white text) ---- */
.dropdown-toggle,
.dropdown2 .dropdown-toggle {
    background: #f5f3ff !important;
    color: #4a3f6b !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.dropdown2 .dropdown-toggle:hover,
.dropdown2 .dropdown-toggle:focus {
    background: #ece7ff !important;
    color: #6a3dff !important;
}
.dropdown-menu,
.dropdown2 .dropdown-menu {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(60,50,130,.16) !important;
    padding: 8px !important;
}
.dropdown-item,
.dropdown2 .dropdown-item {
    color: #3a3f52 !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    font-weight: 600 !important;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown2 .dropdown-item:hover,
.dropdown2 .dropdown-item:focus {
    background: #f0ecff !important;
    color: #6a3dff !important;
}
.user-icon img { border: 3px solid #fff; box-shadow: 0 6px 18px rgba(120,90,220,.25); }

/* ---- Banner ---- */
.banner-image img { border-radius: 18px; box-shadow: var(--bjd-shadow-sm); }

/* ---- Content & sidebar ---- */
.content { background: #ffffff; border-radius: 0; }
.sidebar {
    background: var(--bjd-grad-soft);
    border-right: none;
    border-radius: 0;
    padding: 16px 12px;
}
.sidebar ul li { margin: 4px 0; }
.sidebar ul li a,
.sidebar .nav-link {
    display: block;
    color: #4a3f6b !important;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sidebar ul li a:hover,
.sidebar .nav-link:hover {
    color: #6a3dff !important;
    background: #ece7ff;
}
.sidebar .nav-link.active {
    color: #ffffff !important;
    background: var(--bjd-grad);
    box-shadow: 0 6px 16px rgba(140, 90, 255, .35);
}
.sidebar .nav-link.active::before { content: none; }

/* ---- Cards (dolls, gallery, friends, reviews) ---- */
.doll-card, .gallery-item, .friend-card, .review-card {
    background: #ffffff !important;
    border: 1px solid #eee7fb !important;
    border-radius: 18px !important;
    box-shadow: var(--bjd-shadow-sm) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
.doll-card:hover, .gallery-item:hover, .friend-card:hover, .review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(120,90,220,.20) !important;
}
.dolls-name { background: transparent !important; color: #2b2b3d !important; }

/* =====================================================================
   FORUM / COMMUNITY — bright & interactive
   ===================================================================== */
.container h1 { font-weight: 800; }

.forum-section { margin-top: 26px; }
.forum-section h2 {
    background: var(--bjd-grad) !important;
    color: #ffffff !important;
    padding: 14px 22px !important;
    border-left: none !important;
    border-radius: 16px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: .3px;
    box-shadow: 0 8px 20px rgba(140,90,255,.28) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.forum-section h2::before { content: "💬"; font-size: 20px; }

.subforum {
    margin-top: 14px;
    border: none !important;
    border-radius: 18px !important;
    background: #ffffff;
    box-shadow: var(--bjd-shadow-sm) !important;
    overflow: hidden;
}
.subforum ul li {
    background: #ffffff !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid #f0edf9 !important;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    border-left: 4px solid transparent;
}
.subforum ul li:last-child { border-bottom: none !important; }
.subforum ul li:hover {
    background: linear-gradient(90deg, #f6f2ff 0%, #ffffff 60%) !important;
    border-left: 4px solid #a06bff;
    transform: translateX(3px);
    cursor: pointer;
}
.subforum ul li a {
    font-size: 17px !important;
    color: #2b2540 !important;
    font-weight: 800 !important;
}
.subforum ul li:hover a { color: #6a3dff !important; }
.subforum ul li p {
    color: #7b7690 !important;
    font-size: 14px !important;
    font-weight: 600;
}
.subforum ul li .info {
    text-align: right;
    font-size: 12px;
    color: #8a85a0 !important;
    white-space: nowrap;
}
.subforum ul li .info .posts-count {
    display: inline-block;
    background: #f0ecff;
    color: #6a3dff !important;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 4px;
}

/* Thread list */
.thread-list ul li {
    background: #ffffff !important;
    border: 1px solid #eee7fb;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    box-shadow: var(--bjd-shadow-sm);
}
.thread-list ul li:hover { background: #f8f5ff !important; transform: translateY(-2px); }
.thread-list ul li a { color: #2b2540 !important; font-weight: 800; }
.thread-list ul li a:hover { color: #6a3dff !important; }
.thread-list ul li .meta { color: #8a85a0 !important; }

.back-to-community {
    background: #f0ecff !important;
    color: #6a3dff !important;
    border-radius: 999px !important;
    font-weight: 700;
    padding: 9px 18px !important;
}
.back-to-community:hover { background: #e5dcff !important; }

.thread-post, .reply-item {
    background: #ffffff !important;
    border: 1px solid #eee7fb !important;
    border-radius: 16px !important;
    box-shadow: var(--bjd-shadow-sm);
}
.thread-post a, .reply-item strong { color: #6a3dff !important; }

/* Community chat */
#chat-box {
    background: var(--bjd-grad-soft) !important;
    border: 1px solid #eee7fb !important;
    border-radius: 18px !important;
    color: #33304a !important;
}
#chat-box p {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 14px !important;
    box-shadow: 0 2px 8px rgba(60,50,130,.05);
}
#chat-box p strong { color: #6a3dff !important; }
#chat-form textarea {
    border-radius: 14px !important;
    border: 1px solid #e6e3f5 !important;
    background: #fff !important;
    color: #33304a !important;
}

/* Forms: friendly rounded inputs everywhere */
.form-control,
.new-post textarea,
.contact-form input,
.contact-form textarea,
.login-form input,
#signup-form input {
    border-radius: 12px !important;
    border: 1px solid #e6e3f5 !important;
}
.form-control:focus { border-color: #a06bff !important; box-shadow: 0 0 0 3px rgba(160,107,255,.15) !important; }

/* Footer */
.site-footer { box-shadow: none; margin-top: 26px; }
.site-footer ul li a { color: #6a3dff !important; font-weight: 700; }
.site-footer ul li a:hover { color: #a06bff !important; }

/* Verify alert softer */
.alert-warning { border-radius: 14px; }

/* =====================================================================
   THEME ADAPTATION — recolour the modern look from the active theme.
   Gradient accents (buttons, active pills, section headers) stay constant.
   ===================================================================== */
body {
    background: linear-gradient(135deg, #f5f4fd 0%, #fcf5ff 55%, #faf0ff 100%) fixed !important;
    color: var(--tx);
}

/* Surfaces (body-prefixed so they outrank each page's inline <style>) */
body .container, body .container.custom-container,
body .navbar, body .navbar.navbar-custom,
body .content,
body .doll-card, body .gallery-item, body .friend-card, body .review-card,
body .post, body .thread-post, body .reply-item,
body .thread-list ul li, body .subforum, body .subforum ul li,
body .new-post, body #chat-box p,
body #signup-form, body #settings-form, body #display-settings-form, body .settings-panel,
body .user-info-item, body .contrib-card, body .browse-content .doll-card {
    background: var(--s) !important;
    color: var(--tx) !important;
    border-color: var(--bd) !important;
}
body #chat-box { background: var(--bjd-grad-soft) !important; border-color: var(--bd) !important; }

/* Headings + primary text follow the theme */
h1, h2, h3, h4, h5, .username, .doll-name { color: var(--tx) !important; }
nav ul li a, nav ul li a.nav-link,
.sidebar .nav-link, .sidebar ul li a { color: var(--tx) !important; }

/* Muted / secondary text */
.post small, .subforum ul li p, .dolls-owner, .browse-count, .browse-subtitle,
.panel-sub, .settings-soon p, .contrib-desc, .comment-timestamp,
.speech-bubble small, .verify-redirect, small { color: var(--mut) !important; }

/* Form labels — the `body` prefix raises specificity so these beat the
   hardcoded colours in each page's inline <style>, letting them follow the theme. */
body #settings-form .control-label,
body #settings-form label,
body #signup-form label,
body #display-settings-form .control-label,
body .settings-panel label,
body .user-info-item .label,
body .attachments label,
body form label { color: var(--tx) !important; }

/* Page-level headings/titles with hardcoded dark colours — follow the theme text colour */
body .settings-soon h3, body .contrib-title,
body .username, body .doll-name, body .dolls-name,
body .post h2 a, body .subforum ul li a, body .thread-list ul li a,
body .user-info-item .value, body .user-info-item .bio-content,
body .settings-panel h3 { color: var(--tx) !important; }

/* Inputs adapt (slightly offset from the surface) */
body .form-control,
body #signup-form input[type="text"], body #signup-form input[type="email"],
body #signup-form input[type="password"], body #signup-form input[type="date"],
body #signup-form input[type="url"], body #signup-form select,
body #settings-form input, body #settings-form select, body #settings-form textarea,
body #display-settings-form select, body #display-settings-form input,
body .new-post input, body .comment-form textarea,
body .browse-search input, body .search-bar input, body #chat-form textarea, body .speech-bubble {
    background: var(--pa) !important;
    color: var(--tx) !important;
    border-color: var(--bd) !important;
}
body input::placeholder, body textarea::placeholder { color: var(--mut) !important; }

/* Soft pill / chip backgrounds derive from the primary colour */
body .post-interactions span,
body .subforum ul li .info .posts-count,
body .back-to-community, body .btn-secondary, body .edit-profile-btn,
body .dropdown-toggle, body .dropdown2 .dropdown-toggle,
body .soon-badge, body .material-badge, body .material-tab, body .material-filter-btn {
    background: var(--pill) !important;
    color: var(--pr) !important;
}
body .dropdown-menu, body .dropdown2 .dropdown-menu { background: var(--s) !important; border-color: var(--bd) !important; }
body .dropdown-item, body .dropdown2 .dropdown-item { color: var(--tx) !important; }
body .sidebar { background: var(--bjd-grad-soft); }

/* Keep the gradient accents readable on any theme (NOT the rich-text toolbar) */
body .forum-section h2,
body .nav-link.active, body .sidebar .nav-link.active,
body .material-tab.active, body .material-filter-btn.active,
body .btn-primary, body .button-group button, body .new-post .attachments button,
body .comment button, body .create-thread-btn, body .reply-form button,
body #chat-form .btn, body #add-social-media {
    color: #ffffff !important;
}

/* Secondary buttons inside a button-group (e.g. the header "Sign Up") must stay
   soft with readable text — not caught by the white-on-gradient rule above. */
body .button-group button.btn-secondary,
body .button-group .btn-secondary,
body button.btn-secondary {
    background: var(--pill) !important;
    color: var(--pr) !important;
    box-shadow: none !important;
}
body .button-group button.btn-secondary:hover,
body .button-group .btn-secondary:hover {
    filter: brightness(0.97);
}

/* Rich-text editor (Quill) toolbar — reset so the format icons show,
   instead of being turned into blank purple bubbles by the button styling. */
body .ql-toolbar button,
body .ql-toolbar.ql-snow button {
    background: none !important;
    background-image: none !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    padding: 3px 5px !important;
    width: 28px !important;
    height: 24px !important;
    transform: none !important;
    color: #444 !important;
}
body .ql-toolbar button:hover { background: rgba(120, 90, 220, .12) !important; }
body .ql-toolbar .ql-stroke { stroke: #444 !important; }
body .ql-toolbar .ql-fill { fill: #444 !important; }
body .ql-toolbar button:hover .ql-stroke,
body .ql-toolbar button.ql-active .ql-stroke { stroke: #6a3dff !important; }
body .ql-toolbar button:hover .ql-fill,
body .ql-toolbar button.ql-active .ql-fill { fill: #6a3dff !important; }
body .ql-toolbar .ql-picker { color: #444 !important; }
/* Quill writing area stays a light 'paper' surface for readability */
body #editor-container, body .ql-editor { background: #ffffff !important; color: #242938 !important; }
body .ql-editor.ql-blank::before { color: #9a95ad !important; font-style: normal; }

/* Notification / message count badges in the nav */
.nav-badge {
    display: inline-block;
    background: #e24b62;
    color: #fff !important;
    border-radius: 999px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
    vertical-align: middle;
}
.nav-bell { font-size: 17px; }

/* ---- User-uploaded images: cap display size + click to enlarge ---- */
.post img,
.review-card img,
.doll-details img,
.description-section img,
.msg-bubble img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    display: block;
    margin-top: 10px;
}
.post video { max-width: 100% !important; height: auto !important; max-height: 460px; border-radius: 12px; margin-top: 10px; }
.gallery-image { cursor: zoom-in; }
/* Gallery modal image (its own viewer) — keep it inside the screen on phones */
#galleryModalImage { max-width: 100% !important; max-height: 80vh !important; width: auto !important; height: auto !important; object-fit: contain; }

/* Lightbox overlay */
.bjd-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.bjd-lightbox.open { display: flex; }
.bjd-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
}
.bjd-lightbox-close {
    position: fixed;
    top: 16px; right: 26px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
}

/* Selects: let them grow to fit the padding (Bootstrap's fixed height clips the text) */
select.form-control,
#settings-form select,
#signup-form select,
#display-settings-form select,
.new-post select,
.attachments select {
    height: auto !important;
    min-height: 46px;
    line-height: 1.4;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    -webkit-appearance: menulist;
    appearance: menulist;
}

/* ===== Clean comment bubbles + interaction pills everywhere (profile, view_post, ...) ===== */
.comment {
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
    margin-bottom: 14px !important;
}
.comment-header { display: flex; align-items: center; margin-bottom: 6px; }
.comment-profile-pic { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; object-fit: cover; }
.comment-username { font-weight: 700; color: var(--pr) !important; text-decoration: none; }
.speech-bubble {
    background: var(--pa) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin: 0 0 0 42px !important;
    color: var(--tx) !important;
    box-shadow: none !important;
}
.post-interactions { margin-top: 14px !important; display: flex !important; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-interactions span, .post-interactions .pi-btn {
    background: var(--pill) !important;
    color: var(--pr) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

/* =====================================================================
   DOLLVALE STREAMLINED FINAL LAYER
   ===================================================================== */
:root {
    --ds-bg: var(--page-bg);
    --ds-surface: var(--s);
    --ds-surface-soft: var(--pa);
    --ds-text: var(--tx);
    --ds-muted: var(--mut);
    --ds-border: var(--bd);
    --ds-accent: var(--pr);
    --ds-accent-2: #18a999;
    --ds-danger: #d84d68;
    --ds-left-rail: 270px;
    --ds-page-gutter: 18px;
    --ds-radius: 8px;
    --ds-radius-lg: 12px;
    --ds-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .05);
    --ds-shadow-hover: 0 14px 34px rgba(16, 24, 40, .10);
}

body {
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--ds-accent) 8%, transparent) 0, transparent 28rem),
        linear-gradient(135deg, var(--ds-bg) 0%, color-mix(in srgb, var(--ds-bg) 88%, var(--ds-accent-2)) 52%, color-mix(in srgb, var(--ds-bg) 88%, var(--ds-accent-2)) 100%) fixed !important;
    color: var(--ds-text);
    padding: 0 !important;
    min-height: 100vh;
    letter-spacing: 0;
}

body .container,
body .container.custom-container {
    width: min(1440px, calc(100% - 32px));
    max-width: none;
    margin: 16px auto 24px;
    background: var(--ds-surface) !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-lg) !important;
    box-shadow: var(--ds-shadow) !important;
    overflow: clip;
}

body .content .container,
body .content .container-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body .site-header,
body .navbar,
body .navbar.navbar-custom,
body .header-main,
body .main-content,
body .content,
body .site-footer {
    background: var(--ds-surface) !important;
}

body .navbar,
body .navbar.navbar-custom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ds-border);
    box-shadow: none !important;
    position: sticky;
    top: 0;
    z-index: 900;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ds-text) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}
.site-brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ds-border); }
.primary-nav { min-width: 0; justify-self: center; }
.primary-nav .nav, body nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 0; }
body nav ul li { margin: 0; }
body nav ul li a,
body nav ul li a.nav-link,
body .dropdown2 .dropdown-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--ds-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--ds-radius) !important;
    padding: 8px 11px !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
}
body nav ul li a:hover,
body nav ul li a.nav-link:hover,
body nav ul li a.active,
body nav ul li a.nav-link.active,
body .dropdown2 .dropdown-toggle:hover {
    color: var(--ds-text) !important;
    background: var(--ds-surface-soft) !important;
    border-color: color-mix(in srgb, var(--ds-accent) 35%, var(--ds-border)) !important;
}

.mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-surface);
    color: var(--ds-text);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}
.mobile-nav-toggle span:not(.sr-only) { width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
    width: auto !important;
    margin-top: 0 !important;
}
body .nav-utilities {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-surface-soft);
    flex: 0 0 auto;
}
body .utility-btn,
body .bell-btn {
    position: relative;
    width: auto;
    height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: calc(var(--ds-radius) - 2px);
    background: transparent !important;
    color: var(--ds-muted) !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
}
body .utility-btn:hover,
body .utility-btn.active,
body .bell-btn:hover,
body .bell-btn.active {
    color: var(--ds-text) !important;
    background: var(--ds-surface) !important;
    border-color: color-mix(in srgb, var(--ds-accent) 35%, var(--ds-border));
    filter: none;
    transform: none;
}
body .utility-btn .nav-badge,
body .bell-btn .bell-badge {
    position: static;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    line-height: 18px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 0 0 2px var(--ds-surface-soft), 0 4px 10px rgba(0, 0, 0, .18);
}
body .utility-btn .nav-badge {
    background: #e24b62 !important;
}
body .bell-btn .bell-badge {
    background: #f59e0b !important;
}
.search-bar input {
    min-width: 190px !important;
    max-width: 240px;
    height: 40px;
    border-radius: var(--ds-radius) !important;
    background: var(--ds-surface-soft) !important;
    border-color: var(--ds-border) !important;
    color: var(--ds-text) !important;
    box-shadow: none !important;
}

.header-main {
    display: grid;
    grid-template-columns: var(--ds-left-rail) minmax(0, 1fr);
    gap: var(--ds-page-gutter);
    align-items: start;
    padding: var(--ds-page-gutter);
}
body .user-area {
    max-width: none;
    min-width: 0;
    min-height: 260px;
    height: 260px;
    padding: 18px 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--ds-surface-soft);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    overflow: visible;
    position: relative;
    z-index: 20;
}
body .user-area .user-icon img { width: 78px !important; height: 78px !important; margin-bottom: 0 !important; border: 2px solid var(--ds-surface) !important; box-shadow: none !important; }
body .user-area .dropdown { width: min(100%, 220px); }
body .user-area .dropdown-toggle {
    width: 100% !important;
    min-height: 42px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .user-area .login-form {
    width: 100%;
    max-width: 214px;
    gap: 7px;
    margin: 0;
}
body .user-area .login-form input {
    width: 100%;
    max-width: none;
    height: 36px;
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 12px !important;
}
body .user-area .forgot-password-link {
    width: 100%;
    line-height: 1.1;
    text-align: right;
}
body .user-area .button-group {
    width: 100%;
    max-width: none;
    gap: 10px;
    margin-top: 2px;
}
body .user-area .button-group button {
    flex: 1 1 0;
    min-height: 40px;
    margin: 0 !important;
    padding: 6px 10px !important;
}
body .header-main .banner,
body .header-main .banner-image {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden;
}
body .header-main .banner-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center;
    border-radius: var(--ds-radius-lg) !important;
    box-shadow: none !important;
    border: 1px solid var(--ds-border);
}

.main-content {
    display: grid;
    grid-template-columns: calc(var(--ds-left-rail) + var(--ds-page-gutter)) minmax(0, 1fr);
    align-items: stretch;
}
.main-content > .content:first-child,
.main-content > .content:only-child { grid-column: 1 / -1; }
body .content { min-width: 0; padding: clamp(20px, 3vw, 38px) !important; }
body .main-content > .content {
    padding-top: 10px !important;
}
body .sidebar {
    max-width: none;
    width: var(--ds-left-rail);
    justify-self: start;
    margin-left: var(--ds-page-gutter);
    margin-top: 0;
    margin-bottom: var(--ds-page-gutter);
    padding: 18px 12px;
    background: color-mix(in srgb, var(--ds-surface-soft) 78%, var(--ds-surface)) !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-lg) !important;
}
.sidebar ul { display: grid; gap: 4px; }
body .sidebar ul li a,
body .sidebar .nav-link {
    color: var(--ds-muted) !important;
    border-radius: var(--ds-radius) !important;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.2;
}
body .sidebar ul li a:hover,
body .sidebar .nav-link:hover,
body .sidebar .nav-link.active {
    color: var(--ds-text) !important;
    background: var(--ds-surface) !important;
    box-shadow: none !important;
}

body .features,
body .invitation,
body .closing,
body .settings-panel,
body #settings-form,
body #display-settings-form,
body #signup-form,
body .new-post,
body .post,
body .user-info-item,
body .thread-post,
body .reply-item,
body .filter-section,
body .filter-example,
body .market-card,
body .new-market-listing {
    border-radius: var(--ds-radius) !important;
    border: 1px solid var(--ds-border) !important;
    background: var(--ds-surface) !important;
    box-shadow: none !important;
    padding: clamp(18px, 2.4vw, 30px) !important;
}
body .btn,
body button,
body .btn-primary,
body .btn-secondary,
body .button-group button {
    border-radius: var(--ds-radius) !important;
    box-shadow: none !important;
}
body .btn-primary,
body .button-group button.btn-primary {
    background: var(--ds-accent) !important;
    color: #fff !important;
    border: none !important;
}
body .btn-secondary,
body button.btn-secondary,
body .dropdown-toggle {
    background: var(--ds-surface-soft) !important;
    color: var(--ds-text) !important;
    border: 1px solid var(--ds-border) !important;
}
body .form-control,
body input,
body select,
body textarea {
    border-radius: var(--ds-radius) !important;
    border-color: var(--ds-border) !important;
    background: var(--ds-surface-soft) !important;
    color: var(--ds-text) !important;
    box-shadow: none !important;
}
body .filter-note {
    background: var(--ds-surface-soft) !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius) !important;
    padding: 10px 12px !important;
    color: var(--ds-muted) !important;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 16px;
}
body .filter-note a { color: var(--ds-accent) !important; }

body .profile-header {
    position: relative !important;
    min-height: 190px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: min(100%, 1120px);
    margin: 18px auto 22px !important;
    padding: 58px 28px 26px !important;
    overflow: visible !important;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg) !important;
    background: var(--ds-surface-soft) !important;
}
body .profile-header .user-picture {
    position: absolute !important;
    top: -62px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 132px !important;
    height: 132px !important;
    margin: 0 !important;
    z-index: 2;
}
body .profile-header .user-picture > img.img-thumbnail,
body .profile-header .user-picture > img.profile-picture,
body .profile-header .user-picture > img.rounded-circle {
    width: 132px !important;
    height: 132px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: var(--ds-surface) !important;
    border: 5px solid var(--ds-surface) !important;
}
body .profile-header .mod-badge {
    position: absolute !important;
    right: -4px !important;
    bottom: 4px !important;
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    z-index: 3;
}
body .profile-header .mod-badge-text {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 42px;
    height: 26px !important;
    padding: 0 8px;
    border-radius: var(--ds-radius);
    background: var(--ds-accent);
    color: #fff;
    border: 2px solid var(--ds-surface);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
body .profile-header .username {
    margin: 18px 0 14px !important;
    top: auto !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    line-height: 1.05 !important;
    text-align: center !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
body .profile-header .edit-profile-btn { position: absolute !important; top: 16px !important; right: 16px !important; margin: 0 !important; }
body .profile-actions {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 10px !important;
    flex-wrap: wrap;
    width: 100%;
    max-width: 760px;
    margin: 8px auto 10px !important;
    padding: 0 12px 10px !important;
}
body .friend-profile-btn { position: static !important; }
body .user-info,
body .profile-content { width: min(100%, 1040px); margin-left: auto !important; margin-right: auto !important; }
body .user-info-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; margin-bottom: 16px !important; }

@media (max-width: 1100px) {
    body .navbar,
    body .navbar.navbar-custom {
        grid-template-columns: auto auto;
        grid-template-areas: "brand toggle" "nav nav" "tools tools";
    }
    .site-brand { grid-area: brand; }
    .mobile-nav-toggle { grid-area: toggle; display: inline-flex; justify-self: end; }
    .primary-nav { grid-area: nav; display: none; width: 100%; justify-self: stretch; }
    .primary-nav.is-open { display: block; }
    .primary-nav .nav, body nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    body nav ul li a, body nav ul li a.nav-link, body .dropdown2 .dropdown-toggle { width: 100%; justify-content: center; }
    .nav-right { grid-area: tools; justify-self: stretch; justify-content: space-between; }
    .search-bar { flex: 1 1 auto; }
    .search-bar input { max-width: none; width: 100%; }
    .header-main { grid-template-columns: 1fr; }
    body .header-main .banner,
    body .header-main .banner-image { height: 220px !important; min-height: 220px !important; max-height: 220px !important; }
    .main-content { grid-template-columns: 1fr; }
    body .sidebar {
        width: auto;
        justify-self: stretch;
        margin-left: 0;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ds-border) !important;
    }
    .sidebar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body .container,
    body .container.custom-container {
        width: 100%;
        margin: 0;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
    }
    .primary-nav .nav, body nav ul, .sidebar ul { grid-template-columns: 1fr; }
    body .nav-right { display: grid; grid-template-columns: 1fr; }
    body .nav-utilities { width: 100%; justify-content: center; }
    .search-bar { min-width: 100%; }
    body .content { padding: 18px 14px !important; }
    body .user-info-row { grid-template-columns: 1fr; }
    body .profile-header { margin-top: 54px !important; padding: 68px 16px 22px !important; }
    body .profile-header .edit-profile-btn { position: static !important; margin-top: 8px !important; }
}

/* =====================================================================
   GLOBAL DANGER BUTTON READABILITY — prevents red-on-red text anywhere
   (profile actions, modals, delete buttons, report forms, etc.)
   ===================================================================== */
body .btn-danger,
body button.btn-danger {
    background: #ffe6ec !important;
    color: #d63d67 !important;
    border: 1px solid #f4c4d1 !important;
}
body .btn-danger:hover,
body button.btn-danger:hover,
body .btn-danger:focus,
body button.btn-danger:focus,
body .btn-danger:active,
body button.btn-danger:active {
    background: var(--ds-danger, #d63d67) !important;
    color: #fff !important;
    border-color: var(--ds-danger, #d63d67) !important;
    filter: none !important;
    box-shadow: none !important;
}
