/* =========================================
   NKALACHEMISTRY THEME
========================================= */

:root {
    --nkala-navy: #102a43;
    --nkala-navy-light: #243f58;
    --nkala-green: #198754;
    --nkala-green-dark: #146c43;
    --nkala-background: #f5f8fb;
    --nkala-text: #243447;
    --nkala-muted: #64748b;
    --nkala-border: #e2e8f0;
}

/* GLOBAL */

html {
    min-height: 100%;
    font-size: 14px;
    position: relative;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--nkala-background);
    color: var(--nkala-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a {
    color: var(--nkala-green);
}

    a:hover {
        color: var(--nkala-green-dark);
    }

/* NAVBAR */

.nkala-navbar {
    background: linear-gradient( 135deg, var(--nkala-navy), var(--nkala-navy-light) );
    padding: 14px 0;
}

.nkala-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--nkala-green);
    color: #fff;
    font-size: 1.25rem;
}

.brand-highlight {
    color: #56d69a;
}

.nkala-navbar .navbar-nav {
    gap: 5px;
}

.nkala-navbar .nav-link {
    padding: 10px 14px !important;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .nkala-navbar .nav-link:hover,
    .nkala-navbar .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

.nkala-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

    .nkala-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(86, 214, 154, 0.25);
    }

/* AUTHENTICATION NAVIGATION */

.nkala-auth-nav {
    display: flex;
    align-items: center;
}

    .nkala-auth-nav .navbar-nav {
        align-items: center;
    }

    .nkala-auth-nav .nav-link {
        color: #fff !important;
    }

/* MAIN CONTENT */

.nkala-main {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 28px;
    padding-bottom: 40px;
}

/* FOOTER */

.nkala-footer {
    flex-shrink: 0;
    padding: 28px 0;
    background-color: #fff;
    border-top: 1px solid var(--nkala-border);
    color: var(--nkala-muted);
    font-size: 0.9rem;
}

.footer-brand {
    color: var(--nkala-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

    .footer-brand i {
        color: var(--nkala-green);
    }

.footer-tagline {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--nkala-muted);
}

.footer-link {
    color: var(--nkala-green);
    font-weight: 600;
    text-decoration: none;
}

    .footer-link:hover {
        color: var(--nkala-green-dark);
        text-decoration: underline;
    }

/* BUTTONS */

.btn-primary {
    background-color: var(--nkala-green);
    border-color: var(--nkala-green);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--nkala-green-dark);
        border-color: var(--nkala-green-dark);
    }

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .nkala-auth-nav {
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

        .nkala-auth-nav .navbar-nav {
            align-items: flex-start;
        }

    .nkala-main {
        padding-top: 20px;
    }
}

/* =========================================
   NKALASPARK - RESPONSIVE PROFILE CARDS
   ========================================= */
.dating-profile-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.08);
}

.dating-profile-card img.dating-profile-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(180px, 28vw, 280px);
    min-height: 0;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
}

.dating-profile-card > .p-3 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dating-profile-card h3,
.dating-profile-card p {
    overflow-wrap: anywhere;
}

.interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interest-tag {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Upload-page photo preview */
#profilePhotoPreview {
    display: block;
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Phones */
@media (max-width: 575.98px) {
    .dating-profile-card img.dating-profile-image {
        height: 220px;
    }

    .dating-profile-card > .p-3 {
        padding: 1rem !important;
    }

    .dating-profile-card .btn {
        min-height: 42px;
    }

    .discovery-filters .form-control,
    .discovery-filters .form-select,
    .discovery-filters .btn {
        width: 100%;
    }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
    .dating-profile-card img.dating-profile-image {
        height: 230px;
    }
}

/* Nkala Chemistry - registration */
.chemistry-register-page {
    min-height: 80vh;
    padding: 48px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf5f7;
}

.chemistry-register-card {
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eadce3;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(55, 23, 43, 0.10);
}

.chemistry-register-brand {
    padding: 34px 30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(140deg, #51243f, #291522);
}

.chemistry-brand-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #51243f;
    background: #edc3cd;
    font-size: 30px;
}

.chemistry-brand-name {
    margin: 0;
    color: #f5dce4;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.chemistry-brand-byline {
    display: block;
    margin-top: 5px;
    color: #d9b7c6;
    font-size: 10px;
    letter-spacing: 2px;
}

.chemistry-register-brand h1 {
    margin: 25px 0 10px;
    font-family: Georgia, serif;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 500;
}

.chemistry-brand-description {
    max-width: 340px;
    margin: 0 auto;
    color: #f1dfe8;
    line-height: 1.7;
}

.chemistry-register-content {
    padding: 32px;
}

    .chemistry-register-content h2 {
        color: #382031;
        font-size: 25px;
        font-weight: 700;
    }

.chemistry-form-subtitle {
    margin-bottom: 25px;
    color: #786774;
}

.chemistry-register-content .form-control {
    min-height: 58px;
    border-color: #e6d8e0;
    border-radius: 10px;
}

    .chemistry-register-content .form-control:focus {
        border-color: #a65b7d;
        box-shadow: 0 0 0 0.2rem rgba(166, 91, 125, 0.14);
    }

.chemistry-field-help {
    display: block;
    margin: 7px 0 0 3px;
    color: #786774;
    font-size: 12px;
}

.chemistry-terms {
    margin: 20px 0;
    color: #786774;
    font-size: 12px;
    line-height: 1.7;
}

.chemistry-register-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #6c304f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease;
}

    .chemistry-register-button:hover {
        background: #51243f;
    }

    .chemistry-register-button span {
        margin-left: 8px;
        color: #f2c4d0;
    }

.chemistry-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    color: #8b7884;
    font-size: 10px;
    letter-spacing: 1.5px;
}

    .chemistry-divider::before,
    .chemistry-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #eadce3;
    }

.chemistry-external-button {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e6d8e0;
    border-radius: 10px;
    background: #fff;
}

.chemistry-login-prompt {
    margin: 25px 0 0;
    text-align: center;
    color: #786774;
    font-size: 14px;
}

    .chemistry-login-prompt a {
        color: #7d3659;
        font-weight: 700;
        text-decoration: none;
    }

        .chemistry-login-prompt a:hover {
            text-decoration: underline;
        }

.chemistry-register-footer {
    padding: 16px;
    border-top: 1px solid #f0e5eb;
    text-align: center;
    color: #8b7884;
    font-family: Georgia, serif;
    font-style: italic;
}

@media (max-width: 480px) {
    .chemistry-register-page {
        padding: 20px 10px;
    }

    .chemistry-register-brand {
        padding: 28px 20px;
    }

    .chemistry-register-content {
        padding: 24px 20px;
    }
}

/* =========================================
   NKALA CHEMISTRY - LOGIN PAGE
   ========================================= */
.identity-page {
    min-height: 85vh;
    padding: 55px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(190, 145, 158, 0.18), transparent 35%), linear-gradient(135deg, #f8f4f6, #eee5eb);
}

