/* ==========================================================
   File: feed.css
   Description: Vanilla CSS Styles for Main Feed Dashboard (Optimized)
   ================================================---------- */

:root {
    --otvut-header-height: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

body {
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
}

html.dark body {
    background-color: #05060f;
    color: #e2e8f0;
}

/* Responsive Grid & Containers with exact Tailwind measurements */
.master-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: calc(100vh - var(--otvut-header-height));
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Sidebar positioned as sticky to stay pinned on left while main section scrolls */
#col-sidebar-1, #col-sidebar-4 {
    display: none;
    height: calc(100vh - var(--otvut-header-height));
    position: sticky;
    top: var(--otvut-header-height);
    overflow-y: auto;
    flex-direction: column;
}

#col-sidebar-2, #col-sidebar-3 {
    display: none;
    height: calc(100vh - var(--otvut-header-height));
    position: sticky;
    top: var(--otvut-header-height);
    overflow-y: auto;
}

@media (min-width: 750px) {
    .master-grid {
        grid-template-columns: 76px minmax(0, 1fr) 90px;
    }
    #col-sidebar-1, #col-sidebar-4 {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .master-grid {
        grid-template-columns: 240px minmax(0, 1fr) 290px 90px;
    }
    #col-sidebar-3 {
        display: block;
    }
}

@media (min-width: 1360px) {
    .master-grid {
        grid-template-columns: 240px 260px minmax(0, 1fr) 290px 90px;
    }
    #col-sidebar-2 {
        display: block;
    }
}

@media (min-width: 1536px) {
    .master-grid {
        grid-template-columns: 240px 280px minmax(0, 1fr) 320px 90px;
    }
}

/* Column Theme Styles */
.col-base {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
html.dark .col-base {
    background-color: #05060f;
    border-right: 1px solid rgba(39, 39, 42, 0.3);
}

.col-feed {
    min-height: calc(100vh - var(--otvut-header-height));
    height: auto;
    overflow-y: visible;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: center;
    min-width: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
html.dark .col-feed {
    background-color: #05060f;
    border-right: 1px solid rgba(39, 39, 42, 0.2);
}

/* Feed Inner Responsive Container Optimization */
.col-feed > div {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .col-feed {
        padding: 0.5rem 0.25rem;
    }
    .col-feed > div {
        max-width: 100%;
    }
}

.col-right-border {
    border-left: 1px solid #e2e8f0;
    border-right: none;
}
html.dark .col-right-border {
    border-left: 1px solid rgba(39, 39, 42, 0.3);
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #f59e0b;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    border-color: #6366f1;
}
html.dark .theme-toggle-btn {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.6);
    color: #818cf8;
}

.divider-line {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}
html.dark .divider-line {
    border-bottom: 1px solid rgba(39, 39, 42, 0.4);
}

@media (max-width: 550px) {
    #global-floating-player-root {
        top: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important; height: 220px !important;
        background: transparent !important; 
    }
    #feed-mainbar { padding-top: 0 !important; margin-top: 0 !important; }
}




/* ==========================================================
   Feels Component Pure Vanilla CSS Styles
   ========================================================== */
.feels-section-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
    user-select: none;
    position: relative;
    z-index: 10;
}

.feels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.feels-title {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #334155;
}
html.dark .feels-title {
    color: #e2e8f0;
}

.feels-icon {
    color: #eab308;
}

.feels-see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    transition: color 0.2s ease;
}
.feels-see-all:hover {
    color: #fdba74;
}

.shorts-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    align-items: flex-start;
    width: 100%;
}

.shorts-loader-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    flex-shrink: 0;
}

.short-skeleton {
    flex-shrink: 0;
    width: 128px;
    height: 227px;
    background-color: #e4e4e7;
    border-radius: 1rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
html.dark .short-skeleton {
    background-color: #27272a;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.short-item-wrapper {
    flex-shrink: 0;
    width: 128px;
}

.short-card-link {
    text-decoration: none;
    display: block;
}

.short-card-box {
    position: relative;
    height: 227px;
    width: 128px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #e4e4e7;
}
html.dark .short-card-box {
    background-color: #27272a;
}

.short-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.short-card-link:hover .short-card-img {
    transform: scale(1.05);
}

.short-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%, transparent 100%);
    pointer-events: none;
}

