.sfh-wrapper.ecf98a3c {
    position: relative;
    background-color: #0d0208;
    color: #f5f2eb;
    padding: 40px 20px;
    border-radius: 12px;
    font-family: 'Playfair Display', serif, system-ui;
    overflow: hidden;
    box-sizing: border-box;
}

.sfh-celestial-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="rgba(212,175,55,0.04)" stroke-width="1"><circle cx="50" cy="50" r="45"/><path d="M50 5 L50 95 M5 50 L95 50 M20 20 L80 80 M20 80 L80 20"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Personalization match banner */
.sfh-personalization-banner {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #320010, #1c0009);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: sfhFadeGlow 3s infinite alternate;
}

@keyframes sfhFadeGlow {
    0% { box-shadow: 0 4px 15px rgba(212,175,55,0.15); }
    100% { box-shadow: 0 4px 25px rgba(212,175,55,0.35); }
}

.sfh-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.sfh-star-icon {
    color: #d4af37;
    margin-right: 10px;
}

.sfh-banner-text {
    flex-grow: 1;
    color: #f5f2eb;
    font-weight: 500;
}

.sfh-clear-personalization {
    background: none;
    border: none;
    color: #d4af37;
    cursor: pointer;
    font-size: 16px;
    margin-left: 15px;
    transition: opacity 0.2s;
}

.sfh-clear-personalization:hover {
    opacity: 0.8;
}

/* Search and Filters */
.sfh-controls-bar {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.sfh-search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 320px;
}

.sfh-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

.sfh-search-input {
    width: 100%;
    background-color: #12020a;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 4px;
    padding: 10px 15px 10px 35px;
    color: #f5f2eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.sfh-search-input:focus {
    border-color: #d4af37;
}

.sfh-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfh-filter-btn {
    background: none;
    border: 1px solid rgba(212,175,55,0.25);
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sfh-filter-btn.active, .sfh-filter-btn:hover {
    background-color: #320010;
    color: #f5f2eb;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(183,110,121,0.4);
}

/* Resources Grid & Mode Modes */
.sfh-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 30px;
    transition: opacity 0.3s ease;
}

.sfh-grid.sfh-mode-grid, .sfh-grid.sfh-mode-dynamic {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sfh-grid.sfh-mode-featured {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.sfh-grid.sfh-mode-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.sfh-grid.sfh-mode-carousel .sfh-card {
    flex: 0 0 320px;
}

/* Premium Resource Card styling */
.sfh-card {
    background-color: #320010;
    border: 1px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sfh-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(183,110,121,0.6);
}

.sfh-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sfh-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sfh-card:hover .sfh-cover-image {
    transform: scale(1.08);
}

.sfh-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #320010;
    color: #d4af37;
    border: 1px solid rgba(212,175,55,0.4);
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    font-weight: bold;
}

.sfh-cat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(11,1,6,0.85);
    color: #f5f2eb;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
}

.sfh-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sfh-card-title {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.5px;
}

.sfh-desc {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f5f2eb;
    flex-grow: 1;
}

.sfh-specs {
    display: flex;
    gap: 15px;
    font-size: 12px;
    opacity: 0.85;
    color: #f5f2eb;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(212,175,55,0.25);
}

.sfh-actions {
    margin-top: auto;
}

.sfh-download-btn {
    width: 100%;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sfh-download-btn:hover {
    background-color: #d4af37;
    color: #0d0208;
}

/* Modal and Signup overlay gate */
.sfh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sfh-modal.active {
    opacity: 1;
    pointer-events: all;
}

.sfh-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11,1,6,0.92);
    backdrop-filter: blur(8px);
}

.sfh-modal-content {
    position: relative;
    z-index: 10;
    background-color: #0d0208;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(183,110,121,0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: sfhSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sfhSlideUp {
    from { transform: translateY(40px); }
    to { transform: translateY(0); }
}

.sfh-modal-close {
    position: absolute; 
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 20px;
    cursor: pointer;
}

.sfh-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.sfh-modal-icon {
    color: #d4af37;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.sfh-modal-title {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #f5f2eb;
}

.sfh-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #f5f2eb;
    opacity: 0.8;
}

.sfh-selected-preview {
    background-color: #320010;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.sfh-selected-label {
    opacity: 0.6;
}

.sfh-selected-name {
    color: #d4af37;
    font-weight: 600;
}

/* Manual Direct Action Button for Blocked Popups */
.sfh-manual-download-trigger {
    margin-top: 15px;
    background: #d4af37;
    color: #0d0208;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.sfh-manual-download-trigger:hover {
    background: #f5f2eb;
}

/* Mock Fallback Form */
.sfh-fallback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sfh-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sfh-form-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #d4af37;
    letter-spacing: 1px;
}

.sfh-form-input, .sfh-form-select {
    background-color: #12020a;
    border: 1px solid rgba(212,175,55,0.3);
    color: #f5f2eb;
    padding: 12px;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.sfh-form-input:focus, .sfh-form-select:focus {
    border-color: #d4af37;
}

.sfh-form-checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sfh-form-checkbox-label {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.8;
}

.sfh-submit-btn {
    background-color: #d4af37;
    color: #0d0208;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.sfh-submit-btn:hover {
    opacity: 0.9;
}

/* Fluent Form specific styling integration */
.sfh-modal .fluentform {
    background: transparent !important;
    color: #f5f2eb !important;
}
.sfh-modal .fluentform .fff-default { 
    color: #f5f2eb !important;
}
.sfh-modal .fluentform .ff-el-form-control {
    background-color: #12020a !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #f5f2eb !important;
}
.sfh-modal .fluentform .ff-el-form-control:focus {
    border-color: #d4af37 !important;
}
.sfh-modal .fluentform .ff-btn-submit {
    background-color: #d4af37 !important;
    color: #0d0208 !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border: none !important;
    width: 100% !important;
}
.sfh-modal .fluentform .ff-el-form-control-label {
    color: #d4af37 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
