/* Custom styles for Fantastic Connect */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}


* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    display: none;
}

:root {
  --vh: 1vh;
}

html{overflow: hidden;}

body {
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden; /* Prevent scrolling issues */
   scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}
.hidden{
    display: none;
}
body::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

/* For input containers */
.input-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #000000;
}

main {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: auto;
    background-color: #16151E;
    background-size: cover;
    overflow: hidden;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #16151E;
    backdrop-filter: blur(10px);
}

.main_container h2 {
    font-size: 1em;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-align: center;
}

.main_container {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    max-width: 480px;
    border-radius: 0 0 30px 30px;
    background-color: #16151E;
    height: calc(100vh - 80px);
    z-index: 2;
    overflow: hidden;
    overflow-y: scroll;
}


.logo img {
    width: 100%;
    max-width: 175px;
    display: table;
}

.language {
    display: table;
    border: none;
    background: none;
    width: 22px;
    padding: 0;
    margin: 0;
}

.language img {
    width: 100%;
    display: table;
    border: none;
    background: none;
}


/* Floating Menu Styles */
.floating-menu-container {
    position: fixed;
    bottom: 0px;
    left: 0;
    z-index: 1;
    width: 100%;
    max-width: 480px;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#b882e8+0,450096+100 */
    background: linear-gradient(135deg, #b882e8 0%, #450096 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: auto;
    padding-top: 150px;
    padding-bottom: 7px;
}


@media (min-width: 767px) {
   /* Floating Menu Styles */
.floating-menu-container {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 100%;
    max-width: 480px;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#b882e8+0,450096+100 */
    background: linear-gradient(135deg, #b882e8 0%, #450096 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: auto;
    padding-top: 150px;
    padding-bottom: 7px;
}
}



.floating-menu {
    display: flex;
    flex-direction: row;
    gap: 0px;
    padding: 0px;
    border-radius: 0;
    justify-content: space-evenly;
}



.floating-menu .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu_button {
    flex: 1 0 0%;
    margin: 0;
    text-align: center;
    text-decoration: none;
}

.menu_button span {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.menu_button img {
    width: 100%;
    max-width: 26px;
    display: table;
}


.menu_home p,
.menu_wallet p,
.menu_add_post p,
.menu_consult p,
.menu_profile p {
    font-size: 0.7em;
    font-weight: 300;
    color: #ffffff;
    margin-top: 0px;
    margin-bottom: 5px;
}





.stories {
    padding: 0 0;
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 0px 0;
}

.stories-scroll-container {
    display: flex;
    flex-direction: row;
    gap: 0px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0px 18px;
    /* Hide scrollbar completely */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.stories-scroll-container::-webkit-scrollbar {
    display: none;
}

.stories-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.stories-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 56px;
    flex-shrink: 0;
}

.stories_profile {
    width: 56px;
    height: 56px;
    position: relative;
}

.stories_profile img {
    display: table;
    width: 100%;
    border-radius: 100px;
}

.story-username,
.story-time {
    color: #fff;
    font-weight: 300;
    font-size: 0.7em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56px;
    margin-right: 5px;
    text-align: center;
}

.story-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 60px;
    height: 60px;
}

.story-ring img {
    display: table;
    width: 100%;
}

.social_post_header {
    display: flex;
    gap: 10px;
}

.social_post_header_profile {
    width: 52px;
    height: 52px;
    border-radius: 100px;
    overflow: hidden;
}

.social_post_header_profile img {
    display: table;
    width: 100%;
}

.social_post_header_info {
    color: #fff;
}

.social_post_header_info_name {
    font-size: 1em;
    font-weight: 500;
}

.social_post_header_info_time {
    color: #8D8D8D;
    font-size: 0.85em;
}



/* Enhanced carousel touch/drag support */
.carousel-inner {
    cursor: grab;
    border-radius: 24px;
    touch-action: pan-y pinch-zoom;
}

.carousel-inner:active,
.carousel-inner.dragging {
    cursor: grabbing;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
    touch-action: manipulation;
}

/* Add smooth sliding transitions */
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    transition: transform 0.6s ease-in-out;
}

.carousel-item-next:not(.carousel-item-start),
.carousel-item.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.carousel-item.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item img {
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: manipulation;
    border: 1px solid #4B4B4B;
    border-radius: 24px;
}


.carousel-indicators {
    position: relative;
    margin: 10px 0;
}

.carousel-indicators [data-bs-target] {
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 100px !important;
    border-top: 0;
    border-bottom: 0;
}

.carousel-indicators .active {
    width: 16px;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c656ff+0,738bff+100 */
    background: linear-gradient(135deg, #c656ff 0%, #738bff 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}


.social_post_footer {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social_post_footer img {
    width: 22px;
    height: 22px;
}

.social_post_footer_like,
.social_post_footer_comment,
.social_post_footer_bookmark {
    position: relative;
    display: flex;
}

.social_post_active_class {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: ease all 0.3s;
}

.social_post_active_enable {
    opacity: 1;
    transition: ease all 0.3s;
}

.comment_preview {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.comment_preview ul {
    padding: 0;
    margin: 0;
}

.comment_preview ul li {
    list-style: none;
}

.comment_preview ul li {
    font-size: 0.8em;
    color: #fff;
    line-height: 1.3em;
    margin-bottom: 5px;
}

.comment_preview_naming {
    font-weight: bold;
    margin-right: 10px;
}


/* Facebook-style post text container */
.post-text-container {
    position: relative;
    margin-bottom: 15px;
}

.post-text {
    color: #fff;
    font-weight: 300;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.text-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #1a1a1a 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.text-fade-overlay.hidden {
    opacity: 0;
}

.see-more-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: none;
    border: none;
    color: #E1B5FF;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    padding: 0px 4px;
    margin: 0;
    transition: color 0.2s ease;
    z-index: 2;
    background: transparent;
    border-radius: 4px;
}

.see-more-btn:hover {
    color: #fff;
}

.see-less-btn {
    background: none;
    border: none;
    color: #E1B5FF;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.see-less-btn:hover {
    color: #fff;
}

/* Remove old styles */
.text-clamp-custom {
    display: none !important;
}

.text-show-all {
    display: none !important;
}

.view_more_post_write_button {
    display: none !important;
}


.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -120px 0px 35px 0px;
}

.preloader img {
    width: 32px;
    height: 32px;
    display: table;
}

/* Comments Modal Styles */
.comments-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 100vh;
    display: flex;
    align-items: flex-end;
}

.comments-modal.active {
    opacity: 1;
    visibility: visible;
}

.comments-modal-content {
    background: #2D2B3C;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comments-modal.active .comments-modal-content {
    transform: translateY(0);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;

}

.border_comment {
    width: 90%;
    margin: 0 auto;
    height: 1px;
    background: #4B4B4B;
}

.comments-header h5 {
    color: #fff;
    margin: 0;
    font-size: 1em;
    font-weight: 500;
}

.comments-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.comments-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    max-height: calc(70vh - 140px);
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}
.comment-date{
    font-size: 0.625em;
    display: block;
    font-weight: 300;
}
.comment-author {
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.comment-text {
    color: #fff;
    font-size: 0.85em;
    line-height: 1.4;
    font-weight: 300;
}

.add-comment-section {
    padding: 15px 20px 20px;
    background: #2D2B3C;
    border-radius: 0 0 20px 20px;
}

.add-comment-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2D2B3C;
    border-radius: 25px;
    padding: 7px 15px;
    border: 1px solid #4B4B4B;
}

.comment-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.85em;
    outline: none;
    padding: 0px 0;
}

