body.archive.post-type-archive-prompt {
    background: #ffffff !important;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    border-radius: 0;
    min-height: 600px;
    padding-top: 100px;
    padding-bottom: 10px;
    /* Hero vẫn để tối cho sang */
}

/* Model Bar */
.model-bar {
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 10;
}

.model-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
}

.model-item {
    color: #1a1d23;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.model-item:hover {
    opacity: 1;
}

/* Grid System - Pinterest Style */
section#prompts {
    background: #ffffff !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 10px !important;
}

.posts-grid {
    column-count: 6 !important;
    column-gap: 10px !important;
    width: 100% !important;
}

#related-prompts-container {
    padding: 10px !important;
}

.prompt-grid-item {
    break-inside: avoid;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden;
    border-radius: 10px;
}

.prompt-card {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

/* Image */
.prompt-image {
    position: relative;
    width: 100%;
}

.prompt-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.prompt-card:hover .prompt-image img {
    transform: scale(1.1);
}

/* Video Preview */
.prompt-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 5;
    background: #000;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.prompt-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover play logic */
.prompt-card.has-video:hover .prompt-image img {
    opacity: 0;
}

.prompt-card.has-video:hover .prompt-video-preview {
    opacity: 1;
}

/* Labels & Overlays */
.prompt-top-actions,
.prompt-bottom-info {
    position: absolute;
    z-index: 50;
    /* Đẩy lên cao hẳn để không bị video che */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.prompt-card:hover .prompt-top-actions,
.prompt-card:hover .prompt-bottom-info {
    opacity: 1;
    visibility: visible;
}

.prompt-top-actions {
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.prompt-bottom-info {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 15px;
    /* Tăng padding để dải đen cao hơn */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 1) 95%);
    display: flex;
    flex-direction: column;
}

.prompt-content-text {
    font-size: 0.9rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Đổ bóng mạnh để hiện rõ chữ */
    visibility: visible !important;
}

.prompt-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Căn lề dưới cho đều */
    width: 100%;
}

.prompt-stats {
    display: flex;
    gap: 12px;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    /* Làm số nổi bật hơn */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prompt-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff !important;
}

.prompt-stats i {
    font-size: 0.85rem;
    color: #ffffff;
}

.prompt-tool-badge {
    background: #ffffff !important;
    /* Cho nền trắng hẳn */
    color: #000000 !important;
    /* Chữ đen trên nền trắng cho nổi bật nhất */
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Di động */
@media (max-width: 1200px) {
    .posts-grid {
        column-count: 4 !important;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        column-count: 2 !important;
    }
}

/* --- PROMPT DETAIL MODAL - CUSTOM HK DESIGN --- */
#promptDetailModal {
    background: #ffffff !important;
    padding: 0 !important;
}

#promptDetailModal .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

#promptDetailModal .modal-content {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    height: 100vh !important;
    position: relative;
    box-shadow: none !important;
    display: block !important;
    overflow: hidden !important;
}

/* Modal Wrapper - Full screen container */
.hk-modal-wrapper {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
}


/* Media Side (Left) */
.hk-modal-media-side {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-height: 100vh;
    position: sticky;
    top: 0;
}

.hk-modal-media-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hk-modal-image-box img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hk-modal-video-box {
    width: 100%;
    max-height: 90vh;
}

.hk-modal-video-box video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 12px;
}

/* Info Side (Right) */
.hk-modal-info-side {
    width: 450px;
    background: #ffffff;
    border-left: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.hk-modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px 15px;
    /* Compact padding for better fit */
}

.hk-modal-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hk-modal-header i {
    color: #9333ea;
    font-size: 24px;
    margin-top: 4px;
}

.hk-modal-title {
    font-size: 20px;
    /* Reduced font size */
    font-weight: 700;
    color: #111111 !important;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Author */
.hk-modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    /* Compact margin */
}

.hk-modal-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.hk-modal-author-meta {
    display: flex;
    flex-direction: column;
}

.hk-author-name {
    font-weight: 700;
    color: #111111 !important;
    font-size: 16px;
}

.hk-author-label {
    font-size: 13px;
    color: #888;
}

