* {
  box-sizing: border-box;
  }

html {
scroll-behavior: auto;
}

body {
margin: 0;
background: #F0F5FA;
color: #172B4D;
font-family: Arial, Helvetica, sans-serif;
}

a {
text-decoration: none;
color: inherit;
}

button,
input {
font: inherit;
}

button {
-webkit-tap-highlight-color: transparent;
}

/* HEADER */

.top-header {
height: 65px;
background: #FFFFFF;
border-bottom: 1px solid #E4EDF7;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 4%;
gap: 20px;
position: sticky;
top: 0;
z-index: 100;
}

.header-left {
display: flex;
align-items: center;
gap: 13px;
}

.menu-toggle {
display: none;
font-size: 25px;
}

.brand {
display: flex;
align-items: center;
gap: 9px;
color: #0874DC;
font-size: 23px;
font-weight: 900;
}

.brand img {
border-radius: 12px;
}

.search-box {
width: 300px;
height: 40px;
background: #F0F5FA;
border-radius: 25px;
display: flex;
align-items: center;
padding: 0 14px;
gap: 8px;
}

.search-box span {
font-size: 23px;
color: #718096;
}

.search-box input {
border: none;
outline: none;
background: transparent;
width: 100%;
min-width: 0;
color: #172B4D;
}

.header-actions {
display: flex;
align-items: center;
gap: 12px;
}

.header-icon {
width: 39px;
height: 39px;
border-radius: 50%;
background: #EFF6FF;
display: flex;
align-items: center;
justify-content: center;
color: #0874DC;
font-size: 22px;
position: relative;
}

.create-icon {
font-size: 29px;
}

.profile-link img {
width: 39px;
height: 39px;
border-radius: 50%;
object-fit: cover;
}

.notification-dot {
display: none;
width: 10px;
height: 10px;
background: #EF3340;
border: 2px solid white;
border-radius: 50%;
position: absolute;
top: 2px;
right: 1px;
}

/* MAIN LAYOUT */

.home-layout {
max-width: 1450px;
margin: auto;
display: grid;
grid-template-columns: 245px minmax(0, 650px) 260px;
justify-content: center;
gap: 22px;
padding: 20px;
}

.left-sidebar {
position: sticky;
top: 85px;
height: calc(100vh - 100px);
overflow-y: auto;
padding: 8px;
}

.main-content {
min-width: 0;
width: 100%;
}

.right-sidebar {
position: sticky;
top: 85px;
height: fit-content;
}

/* LEFT SIDEBAR */

.sidebar-user {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
}

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

.sidebar-user strong,
.sidebar-user small {
display: block;
}

.sidebar-user strong {
font-size: 14px;
}

.sidebar-user small {
color: #718096;
margin-top: 4px;
}

.sidebar-divider {
height: 1px;
background: #DCE6F1;
margin: 12px 0;
}

.sidebar-links {
display: flex;
flex-direction: column;
gap: 5px;
}

.sidebar-links a {
padding: 12px;
border-radius: 9px;
font-size: 14px;
display: flex;
align-items: center;
gap: 12px;
}

.sidebar-links a:hover {
background: #E2F1FF;
color: #0874DC;
}

.sidebar-bottom {
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px;
font-size: 12px;
color: #718096;
}

/* WELCOME */

.mobile-welcome {
display: none;
}

/* CARDS */

.create-post-card,
.stories-section,
.side-card,
.post-card {
background: #FFFFFF;
border: 1px solid #E4EDF7;
border-radius: 13px;
margin-bottom: 16px;
box-shadow: 0 2px 9px rgba(20, 60, 100, 0.045);
}

.create-post-card {
padding: 15px;
}

.create-post-top {
display: flex;
align-items: center;
gap: 11px;
}

.create-post-top img {
width: 43px;
height: 43px;
border-radius: 50%;
object-fit: cover;
}

.post-input {
flex: 1;
min-width: 0;
padding: 13px 17px;
background: #F0F5FA;
border-radius: 25px;
color: #718096;
font-size: 14px;
}

.quick-photo {
font-size: 23px;
color: #168BFA;
}

.create-post-actions {
display: flex;
justify-content: space-around;
border-top: 1px solid #E8EEF5;
margin-top: 14px;
padding-top: 12px;
}

