/**
 * ============================================================
 * Project: InvitRAZ Demo Wedding Website - Fulan & Siti
 * Standard: RAZ Enterprise Standard
 * File: css/RAZGuestGallery.css
 * Dibuat: 2026-10-23 | Diperbarui: 2026-10-24 13:35 WIB
 * Deskripsi: Stylesheet Galeri Tamu Terpadu:
 *            - Shape Card Mewah pada Grid Galeri & Header (Kontras Bersih di atas Gambar Latar)
 *            - Shape Card Mewah pada Header Galeri (Teks & Elemen Jelas Terbaca di atas Background)
 *            - Penyesuaian Presisi Mobile (Zero Over-Frame / 100% Viewport Containment)
 *            - Background Harmonis Selaras Template Undangan & Section Wishes (Melayu Damask Texture)
 *            - Header bernuansa Ornamen Budaya Melayu & Template Emas
 *            - Bilah Filter Terkunci di Dalam Frame Card (Zero Frame Leakage / Overflow)
 *            - Grid 3 Kolom Kompak ala Instagram Profile / Explore Grid
 *            - Sistem Pagination Galeri (> 9 Gambar/Video) Desain Mewah Emas
 *            - Full Frame Media Viewport (Foto/Video Jelas & Bisa Zoom + Drag/Pan HP & Desktop)
 *            - Sliding Comments Drawer (Bottom Sheet Ala Instagram)
 *            - Toolbar Lengkap: Like, Dislike, Komentar, Share, & Download
 *            - Sistem Komentar Bersarang (Threaded Replies)
 *            - Lampiran Foto pada Komentar & Popover 54 Emoticon
 *            - Custom Share Modal (WhatsApp & Salin Tautan)
 * ============================================================
 */

/* === 1. CONTAINER SECTION GALERI TAMU (HARMONIS DENGAN SECTION WISHES) === */
.raz-guest-gallery-section {
    position: relative;
    padding: 60px 14px 60px 14px;
    background-color: #fffbf4;
    background-image: url('../images/Melayu-Background.jpeg');
    background-position: center top;
    background-repeat: repeat-y;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Pastikan seluruh konten terkunci di dalam batas frame kartu */
}

/* Background overlay lembut bernuansa hangat persis seperti section wishes (#sec-komentar) */
.raz-guest-gallery-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #FFFBF4DE;
    opacity: 0.85;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Garis aksen emas di perbatasan atas section */
.raz-guest-gallery-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 121, 73, 0.35), transparent);
    z-index: 2;
}

.raz-gallery-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header Section dengan Shape Card Mewah (Harmonis dengan Card Wishes & Template Undangan) */
.raz-gallery-header {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(153, 121, 73, 0.28);
    border-radius: 20px;
    padding: 24px 14px 20px 14px;
    box-shadow: 0 10px 30px rgba(153, 121, 73, 0.08);
    margin: 0 auto 16px auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.raz-gallery-motif-top {
    width: 65px;
    height: auto;
    opacity: 0.9;
    margin-bottom: 8px;
}

.raz-gallery-subtitle {
    font-size: 0.85rem;
    color: #997949;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.raz-gallery-title {
    font-size: 2.2rem;
    color: #2b2216;
    font-family: inherit;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.raz-gallery-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 14px auto;
    width: 180px;
}

.raz-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d6b788, transparent);
}

.raz-gallery-divider i {
    color: #997949;
    font-size: 1.05rem;
}

.raz-gallery-desc {
    font-size: 0.90rem;
    color: #554433;
    line-height: 1.55;
    margin: 0 auto 18px auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
}

/* === 2. TOMBOL CTA SELFIE PHOTOBOOTH & COUNTER STATISTIK === */
.raz-gallery-cta-wrap {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.raz-btn-selfie-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #997949, #bfa373);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 30px;
    box-shadow: 0 8px 22px rgba(153, 121, 73, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    animation: razPulseSelfie 2.5s infinite;
}
    position: relative;
    overflow: hidden;
    animation: razPulseSelfie 2.5s infinite;
}

.raz-btn-selfie-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(153, 121, 73, 0.45);
    background: linear-gradient(135deg, #84663b, #af925f);
}

.raz-btn-selfie-cta i {
    font-size: 1.15rem;
}

.raz-gallery-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #d9ccb6;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: #7d6b54;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 4px;
}

.raz-gallery-count-pill i {
    color: #997949;
}