/* Tags */
.hk-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hk-tag-item {
    background: #f1f3f5;
    color: #333 !important;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

/* Cost */
.hk-modal-cost {
    padding: 15px 0;
    border-top: 1px solid #f1f3f5;
    margin-bottom: 18px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hk-modal-cost i {
    color: #f59e0b;
}

.hk-modal-cost strong {
    color: #111 !important;
}

/* Sections */
.hk-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 700;
}

.hk-desc-text {
    font-size: 14px;
    color: #333 !important;
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Code Wrap */
.hk-modal-code-wrap {
    margin-bottom: 20px;
}

.hk-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hk-btn-copy {
    background: #9333ea;
    color: #fff !important;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hk-btn-copy:hover {
    background: #7e22ce;
}

.hk-code-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 18px;
    min-height: 120px;
    position: relative;
    overflow-y: auto;
    max-height: 220px;
}

.hk-unlocked-raw {
    color: #1a1d23 !important;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hk-unlocked-raw * {
    color: #1a1d23 !important;
}

/* Styling for WordPress content elements */
.hk-unlocked-raw p {
    margin-bottom: 1em;
}

.hk-unlocked-raw h1,
.hk-unlocked-raw h2,
.hk-unlocked-raw h3,
.hk-unlocked-raw h4,
.hk-unlocked-raw h5,
.hk-unlocked-raw h6 {
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.hk-unlocked-raw h1 {
    font-size: 1.8em;
}

.hk-unlocked-raw h2 {
    font-size: 1.5em;
}

.hk-unlocked-raw h3 {
    font-size: 1.3em;
}

.hk-unlocked-raw h4 {
    font-size: 1.1em;
}

.hk-unlocked-raw ul,
.hk-unlocked-raw ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.hk-unlocked-raw li {
    margin-bottom: 0.5em;
}

.hk-unlocked-raw code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.hk-unlocked-raw pre {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.hk-unlocked-raw pre code {
    background: transparent;
    padding: 0;
}

.hk-unlocked-raw a {
    text-decoration: underline;
}

.hk-unlocked-raw strong,
.hk-unlocked-raw b {
    font-weight: 700;
}

.hk-unlocked-raw em,
.hk-unlocked-raw i {
    font-style: italic;
}

.hk-unlocked-raw blockquote {
    border-left: 4px solid #9333ea;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #555 !important;
}

.hk-unlocked-raw img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Locked Overlay */
.hk-locked-overlay {
    text-align: center;
    padding: 20px 0;
}

.hk-locked-overlay i {
    font-size: 40px;
    color: #9333ea;
    margin-bottom: 15px;
    display: block;
}

.hk-locked-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 8px;
}

.hk-locked-overlay p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.hk-btn-unlock {
    background: #111;
    color: #fff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.hk-btn-unlock i {
    font-size: 18px;
}

.hk-btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #333;
}

/* Bottom Meta */
.hk-modal-meta-bottom {
    margin-bottom: 15px;
    border-top: 1px solid #f1f3f5;
    padding-top: 18px;
}

.hk-date-text {
    font-size: 14px;
    color: #666;
}


/* Ads/CTA Section */
.hk-modal-ads {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hk-cta-card {
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.hk-cta-card.card-course {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.hk-cta-card.card-tool {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hk-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.hk-cta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hk-cta-card:hover::after {
    transform: translateX(100%);
}

.hk-cta-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hk-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.hk-cta-icon.icon-orange {
    background: #f59e0b;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.hk-cta-icon.icon-blue {
    background: #0ea5e9;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

.hk-cta-info {
    flex: 1;
}

.hk-cta-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}

.hk-cta-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px;
    line-height: 1.4;
}

.hk-cta-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: transform 0.3s;
}

.hk-cta-card:hover .hk-cta-arrow {
    transform: translateX(5px);
    color: #fff;
}


/* Footer Action */
.hk-modal-footer {
    padding: 15px 30px 30px;
    background: #fff;
    border-top: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.hk-btn-view-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #9333ea;
    color: #fff !important;
    text-decoration: none !important;
    padding: 16px;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s;
}

.hk-btn-view-detail:hover {
    background: #7e22ce;
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2);
}

/* Close Button */
.btn-close-custom {
    position: fixed;
    top: 30px;
    right: 40px;
    background: #f1f3f5;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    font-size: 22px;
    color: #1a1d23;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-close-custom:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

/* Override Bootstrap Modal Backdrop */
.modal-backdrop.show {
    opacity: 1 !important;
    background-color: #ffffff !important;
}

/* --- SINGLE PROMPT PAGE - PREMIUM DESIGN --- */
.hk-sp-hero {
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 100%);
    padding: 100px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hk-sp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hk-sp-hero .breadcrumb-item,
.hk-sp-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    text-decoration: none;
}

.hk-sp-hero .breadcrumb-item.active {
    color: #fff !important;
}

.hk-sp-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0 30px;
    letter-spacing: -1px;
}

.hk-sp-meta-top {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hk-sp-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hk-sp-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hk-sp-author-info {
    font-size: 14px;
}

.hk-sp-author-name {
    font-weight: 700;
    display: block;
}

.hk-sp-stats {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Body Section */
.hk-sp-body {
    background: #ffffff;
    padding: 80px 0;
    color: #1a1d23;
}

.hk-sp-media-wrap {
    position: relative;
    margin-bottom: 40px;
}

.hk-sp-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: #000;
}

.hk-sp-media img,
.hk-sp-media video,
.hk-sp-media iframe {
    width: 100% !important;
    height: auto !important;
    display: block;
    border: none;
}

.hk-sp-content-wrap {
    padding-left: 20px;
}

/* Section Header */
.hk-sp-section-label {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9333ea;
    margin-bottom: 15px;
    display: block;
}

.hk-sp-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 40px;
}

/* Info Grid */
.hk-sp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.hk-sp-info-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f1f3f5;
}