.create-post-actions a {
display: flex;
align-items: center;
gap: 7px;
font-size: 13px;
font-weight: 600;
color: #52647A;
}

.write-icon,
.photo-icon,
.video-icon {
font-size: 19px;
font-weight: bold;
}

.write-icon {
color: #168BFA;
}

.photo-icon {
color: #16A56B;
}

.video-icon {
color: #E35B72;
}

/* STORIES */

.stories-section {
padding: 15px;
}

.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 13px;
}

.section-heading h2 {
font-size: 17px;
margin: 0;
}

.section-heading a {
font-size: 13px;
color: #168BFA;
font-weight: 600;
}

.stories-list {
display: flex;
gap: 10px;
overflow-x: auto;
scrollbar-width: none;
}

.stories-list::-webkit-scrollbar {
display: none;
}

.story-card {
flex: 0 0 110px;
border-radius: 12px;
overflow: hidden;
background: #F0F5FA;
text-align: center;
}

.story-image {
height: 115px;
background: #DDEEFF;
position: relative;
}

.story-image img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: .65;
}

.story-image span {
position: absolute;
bottom: -14px;
left: 50%;
transform: translateX(-50%);
width: 32px;
height: 32px;
border-radius: 50%;
background: #168BFA;
color: white;
border: 3px solid white;
font-size: 23px;
display: grid;
place-items: center;
}

.story-card strong {
display: block;
font-size: 12px;
padding: 20px 4px 12px;
}

.story-placeholder {
flex: 1;
min-width: 130px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: #8A9AAF;
text-align: center;
font-size: 12px;
padding: 10px;
}

.story-placeholder span {
font-size: 25px;
color: #168BFA;
}

/* FEED */

.feed-heading {
display: flex;
align-items: center;
justify-content: space-between;
margin: 20px 2px 12px;
}

.feed-heading h2 {
font-size: 18px;
margin: 0;
}

.feed-heading button {
border: none;
background: #E5F2FF;
color: #0874DC;
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
font-size: 12px;
font-weight: bold;
}

.posts-feed {
display: flex;
flex-direction: column;
gap: 15px;
}

/* POST */

.post-card {
overflow: visible;
margin: 0;
position: relative;
}

.post-header {
padding: 13px;
display: flex;
align-items: center;
gap: 10px;
}

.post-author-avatar {
display: block;
width: 43px;
height: 43px;
flex-shrink: 0;
}

.post-avatar {
width: 43px;
height: 43px;
border-radius: 50%;
object-fit: cover;
display: block;
}

.post-author {
flex: 1;
min-width: 0;
}

.post-author-name {
display: block;
font-size: 14px;
font-weight: 700;
overflow-wrap: anywhere;
}

.post-author-name:hover {
color: #168BFA;
}

.post-author small {
display: block;
font-size: 11px;
color: #8493A7;
margin-top: 5px;
}

.post-menu-wrap {
position: relative;
}

.post-menu {
width: 35px;
height: 35px;
border: none;
border-radius: 50%;
background: transparent;
color: #718096;
font-size: 21px;
cursor: pointer;
}

.post-menu:hover {
background: #EFF6FF;
}

.post-menu-dropdown {
position: absolute;
top: 39px;
right: 0;
width: 155px;
background: white;
border: 1px solid #E4EDF7;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0,0,0,.12);
z-index: 20;
padding: 5px;
}

.post-menu-dropdown button {
display: block;
width: 100%;
border: none;
background: white;
padding: 11px;
text-align: left;
border-radius: 7px;
color: #D93645;
cursor: pointer;
font-size: 13px;
}

.post-menu-dropdown button:hover {
background: #FFF0F1;
}

.post-content {
padding: 3px 14px 14px;
font-size: 14px;
line-height: 1.65;
overflow-wrap: anywhere;
}

.post-text-background {
min-height: 160px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 25px;
font-size: 21px;
font-weight: bold;
color: white;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
text-shadow: 0 2px 5px rgba(0,0,0,.55);
}

.post-photo-gallery {
width: 100%;
display: grid;
grid-template-columns: 1fr;
gap: 3px;
background: #E9EEF5;
overflow: hidden;
}

