/* Inner pages: header in document flow (not fixed over content) */
body.fc-inner-page header.fc-header-static,
body.fc-inner-page header.fc-header-static.smaller {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
}

body.fc-inner-page header.fc-header-static.scroll-down,
body.fc-inner-page header.fc-header-static.nav-up {
    margin-top: 0 !important;
}

body.fc-inner-page header.fc-header-static {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Theme #content has padding-top: 90px for hero pages — remove on inner pages */
body.fc-inner-page #content {
    padding: 0 0 48px !important;
}

body.fc-inner-page #content > section {
    padding: 28px 0 48px;
}

body.fc-inner-page #content #top {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}

body.fc-inner-page header #logo h2,
body.fc-inner-page header #mainmenu a {
    color: #222 !important;
}

.fc-profile-view-photo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

body.fc-inner-page header .menu_side_area .btn-main {
    color: #fff;
}

header .menu_side_area {
    position: relative;
    z-index: 10050;
    flex-shrink: 0;
    gap: 8px;
}

.fc-profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10051;
}

.fc-profile-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: var(--primary-color, #1ecb15);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.fc-inner-page .fc-profile-avatar-btn {
    border-color: #1ecb15;
    color: #fff;
}

.fc-profile-avatar-btn:hover,
.fc-profile-avatar-btn.is-open {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.fc-profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 10052;
    padding: 0;
    overflow: hidden;
}

.fc-profile-panel-head {
    padding: 14px 16px 10px;
    background: #fafafa;
}

.fc-profile-panel-head h6 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #222;
}

.fc-profile-panel-head .fc-profile-email {
    font-size: 0.75rem;
    word-break: break-all;
}

.fc-profile-panel-foot {
    padding: 10px 16px 14px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-profile-panel-foot a {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    pointer-events: auto;
}

.fc-profile-panel-foot .btn-main {
    color: #fff !important;
}

.fc-profile-view-page .profile-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-top: 0;
}

.fc-profile-view-page .profile-detail-row {
    margin-bottom: 14px;
}

.fc-profile-view-page .profile-detail-row .label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.fc-profile-view-page h2 {
    color: #222;
}

@media (min-width: 576px) {
    .fc-profile-panel-foot {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fc-profile-panel-foot a {
        width: auto;
        flex: 1 1 auto;
    }
}

/* Theme hides all checkboxes globally — restore Bootstrap consent boxes */
#fc-register-form .form-check-input,
#fc-profile-edit-form .form-check-input,
.profile-detail-card .form-check-input {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 1.15em !important;
    height: 1.15em !important;
    min-width: 1.15em;
    margin-top: 0.2em;
    margin-right: 0.5em;
    border: 1px solid #6c757d !important;
    background-color: #fff !important;
    opacity: 1 !important;
    position: relative !important;
    vertical-align: top;
    flex-shrink: 0;
    cursor: pointer;
    outline: none;
    float: none;
}

#fc-register-form .form-check,
#fc-profile-edit-form .form-check,
.profile-detail-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0.5rem;
    min-height: 1.75rem;
}

#fc-register-form .form-check-label,
#fc-profile-edit-form .form-check-label,
.profile-detail-card .form-check-label {
    display: inline-block;
    margin-left: 0;
    cursor: pointer;
    line-height: 1.5;
    color: #333;
}

#fc-profile-edit-form .form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    padding-left: 0;
}

#fc-profile-edit-form .form-check-inline .form-check-input {
    float: none;
    margin-right: 0.35em;
    margin-left: 0;
}

#fc-profile-edit-form .form-check-inline .form-check-label {
    margin-left: 0;
}
