


html, body { height: auto; margin: 0; }
#page, .site { display: block; min-height: auto; }

#m_img_preview {
    width: 150px;           
    height: 150px;          
    object-fit: cover;      
    object-position: center;
    border-radius: 20px;    
    display: block;
    margin: 10px auto;      
    background-color: #f1f5f9; 
}


#content, .site-content, .soma-main-outer {
    flex: none; 
    min-height: auto !important;
}


#page, .site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


.site-footer, footer {
    flex-shrink: 0; 
    width: 100%;
}
.soma-field-label {
    display: block;
    font-size: 11px;
    color: #475569;
    font-weight: 800;
    margin-bottom: 4px;
    margin-left: 5px;
}
.soma-form-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
}
#somaForm input, #somaForm select, #somaForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
}
#somaForm input:focus {
    border-color: #1e3a5a;
    outline: none;
}

.posts-entry, 
.entry-content, 
.site-main, 
.content-area,
#primary {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}



.soma-main-outer {
    background-color: #f8fafc !important; 
    padding: 40px 0 !important;
    display: flow-root !important;
}


.soma-wrapper {
    max-width: 1240px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important; 
    padding: 50px 40px !important;
    border-radius: 20px !important;       
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; 
    box-sizing: border-box !important;
}

.type-page.posts-entry, 
.entry-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.soma-page-header {
    margin-bottom: 30px;
    text-align: center;
}

.soma-filter-container {
    background: #f1f5f9; 
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.soma-filter-container { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 50px; 
}

.soma-filter:first-of-type { 
    order: 2 !important; 
}
.soma-filter { display: flex; gap: 10px; }
.soma-filter-btn { 
    padding: 8px 16px; 
    border-radius: 20px; 
    background: #fff; 
    color: #1e3a5a; 
    border: 1px solid rgba(30, 58, 90, 0.1); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 700; 
    transition: 0.3s; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    display: inline-block; 
}


.soma-filter-btn.active, .soma-filter-btn:hover { 
    background: #1e3a5a; 
    color: #fff; 
    transform: translateY(-1px); 
    text-decoration: none;
}

.btn-add-profile { 
    padding: 5px 12px; border-radius: 20px; background: transparent; border: none;
    color: #888; font-size: 11px; font-weight: 800; cursor: pointer; transition: 0.3s;
}

.soma-filter:last-of-type { 
    order: 3 !important; 
    justify-content: center; 
    width: 100%;
}

.soma-member-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 40px; 
}


.soma-member-card { 
    position: relative; 
    overflow: hidden;
    background: #111827 !important; 
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 30px; 
    padding: 40px 25px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
    
    border: 1px solid rgba(255, 159, 67, 0.2) !important; 
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important; 

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    
    border-top: 1.5px solid rgba(255, 255, 255, 0.1); 
    
    z-index: 1;
}


.soma-member-card:hover { 
    background: #1c2539 !important; 
    z-index: 10;
    transform: translateY(-12px) scale(1.02) !important;
    border: 1px solid rgba(255, 159, 67, 0.5) !important;
    box-shadow: 0 20px 40px rgba(255, 159, 67, 0.25) !important;
}


.soma-member-avatar { 
    width: 120px; height: 120px; 
    border-radius: 50%; 
    object-fit: cover; 
	object-position: center; 
    border: 4px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 20px rgba(255, 159, 67, 0.2);
    margin-bottom: 20px; 
    transition: all 0.5s ease;
}

.soma-member-card:hover .soma-member-avatar {
    transform: scale(1.05); 
    border-color: rgba(255, 159, 67, 0.5);
}


.soma-member-name { 
    font-size: 26px; 
    font-weight: 900; 
    color: #ffffff !important; 
    margin: 8px 0; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}


.soma-member-gen {
    color: #ff9f43 !important; 
    font-size: 11px; 
    font-weight: 900; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-top: 5px;
}

.soma-member-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }

.soma-member-stats-box { 
    flex: 1 1 0px !important;
    min-width: 0 !important; 
    background: rgba(255,255,255,0.05); 
    padding: 12px 0 !important; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.08) !important;
    display: flex; flex-direction: column; align-items: center; 
}