.post-photo-gallery.multiple-photos {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-photo-gallery img {
width: 100%;
max-height: 500px;
min-height: 100px;
object-fit: cover;
display: block;
}

.post-photo-gallery.multiple-photos img {
height: 220px;
}

.post-media-container {
width: 100%;
background: #000;
}

.post-media-container video {
width: 100%;
max-height: 500px;
display: block;
}

/* POST COUNTS */

.post-stats {
display: flex;
justify-content: space-between;
padding: 9px 14px;
color: #718096;
font-size: 12px;
}

.post-stats:empty {
display: none;
}

/* POST BUTTONS */

.post-actions {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
border-top: 1px solid #E8EEF5;
margin: 0 10px;
padding: 5px 0;
}

.post-actions button {
border: none;
background: transparent;
color: #65768C;
font-size: 12px;
font-weight: 600;
padding: 9px 2px;
cursor: pointer;
border-radius: 7px;
white-space: nowrap;
}

.post-actions button:hover {
background: #F0F7FF;
color: #168BFA;
}

.post-actions button.active {
color: #168BFA;
}

.post-actions button[data-action="like"].active {
color: #E54865;
}

.post-actions button:disabled {
opacity: .6;
cursor: wait;
}

/* REPOST LABEL */

.repost-label {
padding: 9px 13px 0;
color: #718096;
font-size: 12px;
}

/* LOADING AND EMPTY */

.empty-feed,
.feed-loading {
background: white;
padding: 35px 18px;
border-radius: 13px;
text-align: center;
color: #718096;
}

.empty-feed h3 {
color: #172B4D;
}

.empty-feed a {
display: inline-block;
margin-top: 10px;
padding: 10px 18px;
background: #168BFA;
color: white;
border-radius: 8px;
}

.loading-spinner {
width: 30px;
height: 30px;
border: 3px solid #DCEBFA;
border-top-color: #168BFA;
border-radius: 50%;
margin: auto;
}

/* SIDEBAR RIGHT */

.side-card {
padding: 16px;
}

.side-card h3 {
margin: 0 0 15px;
font-size: 15px;
}

.suggestion-empty {
text-align: center;
color: #718096;
font-size: 13px;
line-height: 1.5;
}

.suggestion-empty span {
font-size: 28px;
}

.suggestion-empty a {
display: inline-block;
background: #EAF5FF;
color: #0874DC;
padding: 8px 13px;
border-radius: 8px;
font-weight: bold;
}

/* COMMENT MODAL */

.comment-modal {
display: none;
position: fixed;
inset: 0;
background: rgba(10, 25, 45, .55);
z-index: 500;
align-items: center;
justify-content: center;
padding: 15px;
}

.comment-modal.open {
display: flex;
}

.comment-modal-box {
background: white;
width: 100%;
max-width: 480px;
max-height: 80vh;
border-radius: 14px;
display: flex;
flex-direction: column;
overflow: hidden;
}

.comment-modal-heading {
display: flex;
justify-content: space-between;
align-items: center;
padding: 13px 16px;
border-bottom: 1px solid #E4EDF7;
}

.comment-modal-heading h3 {
margin: 0;
font-size: 16px;
}

.comment-modal-heading button {
border: none;
background: transparent;
font-size: 25px;
cursor: pointer;
}

.comment-list {
padding: 15px;
overflow-y: auto;
min-height: 100px;
flex: 1;
}

.comment-item {
display: flex;
gap: 9px;
margin-bottom: 13px;
}

.comment-item img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}

.comment-bubble {
background: #F0F5FA;
border-radius: 12px;
padding: 9px 12px;
min-width: 0;
font-size: 13px;
overflow-wrap: anywhere;
}

.comment-bubble strong {
display: block;
margin-bottom: 4px;
}

.comment-empty {
color: #8493A7;
text-align: center;
font-size: 13px;
}

.comment-form {
display: flex;
gap: 8px;
padding: 12px;
border-top: 1px solid #E4EDF7;
}

.comment-form input {
flex: 1;
min-width: 0;
border: 1px solid #DCE6F1;
border-radius: 22px;
padding: 10px 13px;
outline: none;
}

.comment-form button {
border: none;
background: #168BFA;
color: white;
border-radius: 22px;
padding: 0 17px;
cursor: pointer;
}

/* MOBILE NAV */

.mobile-bottom-nav {
display: none;
}

/* TABLET */

@media (max-width: 1100px) {

.home-layout {
    grid-template-columns: 200px minmax(0, 650px);
}

.right-sidebar {
    display: none;
}

}

/* MOBILE */