.identity-wrapper {
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
}

.identity-card {
    background: #fff;
    padding: 42px 38px;
    border-radius: 22px;
    border: 1px solid rgba(111, 45, 77, 0.10);
    box-shadow: 0 18px 55px rgba(57, 26, 43, 0.12);
}

.identity-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.identity-logo-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #6f2d4d, #a85d79);
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 7px 20px rgba(111, 45, 77, 0.22);
}

.identity-brand {
    color: #54223b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
    margin-bottom: 5px;
}

.identity-tagline {
    color: #a07888;
    font-size: 13px;
    letter-spacing: 1.4px;
    margin-bottom: 0;
}

.identity-heading {
    color: #3d2634;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.identity-subheading {
    color: #81717a;
    font-size: 14px;
}

.identity-label {
    color: #4c3442;
    font-size: 13px;
    font-weight: 600;
}

.identity-input {
    min-height: 49px;
    border: 1px solid #e5d8df;
    border-radius: 10px;
    padding: 12px 14px;
    background-color: #fdfbfc;
}

    .identity-input:focus {
        border-color: #96506f;
        box-shadow: 0 0 0 3px rgba(150, 80, 111, 0.12);
        background-color: #fff;
    }

.identity-checkbox {
    border-color: #b99aaa;
}

    .identity-checkbox:checked {
        background-color: #6f2d4d;
        border-color: #6f2d4d;
    }

.identity-link {
    color: #793d5a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .identity-link:hover,
    .identity-muted-link:hover {
        color: #ad6a83;
        text-decoration: underline;
    }

.identity-btn {
    min-height: 49px;
    border: none;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #6f2d4d, #8c4263);
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .identity-btn:hover,
    .identity-btn:focus {
        color: #fff;
        background: linear-gradient(135deg, #57213b, #783451);
        box-shadow: 0 7px 18px rgba(111, 45, 77, 0.20);
        transform: translateY(-1px);
    }

.identity-btn-outline {
    min-height: 46px;
    border: 1px solid #89516c;
    border-radius: 10px;
    color: #6f2d4d;
    background: #fff;
    font-weight: 600;
}

    .identity-btn-outline:hover {
        color: #fff;
        background: #6f2d4d;
        border-color: #6f2d4d;
    }

.identity-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0;
    color: #a08b96;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-align: center;
}

    .identity-divider::before,
    .identity-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #eadfe5;
    }

.identity-muted-link {
    color: #8c7481;
    font-size: 12px;
    text-decoration: none;
}

.identity-footer {
    border-top: 1px solid #f0e6eb;
    padding-top: 18px;
    color: #75415b;
    font-size: 12px;
    font-weight: 600;
}

    .identity-footer p {
        margin: 5px 0 0;
        color: #a08b96;
        font-size: 11px;
        font-weight: 400;
    }

.validation-summary:empty {
    display: none;
}

@media (max-width: 576px) {
    .identity-page {
        padding: 25px 10px;
    }

    .identity-card {
        padding: 30px 22px;
        border-radius: 17px;
    }

    .identity-brand {
        font-size: 25px;
    }

    .identity-heading {
        font-size: 22px;
    }
}

/* ==========================================
   NKALA CHEMISTRY - SHARED AUTHENTICATION UI
   ========================================== */
.identity-page {
    min-height: 100vh;
    padding: 22px 15px 40px;
    background: #faf4f7;
}

.identity-wrapper {
    width: 100%;
    max-width: 468px;
    margin: 0 auto;
}

.identity-card {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #eadce4;
    border-radius: 19px;
    box-shadow: 0 12px 40px rgba(65, 29, 49, 0.10);
}

/* Plum hero header */

.chemistry-hero {
    padding: 31px 25px 29px;
    color: #fff;
    background: linear-gradient(145deg, #50213d 0%, #301725 100%);
}

.chemistry-heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin: 0 auto 14px;
    border-radius: 17px;
    color: #54213e;
    background: #f0c6d5;
    font-size: 25px;
    line-height: 1;
}

.chemistry-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.chemistry-brand-subtitle {
    margin-top: 5px;
    color: #edc5d5;
    font-size: 9px;
    letter-spacing: 2px;
}

.chemistry-hero-title {
    margin: 25px 0 10px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 400;
}

.chemistry-hero-description {
    max-width: 330px;
    margin: 0 auto;
    color: #fff3f7;
    font-size: 13px;
    line-height: 1.9;
}

/* Form section */

.chemistry-form-section {
    padding: 29px 28px 31px;
}

.chemistry-form-heading {
    margin: 0 0 7px;
    color: #402035;
    font-size: 22px;
    font-weight: 750;
}

.chemistry-form-subheading {
    margin-bottom: 23px;
    color: #8c6b7d;
    font-size: 13px;
    line-height: 1.6;
}

.chemistry-form-section .form-label {
    color: #4c2c40;
    font-size: 13px;
    font-weight: 600;
}

.chemistry-form-section .form-control {
    min-height: 49px;
    border: 1px solid #e7d4df;
    border-radius: 10px;
    background: #fffdfd;
    font-size: 14px;
}

    .chemistry-form-section .form-control:focus {
        border-color: #98506f;
        box-shadow: 0 0 0 3px rgba(152, 80, 111, 0.12);
    }

.chemistry-form-section .form-check-input:checked {
    border-color: #71304f;
    background-color: #71304f;
}

.chemistry-form-section a {
    color: #793551;
    text-decoration: none;
}

    .chemistry-form-section a:hover {
        color: #a85e7c;
        text-decoration: underline;
    }

/* Buttons */

.chemistry-login-button {
    min-height: 47px;
    border: none;
    border-radius: 9px;
    color: #fff;
    background: #71304f;
    font-weight: 700;
}

    .chemistry-login-button:hover,
    .chemistry-login-button:focus {
        color: #fff;
        background: #57223e;
    }

.chemistry-register-button {
    display: block;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #8c4263;
    border-radius: 9px;
    color: #71304f;
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .chemistry-register-button:hover {
        color: #fff;
        background: #71304f;
        text-decoration: none;
    }

/* Divider and footer */

.identity-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0;
    color: #a08b96;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-align: center;
}

    .identity-divider::before,
    .identity-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #eadfe5;
    }

.identity-muted-link {
    color: #8c7481;
    font-size: 12px;
    text-decoration: none;
}

.identity-footer {
    padding-top: 18px;
    border-top: 1px solid #f0e6eb;
    color: #75415b;
    font-size: 12px;
    font-weight: 600;
}

    .identity-footer p {
        margin: 5px 0 0;
        color: #a08b96;
        font-size: 11px;
        font-weight: 400;
    }

.validation-summary:empty {
    display: none;
}

/* Mobile */

@media (max-width: 576px) {
    .identity-page {
        padding: 12px 10px 25px;
    }

    .chemistry-hero {
        padding: 26px 18px;
    }

    .chemistry-form-section {
        padding: 25px 20px;
    }
}


