/* ======================================== */
/*   AD VIEW — Premium 2026 Design          */
/*   Complete, Precise, Bug-Free            */
/* ======================================== */

/* ---------- RESET & BASE ---------- */
body {
    background: #ffffff;
    font-family: 'Vazirmatn', sans-serif !important;
    color: #1e293b;
    direction: rtl;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* این استایل را پیدا کن و تغییر بده */
.ad-page .container,
.main-content .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}


/* ======================================== */
/*   MAIN LAYOUT — 2 Columns                */
/* ======================================== */
.ad-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ======================================== */
/*   GALLERY                                */
/* ======================================== */
.gallery-section {
    position: sticky;
    top: 20px;
}

.gallery-swiper {
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}

.gallery-swiper .swiper-wrapper {
    display: flex;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    width: 100% !important;
    max-width: 100% !important;
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.04);
}

.no-image {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 20px;
    color: #94a3b8;
    gap: 12px;
}

.no-image i { font-size: 3.5rem; color: #cbd5e1; }
.no-image p { font-size: 0.9rem; margin: 0; }

/* Swiper Navigation */
.custom-swiper-next,
.custom-swiper-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b46c1;
    font-size: 26px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.custom-swiper-next:hover,
.custom-swiper-prev:hover {
    background: #6b46c1;
    color: #fff;
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.custom-swiper-next { left: 12px; }
.custom-swiper-prev { right: 12px; }

.swiper-pagination {   bottom: 8px !important; }
.swiper-pagination-bullet { background: rgba(255, 255, 255, 0.7); opacity: 1; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { background: #6b46c1; width: 24px; border-radius: 6px; }

/* ======================================== */
/*   VIDEO PLAYER                           */
/* ======================================== */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(107, 70, 193, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.big-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
    margin-right: 3px;
}

.big-play-btn i { display: none; }

.big-play-btn:hover {
    background: #553c9a;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(107, 70, 193, 0.4);
}

.video-controls {
    position: absolute;
    bottom: 30px !important;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.video-container:hover .video-controls,
.video-controls.show { opacity: 1; }

.video-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.video-controls button:hover { background: rgba(255, 255, 255, 0.15); }

.video-progress-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    direction: ltr;
    position: relative;
}

.video-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #6b46c1;
    border-radius: 5px;
    width: 0;
    pointer-events: none;
}

.video-progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.video-time {
    color: #fff;
    font-size: 11px;
    font-family: monospace;
    min-width: 70px;
    text-align: center;
}

/* ======================================== */
/*   FULLSCREEN GALLERY                     */
/* ======================================== */
.fullscreen-gallery {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-gallery.active { display: block; opacity: 1; }

.fullscreen-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.fullscreen-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ff6b6b;
    font-size: 28px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fullscreen-close-btn:hover { background: #ef4444; color: #fff; transform: scale(1.1); }

.fullscreen-counter {
    font-size: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: monospace;
}

.fullscreen-swiper { width: 100%; height: 100%; }
.fullscreen-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.fullscreen-swiper .swiper-zoom-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fullscreen-image { max-width: 90%; max-height: 90%; object-fit: contain; cursor: zoom-in; }
.fullscreen-video { max-width: 90%; max-height: 90%; object-fit: contain; }

.fullscreen-gallery-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.zoom-controls { display: flex; gap: 10px; }

.zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.zoom-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.1); }

.custom-fs-next,
.custom-fs-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.custom-fs-next:hover,
.custom-fs-prev:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-50%) scale(1.1); }

.custom-fs-next { left: 16px; }
.custom-fs-prev { right: 16px; }

/* ======================================== */
/*   AD HEADER                              */
/* ======================================== */
.ad-header {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}

.ad-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.badge-urgent,
.badge-ladder,
.badge-stair,
.badge-featured,
.badge-exhibition {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}



.badge-exhibition {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    font-size: 0.75rem !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
    animation: exhibitionPulse 2s infinite ease-in-out;
}

@keyframes exhibitionPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5); }
}