@media (max-width: 750px) {

body {
    padding-bottom: 65px;
}

.top-header {
    height: 57px;
    padding: 0 12px;
    gap: 8px;
}

.header-left {
    gap: 9px;
}

.menu-toggle {
    display: block;
    font-size: 23px;
}

.brand {
    font-size: 19px;
    gap: 5px;
}

.brand img {
    width: 36px !important;
    height: 36px !important;
}

.search-box {
    display: none;
}

.header-actions {
    gap: 7px;
}

.header-icon {
    width: 34px;
    height: 34px;
    font-size: 19px;
}

.create-icon {
    font-size: 26px;
}

.profile-link img {
    width: 34px;
    height: 34px;
}

.header-actions .notification-icon {
    display: none;
}

.home-layout {
    display: block;
    padding: 10px 0 0;
    width: 100%;
}

.left-sidebar,
.right-sidebar {
    display: none;
}

.main-content {
    width: 100%;
}

.mobile-welcome {
    display: block;
    padding: 10px 14px;
}

.mobile-welcome h2 {
    font-size: 19px;
    margin: 0 0 4px;
}

.mobile-welcome p {
    font-size: 12px;
    color: #718096;
    margin: 0;
}

.create-post-card,
.stories-section {
    border-radius: 0;
    margin-bottom: 9px;
    border-left: none;
    border-right: none;
}

.create-post-card {
    padding: 12px;
}

.create-post-top img {
    width: 38px;
    height: 38px;
}

.post-input {
    padding: 11px 14px;
    font-size: 13px;
}

.stories-section {
    padding: 13px;
}

.story-card {
    flex-basis: 105px;
}

.story-image {
    height: 105px;
}

.feed-heading {
    padding: 0 13px;
    margin: 17px 0 10px;
}

.posts-feed {
    gap: 9px;
}

.post-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.post-header {
    padding: 12px;
}

.post-photo-gallery img {
    max-height: 420px;
}

.post-photo-gallery.multiple-photos img {
    height: 180px;
}

.post-actions {
    margin: 0 5px;
}

.post-actions button {
    font-size: 11px;
    padding: 10px 1px;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #E0E9F3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #8190A5;
    position: relative;
}

.mobile-bottom-nav a > span {
    font-size: 21px;
    line-height: 23px;
}

.mobile-bottom-nav small {
    font-size: 9px;
}

.mobile-bottom-nav a.active {
    color: #168BFA;
}

.mobile-bottom-nav img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-notification .notification-dot {
    top: 0;
    right: 28%;
}

}

/* VERY SMALL SCREENS */

@media (max-width: 350px) {

.top-header {
    padding: 0 7px;
}

.brand {
    font-size: 16px;
}

.brand img {
    width: 32px !important;
    height: 32px !important;
}

.header-actions {
    gap: 4px;
}

.header-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
}

.profile-link img {
    width: 30px;
    height: 30px;
}

.mobile-welcome h2 {
    font-size: 17px;
}

.create-post-actions a {
    font-size: 11px;
    gap: 4px;
}

.post-actions button {
    font-size: 10px;
}

.post-photo-gallery.multiple-photos img {
    height: 135px;
}

.post-text-background {
    font-size: 17px;
    min-height: 120px;
    padding: 15px;
}

}

/* =========================
   STRIPE POST DESIGN
========================= */

.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.post-card {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e4edf7;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(23, 43, 77, 0.06);
    overflow: visible;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #172b4d;
    min-width: 0;
}

.post-avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaf5ff;
    flex-shrink: 0;
}

.post-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.post-author small {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
}

.post-menu-wrapper {
    position: relative;
}

.post-menu-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f6fc;
    color: #172b4d;
    font-size: 24px;
    cursor: pointer;
}

.post-menu-button:hover {
    background: #e2efff;
    color: #168bfa;
}

.post-dropdown {
    display: none !important;
}

.post-text {
    color: #26364f;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    margin: 12px 0;
    padding: 12px;
    border-radius: 10px;
}

.post-bg-plain {
    background: #ffffff;
}

.post-bg-blue {
    background: #168bfa;
    color: white;
}

.post-bg-purple {
    background: #7954d8;
    color: white;
}

.post-bg-pink {
    background: #f56b9b;
    color: white;
}

.post-bg-orange {
    background: #ff9b42;
    color: white;
}