.short-meta-info {
    position: absolute;
    bottom: 0.75rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.short-author-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.short-author-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.short-author-name {
    font-size: 10px;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.short-time-ago {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
}

.short-title-container {
    margin-top: 0.5rem;
    padding: 0 0.125rem;
}

.short-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
html.dark .short-item-title {
    color: #e2e8f0;
}

.no-feels-text {
    font-size: 0.75rem;
    color: #64748b;
    padding: 1rem;
}
html.dark .no-feels-text {
    color: #94a3b8;
}

/* ==========================================================
   Stories Component Pure Vanilla CSS Styles
   ========================================================== */
.stories-section-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
    user-select: none;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.stories-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
}

.story-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.story-card-ring {
    position: relative;
    width: 95px;
    height: 155px;
    border-radius: 2rem;
    padding: 2.5px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .story-card-ring {
        width: 110px;
        height: 180px;
    }
}

.ring-default {
    background: linear-gradient(to top right, #f97316, #eab308);
}

.ring-live {
    background-color: #dc2626;
    animation: pulse 2s infinite;
}

.ring-online {
    background: linear-gradient(to top right, #1b7c33, #22c55e);
}

.story-inner-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.8rem;
    overflow: hidden;
    background-color: #09090b;
}

.story-inner-box-create {
    border-radius: 1.9rem;
    background-color: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-bg-img, .story-my-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.story-item-box:hover .story-bg-img,
.story-item-box:hover .story-my-avatar {
    transform: scale(1.1);
}

.story-my-avatar {
    opacity: 0.6;
}

.story-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.8) 100%);
    z-index: 10;
    pointer-events: none;
}

.story-publisher-avatar-wrap {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 1rem;
    border: 2px solid #000000;
    overflow: hidden;
    z-index: 40;
    background-color: #18181b;
}

.story-publisher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-status-badge {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 65px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    white-space: nowrap;
}