.badge-urgent { background: #ef4444; }      /* فوری — قرمز */
.badge-ladder { background: #3b82f6; }      /* نردبان — آبی */
.badge-stair { background: #f59e0b; }       /* پله‌ای — نارنجی */
.badge-featured { background: #7c3aed; }    /* ویژه — بنفش */
.badge-exhibition { background: #7c3aed; }  /* نمایشگاهی — بنفش */

.ad-title { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.6; margin-bottom: 12px; }

.ad-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: #64748b; margin-bottom: 14px; }
.ad-meta i { margin-left: 5px; color: #94a3b8; font-size: 0.78rem; }

.ad-price { font-size: 1.6rem; font-weight: 800; color: #6b46c1; margin-bottom: 16px; }

/* ======================================== */
/*   ACTION BUTTONS                         */
/* ======================================== */
.ad-actions2 { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #f0f0f5; }

.ad-actions2 .action-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #64748b;
    font-size: 1.05rem;
    flex-shrink: 0;
    text-decoration: none;
}

.ad-actions2 .action-btn:hover {
    background: #6b46c1;
    color: #fff;
    border-color: #6b46c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 70, 193, 0.2);
}

.ad-actions2 .action-btn.active {
    background: #6b46c1;
    color: #fff;
    border-color: #6b46c1;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 42px;      /* حداقل اندازه دکمه */
    padding: 0 14px;
    gap: 6px;
    white-space: nowrap;  /* جلوگیری از شکستن متن */
    flex-shrink: 0;
}

.like-count {
    display: inline-block;
    min-width: max-content;
    font-size: 0.78rem;
    font-weight: 700;
}.like-btn.liked { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.like-btn.liked:hover { background: #fef2f2; color: #ef4444; border-color: #ef4444; box-shadow: 0 6px 16px rgba(239, 68, 68, 0.2); }
.note-section { display: inline-flex; }

.ad-actions2 .like-btn{
    width: auto !important;
    height: 42px;
}
/* ======================================== */
/*   CONTACT BUTTONS                        */
/* ======================================== */
.buttons-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 64px;
    margin-top: 44px;
    background: #fff;
  
    border-radius: 18px;
}

.btn-contact,
.btn-chat,
.btn-instagram,
.btn-telegram {
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-contact { background: #6b46c1; flex: 1; min-width: 160px; justify-content: center; }
.btn-contact:hover { background: #553c9a; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(107, 70, 193, 0.3); color: #fff; }
.btn-chat { background: #10b981; flex: 1; min-width: 160px; justify-content: center; }
.btn-chat:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3); color: #fff; }



.btn-sms {
	  display: none; 
    background: #0ea5e9;
    flex: 1;
    min-width: 160px;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sms:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3);
    color: #fff;
}




.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; font-size: 1.1rem; }
.btn-instagram:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 18px rgba(220, 39, 67, 0.3); color: #fff; }
.btn-telegram { background: #3b82f6; width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; font-size: 1.1rem; }
.btn-telegram:hover { background: #2563eb; transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3); color: #fff; }
.btn-contact.disabled { background: #cbd5e1; cursor: not-allowed; pointer-events: none; }

/* ======================================== */
/*   DETAILS                                */
/* ======================================== */
.ad-details { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); margin-bottom: 14px; }
.ad-details h5 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f5; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.85rem;
}

.detail-item i { width: 18px; color: #6b46c1; font-size: 1rem; text-align: center; flex-shrink: 0; }
.detail-item div { display: flex; flex-direction: column; gap: 2px; }
.detail-item strong { font-size: 0.68rem; color: #94a3b8; font-weight: 500; }
.detail-item span { font-weight: 600; color: #1e293b; font-size: 0.85rem; }

.description-text { background: #f8fafc; padding: 16px; border-radius: 12px; font-size: 0.9rem; line-height: 2; color: #475569; word-wrap: break-word; white-space: pre-wrap; }

/* ======================================== */
/*   USER INFO BOX                          */
/* ======================================== */
.user-info-box { background: #f4f6f8; border-radius: 20px; padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); margin-bottom: 14px; }
.user-profile-pic { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #e8ecf0; flex-shrink: 0; }
.user-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.user-profile-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    order: -1;
}
.user-profile-description { font-size: 0.78rem; color: #94a3b8; }
.exhibition-btn { padding: 10px 18px; border-radius: 12px; background: #6b46c1; color: #fff; text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: all 0.2s ease; }
.exhibition-btn:hover { background: #553c9a; color: #fff; }
.showroom-rating-stars { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.mini-star { font-size: 14px; color: #d1d5db; }
.mini-star.active { color: #f59e0b; }
.rating-text { font-size: 11px; color: #94a3b8; margin-right: 4px; }

/* ======================================== */
/*   INFO TEXT BOX                          */
/* ======================================== */
.infotxt-box { background: #fff; border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #64748b; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); margin-bottom: 14px; }
.infotxt-box i { color: #f59e0b; font-size: 1.2rem; flex-shrink: 0; }

/* ======================================== */
/*   NOTE POPUP                             */
/* ======================================== */
.note-popup { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 100000; display: none; align-items: center; justify-content: center; }
.note-popup.active { display: flex; }
.note-popup-content { background: #fff; width: 90%; max-width: 420px; border-radius: 24px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2); overflow: hidden; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.note-popup-header { background: linear-gradient(135deg, #6b46c1, #7c3aed); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.note-popup-header h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.note-popup-close { background: rgba(255, 255, 255, 0.2); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: #fff; font-size: 16px; transition: all 0.2s ease; }
.note-popup-close:hover { background: rgba(255, 255, 255, 0.35); transform: rotate(90deg); }
.note-popup-body { padding: 20px; }
.note-popup-textarea { width: 100%; padding: 12px; border: 2px solid #e8ecf0; border-radius: 14px; font-size: 0.85rem; font-family: inherit; resize: vertical; direction: rtl; text-align: right; }
.note-popup-textarea:focus { outline: none; border-color: #6b46c1; box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.08); }
.note-char-counter { font-size: 0.72rem; color: #94a3b8; text-align: left; margin-top: 8px; }
.note-popup-footer { padding: 14px 20px; background: #f8fafc; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid #e8ecf0; }
.note-popup-btn { padding: 8px 18px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease; }
.note-popup-cancel { background: #e8ecf0; color: #64748b; }
.note-popup-cancel:hover { background: #cbd5e1; }
.note-popup-save { background: #10b981; color: #fff; }
.note-popup-save:hover { background: #059669; }

/* ======================================== */
/*   RESPONSIVE                             */
/* ======================================== */
@media (max-width: 991.98px) {
    .ad-page { grid-template-columns: 1fr; gap: 16px; }
    .gallery-section { position: static; }
    .details-grid { grid-template-columns: 1fr; }
    .ad-title { font-size: 1.15rem; }
    .ad-price { font-size: 1.3rem; }
	
	   .btn-contact,
    .btn-chat {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: unset;
    }
    .btn-sms {
        display: inline-flex;  /* ⭐ نمایش در تبلت و موبایل */
    }
}

@media (max-width: 767.98px) {
    .container { padding: 0 10px; }
    .ad-header, .ad-details { padding: 16px; border-radius: 16px; }
    .user-info-box {
        flex-direction: row;
        text-align: right;
        align-items: center;
        gap: 12px;
		   flex-wrap: wrap;
    }

    .exhibition-btn {
        order: 999;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
   .btn-contact,
    .btn-chat {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
        .ad-actions2 .action-btn { width: 38px; height: 38px; border-radius: 12px; }

.ad-actions2 {
        flex-wrap: wrap;
        gap: 6px;
    }

    .like-btn {
        min-width: unset;
        width: auto;
        padding: 0 10px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .like-count {
        font-size: 0.72rem;
    }
    .custom-swiper-next, .custom-swiper-prev { width: 36px; height: 36px; font-size: 22px; }
    .big-play-btn { width: 56px; height: 56px; }
    .big-play-btn::after { border-width: 10px 0 10px 18px; 
}
.btn-sms {
    padding: 8px 14px;
    font-size: 0.75rem;
}
}
@media (max-width: 374.98px) {
    .container { padding: 0 8px; }
    .ad-page { gap: 10px; }
    .ad-header, .ad-details { padding: 12px; border-radius: 14px; }
    .ad-title { font-size: 1rem; }
    .ad-price { font-size: 1.15rem; }
    .ad-actions2 .action-btn { width: 34px; height: 34px; }
.ad-actions2 {
        flex-wrap: wrap;
        gap: 6px;
    }

    .like-btn {
        min-width: unset;
        width: auto;
        padding: 0 10px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .like-count {
        font-size: 0.72rem;
    }

    .btn-contact,
    .btn-chat {
        padding: 7px 12px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
    .detail-item { padding: 8px 10px; }
    .gallery-swiper { border-radius: 14px; 
}

.btn-sms {
    padding: 7px 12px;
    font-size: 0.7rem;
    border-radius: 10px;
}
}
.gallery-swiper .big-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-swiper .big-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #1e293b;
}

.gallery-swiper .big-play-btn i {
    display: none !important;
}

.gallery-swiper .big-play-btn:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


.note-section {
    margin-top: 24px;
    width: 100%;
}

.note-card {
    background: #fafbff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.note-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.note-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    width: 100%;
}

.note-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6b46c1, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.note-card-icon i {
    color: #fff;
    font-size: 1rem;
}

.note-card-content {
    flex: 1;
    min-width: 0;
}

.note-card-content p {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    max-height: calc(1.7em * 8);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c0c8d4 transparent;
}

.note-card-content p::-webkit-scrollbar {
    width: 4px;
}

.note-card-content p::-webkit-scrollbar-track {
    background: transparent;
}

.note-card-content p::-webkit-scrollbar-thumb {
    background: #c0c8d4;
    border-radius: 4px;
}

.note-card-edit {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8ecf0;
    color: #6b46c1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.note-card-edit:hover {
    background: #6b46c1;
    color: #fff;
    border-color: #6b46c1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767.98px) {
    .note-card-inner {
        padding: 12px 14px;
        gap: 10px;
    }

    .note-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .note-card-icon i {
        font-size: 0.9rem;
    }

    .note-card-content p {
        font-size: 0.78rem;
        max-height: calc(1.7em * 8);
    }

    .note-card-edit {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 374.98px) {
    .note-card-inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .note-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .note-card-icon i {
        font-size: 0.8rem;
    }

    .note-card-content p {
        font-size: 0.74rem;
        max-height: calc(1.7em * 6);
    }

    .note-card-edit {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.7rem;
    }
}