.post-bg-green {
    background: #16a879;
    color: white;
}

.post-bg-dark {
    background: #172b4d;
    color: white;
}

.post-bg-gradient {
    background: linear-gradient(135deg, #168bfa, #7954d8);
    color: white;
}

.post-image-background {
    min-height: 180px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}

.post-media-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 12px;
}

.post-media {
    width: 100%;
    max-height: 420px;
    min-height: 120px;
    object-fit: cover;
    display: block;
    background: #f1f6fc;
}

.post-media-container:has(.post-media:only-child) {
    grid-template-columns: 1fr;
}

.post-media-container:has(.post-media:only-child) .post-media {
    max-height: 500px;
}

.post-statistics {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px;
    color: #718096;
    font-size: 12px;
    border-bottom: 1px solid #eaf0f7;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding-top: 10px;
}

.post-actions button {
    flex: 1;
    min-width: 0;
    padding: 10px 3px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #52647d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.post-actions button:hover {
    background: #eaf5ff;
    color: #168bfa;
}

.post-actions button.active {
    color: #168bfa;
    background: #eaf5ff;
}

.empty-feed {
    background: white;
    border: 1px solid #e4edf7;
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    color: #718096;
}

.empty-feed h3 {
    color: #172b4d;
    margin-bottom: 8px;
}

.empty-feed button {
    background: #168bfa;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    margin-top: 12px;
    cursor: pointer;
}

/* COMMENTS */

.comment-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 35, 60, 0.55);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.comment-modal-box {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.comment-modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4edf7;
}

.comment-modal-heading h3 {
    color: #172b4d;
    margin: 0;
}

.comment-modal-heading button {
    border: none;
    background: #eaf5ff;
    color: #168bfa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.comment-list {
    overflow-y: auto;
    padding: 12px 0;
    min-height: 100px;
}

.comment-item {
    background: #f5faff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.comment-item strong {
    color: #172b4d;
    font-size: 13px;
}

.comment-item p {
    color: #52647d;
    font-size: 13px;
    margin: 5px 0;
}

.comment-form {
    display: flex;
    gap: 8px;
    border-top: 1px solid #e4edf7;
    padding-top: 12px;
}

.comment-form input {
    flex: 1;
    min-width: 0;
    padding: 11px;
    border: 1px solid #dce7f3;
    border-radius: 9px;
    outline: none;
}

.comment-form button {
    background: #168bfa;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 0 17px;
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 480px) {
    .post-card {
        padding: 12px;
        border-radius: 12px;
    }

    .post-actions {
        gap: 1px;
    }

    .post-actions button {
        font-size: 10px;
        padding: 9px 1px;
    }

    .post-avatar {
        width: 38px;
        height: 38px;
    }

    .post-media {
        min-height: 100px;
    }
}

@media (max-width: 320px) {
    .post-actions button {
        font-size: 9px;
    }

    .post-statistics {
        font-size: 10px;
    }
}

/* =================================
   FACEBOOK-STYLE COLOURED TEXT POSTS
================================= */

.post-card .post-text {
    width: 100%;
    min-height: 280px;
    margin: 12px 0;
    padding: 35px 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;

    font-size: 27px;
    line-height: 1.4;
    font-weight: 700;

    border-radius: 3px;
    box-sizing: border-box;
}

/* Normal white text background */
.post-card .post-bg-plain {
    background: #ffffff;
    color: #172b4d;
}

/* Blue */
.post-card .post-bg-blue {
    background: #168bfa;
    color: #ffffff;
}

/* Purple */
.post-card .post-bg-purple {
    background: #7954d8;
    color: #ffffff;
}

/* Pink */
.post-card .post-bg-pink {
    background: #ed5c91;
    color: #ffffff;
}

/* Orange */
.post-card .post-bg-orange {
    background: #ff963d;
    color: #ffffff;
}

/* Green */
.post-card .post-bg-green {
    background: #16a879;
    color: #ffffff;
}

/* Dark */
.post-card .post-bg-dark {
    background: #172b4d;
    color: #ffffff;
}