/* ACCESS DENIED */
.access-denied-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f8e8ef;
    color: #71304f;
    font-size: 29px;
}

.chemistry-form-section .chemistry-form-heading {
    line-height: 1.4;
}

.chemistry-form-section .chemistry-form-subheading {
    line-height: 1.8;
}

/* EMAIL CONFIRMATION */
.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: #71304f;
    background: #f8e8ef;
    font-size: 31px;
}

.confirmation-status {
    margin-top: 20px;
    text-align: left;
}

    .confirmation-status:empty {
        display: none;
    }

    .confirmation-status .alert {
        border-radius: 10px;
        font-size: 14px;
    }

/* PASSWORD RESET ICON */
.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: #71304f;
    background: #f8e8ef;
    font-size: 29px;
}

/* Forgot Password Confirmation */
.identity-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.identity-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #198754;
}

.identity-message {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.7;
}

.identity-help {
    color: #6c757d;
    font-size: 0.9rem;
}

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer {
    font-size: 0.9rem;
    color: #6c757d;
}

    .identity-footer a {
        font-weight: 600;
        text-decoration: none;
    }

        .identity-footer a:hover {
            text-decoration: underline;
        }

/* Account Lockout */
.lockout-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.identity-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.identity-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.identity-message {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.7;
}

.identity-help {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer {
    font-size: 0.9rem;
    color: #6c757d;
}

    .identity-footer a {
        font-weight: 600;
        text-decoration: none;
    }

        .identity-footer a:hover {
            text-decoration: underline;
        }

/* Two-Factor Authentication */
.twofa-info {
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.92rem;
    line-height: 1.6;
}

.identity-input {
    border-radius: 8px;
}

    .identity-input:focus {
        border-color: #1b6ec2;
        box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.15);
    }

.remember-device {
    font-size: 0.92rem;
    color: #495057;
}

    .remember-device label {
        cursor: pointer;
    }

    .remember-device .form-check-input {
        cursor: pointer;
    }

.recovery-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #adb5bd;
    font-size: 0.8rem;
}

    .recovery-divider::before,
    .recovery-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #dee2e6;
    }

.recovery-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: #1b6ec2;
}

    .recovery-link:hover {
        text-decoration: underline;
    }

.identity-help {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.identity-footer a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

    .identity-footer a:hover {
        text-decoration: underline;
    }

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Recovery Code Verification */

.recovery-info {
    padding: 16px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.93rem;
    line-height: 1.6;
}

    .recovery-info > i {
        color: #1b6ec2;
        font-size: 1.1rem;
    }

    .recovery-info strong {
        font-weight: 700;
    }

.recovery-warning {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff8e5;
    border: 1px solid #ffecb5;
    color: #856404;
    font-size: 0.85rem;
    line-height: 1.6;
}

    .recovery-warning i {
        margin-top: 3px;
    }

.identity-input {
    border-radius: 8px;
}

    .identity-input:focus {
        border-color: #1b6ec2;
        box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.15);
    }

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .identity-footer a:hover {
        text-decoration: underline;
    }

/* Logout Page */

.logout-info {
    padding: 18px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.95rem;
    line-height: 1.7;
}

    .logout-info > i {
        font-size: 2rem;
        color: #1b6ec2;
    }

.logout-success-icon {
    font-size: 4rem;
    color: #198754;
}

.logout-cancel {
    display: inline-block;
    color: #1b6ec2;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .logout-cancel:hover {
        text-decoration: underline;
    }

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Registration Confirmation */

.registration-info {
    padding: 16px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.92rem;
    line-height: 1.6;
}

    .registration-info > i {
        color: #1b6ec2;
    }

.registration-success-icon {
    font-size: 4rem;
    color: #198754;
}

.registration-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.identity-message {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.7;
}

.identity-help {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.registration-help {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
}

    .registration-help a {
        color: #1b6ec2;
        font-weight: 600;
        text-decoration: none;
    }

        .registration-help a:hover {
            text-decoration: underline;
        }

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .identity-footer a:hover {
        text-decoration: underline;
    }

/* Resend Email Confirmation */

.resend-info {
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.92rem;
    line-height: 1.7;
}

    .resend-info > i {
        color: #1b6ec2;
    }

.identity-input {
    border-radius: 8px;
}

    .identity-input:focus {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
    }

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer {
    color: #6c757d;
    font-size: 0.9rem;
}

    .identity-footer a {
        font-weight: 600;
        text-decoration: none;
    }

        .identity-footer a:hover {
            text-decoration: underline;
        }

/* Reset Password */

.reset-password-info {
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f6ff;
    border: 1px solid #d6e6ff;
    color: #344767;
    font-size: 0.92rem;
    line-height: 1.7;
}

    .reset-password-info > i {
        color: #198754;
    }

.identity-input {
    border-radius: 8px;
}

    .identity-input:focus {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
    }

.password-guidance {
    padding: 12px;
    border-radius: 8px;
    background-color: #f0f8f3;
    border: 1px solid #d5eadc;
    color: #24543b;
    font-size: 0.87rem;
    line-height: 1.6;
}

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .identity-footer a:hover {
        text-decoration: underline;
    }

/* Reset Password Confirmation */

.reset-success-icon {
    font-size: 4rem;
    color: #198754;
}

.identity-message {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.7;
}

.identity-help {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.identity-button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.identity-footer {
    color: #6c757d;
    font-size: 0.9rem;
}


/* =========================================
   PRIVACY POLICY
========================================= */
.privacy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 15px 40px;
}

.privacy-hero {
    padding: 45px 25px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #102a43, #243f58);
    border-radius: 16px;
    color: #fff;
}

.privacy-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background-color: #198754;
    color: #fff;
    font-size: 2rem;
}

.privacy-eyebrow {
    margin-bottom: 8px;
    color: #56d69a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.privacy-title {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 750;
}

.privacy-intro {
    max-width: 650px;
    margin: 0 auto;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-card {
    padding: 26px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
}

.privacy-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.privacy-section-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #e8f5ee;
    color: #198754;
    font-size: 1.2rem;
}

.privacy-section-heading h2 {
    margin: 0;
    color: #102a43;
    font-size: 1.2rem;
    font-weight: 700;
}

.privacy-card p,
.privacy-card li {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
}

.privacy-list {
    padding-left: 22px;
    margin-bottom: 18px;
}

    .privacy-list li {
        margin-bottom: 8px;
    }

        .privacy-list li::marker {
            color: #198754;
        }

    .privacy-list strong {
        color: #243447;
    }

.privacy-contact {
    margin-top: 25px;
    padding: 35px 25px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.privacy-contact-icon {
    margin-bottom: 15px;
    color: #198754;
    font-size: 2.2rem;
}

.privacy-contact h2 {
    margin-bottom: 12px;
    color: #102a43;
    font-size: 1.5rem;
    font-weight: 700;
}

.privacy-contact p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
}