.comment-input::placeholder {
    color: #8D8D8D;
}

.send-comment-btn {
    background: none;
    border: none;
    color: #E1B5FF;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-comment-btn:hover {
    background-color: rgba(225, 181, 255, 0.1);
    transform: scale(1.1);
}

.send-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comments-modal-content {
        max-height: 80vh;
    }

    .comments-list {
        max-height: calc(80vh - 140px);
    }
}


.send-comment-btn img {
    display: table;
    width: 24px;
    height: 24px;
}

/* Stories Modal Styles */
/* Stories Modal Styles */
.stories-modal {
    background: rgba(0, 0, 0, 0.9);
}

.stories-modal .modal-content {
    background: transparent;
    border: none;
    height: 100vh;
    position: relative;
    touch-action: manipulation;
    pointer-events: auto;
}

.stories-modal .modal-body {
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}



/* Stories Progress Bars */
.stories-progress-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    z-index: 10;
    pointer-events: none;
}

.story-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.story-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: white;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.story-progress-bar.active::after {
    animation: progressFill 5s linear forwards;
}

.story-progress-bar.completed::after {
    width: 100%;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Navigation areas */
.story-nav-left,
.story-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
    cursor: pointer;
    pointer-events: none;
    touch-action: manipulation;
}

.story-nav-left {
    left: 0;
}

.story-nav-right {
    right: 0;
}

/* Hide default carousel controls */
#storiesCarousel .carousel-control-prev,
#storiesCarousel .carousel-control-next {
    display: none;
}

/* Actions */
.stories-actions {
    padding: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.stories-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
}

.stories-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9em;
    outline: none;
    padding: 8px 0;
}

.stories-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.stories-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stories-send-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.stories-send-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}


.stories-modal-content {
    max-width: 480px;
}

.stories-header {
    padding: 12px;
    top: 16px;
}

.stories-actions {
    padding: 12px;
}

.stories-list .btn-close {
    position: absolute;
    top: 40px;
    right: 20px;
    filter: invert(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 11;
}

.stories-image {
    display: table;
    width: 100%;
    pointer-events: auto;
    touch-action: manipulation;
}

.stories-progressive-set {
    width: 90%;
    margin: 0 auto;
    left: 5%;
}

#storiesCarousel {
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

#storiesCarousel .carousel-inner {
    width: 90%;
    margin: 0 auto;
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

#storiesCarousel .carousel-item {
    border: none;
}




.story-user-info {
    display: flex;
    align-items: center;
}

.story-avatar {
    display: table;
    width: 32px;
    height: 32px;
    border-radius: 100px;
    margin-right: 5px;
    overflow: hidden;
}

.stories-username,
.stories-time {
    font-size: 0.85em;
    color: #fff;
    margin: 0px;
    margin-right: 5px;
}

/* Center align modal body content */
#storiesModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.story-description {
    position: absolute;
    display: flex;
    align-items: flex-end;
    z-index: 1;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 1) 100%);
    min-height: 100px;
    width: 100%;
    pointer-events: auto;
    border-radius: 0 0 24px 24px;
}

.story-description p {
    font-size: 0.85em;
    color: #fff;
    margin: 20px;
}

.story-description .add-comment-section {
    background: transparent;
    background: transparent;
    width: 100%;
    padding: 0;
    z-index: 11111;
    position: relative;
    margin-bottom: 10px;
}

.story-description .add-comment-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border-radius: 25px;
    padding: 7px 20px;
    border: none;
}




/* Fullscreen Modal Styles */
.modal-fullscreen .modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 120px);
    /* Adjust for header height */
}

.modal-fullscreen .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.modal-header {
    padding: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

#uploadStoryForm {
    /* margin: 0 10px; */
}


#storyUploadArea img {
    width: 32px;
    height: auto;
    display: table;
    margin: 0 auto;
}

#storyUploadArea p {
    font-size: 0.85em;
    color: #8D8D8D;
    margin: 10px 0 0;
}

/* Upload Story Modal Styles */
.upload-area {
    background-color: #2D2B3C;
    border: 1px solid #4B4B4B;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border .24s ease-in-out;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-area p {
    margin-bottom: 0;
    color: #666;
}



.file-preview {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 200px;
    overflow: hidden;
}

.file-preview img,
.file-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    object-fit: contain;
}

.file-preview .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

/* Camera Roll Thumbnails Styles */
.camera-roll-thumbnails {
    margin-top: 20px;
}

.camera-roll-thumbnails h6 {
    margin-bottom: 15px;
    font-weight: bold;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 4 columns */
    gap: 10px;
    /* Space between thumbnails */
    max-height: 100%;
    /* Limit height and enable scrolling */
    overflow-y: auto;
    padding-right: 0;
    /* For scrollbar */
}

.thumbnail-item {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #666;
    font-size: 12px;
    border: 0px solid #ddd;
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-checkbox {
    display: none;
}

.thumbnail-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.checkbox-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #C9C9C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.checkbox-icon {
    width: 12px;
    height: 12px;
    background-image: url('../image/tick.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.delete-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 25px white;
}
.delete-icon {
    width: 12px;
    height: 12px;
    background-image: url('../image/delete.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.thumbnail-checkbox:checked+.thumbnail-label .checkbox-overlay {
    opacity: 1;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c656ff+1,738bff+100 */
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 1%, rgba(115, 139, 255, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    border-color: #C9C9C9;
}

.thumbnail-checkbox:checked+.thumbnail-label {
    border: none;
}

.thumbnail-item:hover .checkbox-overlay {
    opacity: 0.7;
}

.thumbnail-checkbox:checked+.thumbnail-label:hover .checkbox-overlay {
    opacity: 1;
}

.thumbnail-item.add-placeholder {
    background-color: #323232;
    border: 1px dashed #8d8d8d!important;
    color: #8d8d8d;
}

.thumbnail-item.add-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.thumbnail-item:hover {
    opacity: 0.8;
}


/* Add Post Page Specific Styles - Scoped to prevent conflicts */
.generic-height-page .main_container {
    height: 100%;
}

.add-post-page .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0;
    margin-bottom: 80px;
}

.add-post-page .thumbnail-item {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #666;
    font-size: 12px;
    border: 0px solid #ddd;
    position: relative;
    aspect-ratio: 1 / 1;
}

.add-post-page .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.post_img_added .thumbnail-item{
    border: 1px solid #ddd;
}
.add-post-page .thumbnail-checkbox {
    display: none;
}

.add-post-page .thumbnail-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.add-post-page .checkbox-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #C9C9C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.add-post-page .checkbox-icon {
    width: 12px;
    height: 12px;
    background-image: url('../image/tick.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.add-post-page .thumbnail-checkbox:checked+.thumbnail-label .checkbox-overlay {
    opacity: 1;
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 1%, rgba(115, 139, 255, 1) 100%);
    border-color: #C9C9C9;
}

.add-post-page .thumbnail-checkbox:checked+.thumbnail-label {
    border: none;
}

.add-post-page .thumbnail-item:hover .checkbox-overlay {
    opacity: 0.7;
}

.add-post-page .thumbnail-checkbox:checked+.thumbnail-label:hover .checkbox-overlay {
    opacity: 1;
}

.add-post-page .thumbnail-item.add-placeholder {
    background-color: #323232;
    border: 1px dashed #8d8d8d;
    color: #8d8d8d;
}

.add-post-page .thumbnail-item.add-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.add-post-page .thumbnail-item:hover {
    opacity: 0.8;
}



.add_post_submit {
    border: 0px;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    max-width: 480px;
}

.add_post_confirm {
    position: fixed;
    border: 0px;
    z-index: 11111111;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
        left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
}
.add_post_submit .button_style_full_color,
.add_post_confirm .button_style_full_color {
    width: 90%;
    margin: 0 auto;
}

/* Add Post Carousel - Unique styling */
.add-post-carousel {
    border-radius: 10px;
    overflow: hidden;
}

.add-post-carousel .carousel-item img {
    height: 300px;
    object-fit: cover;
}


#addPostPreviewModal .image-preview-holder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#addPostPreviewModal .story-description {
    position: relative;
}