.hk-sp-info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.hk-sp-info-value {
    font-weight: 700;
    color: #111;
    font-size: 16px;
}

/* Prompt Box */
.hk-sp-prompt-box {
    margin-bottom: 50px;
}

.hk-sp-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hk-sp-copy-btn {
    background: #111;
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.hk-sp-copy-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Bookmark button in prompt pages */
.hk-sp-prompt-header .hk-bookmark-btn {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #e9ecef !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none !important;
}

.hk-sp-prompt-header .hk-bookmark-btn:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    transform: translateY(-2px);
}

.hk-sp-prompt-header .hk-bookmark-btn.bookmarked {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1 !important;
}

.hk-sp-prompt-header .hk-bookmark-btn.bookmarked:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.hk-sp-prompt-header .hk-bookmark-btn .bookmark-text,
.hk-sp-prompt-header .hk-bookmark-btn i {
    color: inherit !important;
}

.hk-sp-code-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    max-height: 500px;
    overflow-y: auto;
}

.hk-sp-code {
    font-size: 16px;
    line-height: 1.8;
    color: #1a1d23 !important;
    margin: 0;
    white-space: pre-wrap;
}

/* FAQ/Instructions */
.hk-sp-faq-item {
    background: #fff;
    border: 1px solid #f1f3f5 !important;
    margin-bottom: 15px;
    border-radius: 16px !important;
    overflow: hidden;
}

.hk-sp-faq-btn {
    padding: 24px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.hk-sp-faq-btn:not(.collapsed) {
    background: #f8f9fa !important;
    color: #9333ea !important;
}

/* Custom Instruction Cards for Single Page */
.hk-sp-how-to .hk-cta-card {
    background: #ffffff !important;
    border: 1px solid #f1f3f5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 20px !important;
}

.hk-sp-how-to .hk-cta-title {
    color: #111 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.hk-sp-how-to .hk-cta-desc {
    color: #666 !important;
    font-size: 12px !important;
}

.hk-sp-how-to .hk-cta-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
}