.privacy-home-button {
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    background-color: #198754;
    border-color: #198754;
}

    .privacy-home-button:hover {
        background-color: #146c43;
        border-color: #146c43;
    }

@media (max-width: 576px) {
    .privacy-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .privacy-hero {
        padding: 35px 18px;
        border-radius: 12px;
    }

    .privacy-card {
        padding: 20px 16px;
    }

    .privacy-section-heading {
        align-items: flex-start;
        gap: 10px;
    }

        .privacy-section-heading h2 {
            padding-top: 8px;
            font-size: 1.05rem;
        }

    .privacy-contact {
        padding: 28px 18px;
    }
}

.message-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .05);
}

.message-history {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1.25rem;
}

.message-row {
    display: flex;
    margin-bottom: 1rem;
}

.message-row-mine {
    justify-content: flex-end;
}

.message-row-theirs {
    justify-content: flex-start;
}

.message-bubble {
    max-width: min(80%, 560px);
    padding: .75rem 1rem;
    border-radius: 16px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.message-row-mine .message-bubble {
    color: #fff;
    background: #198754;
    border-bottom-right-radius: 4px;
}

.message-row-theirs .message-bubble {
    color: #243447;
    background: #f5f8fb;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message-time {
    display: block;
    font-size: .72rem;
    opacity: .75;
}

.message-compose {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Force profile photos to remain within their cards */
img.dating-profile-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    display: block !important;
    flex: 0 0 180px !important;
}

/* Keep profile cards from expanding because of images */
.dating-profile-card {
    min-width: 0;
    overflow: hidden;
}

    .dating-profile-card img {
        max-width: 100% !important;
    }

/* Selected-photo preview on the upload form */
#profilePhotoPreview {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
}

/* ==========================================
   NKALACHEMISTRY HOMEPAGE
   ========================================== */
.chemistry-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: radial-gradient(circle at 90% 10%, rgba(25, 135, 84, .10), transparent 32%), linear-gradient(135deg, #f5f8fb 0%, #ffffff 60%, #eef6f1 100%);
}

.chemistry-eyebrow,
.chemistry-section-eyebrow {
    display: inline-block;
    color: #198754;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.chemistry-hero-title {
    margin: 22px 0;
    color: #102a43;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.08;
}

    .chemistry-hero-title span {
        color: #198754;
    }

.chemistry-hero-description {
    max-width: 560px;
    color: #526477;
    font-size: 1.12rem;
    line-height: 1.85;
}

.btn-chemistry-primary {
    padding: 13px 23px;
    border: 1px solid #198754;
    border-radius: 10px;
    background: #198754;
    color: #fff;
    font-weight: 700;
    transition: .2s ease;
}

    .btn-chemistry-primary:hover,
    .btn-chemistry-primary:focus {
        border-color: #146c43;
        background: #146c43;
        color: #fff;
        transform: translateY(-1px);
    }

.btn-chemistry-outline {
    padding: 13px 23px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #102a43;
    font-weight: 700;
}

    .btn-chemistry-outline:hover,
    .btn-chemistry-outline:focus {
        border-color: #198754;
        color: #146c43;
    }

.chemistry-trust-note {
    color: #64748b;
    font-size: .9rem;
}

.chemistry-hero-visual {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 35px;
    border-radius: 28px;
    background: radial-gradient(circle at 80% 20%, rgba(65, 157, 111, .6), transparent 35%), linear-gradient(145deg, #102a43 0%, #183d51 55%, #146c43 100%);
    box-shadow: 0 25px 65px rgba(16, 42, 67, .17);
}

.chemistry-visual-glow {
    position: absolute;
    top: -70px;
    right: -40px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025);
}

.chemistry-visual-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    color: #fff;
    text-align: center;
}

.chemistry-heart-icon {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 25px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 25px;
    background: rgba(255,255,255,.12);
    color: #a7f3c5;
    font-size: 2.4rem;
}

.chemistry-visual-eyebrow {
    color: #b6e7ca;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.chemistry-visual-content h2 {
    margin: 17px 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.chemistry-visual-content p {
    color: #d9e5eb;
    line-height: 1.7;
}

.chemistry-floating-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 8px 4px 0;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: .82rem;
}

    .chemistry-floating-tag i {
        color: #a7f3c5;
    }

.chemistry-intro-section,
.chemistry-how-section {
    padding: 85px 0;
}

.chemistry-section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
}

    .chemistry-section-heading h2,
    .chemistry-how-title {
        margin: 14px 0;
        color: #102a43;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        letter-spacing: -.035em;
    }

    .chemistry-section-heading p {
        color: #64748b;
        line-height: 1.8;
    }

.chemistry-feature-card {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16, 42, 67, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .chemistry-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(16, 42, 67, .09);
    }

.chemistry-feature-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 16px;
    font-size: 1.65rem;
}

.icon-green {
    background: #e7f5ec;
    color: #198754;
}

.icon-pink {
    background: #fff0f4;
    color: #c24168;
}

.icon-blue {
    background: #eaf2fb;
    color: #245d91;
}

.chemistry-feature-card h3 {
    color: #102a43;
    font-size: 1.25rem;
    font-weight: 750;
}

.chemistry-feature-card p {
    margin: 13px 0 20px;
    color: #64748b;
    line-height: 1.8;
}

.chemistry-feature-link {
    color: #198754;
    font-weight: 750;
    text-decoration: none;
}

    .chemistry-feature-link:hover {
        color: #146c43;
        text-decoration: underline;
    }

.chemistry-how-section {
    background: #f5f8fb;
}

.chemistry-steps {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
}

.chemistry-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

    .chemistry-step + .chemistry-step {
        border-top: 1px solid #edf1f5;
    }

.chemistry-step-number {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 15px;
    background: #e7f5ec;
    color: #146c43;
    font-weight: 800;
}

.chemistry-step h3 {
    color: #102a43;
    font-size: 1.05rem;
    font-weight: 750;
}

.chemistry-step p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.7;
}

.chemistry-safety-section {
    padding: 65px 0;
}