#addPostPreviewModal .close_button_holder .btn-close {
    position: absolute;
    top: 20px;
    right: 0px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

#addPostPreviewModal .close_button_holder {
    position: relative;
    width: 100%;
    height: 32px;
}

#addPostImageCarousel .carousel-item .add-post-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

#addPostPreviewModal .story-description {
    background: none;
}

#addPostPreviewModal .story-description .add-comment-input-container {
    padding: 3px 3px 3px 10px;
    border-radius: 100px;
    border: 1px solid #4d4d4d;
}

#addPostPreviewModal .send-comment-btn {
    background: #000;
    padding: 10px;
    width: 48px;
    height: 48px;
}

#addPostPreviewModal .story-description .add-comment-section {
    margin-bottom: 20px;
}


@media (max-width:375px) and (max-height:680px) {
    #storiesCarousel .carousel-inner {
        max-width: 80%;
    }
}

/* Responsive adjustments for fullscreen modal */
@media (max-width: 768px) {
    .modal-fullscreen .modal-body {
        padding: 15px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on mobile */
    }
}

.stories-content {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    width: 100%;
    min-height: 60px;
}

.stories-content p {
    font-size: 0.85em;
    color: #fff;
    margin: 20px;
}

.stories-list .btn-close {
    position: absolute;
    top: 40px;
    right: 20px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

.stories-image {
    display: table;
    width: 100%;
}

.stories-progressive-set {
    width: 90%;
    margin: 0 auto;
    left: 5%;
}

#storiesCarousel .carousel-inner {
    width: 80%;
    margin: 0 auto;
}

#storiesCarousel .carousel-item {
    border: none;
}


.stories-overlay {
    display: flex;
    position: absolute;
    top: 40px;
    left: 20px;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.story-user-info {
    display: flex;
    align-items: center;
}

.story-avatar {
    display: table;
    width: 32px;
    height: 32px;
    border-radius: 100px;
}

/* Center align modal body content */
#storiesModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.story-description {
    position: absolute;
    display: flex;
    align-items: flex-end;
    z-index: 1;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 1) 100%);
    min-height: 100px;
    width: 100%;
}

.story-description p {
    font-size: 0.85em;
    color: #fff;
    margin: 20px;
}

#imagePreviewModal .modal-body {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 100vh;
    overflow-y: auto;
    background-color: #16151E;
}

.img-preview {
    display: table;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
}

#imagePreviewModal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

.image-preview-holder {
    max-width: 78%;
}

@media (max-width: 375px) and (max-height: 680px) {
    .image-preview-holder {
        max-width: 80%;
    }
}

.modal-dialog {
    max-width: 480px;
    margin: 0 auto;
}

/* Modal info */
.modal-info .modal-dialog {
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

.modal-info .modal-dialog .modal-body {
    width: 100%;
    text-align: center;
    margin: auto;
    background: rgba(0 0 0/75%);
    border-radius: 16px;
    color: #fff;
    padding: 16px;

}

.modal-info .modal-dialog .modal-body p {
    font-size: 0.7em;
}

.modal-info .modal-dialog .modal-body img {
    width: 24px
}

/* Upload Post Modal Styles */
#uploadPostModal .modal-content {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 100vh;
    overflow-y: auto;
    background-color: #16151E;
}

#uploadPostModal .modal-header {
    padding: 20px 24px 20px;
    border-bottom: 0;
}

/* Upload Story Modal Styles */
.modal-content {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 100vh;
    overflow-y: auto;
    background-color: #16151E;
}

.modal-header {
    padding: 20px 24px 20px;
    border-bottom: 0 !important;
}

.btn-back {
    border: none;
    background: transparent;
    width: 32px;
    height: auto;
    display: flex;
    position: absolute;
    left: 20px;
}

.btn-back img {
    display: table;
    width: 100%;
    height: auto;
}

#uploadStoryModalLabel {
    display: flex;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1em;
}


#uploadStoryModal .modal-body {
    padding: 20px 24px;
}

#uploadStoryModal .modal-footer {
    padding: 0 24px 20px;
}

/* Upload Placeholder */
.upload-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-placeholder:hover {
    border-color: #0d6efd;
    background-color: #f0f8ff;
}

.upload-placeholder .upload-icon {
    opacity: 0.7;
}

.upload-placeholder h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-placeholder .text-muted {
    font-size: 14px;
}

/* Story Text Area */
#uploadStoryForm .form-control {
    border-radius: 8px;
    border: 1px solid #8D8D8D;
    background: transparent;
    color: #fff;
    resize: none;
    font-size: 0.85em;
    display: flex;
    opacity: 0;
    width: auto;
    padding: 20px 0 !important;
    margin: 0;
    position: absolute;
}

#uploadStoryForm .form-control::placeholder {
    color: #8D8D8D;
    opacity: 1;
}

#uploadStoryForm .form-control:focus,
#uploadStoryForm .form-select:focus {
    box-shadow: none;
    outline: none;
    border-color: #8D8D8D;
}

#storyPrivacy {
    background-color: transparent;
    color: #fff;
    border: 1px solid #8D8D8D;
    border-radius: 8px;
    padding: 12px 16px;
}

#uploadStoryForm .form-control:focus {
    border-color: transparent;
}

/* Camera Roll Section */
.camera-roll-section {
    margin-top: 20px;
}

.camera-roll-title {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    margin-bottom: 12px;
}

.camera-roll-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.camera-roll-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.camera-roll-item:hover {
    transform: scale(0.95);
    opacity: 0.8;
}

.camera-roll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-roll-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Selected state for camera roll items */
.camera-roll-item.selected {
    border: 3px solid #0d6efd;
    transform: scale(0.9);
}

.camera-roll-item.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.form-check-input{
        background: #fff!important;
    border: 3px solid #fff!important;
    box-shadow: 0px 0px 0px 1px #DDE1E4!important;
    width: 1.1em!important;
    height: 1.1em!important;
}