/* Related */
.hk-sp-related {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Related Section Masonry Tight Grid */
.hk-sp-related {
    background: #fff;
    padding: 60px 0;
}

.hk-sp-related .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.hk-sp-related-grid {
    column-count: 6;
    column-gap: 10px;
    background: #fff;
    width: 100%;
}

.hk-sp-related-grid .prompt-card {
    break-inside: avoid;
    display: block;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    border: none !important;
    padding: 0 !important;
    background: #000;
    overflow: hidden;
}

.hk-sp-related-grid .prompt-card-inner {
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hk-sp-related-grid .prompt-image {
    position: relative;
    width: 100%;
    margin: 0 !important;
}

.hk-sp-related-grid .prompt-image img,
.hk-sp-related-grid .prompt-image video {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 0 !important;
}

.hk-sp-related-grid .prompt-bottom-info,
.hk-sp-related-grid .prompt-no-image .prompt-text-fallback {
    display: none !important;
}

.hk-sp-related-grid .prompt-top-actions {
    top: 10px;
    right: 10px;
    z-index: 5;
}

@media (max-width: 1400px) {
    .hk-sp-related-grid {
        column-count: 5;
    }
}

@media (max-width: 1200px) {
    .hk-sp-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hk-sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hk-sp-related-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 991px) {
    .hk-sp-hero {
        padding: 80px 0 40px;
    }

    .hk-sp-title {
        font-size: 2.2rem;
    }

    .hk-sp-media-wrap {
        position: static;
    }

    .hk-sp-content-wrap {
        padding-left: 0;
        margin-top: 40px;
    }

    .hk-sp-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Prompts Mosaic Layout on Homepage */
.prompts-mosaic {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.mosaic-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mosaic-center {
    flex: 1.2;
}

.mosaic-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: #111;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mosaic-item .prompt-card {
    border-radius: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    border: none !important;
}

.mosaic-item .prompt-card-inner {
    border-radius: 0 !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.mosaic-center .mosaic-item {
    height: 100%;
}

.mosaic-center .prompt-image {
    height: 100%;
    position: relative;
    min-height: 500px;
}

.mosaic-center .prompt-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.mosaic-side .mosaic-item {
    flex: 1;
    aspect-ratio: 16/10;
}

.mosaic-side .prompt-image,
.mosaic-side .prompt-image img {
    height: 100% !important;
}

@media (max-width: 991px) {
    .prompts-mosaic {
        flex-direction: column;
    }

    .mosaic-center {
        order: -1;
    }

    .mosaic-center .mosaic-item {
        aspect-ratio: 2/3;
    }

    .mosaic-center .prompt-image {
        min-height: auto;
    }

    .mosaic-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mosaic-side .mosaic-item {
        flex: 1 1 calc(50% - 10px);
        aspect-ratio: 16/10;
    }
}

/* Prompts Section Titles */
#prompts .hk-prompts-label.text-uppercase.small {
    color: #1a1d23 !important;
    opacity: 0.6 !important;
    display: block !important;
}

#prompts .hk-prompts-title {
    color: #1a1d23 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* ===== RESPONSIVE MODAL DESIGN ===== */

/* Laptop with limited height (landscape mode) */
@media (max-height: 900px) and (min-width: 768px) {
    .hk-modal-scroll-content {
        padding: 20px 25px 12px;
    }

    .hk-modal-header {
        margin-bottom: 12px;
    }

    .hk-modal-title {
        font-size: 17px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-modal-author {
        margin-bottom: 10px;
    }

    .hk-modal-author img {
        width: 40px;
        height: 40px;
    }

    .hk-modal-tags {
        margin-bottom: 12px;
        gap: 6px;
    }

    .hk-tag-item {
        padding: 4px 12px;
        font-size: 12px;
    }

    .hk-modal-cost {
        padding: 10px 0;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .hk-section-title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .hk-desc-text {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-modal-code-wrap {
        margin-bottom: 15px;
    }

    .hk-code-header {
        margin-bottom: 8px;
    }

    .hk-code-container {
        padding: 15px;
        max-height: 160px;
        min-height: 100px;
    }

    .hk-unlocked-raw {
        font-size: 13px;
        line-height: 1.5;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 10px;
        padding-top: 12px;
    }

    .hk-date-text {
        font-size: 13px;
    }

    .hk-modal-ads {
        margin-bottom: 15px;
        gap: 8px;
    }

    .hk-cta-card {
        padding: 14px;
        border-radius: 14px;
    }

    .hk-cta-header {
        gap: 12px;
    }

    .hk-cta-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .hk-cta-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .hk-cta-desc {
        font-size: 11px;
        line-height: 1.3;
    }

    .hk-modal-footer {
        padding: 12px 25px 25px;
    }

    .hk-btn-view-detail {
        padding: 12px;
        font-size: 14px;
    }
}

/* Small Laptop with limited width AND height */
@media (max-width: 1280px) and (max-height: 800px) and (min-width: 768px) {
    .hk-modal-info-side {
        width: 340px;
    }

    .hk-modal-scroll-content {
        padding: 18px 20px 10px;
    }

    .hk-modal-header {
        margin-bottom: 10px;
        gap: 8px;
    }

    .hk-modal-header i {
        font-size: 20px;
    }

    .hk-modal-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-modal-author {
        margin-bottom: 8px;
        gap: 10px;
    }

    .hk-modal-author img {
        width: 36px;
        height: 36px;
    }

    .hk-author-name {
        font-size: 14px;
    }

    .hk-author-label {
        font-size: 12px;
    }

    .hk-modal-tags {
        margin-bottom: 10px;
        gap: 6px;
    }

    .hk-tag-item {
        padding: 4px 10px;
        font-size: 11px;
    }

    .hk-modal-cost {
        padding: 8px 0;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .hk-section-title {
        font-size: 11px;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }

    .hk-desc-text {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-modal-code-wrap {
        margin-bottom: 12px;
    }

    .hk-code-header {
        margin-bottom: 6px;
    }

    .hk-btn-copy {
        padding: 4px 10px;
        font-size: 11px;
    }

    .hk-code-container {
        padding: 12px;
        max-height: 140px;
        min-height: 90px;
    }

    .hk-unlocked-raw {
        font-size: 12px;
        line-height: 1.4;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 8px;
        padding-top: 10px;
    }

    .hk-date-text {
        font-size: 12px;
    }

    .hk-modal-ads {
        margin-bottom: 12px;
        gap: 6px;
    }

    .hk-cta-card {
        padding: 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .hk-cta-header {
        gap: 10px;
    }

    .hk-cta-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .hk-cta-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .hk-cta-desc {
        font-size: 10px;
        line-height: 1.3;
    }

    .hk-cta-arrow {
        font-size: 14px;
    }

    .hk-modal-footer {
        padding: 10px 20px 20px;
    }

    .hk-btn-view-detail {
        padding: 10px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Large Desktop (1440px - 1600px) */
@media (max-width: 1600px) and (min-width: 1441px) {
    .hk-modal-info-side {
        width: 440px;
    }
}

/* Standard Laptop (1280px - 1440px) */
@media (max-width: 1440px) and (min-width: 1281px) {
    .hk-modal-info-side {
        width: 420px;
    }

    .hk-modal-scroll-content {
        padding: 22px 25px 14px;
    }

    .hk-modal-title {
        font-size: 18px;
    }

    .hk-cta-card {
        padding: 16px;
    }

    .hk-cta-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }
}

/* Small Laptop (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .hk-modal-info-side {
        width: 380px;
    }

    .hk-modal-scroll-content {
        padding: 20px 22px 12px;
    }

    .hk-modal-title {
        font-size: 17px;
    }

    .hk-modal-header {
        margin-bottom: 15px;
    }

    .hk-modal-author {
        margin-bottom: 12px;
    }

    .hk-modal-author img {
        width: 42px;
        height: 42px;
    }

    .hk-modal-tags {
        margin-bottom: 15px;
        gap: 7px;
    }

    .hk-tag-item {
        padding: 5px 13px;
        font-size: 12px;
    }

    .hk-modal-cost {
        padding: 12px 0;
        margin-bottom: 15px;
    }

    .hk-desc-text {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .hk-code-container {
        padding: 16px;
        max-height: 190px;
    }

    .hk-unlocked-raw {
        font-size: 13px;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 12px;
        padding-top: 15px;
    }

    .hk-modal-ads {
        margin-bottom: 20px;
        gap: 10px;
    }

    .hk-cta-card {
        padding: 15px;
        border-radius: 16px;
    }

    .hk-cta-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hk-cta-title {
        font-size: 14px;
    }

    .hk-cta-desc {
        font-size: 11px;
    }

    .hk-modal-footer {
        padding: 13px 25px 25px;
    }
}

/* Tablet & Small Laptop (1024px - 1366px) */
@media (max-width: 1366px) {
    .hk-modal-info-side {
        width: 400px;
    }

    .hk-modal-scroll-content {
        padding: 30px 20px 15px;
    }

    .hk-modal-title {
        font-size: 18px;
    }

    .hk-modal-header {
        margin-bottom: 20px;
    }

    .hk-modal-author {
        margin-bottom: 15px;
    }

    .hk-modal-tags {
        margin-bottom: 20px;
    }

    .hk-modal-cost {
        padding: 15px 0;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .hk-desc-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hk-modal-code-wrap {
        margin-bottom: 30px;
    }

    .hk-code-container {
        padding: 20px;
        max-height: 250px;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 15px;
        padding-top: 20px;
    }

    .hk-modal-ads {
        margin-bottom: 30px;
        gap: 12px;
    }

    .hk-cta-card {
        padding: 18px;
    }

    .hk-cta-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .hk-cta-title {
        font-size: 15px;
    }

    .hk-cta-desc {
        font-size: 12px;
    }

    .hk-modal-footer {
        padding: 15px 30px 30px;
    }
}

/* Small Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
    .hk-modal-info-side {
        width: 360px;
    }

    .hk-modal-scroll-content {
        padding: 25px 18px 12px;
    }

    .hk-modal-title {
        font-size: 17px;
    }

    .hk-modal-header {
        margin-bottom: 18px;
    }

    .hk-modal-author img {
        width: 40px;
        height: 40px;
    }

    .hk-author-name {
        font-size: 15px;
    }

    .hk-modal-tags {
        gap: 8px;
        margin-bottom: 18px;
    }

    .hk-tag-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hk-modal-cost {
        padding: 12px 0;
        margin-bottom: 18px;
    }

    .hk-section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .hk-desc-text {
        font-size: 13px;
        margin-bottom: 18px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-code-container {
        padding: 18px;
        max-height: 200px;
    }

    .hk-unlocked-raw {
        font-size: 14px;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 12px;
        padding-top: 18px;
    }

    .hk-modal-ads {
        margin-bottom: 25px;
        gap: 10px;
    }

    .hk-cta-card {
        padding: 16px;
        border-radius: 16px;
    }

    .hk-cta-header {
        gap: 14px;
    }

    .hk-cta-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hk-cta-title {
        font-size: 14px;
    }

    .hk-cta-desc {
        font-size: 11px;
    }

    .hk-modal-footer {
        padding: 12px 25px 25px;
    }

    .hk-btn-view-detail {
        padding: 14px;
        font-size: 14px;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .hk-modal-wrapper {
        flex-direction: column;
    }

    .hk-modal-media-side {
        max-height: 40vh;
        padding: 15px;
        position: relative;
    }

    .hk-modal-image-box img {
        max-height: 35vh;
    }

    .hk-modal-video-box {
        max-height: 35vh;
    }

    .hk-modal-video-box video {
        max-height: 35vh;
    }

    .hk-modal-info-side {
        width: 100%;
        height: 60vh;
        border-left: none;
        border-top: 1px solid #f1f3f5;
    }

    .hk-modal-scroll-content {
        padding: 20px 20px 10px;
    }

    .hk-modal-title {
        font-size: 16px;
    }

    .hk-modal-header {
        margin-bottom: 15px;
    }

    .hk-modal-header i {
        font-size: 20px;
    }

    .hk-modal-author {
        margin-bottom: 12px;
    }

    .hk-modal-tags {
        margin-bottom: 15px;
    }

    .hk-modal-cost {
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .hk-desc-text {
        margin-bottom: 15px;
    }

    .hk-code-container {
        padding: 15px;
        max-height: 180px;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 10px;
        padding-top: 15px;
    }

    .hk-modal-ads {
        margin-bottom: 20px;
    }

    .hk-modal-footer {
        padding: 10px 20px 20px;
    }

    .btn-close-custom {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .hk-modal-media-side {
        max-height: 35vh;
        padding: 10px;
    }

    .hk-modal-info-side {
        height: 65vh;
    }

    .hk-modal-scroll-content {
        padding: 15px 15px 8px;
    }

    .hk-modal-title {
        font-size: 15px;
    }

    .hk-modal-header {
        margin-bottom: 12px;
        gap: 10px;
    }

    .hk-modal-header i {
        font-size: 18px;
    }

    .hk-modal-author {
        margin-bottom: 10px;
        gap: 12px;
    }

    .hk-modal-author img {
        width: 36px;
        height: 36px;
    }

    .hk-author-name {
        font-size: 14px;
    }

    .hk-author-label {
        font-size: 12px;
    }

    .hk-modal-tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .hk-tag-item {
        padding: 4px 10px;
        font-size: 11px;
    }

    .hk-modal-cost {
        padding: 8px 0;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .hk-section-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .hk-desc-text {
        font-size: 12px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hk-code-header {
        margin-bottom: 10px;
    }

    .hk-btn-copy {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hk-code-container {
        padding: 12px;
        max-height: 150px;
    }

    .hk-unlocked-raw {
        font-size: 13px;
    }

    .hk-modal-meta-bottom {
        margin-bottom: 8px;
        padding-top: 12px;
    }

    .hk-date-text {
        font-size: 12px;
    }

    .hk-modal-ads {
        margin-bottom: 15px;
        gap: 8px;
    }

    .hk-cta-card {
        padding: 14px;
        border-radius: 14px;
    }

    .hk-cta-header {
        gap: 12px;
    }

    .hk-cta-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }

    .hk-cta-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .hk-cta-desc {
        font-size: 10px;
    }

    .hk-cta-arrow {
        font-size: 14px;
    }

    .hk-modal-footer {
        padding: 8px 15px 15px;
    }

    .hk-btn-view-detail {
        padding: 12px;
        font-size: 13px;
        gap: 8px;
    }

    .btn-close-custom {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}