* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding-top: 92px;   /* ✅ FIX: 130px → 92px (header sirrii) */
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.card, .box {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ===== TOP HEADER ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #f0f2f5;
}

.logo {
    color: #1877f2;
    font-size: 16px;
    font-weight: bold;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    background: #e4e6eb;
    color: #050505;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.icon-btn:hover {
    background: #d8dadf;
}

.nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #e4e6eb;
}

.nav-item {
    text-decoration: none;
    color: #65676b;
    font-size: 16px;
    padding: 2px 0;
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
}

.nav-item.style-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: 4px;
    right: 25%;
    background: #e41e3f;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ===== MENU DROPDOWN ===== */
.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.menu-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
}

.menu-dropdown a:hover {
    background-color: #f0f2f5;
}

.menu-dropdown.show {
    display: block;
}

/* ===== CREATE ACTIONS ===== */
.create-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #4b4c4f;
    flex: 1;
    text-decoration: none;
}

.action-btn span {
    font-size: 14px;
    color: #333333;
}

/* ===== BUTTONS & INPUTS ===== */
button, .btn {
    background: #1877f2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #145dbf;
}

input, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    margin: 8px 0;
}

/* ===== LOGIN / SIGNUP ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    padding: 15px;
}

.login-box, .signup-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-box input[type="text"],
.login-box input[type="password"] {
    height: 45px;
    font-size: 15px;
    margin-bottom: 12px;
}

.login-box button {
    width: 100%;
    height: 45px;
    font-size: 16px;
    border-radius: 8px;
}

/* ===== POST ===== */
.post {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.post-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 15px !important;
}

.post-header .profile-pic {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #ddd;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-user {
    font-size: 15px;
    font-weight: 700;
    color: #050505;
}

.post-time {
    font-size: 11px;
    color: #65676b;
}

.post-content {
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 15px;
    color: #1c1e21;
}

.post img {
    width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 10px 0 !important;
}

.post video {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* ===== POST ACTIONS ===== */
.post-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    padding: 4px 2px;
    border-top: 1px solid #e4e6eb;
    position: relative;
    z-index: 5;   /* ✅ FIX: 100 → 5 */
}

.post-actions a,
.post-actions span,
.like-btn,
.share-btn,
.edit-btn,
.delete-btn {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    padding: 6px 3px;
    cursor: pointer;
    position: relative;
    z-index: 1;   /* ✅ FIX: 99999 → 1 */
    pointer-events: auto !important;
    touch-action: manipulation;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 4px;
}

.post-actions a:hover {
    background-color: #f2f2f2;
    border-radius: 6px;
}

.post-actions .video-stats {
    font-size: 11px;
    padding: 6px 4px;
    color: #666;
}

.post-actions .lbl {
    display: inline-block;
    font-size: 11px;
    margin-left: 2px;
    font-weight: 600;
}

/* ===== VIDEO MENU ===== */
.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    width: 100%;
    border-radius: 10px;
}

.video-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.video-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 999;
}

.video-menu.show {
    display: block;
}

.video-menu a, .video-menu button {
    display: block;
    width: 160px;
    padding: 12px 15px;
    border: none;
    background: white;
    color: #222;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.video-menu a:hover, .video-menu button:hover {
    background: #f2f2f2;
}

/* ===== SUGGESTIONS ===== */
.suggestions {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
}

.suggest-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px;
}

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

/* ===== ADD FRIEND BUTTON ===== */
.add-friend-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #1877f2;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s;
}

.add-friend-btn:hover {
    background: #0d65d9;
}

/* ===== COMMENTS ===== */
.commentForm {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid #f0f2f5;
    align-items: center;   /* ✅ FIX: align-items dabalaman */
}

.commentForm input {
    margin: 0;
    border-radius: 20px;
    padding: 8px 12px;
    background: #f0f2f5;
    border: none;
}

.commentForm button {
    padding: 8px 16px;      /* ✅ FIX */
    border-radius: 20px;
    font-size: 13px;        /* ✅ FIX */
    flex-shrink: 0;         /* ✅ FIX */
    /* margin-bottom: 12px BALLEESSAME */
    /* gap: 10px BALLEESSAME */
}