.form-check-input:checked {
    background-color: #C656FF!important;
    border-color: #fff!important;
}

/* Buttons */
#uploadStoryModal .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
}

#uploadStoryModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

#uploadStoryModal .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

#uploadStoryModal .btn-secondary {
    background-color: #6c757d;
    border: none;
}

#uploadStoryModal .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #uploadStoryModal .modal-dialog {
        margin: 0px;
    }

    #uploadStoryModal .modal-header,
    #uploadStoryModal .modal-body,
    #uploadStoryModal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .upload-placeholder {
        padding: 20px 16px !important;
    }

    .camera-roll-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .camera-roll-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.title_secondary_s4 {
    font-size: 0.8em;
    font-weight: 300;
    color: #A4A4A9;
}

.universal_gradient_background {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#b882e8+0,450096+100 */
    background: linear-gradient(135deg, rgba(184, 130, 232, 1) 0%, rgba(69, 0, 150, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

/* wallet balance */
.wallet_balance .universal_gradient_background {
    border: 1px solid #E1B5FF;
    border-radius: 24px;
}

.f_logo_set {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.f_logo_set img {
    display: table;
    width: 24px;
    height: auto;
}

.f_logo_set p {
    font-size: 0.7em;
    color: #E1B5FF;
    margin: 0;
}

.wallet_balance_amount .balance_item img {
    display: table;
    width: 24px;
    height: auto;
    margin-bottom: 5px;
}

.wallet_balance_amount .balance_item p {
    font-size: 1.5em;
    color: #fff;
    margin: 0;
    display: flex;
    line-height: 1.1em;
}

.wallet_balance_amount .balance_item span {
    font-size: 0.7em;
    color: #E1B5FF;
    margin: 0;
    display: flex;
}

.button_style_outlined {
    border: 1px solid #E1B5FF;
    border-radius: 100px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    color: #E1B5FF;
    background-color: transparent;
    font-size: 0.9em;
    font-weight: 400;
    justify-content: center;
}

.button_style_full_color {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c656ff+0,738bff+100 */
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 0%, rgba(115, 139, 255, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    border: 1px solid #E1B5FF;
    border-radius: 100px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 400;
    justify-content: center;
}

.button_style_full_color_white {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c656ff+0,738bff+100 */
    background: #ffffff;
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    border: 0;
    border-radius: 100px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    color: #C656FF;
    font-size: 0.9em;
    font-weight: 400;
    justify-content: center;
}

.add_post_confirm .button_style_full_color_white {
    width: 100%;
    margin: 0 auto;
    text-decoration: none;
}

.add_post_confirm.profile-forebackground-login {
    background: linear-gradient(135deg, #A76EDB 0%, #6322AA 100%);
    border-radius: 32px 32px 0px 0px;
    padding: 20px 24px;}

h3 {
    font-size: 1em;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-align: left;
}

.node_set .item {
    border: 1px solid #4B4B4B;
    background-color: #2D2B3C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.node_set .item>span{
    color: #fff;
    font-size: 0.9em;
    font-weight: 100;
}
.node_set .item div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.node_set .item div img {
    width: 24px;
    height: 24px;
    display: table;
}

.node_set .item p {
    font-size: 0.9em;
    color: #fff;
    margin: 0;
}

.node_set .item p span {
    color: #8D8D8D;
    margin: 0;
}

.text_highlight_bold {
    color: #E1B5FF!important;
    font-size: 0.9em!important;
    font-weight: 500!important;
    text-decoration: none;
}

.text_highlight_small{
    color: #ffffff !important;
    font-size: 0.9em !important;
    font-weight: 100 !important;
    text-decoration: none;
    width: 100%;
    overflow-wrap: break-word; 
    overflow-wrap: anywhere;
}
.history_button {
    position: absolute;
    right: 25px;
}

.tips_text {
    font-size: 0.8em;
    color: #8D8D8D;
    margin: 0;
}

.address_box_set {
    background-color: #2D2B3C;
    border: 1px solid #4B4B4B;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.address_box_set span {
    font-size: 0.7em;
    color: #8D8D8D;
    margin: 0;
}

.address_box_set p {
    font-size: 0.9em;
    color: #fff;
    margin: 0;
    word-break: break-all;
}

.fantastic_form_set label {
    font-size: 0.8em;
    color: #A4A4A9;
    margin: 0;
    font-weight: 400;
}

.fantastic_form_set input:not([type="submit"]):not([type="button"]) ,
.fantastic_form_set textarea {
    background-color: transparent !important;
    border: 1px solid #4B4B4B;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #8D8D8D;
    margin: 0;
    font-weight: 300;
}

/* Focus state */
.fantastic_form_set input:not([type="submit"]):not([type="button"]) :focus,
.fantastic_form_set textarea:focus {
    outline: none;
    border-color: inherit;
    background-color: transparent;
    color: #ffffff;
    box-shadow: none;
}


/* Placeholder styling */
.fantastic_form_set input:not([type="submit"]):not([type="button"]) ::placeholder,
.fantastic_form_set textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;

}

/* Focus placeholder styling */
.fantastic_form_set input:not([type="submit"]):not([type="button"]) :focus::placeholder,
.fantastic_form_set textarea:focus::placeholder {
    color: #adb5bd;
    opacity: 0.5;
}

.usdt_option_show {
    display: none;
}

.form-control:disabled {
    background-color: #4B4B4B !important;
    opacity: 1;
    color: #8D8D8D;
}

/* Formset Dropdown Styles */
.formset-dp-btn {
    background-color: transparent !important;
    border: 1px solid #4B4B4B !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #8D8D8D !important;
    font-weight: 300;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.formset-dp-btn:hover,
.formset-dp-btn:focus {
    background-color: rgba(75, 75, 75, 0.1) !important;
    border-color: #6B6B6B !important;
    color: #8D8D8D !important;
}

.formset-dp-menu {
    background-color: #2D2B3C;
    border: 1px solid #4B4B4B;
    margin-top: 5px !important;
    border-radius: 8px;
}

.formset-dp-menu li {
    margin: 0px 15px;
}

.formset-dp-item {
    color: #ffffff;
    margin: 10px 0px;
    font-weight: 300;
    font-size: 0.85em;
    border-bottom: 1px solid #4B4B4B;
    width: auto;
    padding: 0px 0px 10px;
    width: 100%;
}

.formset-dp-menu li:last-child .formset-dp-item {
    border-bottom: none;
    margin-bottom: 0;
}

.formset-dp-item:hover {
    background-color: rgba(75, 75, 75, 0.2);
    color: #FFFFFF;
}

.formset-dp-icon {
    width: 24px;
    height: 24px;
}


.withdrawal_history ul {
    padding: 0;
    margin: 0;
}

.withdrawal_history ul li {
    border-bottom: 1px solid #4B4B4B;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

.timestamp {
    font-size: 0.8em;
    color: #A4A4A9;
}

.amount {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
}

.table_tag {
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7em;
    color: #fff;
    font-weight: 500;
    width: auto;
    display: table;
    float: right;
}

.withdrawal_history .col-12 ul:last-child li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.table_tag.orange-g {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ff5656+0,ffbd2f+100 */
    background: linear-gradient(135deg, rgba(255, 86, 86, 1) 0%, rgba(255, 189, 47, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.table_tag.green-g {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#56ff83+0,2f90ff+100 */
    background: linear-gradient(135deg, rgba(86, 255, 131, 1) 0%, rgba(47, 144, 255, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.table_tag.red-g {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ff76b1+1,ff2f2f+100 */
    background: linear-gradient(135deg, rgba(255, 118, 177, 1) 1%, rgba(255, 47, 47, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.error-message-red {
    border: 1px solid #FF4E68 !important;
}

.error-message {
    font-size: 0.7em;
    color: #FF4E68;
    margin: 5px 0;
    font-weight: 300;
}

.border-radius-24 {
    border-radius: 24px;
}


/* ... existing code ... */

/* Profile Section Styles */
.profile-section {
    margin: 0 0;
    position: relative;
}

.profile-forebackground {
    background: linear-gradient(135deg, #b882e8 0%, #450096 100%);
    margin: 0;
    border-radius: 0 0 30px 30px;
    position: relative;
    width: 100%;
    height: 107px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.profile-picture-container {
    position: relative;
    display: inline-block;
}

.profile-picture {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #D9D9D9;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.edit-profile-btn img {
    display: table;
    width: 100%;
}


.profile-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.profile-description {
    color: #8D8D8D;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 300px;
    margin: 0 auto;
}

.profile-stats {
    margin-top: 1.5rem;
}

.profile-stats a {
    text-decoration: none;
}

.stat-item {
    min-width: 60px;
}

.stat-number {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    color: #8D8D8D;
    font-size: 0.8rem;
    font-weight: 300;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

.my-profile-set {
    padding: 24px;
    margin: 0 0 25px;
    background-color: #2D2B3C;
    border-radius: 16px;
    border: 1px solid #4B4B4B;
}

.my-profile-set h4 {
    font-size: 0.75em;
    font-weight: 400;
    color: #8D8D8D;
    margin-bottom: 0;
}

.my-profile-set ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.my-profile-set ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4B4B4B;
    padding: 15px 0px;
}

.my-profile-set ul:last-child li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.my-profile-set ul li div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.my-profile-set ul li p {
    font-size: 0.9em;
    color: #fff;
    font-weight: 300;
    margin: 0;
}

.my-profile-ico-set {
    display: table;
    width: 24px;
    height: 24px;
}

.my-profile-arrow-right {
    display: table!important;
    width: 16px!important;
    height: 16px!important;
}

.my-profile-level-tag {
    font-size: 0.6em;
    color: #fff;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 0%, rgba(115, 139, 255, 1) 100%);
    border-radius: 100px;
    padding: 6px 10px;
    line-height: 1em;
    display: flex;
    align-items: center;
}

.my-profile-set a {
    display: flex;
    text-decoration: none;
    gap: 10px;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}



/* ... existing code ... */

/* =================================================================== */
/* MY POST PAGE - STANDALONE STYLES (Cloned from add-post-page)        */
/* =================================================================== */

/* Page-specific body and container overrides */
.my-post-page {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #000000;
}

.my-post-page main {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: auto;
    background-color: #16151E;
    background-size: cover;
}

.my-post-page .main_container {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    max-width: 480px;
    border-radius: 0 0 30px 30px;
    background-color: #16151E;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    overflow-y: scroll;
}

/* Header styles specific to my-post-page */
.my-post-page .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #16151E;
    backdrop-filter: blur(10px);
}

.my-post-page .header h2 {
    font-size: 1em;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-align: center;
}

.my-post-page .btn-back {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.my-post-page .btn-back img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Form styles specific to my-post-page */
.my-post-page .withdrawal.history {
    padding: 0;
    margin: 0;
}

.my-post-page .withdrawal_history {
    background: transparent;
    border: none;
    padding: 0;
}

.my-post-page #uploadStoryForm {
    width: 100%;
    padding: 0;
}


/* Camera roll section styles */
.my-post-page .camera-roll-thumbnails {
    margin-top: 20px;
}

.my-post-page .camera-roll-thumbnails h6 {
    margin-bottom: 15px;
    font-weight: bold;
    color: #fff;
    font-size: 1em;
}

.my-post-page .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0;
}

.my-post-page .thumbnail-item {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #666;
    font-size: 12px;
    border: 0px solid #ddd;
    position: relative;
    aspect-ratio: 1 / 0.7;
}

.my-post-page .thumbnail-item img {
    width: 100%;
     /* height: 100%; */
    object-fit: cover;
    border-radius: 8px;
}

.my-post-page .thumbnail-checkbox {
    display: none;
}

.my-post-page .thumbnail-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.my-post-page .checkbox-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #C9C9C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.my-post-page .checkbox-icon {
    width: 12px;
    height: 12px;
    background-image: url('../image/tick.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.my-post-page .thumbnail-checkbox:checked+.thumbnail-label .checkbox-overlay {
    opacity: 1;
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 1%, rgba(115, 139, 255, 1) 100%);
    border-color: #C9C9C9;
}

.my-post-page .thumbnail-checkbox:checked+.thumbnail-label {
    border: none;
}

.my-post-page .thumbnail-item:hover .checkbox-overlay {
    opacity: 0.7;
}

.my-post-page .thumbnail-checkbox:checked+.thumbnail-label:hover .checkbox-overlay {
    opacity: 1;
}

.my-post-page .thumbnail-item.add-placeholder {
    background-color: #323232;
    border: 1px dashed #8d8d8d;
    color: #8d8d8d;
}

.my-post-page .thumbnail-item.add-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.my-post-page .thumbnail-item:hover {
    opacity: 0.8;
}

/* Confirmation button styles */
.my-post-page .add_post_confirm {
    position: fixed;
    border: 0px;
    z-index: 11111111;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-post-page .add_post_confirm .button_style_full_color {
    width: 90%;
    margin: 0 auto;
}

/* Modal styles specific to my-post-page */
.my-post-page .modal {
    z-index: 12000;
}

.my-post-page .modal-content {
    background-color: #16151E;
    border: none;
    border-radius: 20px;
}

.my-post-page .modal-header {
    border-bottom: 1px solid #4B4B4B;
    background-color: #2D2B3C;
}

.my-post-page .modal-body {
    background-color: #16151E;
    color: #fff;
}

.my-post-page .modal-footer {
    border-top: 1px solid #4B4B4B;
    background-color: #2D2B3C;
}

/* Preview modal specific styles */
.my-post-page #addPostPreviewModal .image-preview-holder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.my-post-page #addPostPreviewModal .story-description {
    position: relative;
    background: none;
}

.my-post-page #addPostPreviewModal .close_button_holder .btn-close {
    position: absolute;
    top: 20px;
    right: 0px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

.my-post-page #addPostPreviewModal .close_button_holder {
    position: relative;
    width: 100%;
    height: 32px;
}

.my-post-page #addPostImageCarousel .carousel-item .add-post-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

.my-post-page #addPostPreviewModal .story-description .add-comment-input-container {
    padding: 3px 3px 3px 10px;
    border-radius: 100px;
    border: 1px solid #4d4d4d;
}

.my-post-page #addPostPreviewModal .send-comment-btn {
    background: #000;
    padding: 10px;
    width: 48px;
    height: 48px;
}

.my-post-page #addPostPreviewModal .story-description .add-comment-section {
    margin-bottom: 20px;
}

/* Carousel styles specific to my-post-page */
.my-post-page .add-post-carousel {
    border-radius: 10px;
    overflow: hidden;
}

.my-post-page .add-post-carousel .carousel-item img {
    height: 300px;
    object-fit: cover;
}

.my-post-page .carousel-indicators {
    position: relative;
    margin: 10px 0;
}

.my-post-page .carousel-indicators [data-bs-target] {
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 100px !important;
    border-top: 0;
    border-bottom: 0;
}

.my-post-page .carousel-indicators .active {
    width: 16px;
    background: linear-gradient(135deg, #c656ff 0%, #738bff 100%);
}

/* Button styles specific to my-post-page */
.my-post-page .button_style_full_color {
    background: linear-gradient(135deg, #c656ff 0%, #738bff 100%);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-weight: 500;
    padding: 12px 24px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.my-post-page .button_style_full_color:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 86, 255, 0.3);
}

/* Input styles specific to my-post-page */
.my-post-page .form-control {
    background-color: #2D2B3C;
    border: 1px solid #4B4B4B;
    color: #fff;
    border-radius: 8px;
}

.my-post-page .form-control:focus {
    background-color: #2D2B3C;
    border-color: #c656ff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(198, 86, 255, 0.25);
}

.my-post-page .form-control::placeholder {
    color: #8D8D8D;
}

/* Post text container styles for my-post-page */
.my-post-page .post-text-container {
    position: relative;
    margin-bottom: 15px;
}

.my-post-page .post-text {
    color: #fff;
    font-weight: 300;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.my-post-page .post-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.my-post-page .text-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #16151E 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.my-post-page .text-fade-overlay.hidden {
    opacity: 0;
}

.my-post-page .see-more-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: none;
    border: none;
    color: #E1B5FF;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    padding: 0px 4px;
    margin: 0;
    transition: color 0.2s ease;
    z-index: 2;
    background: transparent;
    border-radius: 4px;
}

.my-post-page .see-more-btn:hover {
    color: #fff;
}

.my-post-page .see-less-btn {
    background: none;
    border: none;
    color: #E1B5FF;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.my-post-page .see-less-btn:hover {
    color: #fff;
}

.social-post-extra-btn-img {
    display: table;
    width: 24px;
    height: 24px;
}

.social-post-delete-drop .dropdown-item {
    font-size: 0.85em;
    padding: 12px 24px;
}

.social-post-delete-drop .dropdown-item img {
    display: table;
    width: 16px;
    height: 16px;
}

.social-post-delete-drop .dropdown-menu {
    min-width: 100px;
    /* Set minimum width */
    width: 120px;
    /* Set fixed width */
    padding: 0;
}


.modal-alert-message {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
}

.modal-alert-message h5 {
    font-size: 1em;
    font-weight: 500;
}

.modal-alert-message .modal-header {
    padding: 10px 0px !important;
    margin-top: 0px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #ccc !important;
}

.modal-alert-message p {
    font-size: 0.9em;
}

.modal-alert-message-button button {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    border: none;
    font-weight: 500;
    color: #C656FF;
}

.modal-alert-message-button button a {
    color: inherit;
    text-decoration: none;
}

.modal-alert-message-button button:focus,
.modal-alert-message-button button:hover,
.modal-alert-message-button button:active {
    background-color: transparent !important;
    color: inherit;
    outline: none;
    box-shadow: none;
}


/* Followers/Following styles - cloned from withdrawal_history */
.followers_following ul {
    padding: 0;
    margin: 0;
}

.followers_following ul li {
    border-bottom: 1px solid #4B4B4B;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

.followers_following .col-12 ul:last-child li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Form styles specific to my-post-page for followers_following */
.my-post-page .followers_following {
    background: transparent;
    border: none;
    padding: 0;
}


/* Search bar styles for followers/following */
.search-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #8D8D8D;
}

.search-container .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: 0.8em;
    font-weight: 300;
}

.search-container .form-control::placeholder {
    color: #A4A4A9;
}

.search-container .form-control:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
}

.search-container .input-group-text {
    background: transparent;
    border: none;
    color: #A4A4A9;
    padding: 12px 20px;
}

.search-container img {
    width: 24px;
    height: 24px;
}


.follow-set {
    display: flex;
}

.follow-set a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.follow-set img {
    display: table;
    width: 52px;
    height: 52px;
    border-radius: 100px;
    border: 1px solid #D9D9D9;
}

.follow-set .name {
    font-size: 1em;
    font-weight: 500;
    color: #fff;
}


.friend_social_post_footer {
    display: flex;
    gap: 0;
    margin-bottom: 0 !important;
    justify-content: flex-end;
    align-items: center;
}

.friend_social_post_footer {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.friend_social_post_footer img {
    width: 22px;
    height: 22px;
}



/* Toggle switch styles for f_social_post_like */


.f_social_post_footer_like {
    position: relative;
    display: flex;
    width: 22px;
    height: 22px;
}
.social_post_footer_hide{
    color:white;
    cursor: pointer;
}
.comment_delete{
    font-size: 0.725em;
    margin-left: 5px;
    color: red;
}
.social_post_footer_hide[data-status='1'] .fa-eye-slash{
    display: none!important;
}
.social_post_footer_hide[data-status='0'] .fa-eye{
    display: none!important;
}
.f_social_post_active_class {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: ease all 0.3s;
}

.f_social_post_active_class.f_liked_active_class {
    opacity: 1;
}

.f_social_post_like {
    opacity: 1;
    transition: opacity 0.3s ease;
}



/* Change Profile Image Modal Styles - Cloned from addPostPreviewModal */
#changeProfileImageModal .image-preview-holder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#changeProfileImageModal .story-description {
    position: relative;
}

#changeProfileImageModal .close_button_holder .btn-close {
    position: absolute;
    top: 20px;
    right: 0px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

#changeProfileImageModal .close_button_holder {
    position: relative;
    width: 100%;
    height: 32px;
}

#changeProfileImageCarousel .carousel-item .add-post-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: auto;
    z-index: 11;
    filter: invert(1);
    opacity: 1;
}

#changeProfileImageModal .story-description {
    background: none;
}

#changeProfileImageModal .story-description .add-comment-input-container {
    padding: 3px 3px 3px 10px;
    border-radius: 100px;
    border: 1px solid #4d4d4d;
}

#changeProfileImageModal .send-comment-btn {
    background: #000;
    padding: 10px;
    width: 48px;
    height: 48px;
}

#changeProfileImageModal .story-description .add-comment-section {
    margin-bottom: 20px;
}

#changeProfileImageModal .modal-content {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 100vh;
    overflow-y: auto;
    background-color: transparent;
    border: none;
}

#changeProfileImageModal .modal-body {
    padding: 0;
}

#changeProfileImageModal.background_wrap_modal_bg {
    margin-top: 40px;
    border-radius: 24px 24px 0px 0px;
    background: #2D2B3C;
    padding: 0px;
}

