/* === 모달 ?체 ???용??한 ?버?이??=== */
#quote-detail-modal .quote-detail-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

#quote-detail-modal .quote-basic-info {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

#quote-detail-modal .quote-spec-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

#quote-detail-modal .quote-info-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

#quote-detail-modal .quote-info-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    margin-bottom: 0.25rem !important;
}

#quote-detail-modal .quote-info-value {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
}

#quote-detail-modal .quote-spec-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

#quote-detail-modal .quote-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    transition: all 0.2s ease-in-out !important;
}

#quote-detail-modal .quote-details-content {
    width: 100% !important;
    max-width: none !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
}

/* ??지 그리???체 ???용 */
#quote-detail-modal .quote-image-grid {
    display: grid !important;
    width: 100% !important;
    gap: 1rem !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
}

@media (min-width: 640px) {
    #quote-detail-modal .quote-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    #quote-detail-modal .quote-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    #quote-detail-modal .quote-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    }
    
    #quote-detail-modal .quote-basic-info {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    #quote-detail-modal .quote-spec-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1280px) {
    #quote-detail-modal .quote-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important;
    }
}

@media (min-width: 1536px) {
    #quote-detail-modal .quote-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    }
}

/* ?? ?션 ?체 ???용 강화 */
#replies-container {
    width: 100% !important;
    max-width: none !important;
}

#replies-container > * {
    width: 100% !important;
    max-width: none !important;
}

#reply-form {
    width: 100% !important;
    max-width: none !important;
}

#reply-form > * {
    width: 100% !important;
    max-width: none !important;
}

/* ?? 카드 ????개선 - 중복 ?거, ?쪽 ?의 ?용 */
.reply-card-modern {
    width: 100% !important;
    max-width: none !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
}

.reply-card-modern:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

/* ?역 강제 ???용 */
.w-full-force {
    width: 100% !important;
    max-width: none !important;
}

.max-w-none-force {
    max-width: none !important;
}

/* ??지 ?릭 ?벤??개선 */
.quote-image-clickable {
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.quote-image-clickable:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ?세 ?청?항 ??개선 */
.quote-details-content {
    width: 100% !important;
    max-width: none !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border-left: 4px solid #3b82f6 !important;
}

.quote-details-content p {
    line-height: 1.7 !important;
    color: #374151 !important;
    margin: 0 !important;
}

/* 모달 ?? 컨테?너 ??강제 ?용 */
#quote-detail-content {
    width: 100% !important;
    max-width: none !important;
}

#quote-detail-content > * {
    width: 100% !important;
    max-width: none !important;
}

#quote-detail-content .space-y-6 > * {
    width: 100% !important;
    max-width: none !important;
}

/* ?렉??박스 ?핑 개선 */
.flex-wrap-improved {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* 그리???스??개선 */
.grid-responsive-full {
    display: grid !important;
    width: 100% !important;
    gap: 1rem !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

@media (min-width: 1024px) {
    .grid-responsive-full {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ?스??가?성 개선 */
.prose-enhanced {
    line-height: 1.8 !important;
    color: #374151 !important;
}

.prose-enhanced p {
    margin-bottom: 1rem !important;
}

.prose-enhanced p:last-child {
    margin-bottom: 0 !important;
}

/* === 견적 ?세보기 모달 ??????면 개선 === */

/* 모달 ?체 배경 ?구조 */
#quote-detail-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#quote-detail-modal .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 모달 ?더 ???강화 */
#quote-detail-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

#quote-detail-modal .modal-header h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#quote-detail-modal .modal-header button {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

#quote-detail-modal .modal-header button:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* === FPS 계산기 모달 하단 가림 방지 === */
#fps-calculator-modal #fps-calculator-body {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    /* 푸터를 콤팩트하게 고정하여 컨텐츠 가림 최소화 */
    #fps-calculator-modal #fps-calculator-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 12px;
        background: rgba(249, 250, 251, 0.95);
        backdrop-filter: blur(6px);
        z-index: 1;
    }
    #fps-calculator-modal #fps-calculator-footer .fps-footer-info {
        display: none;
    }
    #fps-calculator-modal #fps-calculator-close-btn {
        margin-left: auto;
        padding: 10px 16px;
        font-weight: 600;
        border-radius: 9999px;
        background: white;
    }
    /* 스크롤 영역이 푸터에 가리지 않도록 최소 하단 여백 확보 */
    #fps-calculator-modal #fps-calculator-body iframe {
        padding-bottom: 72px; /* 푸터 높이만큼 여백 */
        box-sizing: border-box;
    }
}

/* === 견적 본문 ?역 ???=== */
#quote-detail-content {
    background: #fafbfc !important;
    border-bottom: 3px solid #e5e7eb !important;
    position: relative;
}

#quote-detail-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 0 0 12px 12px;
}