.badge-default { background-color: #18181b; color: #e4e4e7; }
.badge-live { background-color: #b91c1c; color: #ffffff; }
.badge-online { background-color: #1b7c33; color: #ffffff; font-weight: 700; }

.story-badge-text {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
}

.story-plus-badge {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 24px;
    background-color: #f97316;
    border-radius: 0.5rem;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.story-plus-icon {
    color: #ffffff;
    font-size: 0.75rem;
}

.story-username-label {
    margin-top: 1rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #27272a;
    width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .story-username-label {
    color: #e4e4e7;
}
.story-item-box:hover .story-username-label {
    color: #f97316;
}

.stories-loader-flex {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.story-skeleton-card {
    width: 95px;
    height: 155px;
    border-radius: 2rem;
    background-color: #e4e4e7;
    animation: pulse 2s infinite;
}
@media (min-width: 768px) {
    .story-skeleton-card { width: 110px; height: 180px; }
}
html.dark .story-skeleton-card { background-color: #27272a; }

.story-skeleton-text {
    width: 4rem;
    height: 0.75rem;
    background-color: #e4e4e7;
    border-radius: 0.25rem;
    margin-top: 1rem;
}
html.dark .story-skeleton-text { background-color: #27272a; }


/* ==========================================================
   Suggested Friends Component Pure Vanilla CSS Styles
   ========================================================== */

.suggested-section-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    user-select: none;
    position: relative;
    z-index: 10;
}

.suggested-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.suggested-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #18181b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
html.dark .suggested-title {
    color: #ffffff;
}

.suggested-title-icon {
    color: #f59e0b;
}

.suggested-see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    transition: color 0.2s ease;
}
.suggested-see-all:hover {
    color: #fb923c;
}

.suggested-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.suggested-loader-flex {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.suggest-card-box {
    flex-shrink: 0;
    width: 8rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
html.dark .suggest-card-box {
    background-color: #18181b;
    border-color: #27272a;
}

.suggest-card-img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.suggest-username {
    font-size: 0.875rem;
    font-weight: 700;
    color: #18181b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0.75rem 0.5rem 0 0.5rem;
}
html.dark .suggest-username {
    color: #ffffff;
}

.suggest-action-wrap {
    padding: 0.75rem;
    width: 100%;
}

.suggest-follow-btn {
    background-color: #f97316;
    color: #ffffff;
    width: 100%;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}
.suggest-follow-btn:hover {
    background-color: #ea580c;
}

.suggest-following-btn {
    background-color: #e4e4e7;
    color: #52525b;
    width: 100%;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: default;
}
html.dark .suggest-following-btn {
    background-color: #27272a;
    color: #a1a1aa;
}

/* স্কেলেটন লোডার এলিমেন্ট সিএসএস */
.suggest-skeleton-card {
    flex-shrink: 0;
    width: 8rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
html.dark .suggest-skeleton-card {
    background-color: #18181b;
    border-color: #27272a;
}

.suggest-skeleton-img {
    width: 100%;
    height: 8rem;
    background-color: #e4e4e7;
    border-radius: 0.5rem;
}
html.dark .suggest-skeleton-img {
    background-color: #27272a;
}

.suggest-skeleton-title {
    width: 5rem;
    height: 1rem;
    background-color: #e4e4e7;
    border-radius: 0.25rem;
    margin-top: 0.75rem;
}
html.dark .suggest-skeleton-title {
    background-color: #27272a;
}

.suggest-skeleton-btn {
    width: 100%;
    height: 1.75rem;
    background-color: #e4e4e7;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}
html.dark .suggest-skeleton-btn {
    background-color: #27272a;
}




/* ==========================================================================
   1. Comment Section: Clean Tree Structure (No Cards)
   ========================================================================== */
/* ==========================================================================
   1. Comment Section: Clean Tree Structure (No Cards)
   ========================================================================== */
   /* ==========================================================================
   1. Comment Section: Clean Tree Structure (No Cards)
   ========================================================================== */
   /* ==========================================================================
   1. Comment Section: Clean Tree Structure (No Cards)
   ========================================================================== */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.comment-item {
    display: flex;
    flex-direction: column; /* ফ্লেক্স ডিরেকশন কলাম করা হলো যাতে রিপ্লাই নিচে নামে */
    width: 100%;
    position: relative;
}

/* মেইন কমেন্টের হেডার ও অবতারের র‍্যাপার */
.comment-item-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

/* কার্ডের ব্যাকগ্রাউন্ড, বর্ডার ও প্যাডিং সম্পূর্ণ বাদ দেওয়া হলো */
.comment-item .flex-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.comment-item .flex.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ==========================================================================
   2. Comment Actions & Buttons
   ========================================================================== */

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; 
}

.comment-actions button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.comment-actions button:hover {
    color: #f97316;
}
    
.btn-see-more-dynamic {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f97316;
    background: transparent;
    border: none;
    padding: 6px 0;
    margin-top: 8px;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-see-more-dynamic:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================================================
   3. YouTube Style Tree Structure & Curved Lines
   ========================================================================== */

.comment-replies-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    padding-left: 2rem; /* রিপ্লাইগুলো ডানে সরানোর জন্য */
    position: relative;
}

/* মেইন খাড়া লম্বা কমলা রঙের লাইনটি */
.comment-replies-container::before {
    content: '';
    position: absolute;
    left: 14px; /* খাড়া লাইনটির সঠিক পজিশন */
    top: 0;
    bottom: 15px;
    width: 2px;
    background-color: #f97316;
}

/* প্রতিটা রিপ্লাই আইটেমের জন্য ইউটিউবের মতো বাঁকানো (Curved) এল-শেপ লাইন */
.comment-item.comment-reply {
    position: relative;
    margin-top: 4px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.comment-item.comment-reply::before {
    content: '';
    position: absolute;
    left: -18px; /* খাড়া লাইন থেকে অবতার পর্যন্ত দূরত্ব */
    top: 12px;  /* অবতারের মাঝামাঝি উচ্চতা */
    width: 14px;
    height: 14px;
    border-left: 2px solid #f97316;
    border-bottom: 2px solid #f97316;
    border-bottom-left-radius: 8px; /* কর্নার সুন্দরভাবে রাউন্ড করার জন্য */
}

.comment-item.comment-reply .comment-avatar {
    width: 26px;
    height: 26px;
}

/* See replies বাটন স্টাইল ফিক্স (সাদা ব্যাকগ্রাউন্ড দূর করতে) */
.comment-item .flex-1 button[onclick*="toggleReplies"] {
    background: transparent !important;
    border: none !important;
    color: #818cf8 !important;
    padding: 4px 0 !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none !important;
}

.comment-item .flex-1 button[onclick*="toggleReplies"]:hover {
    color: #6366f1 !important;
    text-decoration: underline;
}

/* ==========================================================================
   4. Comment Modal Custom Orange Theme Styles (Dedicated Section)
   ========================================================================== */

.comment-modal-card {
    background-color: #121420;
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.6), 0 10px 15px -5px rgba(234, 88, 12, 0.1);
    color: #f8fafc;
    font-family: inherit;
}

.comment-modal-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-modal-textarea {
    width: 100%;
    background-color: #1a1d2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    color: #e2e8f0;
    outline: none;
    resize: vertical;
    min-height: 110px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.comment-modal-textarea:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
    background-color: #16192b;
}

.comment-btn-submit {
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px -1px rgba(234, 88, 12, 0.5);
    transition: all 0.2s;
}

.comment-btn-submit:hover {
    background-color: #c2410c;
    box-shadow: 0 6px 14px -1px rgba(234, 88, 12, 0.7);
    transform: translateY(-1px);
}

.comment-btn-cancel {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.comment-btn-cancel:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Comment Section: ended
   ========================================================================== */
 
   
 /**
 * ==========================================================================
 * OTVUT GIFT MODAL SYSTEM STYLES gift-modal
 * ==========================================================================
 */

/* --- Gift Modal Base Styles --- */
.gift-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gift-modal-overlay.hidden {
    display: none !important;
}

.gift-modal-card {
    background-color: #121420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    width: 100%;
    max-width: 440px;
    min-width: 320px; /* 350 পিক্সেল বা তার নিচের ডিভাইসের জন্য নিরাপদ রাখার জন্য */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
    font-family: inherit;
}

.gift-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gift-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.gift-modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

.gift-modal-close-btn:hover {
    color: #ffffff;
}

/* --- Responsive Gift Grid Layout (Mobile: 3 Columns, Desktop: 4 Columns) --- */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-height: 350px;
    }
}

.gift-item {
    cursor: pointer;
    text-align: center;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 380px) {
    .gift-modal-card {
        padding: 10px;
    }
    .gift-grid {
        gap: 4px;
    }
    .gift-item-name {
        font-size: 8px !important;
    }
}

.gift-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.gift-item-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    margin-bottom: 4px;
    background-color: #1a1d2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-item-name {
    font-size: 9px;
    font-weight: 500;
    display: block;
    color: #cbd5e1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Modal Actions & Buttons --- */
.gift-btn-cancel {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.gift-btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Custom Scrollbar --- */
.gift-grid::-webkit-scrollbar {
    width: 5px;
}

.gift-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/**
 * ==========================================================================
 * OTVUT GIFT MODAL SYSTEM STYLES gift-modal ended
 * ==========================================================================
 */
 
 /**
 * ==========================================================================
 * --- Share Modal Special Layout --- * start
 * ==========================================================================
 */
.share-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-close-w-full {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 99px;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.btn-close-w-full:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

 /**
 * ==========================================================================
 * --- Share Modal Special Layout --- * ended
 * ==========================================================================
 */
 
  /**
 * ==========================================================================
 * --- Report Modal Special Layout --- * start
 * ==========================================================================
 */


#reportModal .btn-primary {
    background-color: #dc2626; 
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.4);
}

#reportModal .btn-primary:hover {
    background-color: #b91c1c;
    box-shadow: 0 6px 10px -1px rgba(220, 38, 38, 0.6);
}

 /**
 * ==========================================================================
 * --- Report Modal Special Layout --- * ended
 * ==========================================================================
 */


 /**
 * ==========================================================================
 * --- Footer & Search Styles --- * start
 * ==========================================================================
 */
 
 /* Footer & Search Styles */
#footer-search-bar {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 16px; 
    background-color: #09090b; 
    z-index: 10000; 
    border-bottom: 1px solid #27272a; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

#main-mobile-footer {
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    z-index: 9999; 
    width: 100%; 
    height: 56px; 
    background-color: #09090b; 
    border-top: 1px solid #27272a; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5); 
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 1023px) {
    #main-mobile-footer { display: block !important; }
    body { padding-bottom: 60px !important; }
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.footer-icon {
    font-size: 18px;
    transition: color 0.2s;
}

#footer-dropdown-menu {
    display: none; 
    position: absolute; 
    bottom: 60px; 
    right: 0; 
    width: 240px; 
    background-color: #18181b; 
    border: 1px solid #27272a; 
    border-radius: 16px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); 
    padding: 8px; 
    z-index: 10001;
}
 
 /**
 * ==========================================================================
 * --- Footer & Search Styles --- * ended
 * ==========================================================================
 */
 
 