#changeProfileImageModal .text_highlight_bold {
    color: #E1B5FF;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #4B4B4B;
    padding-bottom: 15px;
    margin-bottom: 25px;
}


#changeProfileImageModal .thumbnail-item {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #666;
    font-size: 12px;
    border: 0px solid #ddd;
    position: relative;
    aspect-ratio: 1 / 1;
    /* This ensures 1:1 ratio */
}

.thumbnail-item img {
    width: 100%;
    /* height: 100%; */
    /* Changed from 180px to 100% */
    object-fit: cover;
    border-radius: 8px;
}

#changeProfileImageModal .thumbnail-item.add-placeholder {
    background-color: #323232;
    border: 1px dashed #8d8d8d;
    color: #8d8d8d;
}


/* Radio Button Styles for Profile Image Selection */
.thumbnail-radio {
    display: none;
}

.radio-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: rgba(201, 201, 201, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

.radio-icon {
    width: 8px;
    height: 8px;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.thumbnail-radio:checked+.thumbnail-label .radio-overlay {
    background: linear-gradient(135deg, rgba(198, 86, 255, 1) 1%, rgba(115, 139, 255, 1) 100%);
    border-color: #C9C9C9;
    opacity: 1;
}

.thumbnail-radio:checked+.thumbnail-label .radio-icon {
    background-color: #ffffff;
    width: 12px;
    height: 12px;
}

.thumbnail-item:hover .radio-overlay {
    opacity: 0.9;
    transform: scale(1.1);
}

.thumbnail-radio:checked+.thumbnail-label:hover .radio-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.fantastic_form_set input,
.fantastic_form_set textarea {
    transition: ease all 0.3s;
}

/* Form disabled state styles */
.fantastic_form_set.form-disabled input,
.fantastic_form_set.form-disabled textarea {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 1;
    border-radius: 0;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0;
    transition: ease all 0.3s;
}

.fantastic_form_set.form-disabled input:focus {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #666 !important;
    box-shadow: none !important;
}

.fantastic_form_set.form-disabled label {
    margin-bottom: 0 !important;
    top: 10px;
    position: relative;
}

.auto-resize {
    min-height: 40px;
    max-height: 200px;
    resize: none;
    overflow: hidden;
}

/* Add this new rule to remove resize handle from all textareas */
textarea {
    resize: none;
}



.level_upgrade div.level_upgrade_item {
    border: 1px solid #4B4B4B;
    background-color: #2D2B3C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-items: center;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    color: #fff;
}

.level_upgrade div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level_upgrade div img {
    width: 24px;
    height: 24px;
    display: table;
}

.level_upgrade p {
    font-size: 0.9em;
    color: #fff;
    margin: 0;
}



/* My Team styles */
.my_team ul {
    padding: 0;
    margin: 0;
}


.my_team ul li {
    border-bottom: 1px solid #4B4B4B;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

.my_team .col-12 ul:last-child li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Form styles specific to my-post-page for my_team */
.my-post-page .my_team {
    background: transparent;
    border: none;
    padding: 0;
}

.friend_social_post_footer {
    display: flex;
    gap: 0;
    margin-bottom: 0 !important;
    justify-content: flex-end;
    align-items: center;
}


/* Notification */
.notification_liked_image {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    float: right;
}

.notification_liked_image img {
    display: table;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-set .name {
    font-size: 0.8em;
    margin-bottom: 3px;
    font-weight: 300;
    color: #fff;
    line-height: 1.3em;
}

.notification-set .timestamp {
    font-weight: 300;
}

.invite-friends-banner {
    display: table;
    width: 100%;
}

.invite_friends_copy p {
    font-size: 0.9em;
    color: #fff;
    font-weight: 300;
    margin-bottom: 0;
    display: -webkit-box;
    /* Required for line-clamp to work in WebKit browsers */
    -webkit-line-clamp: 2;
    /* Limits the text to 2 lines */
    -webkit-box-orient: vertical;
    /* Required for line-clamp */
    overflow: hidden;
    /* Hides the overflowing text */
    text-overflow: ellipsis;
    /* Adds the ellipsis */
    word-break: break-all;
}

.invite_friends_copy img {
    max-width: 24px;
}


.invite_friends ul {
    padding: 0;
    margin: 0;
}
.invite_friends ul li {
    border-bottom: 1px solid #4B4B4B;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

/* Character counter styling */
#charCounter {
    font-size: 0.7em;
    color: #8D8D8D;
    transition: color 0.3s ease;
    position: absolute;
    bottom: 10px;
    right: 10px;
}


/* Help Upload Form Styles */
#helpUploadForm {
    margin: 0px;
}

#helpUploadArea {
    background: transparent;
    border: 1px solid #4B4B4B;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#helpUploadArea:hover {
    border-color: #ffffff;
    background: transparent;
}

#helpUploadArea img {
    width: 24px;
    height: 24px;
    margin-bottom: 16px;
    opacity: 0.7;
}

#helpUploadArea .upload-content h5 {
    color: #FFFFFF;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

#helpUploadArea .upload-content p {
    color: #8D8D8D;
    font-size: 0.7em;
    margin: 0;
}