/* === BILAH URUTKAN & FILTER MOMEN (SORT & FILTER PILLS BAR) === */
.raz-gallery-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0 0 14px 0;
    padding: 4px 2px 8px 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Mencegah flex item melar melebihi frame container */
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.raz-gallery-filter-bar::-webkit-scrollbar {
    display: none;
}

.raz-filter-pill {
    flex-shrink: 0; /* Pastikan tombol pill tidak pernah tertekan / menciut */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1.5px solid #d9ccb6;
    border-radius: 24px;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #665544;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.raz-filter-pill i {
    font-size: 0.85rem;
    color: #997949;
    transition: color 0.22s ease;
}

.raz-filter-pill:hover {
    border-color: #997949;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(153, 121, 73, 0.15);
}

.raz-filter-pill.active {
    background: linear-gradient(135deg, #997949, #bfa373);
    color: #ffffff;
    border-color: #997949;
    box-shadow: 0 4px 12px rgba(153, 121, 73, 0.32);
}

.raz-filter-pill.active i {
    color: #ffffff;
}

@keyframes razPulseSelfie {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(153, 121, 73, 0.35);
    }
    50% {
        box-shadow: 0 8px 28px rgba(153, 121, 73, 0.6);
        transform: translateY(-1px);
    }
}

/* === 3. GRID 3 KOLOM KOMPAK ALA INSTAGRAM FEED (DENGAN SHAPE CARD MEWAH) === */
.raz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(153, 121, 73, 0.28);
    border-radius: 20px;
    padding: 14px 10px;
    box-shadow: 0 10px 30px rgba(153, 121, 73, 0.08);
}

@media (min-width: 600px) {
    .raz-gallery-grid {
        gap: 10px;
        padding: 16px 14px;
    }
}

/* Item Thumbnail Galeri */
.raz-thumb-item {
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f2ebd9;
    border: 1px solid #e8decb;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.raz-thumb-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(153, 121, 73, 0.25);
    border-color: #997949;
}

.raz-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.raz-thumb-item:hover .raz-thumb-media {
    transform: scale(1.06);
}

/* Badge Tipe Video di Sudut Kanan Atas Thumbnail */
.raz-thumb-video-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Overlay Statistik (Suka & Komentar) saat Hover / Sentuh */
.raz-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding-bottom: 8px;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}

.raz-thumb-item:hover .raz-thumb-overlay,
.raz-thumb-item:active .raz-thumb-overlay {
    opacity: 1;
}

.raz-thumb-stat {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.raz-thumb-stat i.fa-heart {
    color: #ff5252;
}

.raz-thumb-stat i.fa-comment {
    color: #ffffff;
}

/* Loading & Empty State */
.raz-gallery-loading {
    grid-column: 1 / -1;
    padding: 40px 20px;
    color: #8c7b67;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.raz-gallery-loading i {
    font-size: 1.8rem;
    color: #997949;
}

.raz-gallery-empty {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed #d9ccb6;
    border-radius: 16px;
    padding: 35px 20px;
    color: #7d6b54;
    text-align: center;
}

.raz-gallery-empty i {
    font-size: 2.4rem;
    color: #997949;
    margin-bottom: 12px;
    opacity: 0.85;
}

.raz-gallery-empty h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #443729;
}

.raz-gallery-empty p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #8c7b67;
}

/* === 4. SISTEM PAGINATION GALERI TAMU (PAGINASI PER 9 ITEM) === */
.raz-gallery-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.raz-pagination-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 30px;
    border: 1px solid #d9ccb6;
    box-shadow: 0 4px 14px rgba(153, 121, 73, 0.08);
}

.raz-page-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: transparent;
    color: #665544;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.raz-page-btn:hover:not(:disabled):not(.active) {
    background: #fdf8ee;
    color: #997949;
    border-color: #d9ccb6;
    transform: translateY(-1px);
}

.raz-page-btn.active {
    background: linear-gradient(135deg, #997949, #bfa373);
    color: #ffffff;
    border-color: #997949;
    box-shadow: 0 3px 10px rgba(153, 121, 73, 0.35);
}

.raz-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.raz-page-ellipsis {
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #a89a88;
    user-select: none;
}

.raz-pagination-info {
    font-size: 0.76rem;
    color: #8c7b67;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* === 5. INSTAGRAM FEED POST MODAL (FULL FRAME & SLIDING DRAWER) === */
.raz-feed-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.raz-feed-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Backdrop Gelap dengan Efek Blur Mewah */
.raz-feed-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 7, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Kartu Dialog Modal Feed */
.raz-feed-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 94vh;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #d6b788;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.raz-feed-modal.active .raz-feed-dialog {
    transform: scale(1);
}

/* 4.1 Header Post Ala Instagram */
.raz-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f0e6d6;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 5;
}