/* ===== PROFILE ===== */
.profile-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.profile-top {
    height: 55px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    position: sticky;
    top: 92px;              /* ✅ FIX: header height */
    z-index: 20;
    border-bottom: 1px solid #eeeeee;
}

.back-btn {
    text-decoration: none;
    color: #111111;
    font-size: 32px;
    line-height: 1;
    margin-right: 15px;
    display: inline-block;
}

.profile-top-title {
    font-size: 20px;
    font-weight: 700;
}

/* ✅ FIX: profile-card LAMA JIRU → TOKKO (kan profile page) */
.profile-card {
    background: #ffffff;
    margin: 10px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;    /* ✅ FIX: online-dot position */
}

.cover {
    height: 170px;
    background: linear-gradient(135deg, #164e63, #2563eb, #7c3aed);
    position: relative;
}

.profile-photo-wrapper {
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translateX(-50%);
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    background: #eeeeee;
    display: block;
}

.profile-card .online-dot {
    position: absolute;
    right: 4px;
    bottom: 8px;
    width: 25px;
    height: 25px;
    background: #22c55e;
    border: 4px solid #ffffff;
    border-radius: 50%;
}

.profile-info {
    text-align: center;
    padding: 75px 15px 20px;
}

.profile-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.profile-username {
    margin: 5px 0 20px;
    color: #6b7280;
    font-size: 17px;
}

.follow-stats {
    display: flex;
    justify-content: center;
    gap: 55px;
    margin-bottom: 25px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-top: 3px;
}

.edit-profile-page img,
.profile-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* ===== ACTION BUTTONS (voice/video/message) ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 10px 0 20px;
}

.action-item {
    text-decoration: none;
    color: #111827;
    text-align: center;
    width: 85px;
}

.action-circle {
    width: 58px;
    height: 53px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    transition: 0.2s;
}

.action-item:active .action-circle {
    transform: scale(0.92);
}