/* Gradient */
.post-card .post-bg-gradient {
    background: linear-gradient(135deg, #168bfa, #7954d8);
    color: #ffffff;
}

/* Image backgrounds */
.post-card .post-image-background {
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

/* Small phone screens */
@media (max-width: 480px) {
    .post-card .post-text {
        min-height: 240px;
        padding: 25px 16px;
        font-size: 23px;
    }

    .post-card .post-image-background {
        min-height: 240px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .post-card .post-text {
        min-height: 220px;
        padding: 20px 12px;
        font-size: 20px;
    }

    .post-card .post-image-background {
        min-height: 220px;
    }
}

/* =================================
   STRIPE COMMENT MODAL FIX
================================= */

.comment-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 45, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.comment-modal.active {
    display: flex !important;
}

.comment-modal-box {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.comment-modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e4edf7;
}

.comment-modal-heading h3 {
    margin: 0;
    color: #172b4d;
}

.comment-modal-heading button {
    border: none;
    background: #eaf5ff;
    color: #0874dc;
    font-size: 25px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.comment-list {
    flex: 1;
    min-height: 100px;
    overflow-y: auto;
    padding: 15px;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #e4edf7;
}

.comment-item p {
    margin: 8px 0 0 43px;
    color: #172b4d;
    overflow-wrap: anywhere;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.comment-author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author strong {
    display: block;
    color: #172b4d;
    font-size: 13px;
}

.comment-author small {
    color: #718096;
    font-size: 10px;
}

.comment-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e4edf7;
    background: #ffffff;
}

.comment-form input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce7f3;
    border-radius: 25px;
    outline: none;
}

.comment-form input:focus {
    border-color: #168bfa;
}

.comment-form button {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background: #168bfa;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 480px) {
    .comment-modal {
        padding: 8px;
    }

    .comment-modal-box {
        max-height: 90vh;
    }
}

/* STRIPE VERIFIED BADGE */

.stripe-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    margin-left: 4px;

    background: #1688f8;
    color: #ffffff;

    border-radius: 50%;

    font-size: 11px;
    font-weight: bold;

    vertical-align: middle;
    flex-shrink: 0;
}

/* STRIPE SPONSORED ADVERTISEMENT */

.stripe-sponsored-ad {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sponsored-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 13px;
}

.sponsored-ad-header strong {
    display: block;
    color: #1688f8;
    font-size: 14px;
}

.sponsored-ad-header span {
    font-size: 11px;
    color: #718096;
}

.sponsored-ad-header .sponsored-label {
    background: #eff7ff;
    color: #1688f8;
    padding: 6px 9px;
    border-radius: 20px;
}

.sponsored-ad-image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.sponsored-ad-content {
    padding: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #26374d;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* =========================================
STRIPE STORIES DISPLAY
========================================= */

.stories-section {
width: 100%;
overflow: hidden;
}

.stories-list {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 12px;
width: 100%;
overflow-x: auto;
overflow-y: hidden;
padding: 8px 3px 14px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}

.stories-list::-webkit-scrollbar {
display: none;
}

.story-card {
display: flex;
flex-direction: column;
flex: 0 0 105px;
width: 105px;
text-decoration: none;
color: #172B4D;
cursor: pointer;
}

.story-card-preview {
position: relative;
width: 105px;
height: 155px;
overflow: hidden;
border-radius: 13px;
background: #e8f1fa;
border: 1px solid #dce7f2;
}

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

.story-text-preview {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
color: white;
font-size: 13px;
font-weight: 700;
text-align: center;
overflow-wrap: anywhere;
}

.story-card-avatar {
position: absolute;
top: 8px;
left: 8px;
width: 34px;
height: 34px;
border-radius: 50%;
object-fit: cover;
border: 3px solid #168BFA;
background: white;
}

.story-card-name {
width: 100%;
margin-top: 7px;
font-size: 12px;
font-weight: 600;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.story-card-name .stripe-verified-badge {
display: inline-flex;
vertical-align: middle;
}

.story-loading {
padding: 15px;
color: #718096;
font-size: 13px;
}

/* Mobile display */

@media (max-width: 600px) {
.stories-list {
gap: 9px;
}

.story-card {
    flex-basis: 90px;
    width: 90px;
}

.story-card-preview {
    width: 90px;
    height: 135px;
    border-radius: 11px;
}

.story-card-name {
    font-size: 11px;
}

}

#storiesList.stories-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#storiesList.stories-list::-webkit-scrollbar {
    display: none;
}

#storiesList .story-card {
    display: flex !important;
    flex: 0 0 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex-direction: column !important;
}