.chemistry-safety-card {
    padding: 35px;
    border: 1px solid #d9e9df;
    border-radius: 22px;
    background: linear-gradient(120deg, #f0f8f3, #fff);
}

.chemistry-safety-icon {
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    border-radius: 17px;
    background: #dcefe3;
    color: #146c43;
    font-size: 1.8rem;
}

.chemistry-safety-card h2 {
    margin: 10px 0;
    color: #102a43;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

.chemistry-safety-card p {
    color: #526477;
    line-height: 1.8;
}

.chemistry-cta-section {
    padding: 80px 20px;
    background: linear-gradient(130deg, #102a43, #164d43);
    color: #fff;
}

.chemistry-cta-heart {
    margin-bottom: 20px;
    color: #a7f3c5;
    font-size: 2.5rem;
}

.chemistry-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.chemistry-cta-section p {
    margin: 15px 0 25px;
    color: #d5e4e4;
    font-size: 1.05rem;
}

.chemistry-cta-section .btn-light {
    padding: 13px 24px;
    border-radius: 10px;
    color: #102a43;
    font-weight: 750;
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
    .chemistry-hero {
        padding: 65px 0;
    }

    .chemistry-hero-visual {
        min-height: 360px;
    }

    .chemistry-intro-section,
    .chemistry-how-section {
        padding: 60px 0;
    }
}

@media (max-width: 575.98px) {
    .chemistry-hero {
        padding: 48px 0;
    }

    .chemistry-hero-title {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .chemistry-hero-description {
        font-size: 1rem;
    }

    .chemistry-hero .btn {
        width: 100%;
    }

    .chemistry-hero-visual {
        min-height: 330px;
        padding: 22px;
        border-radius: 20px;
    }

    .chemistry-floating-tag {
        font-size: .75rem;
    }

    .chemistry-intro-section,
    .chemistry-how-section {
        padding: 48px 0;
    }

    .chemistry-feature-card {
        padding: 24px;
    }

    .chemistry-steps {
        padding: 18px;
    }

    .chemistry-step {
        gap: 13px;
    }

    .chemistry-step-number {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .chemistry-safety-card {
        padding: 22px;
    }

        .chemistry-safety-card .d-flex {
            gap: 14px !important;
        }

    .chemistry-safety-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 1.4rem;
    }

    .chemistry-cta-section {
        padding: 60px 18px;
    }

        .chemistry-cta-section .btn {
            width: 100%;
        }
}

@media (prefers-reduced-motion: reduce) {
    .chemistry-feature-card,
    .btn-chemistry-primary {
        transition: none;
    }
}

/* =========================================
   NKALACHEMISTRY - CREATE PROFILE PAGE
   ========================================= */
.create-profile-page {
    min-height: 100vh;
    background: #f5f8fb;
    color: #243447;
}

.profile-page-heading {
    margin-bottom: 30px;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

    .profile-back-link:hover {
        color: #198754;
    }

.profile-heading-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.profile-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 17px;
    background: #e3f3e9;
    color: #198754;
    font-size: 1.55rem;
}

.profile-eyebrow {
    color: #198754;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.profile-heading-content h1 {
    margin: 5px 0 8px;
    color: #102a43;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.profile-heading-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.profile-editor-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16, 42, 67, .055);
}

.profile-editor-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 30px;
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(135deg, #fff 40%, #f3faf5);
}

.profile-step-label {
    color: #198754;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.profile-editor-top h2 {
    margin: 9px 0 7px;
    color: #102a43;
    font-size: 1.55rem;
    font-weight: 800;
}

.profile-editor-top p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.profile-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid #d9e9df;
    border-radius: 30px;
    background: #f0f8f3;
    color: #146c43;
    font-size: .78rem;
    font-weight: 700;
}

.profile-editor-card form {
    padding: 30px;
}

.profile-validation-summary:empty {
    display: none;
}

.profile-form-section {
    min-width: 0;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.profile-section-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 13px;
    background: #edf7f0;
    color: #198754;
    font-size: 1.2rem;
}

.profile-section-heading h3 {
    margin: 0 0 4px;
    color: #102a43;
    font-size: 1.05rem;
    font-weight: 800;
}

.profile-section-heading p {
    margin: 0;
    color: #748397;
    font-size: .87rem;
    line-height: 1.55;
}

.profile-section-divider {
    height: 1px;
    margin: 29px 0;
    background: #edf1f5;
}

.create-profile-page .form-label {
    margin-bottom: 8px;
    color: #33475b;
    font-size: .88rem;
    font-weight: 700;
}

.create-profile-page .profile-input,
.create-profile-page .profile-file-input {
    min-height: 48px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background-color: #fff;
    color: #243447;
    box-shadow: none;
    font-size: .93rem;
}

.create-profile-page .profile-input {
    padding: 12px 14px;
}

    .create-profile-page .profile-input:focus,
    .create-profile-page .profile-file-input:focus {
        border-color: #198754;
        box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);
    }

    .create-profile-page .profile-input::placeholder {
        color: #9aa8b6;
    }

.create-profile-page select.profile-input {
    cursor: pointer;
}

.profile-field-hint,
.profile-character-count {
    display: block;
    margin-top: 7px;
    color: #8794a4;
    font-size: .77rem;
}

.profile-optional {
    color: #8794a4;
    font-size: .78rem;
    font-weight: 400;
}

/* Photo upload */

.profile-photo-uploader {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px;
    border: 1px dashed #cbd9d0;
    border-radius: 15px;
    background: #f9fcfa;
}

.profile-photo-preview-wrap {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 18px;
    background: #e7f2eb;
    box-shadow: 0 3px 12px rgba(16, 42, 67, .1);
}

.profile-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

    .profile-photo-preview[hidden],
    .profile-photo-placeholder[hidden],
    #removeProfilePhoto[hidden] {
        display: none !important;
    }

.profile-photo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #198754;
    font-size: 3rem;
}

.profile-photo-upload-content {
    flex: 1;
    min-width: 0;
}

.create-profile-page .profile-file-input {
    padding: 7px;
    font-size: .82rem;
}

    .create-profile-page .profile-file-input::file-selector-button {
        margin-right: 10px;
        padding: 8px 12px;
        border: 0;
        border-radius: 7px;
        background: #e7f5ec;
        color: #146c43;
        font-weight: 700;
    }

.profile-upload-hint {
    margin-top: 10px;
    color: #788799;
    font-size: .78rem;
}

.profile-remove-photo {
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: none;
    color: #b42318;
    font-size: .8rem;
    font-weight: 600;
}

    .profile-remove-photo:hover {
        text-decoration: underline;
    }

/* Privacy note */

.profile-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #f4f8fb;
    color: #64748b;
    font-size: .81rem;
    line-height: 1.65;
}

    .profile-privacy-note i {
        margin-top: 2px;
        color: #198754;
        font-size: 1rem;
    }

/* Bio */

.profile-bio-input {
    min-height: 135px !important;
    resize: vertical;
    line-height: 1.7;
}

/* Interest chips */

.profile-interest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-interest-option {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    cursor: pointer;
}

    .profile-interest-option input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

.profile-interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #dce4ec;
    border-radius: 30px;
    background: #fff;
    color: #526477;
    font-size: .85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

    .profile-interest-chip i {
        color: #a6b2bf;
        font-size: .9rem;
    }

.profile-interest-option input:checked + .profile-interest-chip {
    border-color: #198754;
    background: #eaf6ee;
    color: #146c43;
}

    .profile-interest-option input:checked + .profile-interest-chip i {
        color: #198754;
    }

.profile-interest-option input:focus-visible + .profile-interest-chip {
    outline: 3px solid rgba(25, 135, 84, .25);
    outline-offset: 3px;
}