.voice-icon { color: #22c55e; }
.video-icon { color: #2563eb; }
.message-icon { color: #7c3aed; }

.action-text {
    font-size: 10px;
    font-weight: 500;
}

/* ===== PROFILE ACTIONS ===== */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.follow-btn {
    background: #1877f2;
    color: #ffffff;
}

.following-btn, .friend-btn {
    background: #e5e7eb;
    color: #111827;
}

.bottom-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px 20px;
}

.home-btn, .edit-btn {
    padding: 10px 17px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.home-btn {
    background: #1877f2;
    color: #ffffff;
}

/* ===== ABOUT ===== */
.about-card {
    background: #ffffff;
    margin: 10px;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.about-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 16px 0;
    color: #4b5563;
    font-size: 15px;
}

.about-icon {
    font-size: 22px;
    width: 30px;
    text-align: center;
}

.view-more {
    display: block;
    text-align: center;
    color: #1877f2;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
}

/* ===== PROFILE POSTS ===== */
.profile-container .posts-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 15px 10px;
}

.profile-container .post {
    background: #ffffff;
    margin: 10px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-container .post-content {
    font-size: 16px;
    line-height: 1.5;
}

.profile-container .post img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
}

.profile-container .post-date {
    color: #6b7280;
    font-size: 12px;
    display: block;
    margin-top: 10px;
}

/* ===== SETTINGS ===== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #f4f6f9;
    font-family: Arial, sans-serif;
}

.settings-container h2 {
    font-size: 24px;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
}

.setting-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b2e83;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
    gap: 10px;
}

.setting-item:hover {
    background-color: #eaeef5;
    transform: translateX(4px);
}

.setting-item.back-home {
    color: #555;
    font-weight: bold;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.admin-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-card h2 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.admin-card p {
    margin: 8px 0 0;
    font-size: 16px;
}

/* ===== SEARCH ===== */
.search,
.search input,
.search button,
.search a {
    pointer-events: auto !important;
    position: relative;
    z-index: 9999;
}

/* =========================================================
   DARK MODE
   ========================================================= */

/* ✅ FIX: `.dark, .dark body` → `body.dark` (selector sirrii) */
body.dark {
    background: #18191a !important;
    color: #e4e6eb !important;
}

body.dark .top-header,
body.dark .logo-row,
body.dark .nav-bar {
    background: #242526 !important;
    border-bottom: 1px solid #3e4042 !important;
    box-shadow: none !important;
}

body.dark .logo {
    color: #e4e6eb !important;
}

body.dark .icon-btn {
    background: #3a3b3c !important;
    color: #e4e6eb !important;
}

body.dark .icon-btn:hover {
    background: #4e4f50 !important;
}

body.dark .nav-item {
    color: #b0b3b8 !important;
}

body.dark .nav-item.active {
    color: #2d88ff !important;
    border-bottom-color: #2d88ff !important;
}

/* ✅ FIX: body.dark .container background balleessame (faayidaa hin qabu) */

body.dark .card,
body.dark .box,
body.dark .post,
body.dark .profile-card,
body.dark .about-card,
body.dark .suggestions,
body.dark .create-actions {
    background: #242526 !important;
    color: #e4e6eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark .create-actions {
    border: 1px solid #3e4042 !important;
}

body.dark .action-btn,
body.dark .action-btn span {
    color: #e4e6eb !important;
}

body.dark .action-btn:hover {
    background: #3a3b3c !important;
    border-radius: 8px;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
    color: #e4e6eb !important;
}

body.dark .post {
    border: 1px solid #3e4042 !important;
}

body.dark .post-header {
    background: #242526 !important;
}

body.dark .post-user {
    color: #e4e6eb !important;
}

body.dark .post-time {
    color: #b0b3b8 !important;
}

body.dark .post-content {
    color: #e4e6eb !important;
}

body.dark .post-content a,
body.dark .see-more-link {
    color: #2d88ff !important;
}

body.dark .post-actions {
    background: #242526 !important;
    border-top: 1px solid #3e4042 !important;
}

body.dark .post-actions a,
body.dark .post-actions span,
body.dark .like-btn,
body.dark .share-btn,
body.dark .edit-btn,
body.dark .delete-btn {
    color: #b0b3b8 !important;
    background: transparent !important;
}

body.dark .post-actions a:hover {
    background: #3a3b3c !important;
    border-radius: 6px;
    color: #e4e6eb !important;
}

body.dark .video-stats {
    color: #b0b3b8 !important;
}

body.dark .commentForm {
    background: #242526 !important;
    border-top: 1px solid #3e4042 !important;
}

body.dark .commentForm input {
    background: #3a3b3c !important;
    color: #e4e6eb !important;
    border: none !important;
}

body.dark .commentForm input::placeholder {
    color: #b0b3b8 !important;
}

body.dark .commentForm button {
    background: #2d88ff !important;
    color: #ffffff !important;
}

body.dark .menu-dropdown {
    background: #242526 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

body.dark .menu-dropdown a {
    color: #e4e6eb !important;
}

body.dark .menu-dropdown a:hover {
    background: #3a3b3c !important;
}

body.dark .settings-container {
    background: #18191a !important;
}

body.dark .settings-container h2 {
    color: #e4e6eb !important;
}

body.dark .setting-item {
    background: #242526 !important;
    color: #e4e6eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark .setting-item:hover {
    background: #3a3b3c !important;
}

body.dark .profile-top {
    background: #242526 !important;
    border-bottom: 1px solid #3e4042 !important;
}

body.dark .back-btn,
body.dark .profile-top-title {
    color: #e4e6eb !important;
}

body.dark .profile-name {
    color: #e4e6eb !important;
}

body.dark .profile-username {
    color: #b0b3b8 !important;
}

body.dark .stat-number {
    color: #e4e6eb !important;
}

body.dark .stat-label {
    color: #b0b3b8 !important;
}

body.dark .action-circle {
    background: #3a3b3c !important;
    border: 1px solid #4e4f50 !important;
}

body.dark .action-text {
    color: #b0b3b8 !important;
}

body.dark .about-title {
    color: #e4e6eb !important;
}

body.dark .about-row {
    color: #b0b3b8 !important;
}

body.dark .view-more {
    color: #2d88ff !important;
}

body.dark input,
body.dark textarea,
body.dark select {
    background: #3a3b3c !important;
    color: #e4e6eb !important;
    border: 1px solid #4e4f50 !important;
}

body.dark input::placeholder,
body.dark textarea::placeholder {
    color: #b0b3b8 !important;
}

body.dark input:focus,
body.dark textarea:focus,
body.dark select:focus {
    border-color: #2d88ff !important;
}

body.dark button,
body.dark .btn {
    background: #2d88ff !important;
    color: #ffffff !important;
}

body.dark button:hover,
body.dark .btn:hover {
    background: #1a6fd9 !important;
}

body.dark .modal-content,
body.dark .live-modal-box {
    background: #242526 !important;
    color: #e4e6eb !important;
}

body.dark .live-modal-box h2 {
    color: #ff6b6b !important;
}

body.dark .live-modal-close {
    color: #e4e6eb !important;
}

body.dark .video-menu {
    background: #242526 !important;
}

body.dark .video-menu a,
body.dark .video-menu button {
    background: #242526 !important;
    color: #e4e6eb !important;
}

body.dark .video-menu a:hover,
body.dark .video-menu button:hover {
    background: #3a3b3c !important;
}

body.dark .admin-card {
    background: #242526 !important;
    color: #e4e6eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark .admin-card h2 {
    color: #e4e6eb !important;
}

body.dark .admin-card p {
    color: #b0b3b8 !important;
}

body.dark .audio-container {
    background: #18191a !important;
}

body.dark .audio-header,
body.dark .participant-card {
    color: #e4e6eb !important;
    background: #242526 !important;
}

body.dark .edit-post-page,
body.dark .edit-post-box {
    background: #242526 !important;
    color: #e4e6eb !important;
}

body.dark .edit-post-title {
    color: #e4e6eb !important;
}

body.dark .suggestions {
    background: #242526 !important;
}

body.dark .suggest-user {
    color: #e4e6eb !important;
}

/* ✅ FIX: `body.dark p, span, label, small, div` BALLEESSAME (danger!) */

body.dark .post-time,
body.dark .profile-username,
body.dark .stat-label,
body.dark .action-text,
body.dark .about-row,
body.dark .post-actions a,
body.dark .post-actions span {
    color: #b0b3b8 !important;
}

/* ===== SCROLLBAR (dark) ===== */
body.dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark ::-webkit-scrollbar-track {
    background: #18191a;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #3a3b3c;
    border-radius: 4px;
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #4e4f50;
}

/* =========================================================
   COMMENTS TOGGLE / SECTION
   ========================================================= */
.comments-toggle-wrap {
    padding: 8px 15px;
    border-top: 1px solid #f0f2f5;
    background: #ffffff;
}

.comments-toggle-btn {
    background: transparent;
    color: #65676b;
    border: none;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    display: inline-block;
    text-align: left;
}

.comments-toggle-btn:hover {
    background: transparent;
    color: #1877f2;
    text-decoration: underline;
}

.comments-section {
    background: #ffffff;
    border-top: 1px solid #f0f2f5;
}

.comments-list {
    padding: 0 15px 10px;
}

body.dark .comments-toggle-wrap {
    background: #242526 !important;
    border-top: 1px solid #3e4042 !important;
}

body.dark .comments-toggle-btn {
    color: #b0b3b8 !important;
    background: transparent !important;
}

body.dark .comments-toggle-btn:hover {
    color: #2d88ff !important;
}

body.dark .comments-section {
    background: #242526 !important;
    border-top: 1px solid #3e4042 !important;
}

/* ===== POST ACTIONS NEW (pero style) ===== */
.post-actions-new {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid #e4e6eb;
    background: #ffffff;
}

.pa-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    background: #f0f2f5;
    border-radius: 8px;
    text-decoration: none;
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 92px;   /* ✅ FIX: 100px → 92px */
    }

    .container {
        width: 100%;
        padding: 0 6px;
    }

    .nav-item {
        font-size: 16px;
    }

    .create-actions {
        padding: 10px;
    }

    .action-btn {
        font-size: 13px;
    }

    .action-btn span {
        font-size: 13px;
    }

    .post-actions {
        gap: 0;
        padding: 4px 2px;
    }

    .post-actions a,
    .post-actions span,
    .like-btn,
    .share-btn,
    .edit-btn,
    .delete-btn {
        font-size: 10px;
        padding: 5px 3px;
        gap: 1px;
    }

    .post-actions .video-stats {
        font-size: 9px;
        padding: 5px 3px;
    }

    .admin-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-card {
        padding: 20px 10px;
    }

    .admin-card h2 {
        font-size: 26px;
    }
}

@media (max-width: 500px) {
    .post-actions .lbl {
        font-size: 9px;
        margin-left: 1px;
    }
}

@media (max-width: 480px) {
    .profile-top {
        height: 55px;
    }

    .cover {
        height: 155px;
    }

    .profile-photo {
        width: 115px;
        height: 115px;
    }

    .profile-photo-wrapper {
        bottom: -58px;
    }

    .profile-info {
        padding-top: 53px;
    }

    .profile-name {
        font-size: 18px;
    }

    .follow-stats {
        gap: 35px;
    }

    .action-buttons {
        gap: 6px;
    }

    .action-item {
        width: 82px;
    }

    .action-circle {
        width: 53px;
        height: 45px;
        font-size: 23px;
    }

    .action-text {
        font-size: 11px;   /* ✅ FIX: 6px → 11px */
    }

    .profile-btn {
        padding: 9px 11px;
        font-size: 12px;   /* ✅ FIX: 8px → 12px */
    }
}

@media (max-width: 400px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .post-actions .lbl {
        display: none;
    }

    .post-actions a,
    .post-actions span {
        font-size: 12px;
        padding: 5px 4px;
    }
}
/* ============================================
   Account Status Card
   ============================================ */
.account-status-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e4e6eb;
}