.raz-feed-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.raz-feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #997949, #d6b788);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(153, 121, 73, 0.3);
    flex-shrink: 0;
}

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

.raz-feed-author-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}

.raz-feed-post-time {
    font-size: 0.72rem;
    color: #8c7b67;
}

.raz-feed-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.raz-feed-icon-btn,
.raz-feed-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7f3eb;
    border: 1px solid #ebd9be;
    color: #665544;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.18s ease;
}

.raz-feed-icon-btn:hover,
.raz-feed-close-btn:hover {
    background: #ebd9be;
    color: #333333;
}

.raz-feed-close-btn:hover {
    transform: rotate(90deg);
}

/* 4.2 FULL FRAME MEDIA VIEWPORT (FOTO/VIDEO MENONJOL & BISA ZOOM) */
.raz-feed-media-container {
    position: relative;
    width: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-height: 320px;
    max-height: 60vh;
}

.raz-feed-media-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.raz-feed-media-viewport img,
.raz-feed-media-viewport video {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform;
    transform-origin: center center;
}

/* Mode Zoomed & Panning (Desktop Drag & Touch Pan HP) */
.raz-feed-media-viewport.zoomed {
    cursor: grab;
}

.raz-feed-media-viewport.zoomed.dragging {
    cursor: grabbing;
}

.raz-feed-media-viewport.zoomed img {
    cursor: grab;
}

.raz-feed-media-viewport.zoomed.dragging img {
    cursor: grabbing;
}

/* Petunjuk Zoom */
.raz-feed-zoom-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 4.3 Action Toolbar Instagram Style */
.raz-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 4px 14px;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 5;
}

.raz-feed-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.raz-feed-btn {
    background: transparent;
    border: none;
    color: #443729;
    font-size: 1.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    transition: transform 0.15s ease, color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
}

.raz-feed-btn:hover {
    transform: scale(1.15);
}

.raz-feed-btn.like.active i {
    color: #e53935;
    font-weight: 900;
}

.raz-feed-btn.dislike.active i {
    color: #546e7a;
    font-weight: 900;
}

.raz-feed-btn.like i {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.raz-feed-btn.like:active i {
    transform: scale(1.35);
}

.raz-feed-btn.download {
    color: #997949;
    text-decoration: none;
}

.raz-feed-btn-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #554433;
}

/* 4.4 Caption & Ringkasan Suka */
.raz-feed-caption-section {
    padding: 4px 14px 10px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 5;
}

.raz-feed-likes-summary {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.raz-feed-likes-summary i {
    color: #e53935;
    font-size: 0.85rem;
}

.raz-feed-caption-text-wrap {
    font-size: 0.86rem;
    color: #443729;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.raz-feed-caption-author {
    font-weight: 700;
    color: #222222;
    margin-right: 5px;
}

/* Tombol Buka Drawer Komentar */
.raz-feed-open-comments-btn {
    background: none;
    border: none;
    color: #8c7b67;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0 0 0;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.raz-feed-open-comments-btn:hover {
    color: #997949;
}

/* === 5. SLIDING COMMENTS DRAWER (BOTTOM SHEET ALA INSTAGRAM) === */
.raz-feed-comments-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    max-height: 85%;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    z-index: 30;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 1px solid #d6b788;
}

.raz-feed-comments-drawer.open {
    transform: translateY(0);
}

/* Header Drawer */
.raz-drawer-header {
    padding: 6px 14px 8px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f0e6d6;
    flex-shrink: 0;
}

.raz-drawer-drag-bar {
    width: 38px;
    height: 4px;
    background: #d8cbbc;
    border-radius: 2px;
    margin: 4px auto 8px auto;
}

.raz-drawer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.raz-drawer-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #443729;
    display: flex;
    align-items: center;
    gap: 6px;
}

.raz-drawer-title i {
    color: #997949;
}

.raz-drawer-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f7f3eb;
    border: 1px solid #ebd9be;
    color: #665544;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.raz-drawer-close-btn:hover {
    background: #ebd9be;
    color: #333333;
}

/* Body Drawer Komentar */
.raz-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.raz-comments-loading,
.raz-comments-empty {
    text-align: center;
    padding: 30px 10px;
    color: #8c7b67;
    font-size: 0.82rem;
}

/* Kartu Komentar Utama & Balasan */
.raz-comment-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.raz-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d6b788;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.raz-comment-bubble {
    flex: 1;
    background: #f9f6f0;
    border: 1px solid #eee5d6;
    border-radius: 12px;
    padding: 8px 12px;
    position: relative;
}