.soma-member-stats-box .value { 
    font-size: 14px !important; 
    color: #f1f5f9 !important; 
    font-weight: 900; 
    white-space: nowrap !important; 
    letter-spacing: -0.8px !important; 
	text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.soma-member-stats-box .label { 
    font-size: 10px; 
    color: #ff9f43 !important; 
    font-weight: 900 !important; 
    margin-bottom: 3px;
	letter-spacing: 0.5px;
}
.soma-member-tag-item { 
    padding: 5px 12px; 
    background: rgba(255, 159, 67, 0.08) !important; 
    color: #ffaf65 !important; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 800; 
    border: 1px solid rgba(255, 159, 67, 0.3) !important; 
	box-shadow: 0 0 10px rgba(255, 159, 67, 0.1); 
}

.soma-member-mileage, .soma-member-card div {
    color: #e2e8f0; 
}

.tag-container { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 15px; }
.card-style-tag { 
    padding: 5px 12px; 
    background: rgba(255, 159, 67, 0.15); 
    color: #ff9f43; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 800; 
    border: 1px solid rgba(255, 159, 67, 0.3); 
}


#somaFullModal { 
    display:none; 
    position:fixed; 
    z-index: 999999 !important; 
    left:0; top:0; width:100%; height:100%; 
    background:rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px); 
    overflow-y:auto; 
}
.m-container { display: flex; width: 90%; max-width: 1000px; margin: 6vh auto; background: #fff; border-radius: 40px; overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.m-left { width: 48%; background: #000; flex-shrink: 0; position: relative; }
.m-left img { width: 100%; height: 100%; object-fit: cover; display: block; }


.m-close-btn { 
    display: none !important; 
}

.m-right { width: 52%; padding: 60px 50px; color: #fff; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a5a 50%, #2d5a88 100%); }
.m-title { font-size: 48px; font-weight: 900; color: #fff !important; margin: 0; }
.m-motto { border-left: 5px solid #ff9f43; padding-left: 20px; margin: 25px 0; color: #cbd5e0; font-size: 18px; font-style: italic; }
.m-pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.m-pb-box { background: rgba(255,255,255,0.05); padding: 15px 5px; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.m-pb-box small { display: block; font-size: 10px; color: #ff9f43; font-weight: 800; margin-bottom: 5px; }
.m-pb-box span { font-size: 17px; font-weight: 900; }
.m-info-list { list-style: none; padding: 20px 0 0 0; border-top: 1px solid rgba(255,255,255,0.1); }
.m-info-list li { margin-bottom: 12px; display: flex; align-items: flex-start; font-size: 14px; }
.m-info-list i { width: 25px; color: #ff9f43; font-size: 18px; }
.m-info-list .label { color: #94a3b8; width: 105px; font-weight: 600; flex-shrink: 0; }
.m-info-list .value { color: #f8fafc; font-weight: 700; flex: 1; }
#somaFormModal { display:none; position:fixed; z-index:100000; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.8); backdrop-filter: blur(8px); overflow-y:auto; padding: 20px 0; }
.form-box { background:#fff; width:95%; max-width:550px; margin:auto; padding:35px; border-radius:30px; }
.soma-form-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.soma-btn-save { background: #1e3a5a; color: #fff; padding: 15px 30px; border-radius: 12px; border: none; font-weight: 800; cursor: pointer; }
.soma-btn-delete { background: rgba(255, 75, 75, 0.1); color: #ff4b4b; padding: 15px 30px; border-radius: 12px; border: 1px solid rgba(255, 75, 75, 0.3); font-weight: 800; cursor: pointer; }
.soma-btn-cancel { background: #f1f5f9; color: #64748b; padding: 15px 30px; border-radius: 12px; border: none; font-weight: 800; cursor: pointer; }

.soma-filter { 
    display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; 
    padding-bottom: 5px; -webkit-overflow-scrolling: touch; 
}
.soma-filter::-webkit-scrollbar { display: none; }

.soma-main-title { font-size: 36px; font-weight: 900; color: #1e3a5a; text-transform: uppercase; }
.soma-title-line { width: 50px; height: 4px; background: #ff9f43; margin: 20px auto 0; border-radius: 10px; }

@media (max-width: 760px) {
    
    .soma-main-outer { overflow-x: hidden !important; }
    .soma-wrapper { padding: 0 10px !important; }

    
    .m-container { 
        flex-direction: column !important; 
        width: 92% !important;
        margin: 4vh auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    .m-left, .m-right { width: 100% !important; }
    .m-left { height: 250px !important; }
    .m-right { padding: 35px 20px !important; }
    .m-title { font-size: 32px !important; text-align: center; }
    .m-motto { font-size: 15px !important; text-align: center; padding: 0 10px; border: none; border-top: 2px solid #ff9f43; padding-top: 15px; }

    
    .m-pb-grid { 
        display: flex !important; 
        gap: 8px !important; 
        margin-bottom: 25px !important; 
    }
    .m-pb-box { 
        flex: 1 1 0px !important; 
        min-width: 0 !important;
        padding: 12px 0 !important; 
    }
    .m-pb-box span { 
        font-size: 15px !important; 
        letter-spacing: -0.8px !important; 
        white-space: nowrap !important;
    }

    
.m-close-btn { 
        display: flex !important; 
        position: fixed !important;
        top: 15px !important; 
        right: 15px !important; 
        width: 40px; height: 40px;
        background: rgba(0,0,0,0.7) !important;
        color: #fff !important;
        border-radius: 50%;
        z-index: 9999999 !important;
        font-size: 24px;
        align-items: center;
        justify-content: center;
    }
}