.account-status-card .status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 14px;
}

.account-status-card .status-icon {
    font-size: 32px;
    line-height: 1;
}

.account-status-card .status-info { flex: 1; }

.account-status-card .status-title {
    font-size: 17px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 2px;
}

.account-status-card .status-sub {
    font-size: 13px;
    color: #65676b;
    line-height: 1.4;
}

.account-status-card .status-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-status-card .status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
}

.account-status-card .status-label { color: #65676b; }

.account-status-card .status-value {
    color: #1c1e21;
    font-weight: 600;
}

body.dark .account-status-card {
    background: #242526;
    border-color: #3a3b3f;
}

body.dark .account-status-card .status-header {
    border-bottom-color: #3a3b3f;
}

body.dark .account-status-card .status-title,
body.dark .account-status-card .status-value {
    color: #e4e6eb;
}

body.dark .account-status-card .status-sub,
body.dark .account-status-card .status-label {
    color: #b0b3b8;
}
.voice-preview {
    position: fixed;
    bottom: 80px;
    left: 10px;
    right: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.voice-preview audio {
    flex: 1;
    height: 40px;
}

.voice-send-btn {
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.voice-send-btn:hover {
    background: #166fe5;
}

.voice-cancel-btn {
    background: #f0f2f5;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.voice-cancel-btn:hover {
    background: #e4e6eb;
}

body.dark .voice-preview {
    background: #242526;
    color: #e4e6eb;
}

body.dark .voice-cancel-btn {
    background: #3a3b3c;
    color: #e4e6eb;
}
/* ============================================
   Voice Message Audio Player
   ============================================ */
.message-audio {
    width: 100%;
    max-width: 280px;
    height: 44px;
    border-radius: 22px;
    background: #ffffff;
    display: block;
    margin: 4px 0;
}

.message-audio::-webkit-media-controls-panel {
    background: #ffffff;
    border-radius: 22px;
}

.message-audio::-webkit-media-controls-play-button {
    background-color: #1877f2;
    border-radius: 50%;
}

.message-media {
    display: inline-block;
    max-width: 100%;
}

body.dark .message-audio {
    background: #3a3b3c;
}

body.dark .message-audio::-webkit-media-controls-panel {
    background: #3a3b3c;
}