/* 견적 ?보 ?션 개선 */
.quote-detail-section {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.quote-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.quote-detail-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* ?션 ?더 개선 */
.quote-detail-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    margin: -24px -24px 20px -24px !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.quote-detail-header svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* === ?? ?역 ???=== */
#quote-detail-modal .border-t.border-gray-200.bg-gray-50 {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-top: 4px solid #cbd5e1 !important;
    margin-top: 20px !important;
    position: relative;
}

/* ?? 카드????고 간단?게 */
.reply-card-modern {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease !important;
}

.reply-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* ?? ?? 간격 조정 */
.reply-card-modern .w-10.h-10 {
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.reply-card-modern .prose-enhanced {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    font-size: 0.9rem !important;
}

/* ?? ?성 ?도 ??간단?게 */
#reply-form {
    background: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-top: 20px !important;
}

/* === 모달 ??체 ???용 강제 === */
#quote-detail-modal .modal-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#quote-detail-modal .modal-content > div {
    width: 100% !important;
    max-width: none !important;
    padding: 20px !important;
}

/* 메인 게시글 카드 ?체 ??강제 */
#quote-detail-modal .main-post-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto 32px auto !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #e5e7eb !important;
    animation: fadeInScale 0.6s ease-out;
}

#quote-detail-modal .main-post-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 게시글 ?더 ?체 ??*/
#quote-detail-modal .post-header {
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

#quote-detail-modal .post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

#quote-detail-modal .post-header h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 게시글 본문 ?체 ??*/
#quote-detail-modal .post-content {
    width: 100% !important;
    background: #fefefe;
    position: relative;
}

/* 모든 ?? 컨테?너 ?체 ??강제 */
#quote-detail-modal .content-section,
#quote-detail-modal .tag-container,
#quote-detail-modal .spec-grid,
#quote-detail-modal .detail-content,
#quote-detail-modal .image-gallery {
    width: 100% !important;
    max-width: none !important;
}

/* 게시글 ?터 ?체 ??*/
#quote-detail-modal .post-footer {
    width: 100% !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

/* 반응???자??*/
@media (max-width: 768px) {
    .post-header {
        padding: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .tag-container {
        gap: 6px;
    }
    
    .content-tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

/* ?니메이??*/
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#quote-detail-modal .content-section {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

#quote-detail-modal .content-section:last-child {
    border-bottom: none;
}

#quote-detail-modal .content-section:hover {
    background: rgba(59, 130, 246, 0.02);
    border-radius: 12px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
}

#quote-detail-modal .section-title {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    gap: 8px;
}

#quote-detail-modal .section-title svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

#quote-detail-modal .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#quote-detail-modal .content-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: default;
}

#quote-detail-modal .content-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#quote-detail-modal .tag-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: #93c5fd;
}

#quote-detail-modal .tag-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-color: #86efac;
}

#quote-detail-modal .tag-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c2d12;
    border-color: #c4b5fd;
}

#quote-detail-modal .tag-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdd8b5 100%);
    color: #c2410c;
    border-color: #fb923c;
}

#quote-detail-modal .payment-delivery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

#quote-detail-modal .payment-delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

#quote-detail-modal .payment-delivery-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
}

/* ?양 그리??*/
#quote-detail-modal .spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

#quote-detail-modal .spec-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

#quote-detail-modal .spec-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

#quote-detail-modal .spec-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

#quote-detail-modal .spec-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* ?세 ?용 */
#quote-detail-modal .detail-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin-top: 8px;
}

#quote-detail-modal .detail-content p {
    color: #374151;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

/* ??지 갤러?*/
#quote-detail-modal .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

#quote-detail-modal .image-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#quote-detail-modal .image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#quote-detail-modal .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

#quote-detail-modal .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

#quote-detail-modal .image-item:hover .image-overlay {
    opacity: 1;
}

#quote-detail-modal .image-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

#quote-detail-modal .image-item:hover .image-filename {
    opacity: 1;
    transform: translateY(0);
}

/* 게시글 ?터 */
#quote-detail-modal .post-footer {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

/* 반응???자??*/
@media (max-width: 768px) {
    #quote-detail-modal .post-header {
        padding: 20px;
    }
    
    #quote-detail-modal .post-content {
        padding: 20px;
    }
    
    #quote-detail-modal .spec-grid {
        grid-template-columns: 1fr;
    }
    
    #quote-detail-modal .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    #quote-detail-modal .tag-container {
        gap: 6px;
    }
    
    #quote-detail-modal .content-tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

/* === ?크롤바 개선 === */
#quote-detail-modal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#quote-detail-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 4px;
}

#quote-detail-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#quote-detail-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #2563eb 100%);
}

/* === ?니메이??개선 === */
.quote-detail-section {
    animation: slideInUp 0.4s ease-out;
}