#helpUploadArea input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File Preview Styles */
.file-preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-preview-item {
    background: #2D2B3C;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 0.8em;
    font-weight: 300;
}

.file-preview-item .file-name {
    flex: 1;
    text-align: left;
}

.file-preview-item .remove-file {
    background: none;
    border: none;
    color: #8D8D8D;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.file-preview-item .remove-file:hover {
    color: #FF6B6B;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}


.about_us_set img {
    display: table;
    width: 100%;
    border-radius: 24px;
}



.login-page main {
    background: url(../image/login_bg.png) no-repeat center top;
    background-size: cover;
}

.login-main-holder{max-width: 300px;}

.login-page .main_container {
    background-color: transparent;
}

.login_logo{
        display: table;
    width: 100%;
    max-width: 296px;
    margin-bottom: 10px;
}

.login-icon-set{
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
}

.login-banner-ribbon {
    display: table;
    width: 100%;
    position: relative;
    top: -40px;
}

.login-icon-set li{display: flex; flex-direction: column; gap: 10px; align-items: center;}

.login-icon-set img{ width: 48px; height: 48px; display: table;}

.login-icon-set li p{font-size: 0.6em; line-height: 1.4em; font-weight: 300; color:#E1B5FF; width: 60px;}

.fs-10{font-size: 0.8em; font-weight: 400;}

.f-logo-wallet-connect{display: table; width: 32px; height: 32px;}

#loginWalletReferralModal .fantastic_form_set input:focus{color: #4B4B4B;}

#loginWalletReferralModal .fantastic_form_set input{border: 1px solid #b7b7b7!important;}


.my_team_set_folded{
    background: #1C1C25;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 0px;
}
.my_team_set_folded h4{font-size: 0.9em; font-weight: bold; color: #fff; text-align: center; margin-bottom: 4px;}
.my_team_set_folded p{font-size: 0.7em; font-weight: 300; color: #A7A7A7; text-align: center; line-height: 1.4em; margin-bottom: 0;}
.my_team_set_folded_spacing_sep{padding: 16px 0px 0px; border-top: 1px solid rgb(255 255 255 / 20%);    max-width: calc(100% - 32px);
    margin: 16px auto 0px;}
    

.my_team_arrow_collapsed{transition: ease all 0.3s; transform: rotate(90deg);}
.my_team_java_exx.active_collapse .my_team_arrow_collapsed{transform: rotate(270deg);}

.my_team_second_level {
    display: none;            /* collapsed initially */
    overflow: hidden;         /* avoid bleed during animation */
    transition: none;         /* prevent conflict with jQuery slide */
    will-change: height;
    margin-left: 15px;
    margin-top: 0;
    position: relative;
    width: calc(100% - 15px);
    padding: 0;
}

.my_team_java_exx{transition: ease all 0.6s;}

.container.my_team_set_folded{transition: ease all 0.3s;}
.my_team_java_exx.active_collapse .container.my_team_set_folded{margin-bottom: 15px;}

.my_team_java_exx.active_collapse .my_team_second_level {
    overflow: visible;         /* show dashed line when expanded */
transition: ease all 0.6s;}

.my_team_second_level .custom_second_row{
      background: #1C1C25;
    position: relative;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 15px;
}


.my_team_second_level h4{font-size: 0.8em; font-weight: bold; color: #fff; text-align: center; margin-bottom: 4px;}
.my_team_second_level p{font-size: 0.6em; font-weight: 300; color: #A7A7A7; text-align: center; line-height: 1.4em; margin-bottom: 0;}

.my_team_second_level:before{
content: '';
    display: block;
    width: 1px;
    height: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: -13px;
    border-left: 1px dashed #9055cb;
}

.dashed-with-rounded-corners {
    background: linear-gradient(to bottom, #bc70e3 0%, #480199 100%);
    border-radius: 100px;
    width: 9px;
    height: 9px;
    position: absolute;
    left: -17px;
    top: -3px;
}

.dashed-with-rounded-corners-b {
    background: linear-gradient(to bottom, #bc70e3 0%, #480199 100%);
    border-radius: 100px;
    width: 9px;
    height: 9px;
    position: absolute;
    left: -17px;
    bottom: -3px;
}

.organisation_group{overflow-x: scroll; margin: 0 7px; padding: 0;}
.organisation_team{width: 740px;}
.my_organisation_set_sponsor,
.my_organisation_set{
    background: #1C1C25;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 0px;
    max-width: 360px;
}
.my_organisation_set_sponsor{
    max-width: 100%;
    margin-bottom: 5px;
    border: 0.5px inset #9055cb;
}
.my_organisation_set_sponsor h4,
.my_organisation_set h4{font-size: 0.9em; font-weight: bold; color: #fff; text-align: center; margin-bottom: 4px;}
.my_organisation_set_sponsor p,
.my_organisation_set p{font-size: 0.7em; font-weight: 300; color: #A7A7A7; text-align: center; line-height: 1.4em; margin-bottom: 0;}
.my_organisation_set_folded_spacing_sep{padding: 16px 0px 0px; border-top: 1px solid rgb(255 255 255 / 20%);    max-width: calc(100% - 32px);
    margin: 16px auto 0px;}

.my_organisation_set_sponsor .follow-set
.my_organisation_set .follow-set{display: block; width: 100%;}

.level_2_left {
    position: relative;
    float: left;
}

.level_2_right {
    position: relative;
    float: right;
}

/* Disabled state styling for Level 16 children (shown under Level 8) */
.level_2_left.disabled-drill,
.level_2_right.disabled-drill {
  cursor: not-allowed;
  opacity: 0.7;
}



.organisation_line_connector{ display: flex;
    position: relative;
    top: 0;}

.organisation_line_connector img{
        display: table;
    width: 348px;
    position: relative;
    left: calc(50% - 174px);
}

#modalReferral .fantastic_form_set input:focus{color: #4B4B4B;}

#modalReferral .fantastic_form_set input{border: 1px solid #b7b7b7!important;}

.rst-val-separator{margin:0 10px;background: #726f68;width: 1px;display: inline-block;height: 25px;}


.pagination-parent{text-align: center; margin-bottom: 1rem;}
.pagination{margin:0;    display: flex;justify-content: center;}
.pagination > li > a, .pagination > li > a{color:#b7b7b7; padding: 5px;}
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus{font-weight: bolder; color:#E1B5FF!important}




.topup-field {
    text-align:center;
    margin-top: 3.5rem;
}

.topup-field .pol-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 3rem 10px;
    gap: 10px;
}

.topup-field .pol-input-wrapper input {
    width: 90%;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    background: none;
    border: none;
    border-bottom: 2px solid #888;
    color: white;
    outline: none;
}

.topup-field .buy-button {
    background: #592f8d;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 20px;
    width: 100%;
    cursor: pointer;
}

.topup-field .usd-value {
    font-size: 20px;
    margin-bottom: 30px;
}


.topup-field .amount-buttons {
    display: grid;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    grid-template-columns: repeat(4, 1fr);
}

.topup-field .amount-buttons button {
    background: #222;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.no_spinner_btn::-webkit-inner-spin-button,
.no_spinner_btn::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.no_spinner_btn {
    appearance: textfield;
    -moz-appearance: textfield;
}


.sendPolyLoad{
position: fixed;
z-index: 9999;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.4);
text-align: center;
padding-top: 40%;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E1B5FF;
  box-shadow: 0 0 0 0 rgba(198, 86, 255, 0.2);
  animation: pulse-c6zlskmd 1s infinite;
  margin: auto;
}

@keyframes pulse-c6zlskmd {
  100% {
     box-shadow: 0 0 0 100px #0000;
  }
}
.article_count{
color: #ffffff;
font-size: 0.75em;
text-align: center;
margin: auto 0.3em;
}

.article_count[data-count='0']{
    display: none;
}
#data_message{
    display: none;;
}
label.error{
    color:red!important;
    font-size: 0.7em!important;
}
.article_load:last-child{
    margin-bottom: 150px;
}
.jstree-default .jstree-anchor{
    height: fit-content!important;
    width: calc(100% - 30px);
}
.jstree-default .jstree-clicked,
.jstree-default .jstree-hovered{
        background: transparent !important;
    box-shadow: 0 0 0 !important;
    border: 0 !important;
}

.package_item {
    border: 1px solid #4B4B4B;
    background-color: #2D2B3C;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.package_item.active{
    border: 1px solid #E1B5FF;
    box-shadow: 0 0 10px #E1B5FF;
    /* background: linear-gradient(135deg, rgba(198, 86, 255, 1) 0%, rgba(115, 139, 255, 1) 100%); */
}

.package_item>span{
    color: #fff;
    font-size: 0.9em;
    font-weight: 100;
}
.package_item div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.package_item div img {
    width: 24px;
    height: 24px;
    display: table;
}

.package_item p {
    font-size: 0.9em;
    color: #fff;
    margin: 0;
}

.package_item p span {
    color: #8D8D8D;
    margin: 0;
}
g[aria-labelledby="id-68-title"], g[aria-labelledby="id-63-title"], g[aria-labelledby]{
}
g[aria-labelledby="id-61-title"]{
    display: none !important;

}
.convert_node{
    color: #E1B5FF;
    margin: 10px auto 20px;
    font-style: italic;
    font-size: 0.825em;
}