.profile-no-interests {
    padding: 14px;
    border-radius: 10px;
    background: #f5f8fb;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.6;
}

/* Submit area */

.profile-submit-area {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #edf1f5;
}

.profile-submit-note {
    margin-bottom: 16px;
    color: #64748b;
    font-size: .84rem;
}

    .profile-submit-note i {
        margin-right: 6px;
        color: #198754;
    }

.profile-submit-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid #198754;
    border-radius: 11px;
    background: #198754;
    color: #fff;
    font-weight: 750;
    transition: background .2s ease, transform .2s ease;
}

    .profile-submit-button:hover,
    .profile-submit-button:focus {
        border-color: #146c43;
        background: #146c43;
        color: #fff;
    }

    .profile-submit-button:active {
        transform: translateY(1px);
    }

.profile-terms-note {
    margin: 13px 0 0;
    color: #8794a4;
    font-size: .78rem;
    line-height: 1.6;
    text-align: center;
}

/* Guidance sidebar */

.profile-guidance {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .05);
}

.profile-guidance-hero {
    padding: 28px;
    background: linear-gradient(145deg, #102a43, #164d43);
    color: #fff;
}

.profile-guidance-heart {
    display: grid;
    width: 53px;
    height: 53px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    background: rgba(255,255,255,.1);
    color: #a7f3c5;
    font-size: 1.45rem;
}

.profile-guidance-hero > span {
    color: #b6e7ca;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.profile-guidance-hero h2 {
    margin: 12px 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.profile-guidance-hero p {
    margin: 0;
    color: #d6e5e2;
    font-size: .9rem;
    line-height: 1.8;
}

.profile-guidance-body {
    padding: 25px;
}

    .profile-guidance-body > h3 {
        margin-bottom: 22px;
        color: #102a43;
        font-size: 1.05rem;
        font-weight: 800;
    }

.profile-tip {
    display: flex;
    gap: 13px;
    margin-bottom: 22px;
}

.profile-tip-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 12px;
    background: #eaf6ee;
    color: #198754;
    font-size: 1.05rem;
}

.profile-tip h4 {
    margin: 2px 0 5px;
    color: #243447;
    font-size: .88rem;
    font-weight: 750;
}

.profile-tip p {
    margin: 0;
    color: #748397;
    font-size: .81rem;
    line-height: 1.7;
}

.profile-guidance-footer {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 14px;
    border-radius: 11px;
    background: #f4f8fb;
    color: #64748b;
    font-size: .77rem;
    line-height: 1.7;
}

    .profile-guidance-footer i {
        flex-shrink: 0;
        color: #198754;
        font-size: 1rem;
    }

/* Tablet and mobile */

@media (max-width: 991.98px) {
    .profile-guidance {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .create-profile-page > .container {
        padding-top: 24px !important;
        padding-bottom: 30px !important;
    }

    .profile-heading-content {
        gap: 12px;
    }

    .profile-heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
        font-size: 1.2rem;
    }

    .profile-heading-content h1 {
        font-size: 1.9rem;
    }

    .profile-editor-card {
        border-radius: 15px;
    }

    .profile-editor-top {
        display: block;
        padding: 22px 19px;
    }

    .profile-step-badge {
        margin-top: 15px;
    }

    .profile-editor-card form {
        padding: 21px 18px;
    }

    .profile-section-divider {
        margin: 24px 0;
    }

    .profile-photo-uploader {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .profile-photo-preview-wrap {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }

    .profile-photo-upload-content {
        width: 100%;
    }

    .profile-guidance-hero,
    .profile-guidance-body {
        padding: 23px;
    }

    .profile-interest-grid {
        gap: 8px;
    }

    .profile-interest-chip {
        padding: 9px 11px;
        font-size: .81rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-interest-chip,
    .profile-submit-button {
        transition: none;
    }
}


/* ==========================================
   NKALACHEMISTRY - FRIENDLY MESSAGING
   ========================================== */

.chemistry-messages-page {
    min-height: calc(100vh - 140px);
    padding: 36px 0 48px;
    background: radial-gradient(ellipse at top left, rgba(25, 135, 84, 0.06), transparent 38%), #f5f8fb;
}

.chemistry-messages-container {
    max-width: 1000px;
}

.messages-page-heading {
    margin-bottom: 24px;
}

.messages-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #146c43;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .messages-back-link:hover {
        color: #102a43;
    }

.messages-heading-copy {
    text-align: center;
}

.messages-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #198754;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.messages-heading-copy h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.messages-heading-copy p {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 1rem;
}

.messages-alert {
    border: 1px solid #f5d58a;
    border-radius: 14px;
}

/* Main conversation card */

.chemistry-chat-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(16, 42, 67, 0.08);
}

/* Chat header */

.chemistry-chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.chat-person-avatar,
.chat-message-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #198754, #146c43);
    border-radius: 50%;
}

.chat-person-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.18);
}

.chat-person-details {
    min-width: 0;
    flex: 1;
}

    .chat-person-details h2 {
        overflow: hidden;
        margin: 0 0 5px;
        color: #102a43;
        font-size: 1.05rem;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-person-details p {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0;
        color: #64748b;
        font-size: 0.8rem;
    }

.chat-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: #198754;
    border-radius: 50%;
}

.chat-safety-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: #146c43;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    background: #edf8f1;
    border: 1px solid #d6efdf;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .chat-safety-link:hover {
        color: #102a43;
        background: #e0f2e7;
        transform: translateY(-1px);
    }

    .chat-safety-link i {
        font-size: 1rem;
    }

.chat-mobile-back {
    display: none;
    color: #146c43;
    font-size: 1.25rem;
    text-decoration: none;
}

/* Message history */