.raz-comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.raz-comment-user {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333333;
}

.raz-comment-reply-to {
    font-size: 0.72rem;
    color: #997949;
    font-weight: 600;
    margin-left: 4px;
}

.raz-comment-time {
    font-size: 0.68rem;
    color: #a89a87;
}

.raz-comment-body-text {
    font-size: 0.82rem;
    color: #443729;
    line-height: 1.4;
    word-break: break-word;
}

/* Foto Terlampir pada Komentar */
.raz-comment-attached-photo {
    margin-top: 6px;
    max-width: 140px;
    max-height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d6b788;
    cursor: pointer;
}

.raz-comment-attached-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Action Buttons Komentar */
.raz-comment-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed #e8decb;
}

.raz-comment-action-btn {
    background: none;
    border: none;
    color: #7d6b54;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    transition: color 0.15s ease;
}

.raz-comment-action-btn:hover {
    color: #997949;
}

.raz-comment-action-btn.active-like {
    color: #e53935;
}

.raz-comment-action-btn.active-dislike {
    color: #546e7a;
}

/* Thread Balasan Bersarang (Nested Replies) */
.raz-comment-replies-thread {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #e2d7c5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* 5.1 Fixed Bottom Comment Composer */
.raz-feed-comment-composer {
    background: #ffffff;
    border-top: 1px solid #f0e6d6;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}

/* Banner Membalas */
.raz-reply-banner {
    background: #fcf9f2;
    border: 1px dashed #d6b788;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.76rem;
    color: #7d6b54;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.raz-btn-cancel-reply {
    background: none;
    border: none;
    color: #997949;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 4px;
}

/* Pratinjau Foto Lampiran */
.raz-composer-photo-preview {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d6b788;
    margin-bottom: 2px;
}

.raz-composer-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.raz-btn-remove-attachment {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: none;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Kolom Input Form Komentar */
.raz-composer-inputs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.raz-composer-name-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.82rem;
    border: 1px solid #e2d7c5;
    border-radius: 8px;
    background: #fcfaf6;
    color: #333333;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.raz-composer-name-input:focus {
    outline: none;
    border-color: #997949;
    background: #ffffff;
}

.raz-composer-textarea-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    background: #fcfaf6;
    border: 1px solid #e2d7c5;
    border-radius: 12px;
    padding: 3px 8px;
    gap: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.raz-composer-textarea-row:focus-within {
    border-color: #997949;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(153, 121, 73, 0.12);
}

.raz-composer-textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.84rem;
    color: #333333;
    font-family: inherit;
    resize: none;
    max-height: 70px;
    padding: 5px 2px;
    box-sizing: border-box;
    line-height: 1.35;
}

.raz-composer-textarea:focus {
    outline: none;
}

.raz-composer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
}

.raz-composer-icon-btn {
    background: none;
    border: none;
    color: #8c7b67;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.raz-composer-icon-btn:hover {
    color: #997949;
    background: #f7f3eb;
}

.raz-composer-send-btn {
    background: linear-gradient(135deg, #997949, #bfa373);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(153, 121, 73, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.raz-composer-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(153, 121, 73, 0.45);
}

.raz-composer-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Popover 54 Emojis */
.raz-composer-emoji-popover {
    position: absolute;
    bottom: 100%;
    left: 8px;
    right: 8px;
    background: #ffffff;
    border: 1px solid #d6b788;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 50;
    margin-bottom: 6px;
}

.raz-emoji-item-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 3px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, transform 0.12s ease;
}

.raz-emoji-item-btn:hover {
    background: #f7f3eb;
    transform: scale(1.2);
}

/* === 6. CUSTOM SHARE MODAL === */
.raz-share-modal .raz-share-dialog {
    position: relative;
    width: 90%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d6b788;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    padding: 20px;
    text-align: center;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.raz-share-modal.active .raz-share-dialog {
    transform: scale(1);
}

.raz-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.raz-share-header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #443729;
    display: flex;
    align-items: center;
    gap: 6px;
}

.raz-share-header h4 i {
    color: #997949;
}

.raz-share-desc {
    font-size: 0.82rem;
    color: #7d6b54;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.raz-share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raz-share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.raz-share-item.wa {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.raz-share-item.copy {
    background: #f7f3eb;
    color: #554433;
    border: 1px solid #ebd9be;
}

.raz-share-item:hover {
    transform: translateY(-2px);
}