.reply-card-modern {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ?태??상 개선 === */
.quote-status-badge {
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ?그 ???개선 */
.quote-tag {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.quote-tag:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* === 게시글 ????자??=== */

/* 메인 게시글 카드 */
.main-post-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #e5e7eb !important;
    animation: fadeInScale 0.6s ease-out;
}

.main-post-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 게시글 ?더 */
.post-header {
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.post-header h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 게시글 본문 */
.post-content {
    background: #fefefe;
    position: relative;
}

/* 콘텐??션 */
.content-section {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section:hover {
    background: rgba(59, 130, 246, 0.02);
    border-radius: 12px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
}

/* ?션 ?목 */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    gap: 8px;
}

.section-title svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ?그 컨테?너 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: default;
}

.content-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Hover animation kill-switch for detail modal and global cards === */
/* 메인 카드, 섹션, 태그, 스펙 카드의 hover/transition을 전면 비활성화 */
#quote-detail-modal .main-post-card,
.main-post-card {
    transition: none !important;
}

#quote-detail-modal .main-post-card:hover,
.main-post-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

#quote-detail-modal .content-section,
.content-section {
    transition: none !important;
}

#quote-detail-modal .content-section:hover,
.content-section:hover {
    transform: none !important;
    box-shadow: none !important;
    background: inherit !important;
    border-radius: inherit !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#quote-detail-modal .content-tag,
.content-tag {
    transition: none !important;
}

#quote-detail-modal .content-tag:hover,
.content-tag:hover {
    transform: none !important;
    box-shadow: none !important;
}

#quote-detail-modal .spec-grid .spec-item,
.spec-grid .spec-item {
    transition: none !important;
}

#quote-detail-modal .spec-grid .spec-item:hover,
.spec-grid .spec-item:hover {
    transform: none !important;
    box-shadow: none !important;
    background: inherit !important;
    outline: none !important;
    border-color: #e2e8f0 !important;
}

#quote-detail-modal .post-content,
.post-content {
    transition: none !important;
}

/* Prevent focus-induced layout shifts as well */
#quote-detail-modal .spec-grid .spec-item:focus,
#quote-detail-modal .spec-grid .spec-item:focus-within,
.spec-grid .spec-item:focus,
.spec-grid .spec-item:focus-within,
#quote-detail-modal .content-section:focus-within,
.content-section:focus-within,
#quote-detail-modal .content-tag:focus,
.content-tag:focus {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-color: inherit !important;
    filter: none !important;
}

/* Also disable container section hover/transition to avoid parent-induced shifts */
#quote-detail-modal .quote-detail-section,
.quote-detail-section {
    transition: none !important;
}

#quote-detail-modal .quote-detail-section:hover,
.quote-detail-section:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* Align detail-content box metrics with spec-item to avoid width/height shifts */
#quote-detail-modal .detail-content,
.detail-content {
    border-left: 1px solid #e2e8f0 !important; /* unify with spec-item */
    border-radius: 12px !important;            /* match spec-item radius */
    padding: 16px !important;                  /* match spec-item padding */
    transition: none !important;
}
.tag-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: #93c5fd;
}

.tag-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-color: #86efac;
}

.tag-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c2d12;
    border-color: #c4b5fd;
}

.tag-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdd8b5 100%);
    color: #c2410c;
    border-color: #fb923c;
}

/* 결제방법?배송방법 컨테?너 */
.payment-delivery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-delivery-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
}

/* ?양 그리??*/
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.spec-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.spec-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.spec-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* ?세 ?용 */
.detail-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin-top: 8px;
}

.detail-content p {
    color: #374151;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

/* ??지 갤러?*/
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.image-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.image-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.image-item:hover .image-filename {
    opacity: 1;
    transform: translateY(0);
}

/* 게시글 ?터 */
.post-footer {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

/* 반응???자??모바??최적??*/
@media (max-width: 768px) {
    .post-header {
        padding: 16px;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .spec-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .spec-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .spec-value {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .tag-container {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .content-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .content-section {
        margin-bottom: 20px;
    }
    
    /* 모바?에???더 ?스???기 조정 */
    .post-header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .post-header h3 {
        font-size: 1.1rem;
    }
    
    .post-header .text-blue-100 {
        font-size: 0.8rem;
    }
    
    /* 결제/배송 ?보 모바??최적??*/
    .payment-delivery-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .payment-delivery-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* 게시글 ?터 모바??최적??*/
    .post-footer .flex.items-center.justify-between {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .post-footer .flex.items-center.space-x-4 {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .post-footer .flex.items-center.space-x-4 span {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .post-footer .text-gray-500 {
        font-size: 0.8rem;
        align-self: flex-end;
    }
    
    /* ?? 카드 ?정/?? 버튼 모바??최적??*/
    .reply-card-modern .flex.justify-between.items-start {
        gap: 8px;
        align-items: flex-start;
    }
    
    .reply-card-modern .flex.items-center.space-x-2 {
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        flex-shrink: 0;
    }
    
    .reply-card-modern .flex.items-center.space-x-2 button {
        padding: 8px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
    }
    
    .reply-card-modern .flex.items-center.space-x-2 button span {
        display: none;
    }
    
    .reply-card-modern .flex.items-center.space-x-2 button svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }
    
    .reply-card-modern .flex.items-center.space-x-2 button:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}