.chemistry-chat-history {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    min-height: 320px;
    max-height: 520px;
    overflow-y: auto;
    padding: 24px clamp(14px, 4vw, 32px);
    background: radial-gradient(circle at 15% 15%, rgba(25, 135, 84, 0.025), transparent 28%), #fbfcfe;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

    .chemistry-chat-history::-webkit-scrollbar {
        width: 6px;
    }

    .chemistry-chat-history::-webkit-scrollbar-thumb {
        background: #d8e2eb;
        border-radius: 99px;
    }

.chat-date-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

    .chat-date-divider::before,
    .chat-date-divider::after {
        height: 1px;
        flex: 1;
        background: #e8edf2;
        content: "";
    }

.chat-message-row {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    width: 100%;
}

.chat-message-mine {
    justify-content: flex-end;
}

.chat-message-theirs {
    justify-content: flex-start;
}

.chat-message-avatar {
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
    font-size: 0.75rem;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    max-width: min(76%, 540px);
    min-width: 0;
}

.chat-message-mine .chat-message-content {
    align-items: flex-end;
}

.chat-message-theirs .chat-message-content {
    align-items: flex-start;
}

.chat-message-bubble {
    padding: 12px 16px;
    overflow-wrap: anywhere;
    border-radius: 19px;
}

    .chat-message-bubble p {
        margin: 0;
        color: #243447;
        font-size: 0.95rem;
        line-height: 1.55;
        white-space: pre-wrap;
    }

.chat-message-mine .chat-message-bubble {
    color: #fff;
    background: linear-gradient(135deg, #198754, #157347);
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 9px rgba(25, 135, 84, 0.12);
}

    .chat-message-mine .chat-message-bubble p {
        color: #fff;
    }

.chat-message-theirs .chat-message-bubble {
    background: #fff;
    border: 1px solid #e8edf2;
    border-bottom-left-radius: 6px;
    box-shadow: 0 3px 10px rgba(16, 42, 67, 0.035);
}

.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 5px 0;
    color: #94a3b8;
    font-size: 0.68rem;
}

.chat-message-mine .chat-message-meta i {
    color: #198754;
    font-size: 0.9rem;
}

/* Friendly empty conversation */

.chat-empty-state {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    padding: 25px 15px 38px;
    text-align: center;
}

.chat-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    color: #198754;
    font-size: 2rem;
    background: linear-gradient(135deg, #e7f7ed, #f2faf5);
    border: 1px solid #d7efdf;
    border-radius: 26px;
    transform: rotate(-4deg);
}

.chat-empty-state h3 {
    max-width: 440px;
    margin: 0 0 10px;
    color: #102a43;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.chat-empty-state > p {
    max-width: 400px;
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.chat-empty-prompt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    padding: 9px 13px;
    color: #146c43;
    font-size: 0.77rem;
    font-weight: 700;
    background: #edf8f1;
    border-radius: 999px;
}

/* Message composer */

.chemistry-chat-footer {
    padding: 20px 24px 16px;
    background: #fff;
    border-top: 1px solid #edf1f5;
}

.chemistry-message-form {
    width: 100%;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px;
    background: #f5f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 19px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .chat-input-wrapper:focus-within {
        background: #fff;
        border-color: #198754;
        box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.09);
    }

.chat-message-input {
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 10px;
    resize: none;
    color: #243447;
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.45;
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
}

    .chat-message-input::placeholder {
        color: #94a3b8;
    }

    .chat-message-input:focus {
        outline: none;
        box-shadow: none;
    }

.chat-send-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 750;
    background: #198754;
    border: 0;
    border-radius: 13px;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .chat-send-button:hover {
        background: #146c43;
        transform: translateY(-1px);
    }

    .chat-send-button:focus-visible,
    .chat-safety-link:focus-visible,
    .messages-back-link:focus-visible {
        outline: 3px solid rgba(25, 135, 84, 0.35);
        outline-offset: 3px;
    }

    .chat-send-button i {
        font-size: 0.9rem;
    }

.chat-composer-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
    color: #94a3b8;
    font-size: 0.73rem;
}

    .chat-composer-hint > span:first-child {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .chat-composer-hint .bi-heart {
        color: #198754;
    }

.chat-character-count {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.messages-bottom-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #64748b;
    font-size: 0.78rem;
    text-align: center;
}

    .messages-bottom-note i {
        color: #198754;
        font-size: 1rem;
    }

/* Tablet and mobile */

@media (max-width: 767.98px) {
    .chemistry-messages-page {
        min-height: auto;
        padding: 20px 0 28px;
    }

    .chemistry-messages-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .messages-page-heading {
        margin-bottom: 18px;
    }

    .messages-back-link {
        margin-bottom: 16px;
    }

    .messages-heading-copy h1 {
        font-size: 1.8rem;
    }

    .messages-heading-copy p {
        font-size: 0.9rem;
    }

    .chemistry-chat-card {
        min-height: min(68vh, 650px);
        border-radius: 19px;
        box-shadow: 0 10px 30px rgba(16, 42, 67, 0.07);
    }

    .chemistry-chat-header {
        gap: 10px;
        padding: 15px 13px;
    }

    .chat-mobile-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        flex-shrink: 0;
    }

    .chat-person-avatar {
        width: 43px;
        height: 43px;
        font-size: 1.05rem;
    }

    .chat-person-details h2 {
        font-size: 0.95rem;
    }

    .chat-person-details p {
        max-width: 180px;
        font-size: 0.69rem;
    }

    .chat-safety-link {
        gap: 0;
        padding: 9px;
        font-size: 0;
    }

        .chat-safety-link i {
            font-size: 1.05rem;
        }

    .chemistry-chat-history {
        min-height: 300px;
        max-height: 56vh;
        padding: 18px 12px;
        gap: 15px;
    }

    .chat-message-content {
        max-width: 84%;
    }

    .chat-message-bubble {
        padding: 11px 13px;
        border-radius: 17px;
    }

        .chat-message-bubble p {
            font-size: 0.9rem;
        }

    .chat-message-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .chemistry-chat-footer {
        padding: 12px 12px 10px;
    }

    .chat-input-wrapper {
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }

    .chat-message-input {
        min-height: 42px;
        padding: 11px 7px;
        font-size: 16px;
    }

    .chat-send-button {
        gap: 0;
        min-width: 45px;
        min-height: 42px;
        padding: 0 13px;
        border-radius: 12px;
    }

        .chat-send-button span {
            display: none;
        }

        .chat-send-button i {
            font-size: 1rem;
        }

    .chat-composer-hint {
        font-size: 0.68rem;
    }

    .chat-empty-state {
        min-height: 250px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .chat-empty-icon {
        width: 64px;
        height: 64px;
        font-size: 1.7rem;
        border-radius: 22px;
    }

    .chat-empty-state > p {
        font-size: 0.85rem;
    }

    .chat-empty-prompt {
        font-size: 0.69rem;
    }

    .messages-bottom-note {
        align-items: flex-start;
        padding: 0 8px;
        font-size: 0.72rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .chat-person-details p {
        max-width: 145px;
    }

    .chat-composer-hint {
        align-items: flex-start;
    }

        .chat-composer-hint > span:first-child {
            max-width: 220px;
        }
}


/* ==========================================
   NKALACHEMISTRY - SAFETY AND PRIVACY
   ========================================== */

.chemistry-safety-page {
    min-height: calc(100vh - 140px);
    padding: 36px 0 50px;
    background: radial-gradient(ellipse at top left, rgba(25, 135, 84, 0.06), transparent 38%), #f5f8fb;
}

.chemistry-safety-container {
    max-width: 900px;
}

.safety-page-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    text-align: center;
}

.safety-back-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: #146c43;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

    .safety-back-link:hover {
        color: #102a43;
    }

.safety-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 17px;
    color: #198754;
    font-size: 2rem;
    background: linear-gradient(135deg, #e6f6ec, #f3faf5);
    border: 1px solid #d7efdf;
    border-radius: 25px;
    box-shadow: 0 8px 22px rgba(25, 135, 84, 0.08);
}

.safety-eyebrow,
.safety-section-eyebrow {
    color: #198754;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.safety-page-heading h1 {
    margin: 8px 0 10px;
    color: #102a43;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.safety-page-heading > p {
    max-width: 560px;
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
}

.safety-alert {
    margin-bottom: 22px;
    border-radius: 14px;
}

/* Intro card */

.safety-info-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 32px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #198754;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.035);
}

.safety-info-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #146c43;
    font-size: 1.3rem;
    background: #eaf7ef;
    border-radius: 15px;
}

.safety-info-card h2 {
    margin: 2px 0 7px;
    color: #102a43;
    font-size: 1.05rem;
    font-weight: 750;
}

.safety-info-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Blocked users */

.safety-blocked-section {
    margin-bottom: 30px;
}

.safety-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .safety-section-heading h2 {
        margin: 6px 0;
        color: #102a43;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.025em;
    }

    .safety-section-heading p {
        margin: 0;
        color: #64748b;
        font-size: 0.88rem;
    }

.safety-count {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: #146c43;
    font-size: 0.88rem;
    font-weight: 750;
    background: #eaf7ef;
    border: 1px solid #d6efdf;
    border-radius: 999px;
}

    .safety-count i {
        font-size: 1rem;
    }

.safety-count-label {
    font-weight: 600;
}

.safety-blocked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safety-person-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(16, 42, 67, 0.035);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .safety-person-card:hover {
        border-color: #cbded2;
        box-shadow: 0 10px 25px rgba(16, 42, 67, 0.06);
    }

.safety-person-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #243f58, #102a43);
    border-radius: 19px;
}

.safety-person-details {
    flex: 1;
    min-width: 0;
}

    .safety-person-details h3 {
        overflow: hidden;
        margin: 0 0 7px;
        color: #102a43;
        font-size: 1rem;
        font-weight: 750;
        text-overflow: ellipsis;
    }

.safety-person-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 650;
}

    .safety-person-status i {
        color: #198754;
    }

.safety-person-details > p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #94a3b8;
    font-size: 0.76rem;
}

.safety-unblock-form {
    flex-shrink: 0;
}

.safety-unblock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    color: #146c43;
    font-size: 0.84rem;
    font-weight: 750;
    background: #fff;
    border: 1px solid #cfe5d6;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .safety-unblock-button:hover {
        color: #fff;
        background: #198754;
        border-color: #198754;
    }

    .safety-unblock-button:focus-visible,
    .safety-discover-button:focus-visible {
        outline: 3px solid rgba(25, 135, 84, 0.3);
        outline-offset: 3px;
    }

/* Empty state */

.safety-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 42, 67, 0.04);
}

.safety-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 19px;
    color: #198754;
    font-size: 2rem;
    background: #eaf7ef;
    border: 1px solid #d6efdf;
    border-radius: 25px;
}

.safety-empty-card h3 {
    margin: 0 0 9px;
    color: #102a43;
    font-size: 1.25rem;
    font-weight: 800;
}

.safety-empty-card > p {
    max-width: 430px;
    margin: 0 0 21px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.safety-discover-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 19px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    background: #198754;
    border-radius: 13px;
    box-shadow: 0 5px 13px rgba(25, 135, 84, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

    .safety-discover-button:hover {
        color: #fff;
        background: #146c43;
        transform: translateY(-1px);
    }

/* Safety reminders */

.safety-reminders {
    padding: 25px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.035);
}

.safety-reminders-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

    .safety-reminders-title > i {
        color: #198754;
        font-size: 1.2rem;
    }

    .safety-reminders-title h2 {
        margin: 0;
        color: #102a43;
        font-size: 1.05rem;
        font-weight: 800;
    }

.safety-reminder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.safety-reminder-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

    .safety-reminder-item > i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        color: #146c43;
        font-size: 1.1rem;
        background: #eaf7ef;
        border-radius: 14px;
    }

    .safety-reminder-item h3 {
        margin: 0 0 6px;
        color: #243447;
        font-size: 0.87rem;
        font-weight: 750;
    }

    .safety-reminder-item p {
        margin: 0;
        color: #64748b;
        font-size: 0.79rem;
        line-height: 1.7;
    }

.safety-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
}

    .safety-footer-note i {
        color: #198754;
        font-size: 1rem;
    }

/* Responsive layouts */

@media (max-width: 767.98px) {
    .chemistry-safety-page {
        padding: 22px 0 32px;
    }

    .chemistry-safety-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .safety-page-heading {
        margin-bottom: 25px;
    }

    .safety-back-link {
        align-self: flex-start;
        margin-bottom: 22px;
    }

    .safety-heading-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        border-radius: 21px;
    }

    .safety-page-heading h1 {
        font-size: 1.9rem;
    }

    .safety-page-heading > p {
        font-size: 0.88rem;
    }

    .safety-info-card {
        gap: 12px;
        margin-bottom: 26px;
        padding: 17px;
        border-radius: 16px;
    }

    .safety-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .safety-info-card h2 {
        font-size: 0.97rem;
    }

    .safety-info-card p {
        font-size: 0.83rem;
    }

    .safety-section-heading {
        align-items: flex-start;
    }

        .safety-section-heading h2 {
            font-size: 1.22rem;
        }

        .safety-section-heading p {
            max-width: 240px;
            font-size: 0.81rem;
            line-height: 1.5;
        }

    .safety-count {
        gap: 5px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .safety-count-label {
        display: none;
    }

    .safety-person-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px;
        border-radius: 16px;
    }

    .safety-person-avatar {
        width: 47px;
        height: 47px;
        font-size: 1.05rem;
        border-radius: 16px;
    }

    .safety-person-details {
        flex-basis: calc(100% - 65px);
    }

    .safety-unblock-form {
        width: 100%;
    }

    .safety-unblock-button {
        width: 100%;
        min-height: 43px;
    }

    .safety-empty-card {
        padding: 32px 18px;
        border-radius: 18px;
    }

        .safety-empty-card h3 {
            font-size: 1.12rem;
        }

        .safety-empty-card > p {
            font-size: 0.84rem;
        }

    .safety-reminders {
        padding: 19px 17px;
        border-radius: 18px;
    }

    .safety-reminders-title {
        align-items: flex-start;
        margin-bottom: 20px;
    }

        .safety-reminders-title h2 {
            font-size: 0.98rem;
            line-height: 1.5;
        }

    .safety-reminder-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .safety-reminder-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

        .safety-reminder-item > i {
            flex-shrink: 0;
        }

        .safety-reminder-item h3 {
            font-size: 0.85rem;
        }

        .safety-reminder-item p {
            font-size: 0.79rem;
        }

    .safety-footer-note {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .safety-section-heading {
        gap: 8px;
    }

        .safety-section-heading h2 {
            font-size: 1.1rem;
        }

    .safety-count {
        padding: 7px 9px;
    }

    .safety-person-card {
        padding: 12px;
    }
}
