/* =========================================================
   CUSTOM.CSS — MAT (Matrimonial) Application
   ========================================================= */

/* ---------------------------------------------------------
   1. BASE / VARIABLES
   --------------------------------------------------------- */
:root {
    --c-primary:        #4054b2;
    --c-primary-dark:   #33449a;
    --c-primary-light:  #eef1ff;
    --c-primary-border: #dbe2ff;

    --c-success:        #159a7c;
    --c-success-dark:   #0f7d64;
    --c-success-light:  #ecfdf3;
    --c-success-border: #d1fadf;

    --c-warning:        #e58a18;
    --c-warning-dark:   #c77713;
    --c-warning-light:  #fff5e8;
    --c-warning-border: #ffe4bd;

    --c-danger:         #d92d20;
    --c-danger-dark:    #b42318;
    --c-danger-light:   #fef3f2;
    --c-danger-border:  #fee4e2;

    --c-info:           #0891b2;
    --c-info-light:     #ecfeff;
    --c-info-border:    #cffafe;

    --c-grey-50:        #f8fafc;
    --c-grey-100:       #f2f4f7;
    --c-grey-200:       #eaecf0;
    --c-grey-300:       #e4e7ec;
    --c-grey-400:       #cbd5e1;
    --c-grey-500:       #98a2b3;
    --c-grey-600:       #667085;
    --c-grey-700:       #475467;
    --c-grey-800:       #344054;
    --c-grey-900:       #172033;
}

/* ---------------------------------------------------------
   2. BUTTONS
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    appearance: none;
    -webkit-appearance: none;
}
.btn:focus { outline: none; }
.btn i { font-size: 14px; line-height: 1; }

.btn.btn-sm { height: 32px; padding: 0 12px; font-size: 11px; border-radius: 8px; }
.btn.btn-sm i { font-size: 12px; }
.btn.btn-lg { height: 46px; padding: 0 22px; font-size: 13px; border-radius: 10px; }
.btn.btn-lg i { font-size: 15px; }

.btn.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), #5468d4);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 6px 16px rgba(64, 84, 178, .22);
}
.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--c-primary-dark), #4256b5);
    box-shadow: 0 10px 22px rgba(64, 84, 178, .32);
    transform: translateY(-1px);
}
.btn.btn-primary:active { transform: translateY(0); }

.btn.btn-success {
    background: linear-gradient(135deg, var(--c-success), #20c9b0);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 6px 16px rgba(21, 154, 124, .22);
}
.btn.btn-success:hover {
    background: linear-gradient(135deg, var(--c-success-dark), var(--c-success));
    box-shadow: 0 10px 22px rgba(21, 154, 124, .32);
    transform: translateY(-1px);
}
.btn.btn-success:active { transform: translateY(0); }

.btn.btn-danger {
    background: var(--c-danger); border-color: var(--c-danger);
    color: #fff !important; box-shadow: 0 6px 16px rgba(217, 45, 32, .20);
}
.btn.btn-danger:hover {
    background: var(--c-danger-dark); border-color: var(--c-danger-dark);
    box-shadow: 0 10px 22px rgba(217, 45, 32, .30); transform: translateY(-1px);
}

.btn.btn-warning {
    background: linear-gradient(135deg, var(--c-warning), #f5a733);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 6px 16px rgba(229, 138, 24, .22);
}
.btn.btn-warning:hover {
    background: linear-gradient(135deg, var(--c-warning-dark), var(--c-warning));
    box-shadow: 0 10px 22px rgba(229, 138, 24, .32); transform: translateY(-1px);
}

.btn.btn-outline-primary { background: var(--c-primary-light); border-color: var(--c-primary-border); color: var(--c-primary) !important; }
.btn.btn-outline-primary:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff !important; transform: translateY(-1px); }

.btn.btn-outline-success { background: var(--c-success-light); border-color: var(--c-success-border); color: var(--c-success) !important; }
.btn.btn-outline-success:hover { background: var(--c-success); border-color: var(--c-success); color: #fff !important; transform: translateY(-1px); }

.btn.btn-outline-warning { background: var(--c-warning-light); border-color: var(--c-warning-border); color: var(--c-warning-dark) !important; }
.btn.btn-outline-warning:hover { background: var(--c-warning); border-color: var(--c-warning); color: #fff !important; transform: translateY(-1px); }

.btn.btn-outline-danger { background: var(--c-danger-light); border-color: var(--c-danger-border); color: var(--c-danger-dark) !important; }
.btn.btn-outline-danger:hover { background: var(--c-danger); border-color: var(--c-danger); color: #fff !important; transform: translateY(-1px); }
.btn.btn-outline-secondary {
    background: var(--c-grey-100);
    border: 1px solid var(--c-grey-300);
    color: var(--c-grey-700) !important;
}
.btn.btn-outline-secondary:hover {
    background: var(--c-grey-600);
    border-color: var(--c-grey-600);
    color: #fff !important;
    transform: translateY(-1px);
}
.btn.btn-outline-secondary:active {
    transform: translateY(0);
}
.btn.btn-ghost { background: #fff; border-color: var(--c-grey-300); color: var(--c-grey-700) !important; }
.btn.btn-ghost:hover { background: var(--c-grey-50); border-color: var(--c-grey-400); color: var(--c-grey-900) !important; transform: translateY(-1px); }

.btn.btn-rounded { border-radius: 30px; }
.btn.btn-block { width: 100%; }
.btn.btn-icon { width: 38px; padding: 0; }
.btn.btn-icon.btn-sm { width: 32px; }
.btn.btn-icon.btn-lg { width: 46px; }

.btn:disabled, .btn.disabled {
    opacity: .55; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}


/* ---------------------------------------------------------
   3. CARDS
   --------------------------------------------------------- */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-grey-200);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .045);
}

.card-header { padding: 16px 20px; background: transparent; border-bottom: 1px solid var(--c-grey-100); }
.card-header h3, .card-header h5 { margin: 0; font-size: 15px; font-weight: 750; color: var(--c-grey-900); }

.card-body { padding: 20px 22px; }
.card-body.p-0 { padding: 0; }

.card.card-compact { border-radius: 12px; box-shadow: 0 3px 12px rgba(16, 24, 40, .04); }
.card.card-compact .card-body { padding: 14px 18px; }

.card.card-flat { box-shadow: none; border: 1px solid var(--c-grey-200); }

.card.card-elevated {
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06), 0 2px 6px rgba(16, 24, 40, .04);
}

.card-head-gradient {
    display: flex; align-items: center; gap: 13px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border-bottom: 1px solid var(--c-grey-100);
}
.card-head-gradient .head-icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; color: #fff;
    background: linear-gradient(135deg, var(--c-primary), #5468d4);
    box-shadow: 0 6px 16px rgba(64, 84, 178, .20);
}
.card-head-gradient h2 { margin: 0; color: var(--c-grey-900); font-size: 16px; font-weight: 750; letter-spacing: -.2px; }

.mat-identity {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; margin-bottom: 14px;
    background: #fff; border: 1px solid var(--c-grey-200);
    border-radius: 16px; box-shadow: 0 4px 16px rgba(16, 24, 40, .045);
}

.mat-empty {
    padding: 65px 25px; background: #fff;
    border: 1px solid var(--c-grey-200); border-radius: 20px;
    text-align: center; box-shadow: 0 8px 26px rgba(16, 24, 40, .05);
}

.mat-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-bottom: 16px; background: #fff;
    border: 1px solid var(--c-grey-200); border-radius: 16px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .04); overflow: hidden;
}

.profile-main-card {
    background: #fff; border: 1px solid var(--c-grey-200);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .055); margin-bottom: 18px;
}
.partner-card {
    background: #fff; border: 1px solid var(--c-grey-200);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .055); margin-bottom: 18px;
}
.partner-card .profile-section { border-right: 0; border-bottom: 0; padding: 20px; }

.profile-action-bar {
    position: relative; margin-bottom: 18px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--c-grey-200); border-radius: 12px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .055);
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}

.profile-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px 22px; margin-bottom: 18px; border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

@media (max-width: 900px) {
    .mat-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }
    .mat-empty { padding: 45px 20px; }
    .profile-action-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
}
@media (max-width: 480px) {
    .card-body { padding: 14px; }
    .mat-identity { flex-wrap: wrap; padding: 14px; }
}


/* ---------------------------------------------------------
   4. BADGES / TAGS
   --------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px; border: 1px solid transparent;
    font-family: inherit; font-size: 10.5px; font-weight: 750;
    line-height: 1; letter-spacing: .02em;
    text-transform: none; text-decoration: none !important; white-space: nowrap;
}
.badge i { font-size: 11px; line-height: 1; }
.badge.badge-sm { padding: 3px 8px; font-size: 9.5px; gap: 4px; }
.badge.badge-sm i { font-size: 10px; }
.badge.badge-pill { border-radius: 20px; padding: 4px 11px; }

.badge.badge-primary   { background: var(--c-primary-light);   border-color: var(--c-primary-border);   color: var(--c-primary); }
.badge.badge-success   { background: var(--c-success-light);   border-color: var(--c-success-border);   color: var(--c-success); }
.badge.badge-warning   { background: var(--c-warning-light);   border-color: var(--c-warning-border);   color: var(--c-warning-dark); }
.badge.badge-danger    { background: var(--c-danger-light);    border-color: var(--c-danger-border);    color: var(--c-danger-dark); }
.badge.badge-info      { background: var(--c-info-light);      border-color: var(--c-info-border);      color: var(--c-info); }
.badge.badge-secondary { background: var(--c-grey-100);        border-color: var(--c-grey-200);         color: var(--c-grey-700); }
.badge.badge-dark      { background: var(--c-grey-900);        border-color: var(--c-grey-900);         color: #fff; }
.badge.badge-light     { background: #fff;                     border-color: var(--c-grey-200);         color: var(--c-grey-700); }

.value-tag {
    display: inline-flex; align-items: center;
    padding: 4px 9px; border-radius: 20px;
    border: 1px solid var(--c-primary-border);
    background: var(--c-primary-light); color: var(--c-primary);
    font-size: 10px; line-height: 1.2; font-weight: 650; white-space: nowrap;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }

.mat-status {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 20px; border: 1px solid transparent;
    font-size: 9.5px; font-weight: 750; letter-spacing: .04em;
    text-transform: uppercase; white-space: nowrap;
}
.mat-status i { font-size: 10px; }
.mat-status.active    { color: #027a48; background: #ecfdf3; border-color: #d1fadf; }
.mat-status.inactive  { color: #475467; background: #f2f4f7; border-color: #e4e7ec; }
.mat-status.suspended { color: #b42318; background: #fef3f2; border-color: #fee4e2; }

.profile-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-meta span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .11); color: #fff;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.profile-meta i { font-size: 11px; opacity: .8; }

.mi-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 20px; padding: 0 7px;
    border-radius: 20px; font-size: 10.5px; font-weight: 800;
    line-height: 1; white-space: nowrap;
}

.interest-status {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px; border: 1px solid transparent;
    font-size: 10.5px; font-weight: 750; text-transform: capitalize; white-space: nowrap;
}
.interest-status.pending  { background: var(--c-warning-light); border-color: var(--c-warning-border); color: var(--c-warning-dark); }
.interest-status.accepted { background: var(--c-success-light); border-color: var(--c-success-border); color: var(--c-success); }
.interest-status.rejected { background: var(--c-danger-light);  border-color: var(--c-danger-border);  color: var(--c-danger-dark); }

.profile-reported-badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: 8px;
    background: var(--c-grey-100); color: var(--c-grey-600);
    font-size: 12px; font-weight: 650; white-space: nowrap;
}
.profile-reported-badge i { font-size: 13px; }

.profile-match-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 20px;
    background: #22c55e; color: #fff;
    font-size: 11px; font-weight: 750; white-space: nowrap;
}
.profile-match-badge i { font-size: 11px; }

@media (max-width: 650px) {
    .badge, .value-tag { font-size: 9.5px; padding: 3px 8px; }
    .mat-status { font-size: 9px; padding: 3px 8px; }
    .profile-meta span { font-size: 10px; padding: 3px 8px; }
}


/* ---------------------------------------------------------
   5. FORM CONTROLS (shared, non-scoped)
   --------------------------------------------------------- */
.form-label {
    display: block; margin-bottom: 7px; color: var(--c-grey-800);
    font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .1px;
}
.form-label .optional { color: var(--c-grey-500); font-weight: 400; }
.form-label .required { color: var(--c-danger); margin-left: 2px; }

.form-control {
    width: 100%; min-height: 32px; height: 32px; padding: 5px 10px;
    color: #1e293b; background: var(--c-grey-50);
    border: 1px solid var(--c-grey-400); border-radius: 9px;
    font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none; -webkit-appearance: none;
}
textarea.form-control { height: auto; min-height: 75px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
select.form-control {
    padding-right: 28px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;
}
.form-control::placeholder { color: #a8b3c2; font-weight: 400; }
.form-control:focus { background: #fff; border-color: #60a5fa; outline: none; box-shadow: 0 0 0 3px rgba(64, 84, 178, .09); }
.form-control:disabled, .form-control[disabled] { opacity: 1; background: var(--c-grey-100); color: var(--c-grey-500); cursor: not-allowed; }

.form-control.form-control-sm { min-height: 32px; height: 32px; padding: 5px 10px; font-size: 12.5px; }
.form-control.form-control-lg { min-height: 44px; height: 44px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }

.form-control.is-valid, .form-control.is-valid:focus { border-color: var(--c-grey-400); background-color: var(--c-grey-50); background-image: none; }
.form-control.is-valid:focus { border-color: #60a5fa; background-color: #fff; box-shadow: 0 0 0 3px rgba(64, 84, 178, .09); }
.form-control.is-invalid { border-color: #fca5a5; background-color: #fefafa; background-image: none; }
.form-control.is-invalid:focus { border-color: var(--c-danger); background-color: #fff; box-shadow: 0 0 0 3px rgba(239, 68, 68, .08); }

.invalid-feedback { display: block; margin-top: 5px; color: var(--c-danger); font-size: 10.5px; font-weight: 600; }
.invalid-feedback strong { font-weight: 700; }
.help-block { display: none; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-text { display: block; margin-top: 5px; color: var(--c-grey-500); font-size: 11px; line-height: 1.5; }

.input-group {
    position: relative;
    display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important;
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
}
.input-group > input[type="hidden"] { display: none !important; }
.input-group > .form-control, .input-group > select, .input-group > input { min-width: 0 !important; margin: 0 !important; }
.input-group > .form-control {
    flex: 1 1 auto !important; width: auto !important;
    min-width: 0 !important; max-width: none !important;
    height: 32px !important; min-height: 32px !important;
}
.input-group-prepend, .input-group-append {
    display: flex !important; align-items: stretch !important;
    flex: 0 0 auto !important; flex-shrink: 0 !important;
    width: auto !important; min-width: 0 !important; margin: 0 !important; position: relative;
}
.input-group-prepend .dropdown-toggle {
    display: flex !important; align-items: center !important; justify-content: center !important;
    height: 32px !important; min-height: 32px !important; min-width: 100px;
    padding: 4px 10px !important; margin: 0 !important;
    font-size: 12px !important; font-weight: 500 !important; line-height: 22px !important;
    white-space: nowrap !important; flex: 0 0 auto !important;
    border-top-left-radius: 9px !important; border-bottom-left-radius: 9px !important;
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}
.input-group-prepend + .form-control {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    margin-left: -1px !important;
}
.input-group-append .dropdown-toggle {
    display: flex !important; align-items: center !important; justify-content: center !important;
    height: 32px !important; min-height: 32px !important; min-width: 100px;
    padding: 4px 10px !important; margin: 0 !important;
    font-size: 12px !important; font-weight: 500 !important; line-height: 22px !important;
    white-space: nowrap !important; flex: 0 0 auto !important;
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    border-left: 0 !important;
}
.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important;
}
.input-group .dropdown-menu {
    position: absolute !important; z-index: 99999 !important; min-width: 125px;
    margin-top: 4px !important; padding: 5px 0; overflow: visible !important;
    background: #fff; border: 1px solid var(--c-grey-200); border-radius: 9px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
}
.input-group-append .dropdown-menu { right: 0 !important; left: auto !important; }
.input-group .dropdown-item {
    display: block; width: 100%; padding: 7px 12px;
    color: var(--c-grey-800); font-size: 12px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.input-group .dropdown-item:hover { background: var(--c-primary-light); color: var(--c-primary); }
.input-group .dropdown-item:active { background: var(--c-primary-border); color: var(--c-primary); }
.input-group .dropdown-toggle .ik { margin-left: 4px; font-size: 12px; flex: 0 0 auto; }
.input-group-prepend:has(.dropdown-menu),
.input-group-append:has(.dropdown-menu) { z-index: 1000; }

.form-check { position: relative; display: block; padding-left: 0; }
.form-check-inline { display: inline-flex; align-items: center; margin-right: 12px; }
.form-check-input { position: relative; margin: 0; cursor: pointer; }
.form-check-label { display: inline-block; margin: 0; cursor: pointer; color: var(--c-grey-800); font-size: 12.5px; font-weight: 500; }

@media (max-width: 767.98px) {
    .input-group, .input-group-dropdown { flex-wrap: nowrap !important; width: 100% !important; }
    .input-group > .form-control { min-width: 0 !important; flex: 1 1 auto !important; }
    .input-group-prepend .dropdown-toggle, .input-group-append .dropdown-toggle {
        flex: 0 0 auto !important; min-width: 105px !important; width: 105px !important; white-space: nowrap !important;
    }
}





/* ---------------------------------------------------------
   6. DASHBOARD
   --------------------------------------------------------- */
.mat-dashboard { max-width: 1120px; margin: 0 auto; padding: 0px 18px 50px; }
.mat-dashboard * { box-sizing: border-box; }

.mat-language-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; }
.mat-language-switch {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px; background: var(--c-grey-50); border: 1px solid var(--c-grey-200);
    border-radius: 12px; direction: ltr;
}
.mat-language-option {
    height: 32px; min-width: 78px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 8px; text-decoration: none !important;
    color: var(--c-grey-600); font-size: 11px; font-weight: 700;
    transition: all .2s ease;
}
.mat-language-option:hover { color: var(--c-primary); background: #fff; }
.mat-language-option.active { color: #fff; background: var(--c-primary); box-shadow: 0 3px 8px rgba(64, 84, 178, .18); }
.mat-language-option.active:hover { color: #fff; background: var(--c-primary); }

.mat-avatar {
    width: 58px; height: 58px; flex: 0 0 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #4256b5 0%, #6877d5 100%);
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(66, 86, 181, .22);
}
.mat-identity-info { min-width: 0; flex: 1; }
.mat-identity-name { margin: 0 0 6px; color: var(--c-grey-900); font-size: 18px; line-height: 1.3; font-weight: 750; }
.mat-identity-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--c-grey-600); font-size: 11.5px; }
.mat-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.mat-meta-item i { font-size: 11px; color: var(--c-grey-500); }
.mat-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-grey-400); }
.mat-identity-actions { display: flex; gap: 8px; flex-shrink: 0; }

.mat-identity-btn {
    height: 34px; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 0 14px; border-radius: 8px;
    font-size: 11.5px; font-weight: 650; text-decoration: none !important;
    transition: all .2s ease; cursor: pointer; border: 1px solid transparent;
}
.mat-identity-btn.view { color: #475467; background: #f8fafc; border-color: #e4e7ec; }
.mat-identity-btn.view:hover { color: #4054b2; background: #eef1ff; border-color: #dbe2ff; }
.mat-identity-btn.edit { color: #fff; background: #4054b2; border-color: #4054b2; box-shadow: 0 4px 12px rgba(64, 84, 178, .22); }
.mat-identity-btn.edit:hover { background: #33449a; border-color: #33449a; }
.mat-identity-btn.delete { color: #b42318; background: #fef3f2; border-color: #fee4e2; }
.mat-identity-btn.delete:hover { color: #fff; background: #d92d20; border-color: #d92d20; }

.mat-completion { display: flex; align-items: center; gap: 12px; padding: 0 6px; margin-bottom: 22px; }
.mat-completion-label { flex: 0 0 auto; color: var(--c-grey-600); font-size: 11px; font-weight: 600; }
.mat-completion-track { height: 6px; flex: 1; overflow: hidden; background: #eef2f6; border-radius: 20px; }
.mat-completion-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--c-success), #20c9b0); transition: width .6s ease; }
.mat-completion-value { min-width: 36px; color: var(--c-success); font-size: 12px; font-weight: 800; text-align: right; }

.mat-hero-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }

.mat-discovery {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; min-height: 160px; padding: 22px 28px; border-radius: 20px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255,255,255,.14), transparent 30%),
        radial-gradient(circle at 10% 100%, rgba(255,255,255,.06), transparent 32%),
        linear-gradient(125deg, #253b79 0%, #4054b2 50%, #5d50bd 100%);
    box-shadow: 0 20px 48px rgba(48, 65, 145, .24);
    text-decoration: none !important; transition: transform .3s ease, box-shadow .3s ease;
}
.mat-discovery:hover { transform: translateY(-3px); box-shadow: 0 26px 58px rgba(48, 65, 145, .30); }
.mat-discovery::before { content: ""; position: absolute; width: 320px; height: 320px; right: -130px; top: -170px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; }
.mat-discovery::after  { content: ""; position: absolute; width: 200px; height: 200px; right: -30px;  top: -110px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.mat-discovery-content { position: relative; z-index: 2; }
.mat-discovery-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.mat-discovery-label span { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.7); }
.mat-discovery-title { margin: 0; color: #fff; font-size: 20px; line-height: 1.25; font-weight: 750; letter-spacing: -.3px; }
.mat-discovery-description { margin: 10px 0 20px; color: rgba(255,255,255,.78); font-size: 12.5px; line-height: 1.6; }
.mat-discovery-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    align-self: flex-start; min-height: 42px; padding: 0 20px; border-radius: 10px;
    background: #fff; color: #34447f; font-size: 12px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(0,0,0,.16); transition: transform .25s ease, box-shadow .25s ease;
}
.mat-discovery-button i { font-size: 13px; transition: transform .25s ease; }
.mat-discovery:hover .mat-discovery-button { transform: translateY(-2px); }
.mat-discovery:hover .mat-discovery-button i:last-child { transform: translateX(4px); }

.mat-recommended {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 160px; padding: 22px 22px;
    background: #fff;
    border: 1px solid var(--c-grey-200); border-radius: 20px;
    text-decoration: none !important; color: inherit; transition: all .22s ease;
}
.mat-recommended:hover { border-color: var(--c-primary-border); box-shadow: 0 12px 28px rgba(64,84,178,.10); transform: translateY(-3px); }

.mat-recommended-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.mat-recommended-icon {
    width: 52px; height: 52px; flex: 0 0 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; background: linear-gradient(145deg, var(--c-warning-light), #fff);
    border: 1px solid var(--c-warning-border); color: var(--c-warning-dark); font-size: 22px;
}
.mat-recommended-text { flex: 1; min-width: 0; }
.mat-recommended-title { margin: 0 0 6px; color: var(--c-grey-800); font-size: 16px; font-weight: 750; line-height: 1.3; }
.mat-recommended-description { margin: 0; color: var(--c-grey-500); font-size: 12px; line-height: 1.55; }

.mat-recommended-arrow {
    width: 38px; height: 38px; flex: 0 0 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; border: 1px solid var(--c-grey-300);
    color: var(--c-grey-600); font-size: 14px; transition: all .25s ease;
}
.mat-recommended:hover .mat-recommended-arrow { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateX(4px); }
.mat-stat {
    position: relative; display: flex; align-items: center; gap: 12px;
    min-height: 78px; padding: 14px 18px;
    text-decoration: none !important; color: inherit; transition: background .2s ease;
}
.mat-stat:hover { background: #fafbfc; }
.mat-stat:not(:last-child)::after {
    content: ""; position: absolute; top: 18px; right: 0; bottom: 18px; width: 1px; background: var(--c-grey-200);
}
.mat-stat-icon { width: 38px; height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; }
.mat-stat:nth-child(1) .mat-stat-icon { color: var(--c-primary);     background: var(--c-primary-light); }
.mat-stat:nth-child(2) .mat-stat-icon { color: var(--c-warning-dark); background: var(--c-warning-light); }
.mat-stat:nth-child(3) .mat-stat-icon { color: var(--c-success);     background: var(--c-success-light); }
.mat-stat:nth-child(4) .mat-stat-icon { color: #c13c68;              background: #fff0f5; }
.mat-stat-number { display: block; margin-bottom: 3px; color: var(--c-grey-900); font-size: 18px; line-height: 1; font-weight: 800; }
.mat-stat-label { display: block; color: var(--c-grey-500); font-size: 10.5px; font-weight: 600; }

.mat-empty-icon {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; border-radius: 20px;
    background: linear-gradient(145deg, var(--c-primary-light), #fff);
    color: var(--c-primary); font-size: 30px; box-shadow: 0 10px 26px rgba(64,84,178,.14);
}
.mat-empty-title { margin: 0 0 10px; color: var(--c-grey-900); font-size: 22px; font-weight: 750; }
.mat-empty-text { max-width: 480px; margin: 0 auto 26px; color: var(--c-grey-600); font-size: 13.5px; line-height: 1.7; }

.mat-lang-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(15,23,42,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: matFadeIn .3s ease;
}
.mat-lang-modal-card {
    position: relative; width: 100%; max-width: 460px;
    padding: 36px 32px 30px; background: #fff; border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15,23,42,.35); text-align: center;
    animation: matSlideUp .45s cubic-bezier(.16, 1, .3, 1);
}
.mat-lang-modal-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; border-radius: 18px;
    background: linear-gradient(145deg, var(--c-primary-light), #fff);
    color: var(--c-primary); font-size: 26px; box-shadow: 0 10px 26px rgba(64,84,178,.14);
}
.mat-lang-modal-title { margin: 0 0 8px; color: var(--c-grey-900); font-size: 22px; font-weight: 750; letter-spacing: -.3px; }
.mat-lang-modal-text { margin: 0 0 24px; color: var(--c-grey-600); font-size: 13.5px; line-height: 1.65; }
.mat-lang-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mat-lang-option {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 14px; border: 2px solid var(--c-grey-300); border-radius: 14px;
    background: #fff; color: var(--c-grey-800);
    text-decoration: none !important; cursor: pointer; transition: all .22s ease;
}
.mat-lang-option:hover { border-color: var(--c-primary); background: #f8f9ff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(64,84,178,.12); }
.mat-lang-option-flag  { font-size: 24px; line-height: 1; }
.mat-lang-option-label { font-size: 14px; font-weight: 750; }
.mat-lang-option-sub   { font-size: 11px; color: var(--c-grey-500); font-weight: 500; }

@keyframes matFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes matSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }


/* ---------------------------------------------------------
   7. PROFILE VIEW
   --------------------------------------------------------- */
.profile-view {
    --primary: #4054b2; --green: #159a7c; --orange: #e58a18; --purple: #7950d6;
    --blue: #2879c7; --pink: #d33f72;
    --bg: #f4f7fb; --surface: #fff; --text: #1e293b; --muted: #64748b;
    --border: #e2e8f0; --soft-border: #edf1f5;

    padding: 28px; background: var(--bg); min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-page-header { margin-bottom: 18px; }
.profile-heading { display: flex; align-items: center; gap: 14px; }
.profile-heading-icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, #5267d8, #3949ab);
    font-size: 20px; box-shadow: 0 6px 16px rgba(64,84,178,.18);
}
.profile-heading h5 { margin: 0 0 3px; font-size: 22px; font-weight: 750; color: var(--text); }
.profile-heading span { color: var(--muted); font-size: 13px; }
.profile-breadcrumb { margin: 0; justify-content: flex-end; background: transparent; }

.profile-summary-left { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
    width: 58px; height: 58px; flex: 0 0 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: linear-gradient(135deg, #f58634, #e58a18);
    font-size: 25px; font-weight: 800; border: 3px solid rgba(255,255,255,.2);
}
.profile-summary-name { margin-bottom: 6px; font-size: 21px; font-weight: 750; }
.profile-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 20px;
    background: rgba(16,185,129,.18); border: 1px solid rgba(16,185,129,.35);
    font-size: 12px; font-weight: 700;
}

.profile-section { padding: 20px; border-right: 1px solid var(--soft-border); border-bottom: 1px solid var(--soft-border); }
.profile-section:nth-child(3n) { border-right: 0; }
.profile-section.full-width { grid-column: 1 / -1; border-right: 0; }
.profile-section-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.section-icon { width: 31px; height: 31px; flex: 0 0 31px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: #fff; font-size: 14px; }
.section-title { margin: 0; color: #172033; font-size: 14px; font-weight: 750; white-space: nowrap; }

.basic     .section-icon { background: linear-gradient(135deg, #5267d8, #3949ab); }
.education .section-icon { background: linear-gradient(135deg, #159a7c, #0f766e); }
.family    .section-icon { background: linear-gradient(135deg, #2879c7, #1d4ed8); }
.traits    .section-icon { background: linear-gradient(135deg, #e58a18, #d97706); }
.religion  .section-icon { background: linear-gradient(135deg, #7950d6, #6d28d9); }
.residence .section-icon { background: linear-gradient(135deg, #399344, #15803d); }
.contact   .section-icon { background: linear-gradient(135deg, #d33f72, #be185d); }
.partner   .section-icon { background: linear-gradient(135deg, #dd7b13, #ea580c); }

.profile-main-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.info-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-item { min-width: 0; padding: 9px 10px; border-radius: 8px; border: 1px solid #edf1f5; background: #f8fafc; }
.info-label { display: block; margin-bottom: 3px; color: #94a3b8; font-size: 9px; line-height: 1.2; font-weight: 750; text-transform: uppercase; letter-spacing: .45px; }
.info-value, .requirement-value { color: #263449; font-size: 12px; line-height: 1.35; font-weight: 600; word-break: break-word; }
.info-value.empty { color: #cbd5e1; }

.note-box { margin-top: 9px; padding: 9px 11px; border-radius: 8px; background: #fffbeb; border-left: 3px solid #eab308; color: #854d0e; font-size: 11px; line-height: 1.5; }
.address-box { margin-top: 9px; padding: 9px 11px; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 11px; line-height: 1.5; }
.address-box .info-label { margin-bottom: 2px; }

.profile-action-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-action-buttons form { margin: 0; }
.profile-action-buttons .btn, .profile-action-buttons a {
    height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; padding: 0 12px; font-size: 12px; font-weight: 600; transition: all .2s ease;
}
.profile-action-buttons .btn i, .profile-action-buttons a i { font-size: 14px; }

.profile-interest-status { min-width: 285px; display: flex; align-items: center; justify-content: flex-end; }
.profile-status-content { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.profile-status-text { display: flex; flex-direction: column; line-height: 1.2; }
.profile-status-label { font-size: 11px; font-weight: 600; color: #94a3b8; margin-bottom: 4px; }
.profile-status-title { font-size: 13px; font-weight: 600; color: #334155; }
.profile-status-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }

.profile-status-match    { padding: 8px 12px; border-radius: 10px; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0; }
.profile-status-match .profile-status-icon { background: #dcfce7; color: #15803d; }
.profile-status-match .profile-status-label { color: #16a34a; }
.profile-status-pending  { padding: 8px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.profile-status-pending .profile-status-icon { background: #f1f5f9; color: #64748b; }
.profile-status-incoming { padding: 8px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; }
.profile-status-incoming .profile-status-icon { background: #dbeafe; color: #2563eb; }
.profile-status-declined { padding: 8px 12px; border-radius: 10px; background: #fff1f2; border: 1px solid #fecdd3; }
.profile-status-declined .profile-status-icon { background: #ffe4e6; color: #e11d48; }
.profile-status-new      { padding: 8px 12px; border-radius: 10px; background: #eef2ff; border: 1px solid #c7d2fe; }
.profile-status-new .profile-status-icon { background: #e0e7ff; color: #4f46e5; }

.profile-gender-warning {
    width: 100%; margin: 0; padding: 10px 14px; border-radius: 9px;
    background: #fff8e6; border: 1px solid #f8d98b; color: #795600; font-size: 12px; line-height: 1.5;
}
.profile-gender-warning i { color: #e58a18; font-size: 15px; }
.profile-gender-warning a { color: #b45309; font-weight: 700; text-decoration: none; }
.profile-gender-warning a:hover { text-decoration: underline; }

.profile-status-actions { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.profile-status-actions .btn { height: 32px; padding: 0 11px; border-radius: 7px; font-size: 11px; font-weight: 600; }
.profile-withdraw-btn { height: 32px !important; padding: 0 10px !important; border-radius: 7px !important; font-size: 11px !important; font-weight: 600 !important; }

.profile-owner-share { padding: 14px 16px; }
.profile-owner-share-text { display: flex; align-items: center; gap: 9px; color: #64748b; font-size: 12px; font-weight: 500; }
.profile-owner-share-text i { color: #22c55e; font-size: 17px; }

.contact-private-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px 18px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-left: 3px solid #4054b2; border-radius: 10px;
}
.contact-private-info { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.contact-private-icon {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: #eef1ff; border: 1px solid #dbe2ff;
    color: #4054b2; font-size: 18px;
}
.contact-private-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-private-label { color: #172033; font-size: 13px; font-weight: 750; letter-spacing: -.2px; }
.contact-private-message { color: #64748b; font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.contact-private-action { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.contact-private-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 16px; border: 1px solid #cdd5f2; border-radius: 9px;
    background: #fff; color: #4054b2 !important;
    font-size: 12px; font-weight: 700; text-decoration: none !important;
    white-space: nowrap; transition: all .2s ease;
}
.contact-private-btn i { font-size: 14px; }
.contact-private-btn:hover { background: #eef1ff; border-color: #4054b2; transform: translateY(-1px); }
.contact-private-btn.primary {
    background: linear-gradient(135deg, #4054b2, #5468d4);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 6px 16px rgba(64,84,178,.25);
}
.contact-private-btn.primary:hover { background: linear-gradient(135deg, #33449a, #4256b5); box-shadow: 0 10px 22px rgba(64,84,178,.35); }
.contact-private-btn.success {
    background: linear-gradient(135deg, #159a7c, #20c9b0);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 6px 16px rgba(21,154,124,.25);
}
.contact-private-status {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px; border-radius: 8px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.contact-private-status.pending  { background: #f2f4f7; color: #475467; border: 1px solid #e4e7ec; }
.contact-private-status.incoming { background: #eef2ff; color: #4054b2; border: 1px solid #dbe2ff; }
.contact-private-status.rejected { background: #fff1f2; color: #b42318; border: 1px solid #fecdd3; }

.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.partner-grid .wide { grid-column: span 2; }
.partner-grid .full { grid-column: 1 / -1; }


/* ---------------------------------------------------------
   8. INTERESTS PAGE
   --------------------------------------------------------- */


.mi-card-header { padding: 0 18px; background: #fff; border-bottom: 1px solid var(--c-grey-100); }

.mi-dt-wrap { padding: 0 22px 22px; }
.mi-dt-wrap .dt-responsive { padding: 0; }
.mi-dt-wrap .dataTables_wrapper .dataTables_length,
.mi-dt-wrap .dataTables_wrapper .dataTables_filter { padding: 14px 0; }
.mi-dt-wrap .dataTables_wrapper .dataTables_info,
.mi-dt-wrap .dataTables_wrapper .dataTables_paginate { padding: 14px 0; }
.mi-dt-wrap .dataTables_wrapper .dataTables_filter input { border: 1px solid var(--c-grey-300); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.mi-dt-wrap .dataTables_wrapper .dataTables_length select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding: 6px 28px 6px 10px !important; min-width: 68px; height: 32px;
    border: 1px solid var(--c-grey-300); border-radius: 8px; background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
    color: var(--c-grey-800); font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer;
}
.mi-dt-wrap table.dataTable thead th { background: var(--c-grey-50); border-bottom: 1px solid var(--c-grey-100) !important; color: var(--c-grey-700); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.mi-dt-wrap table.dataTable tbody td { font-size: 13px; color: var(--c-grey-800); vertical-align: middle; }
.mi-dt-wrap table.dataTable tbody tr:hover { background: var(--c-grey-50) !important; }
.mi-dt-wrap .btn { font-size: 11.5px; font-weight: 650; border-radius: 7px; padding: 5px 11px; }


/* ---------------------------------------------------------
   9. LANGUAGE / URDU (RTL) — dashboard
   --------------------------------------------------------- */
.mat-dashboard-urdu, .profile-view-urdu, #profile-form-urdu {
    direction: rtl; text-align: right;
    font-family: 'Vazirmatn', 'Vazirmatn RD', 'Noto Nastaliq Urdu', sans-serif;
    line-height: 1.9;
}
.mat-dashboard-urdu .mat-identity-name,
.mat-dashboard-urdu .mat-recommended-title,
.mat-dashboard-urdu .mat-discovery-title,
.mat-dashboard-urdu .mat-discovery-description,
.mat-dashboard-urdu .mat-empty-title,
.mat-dashboard-urdu .mat-empty-text,
.mat-dashboard-urdu .mat-lang-modal-title,
.mat-dashboard-urdu .mat-lang-modal-text,
.mat-dashboard-urdu .mat-lang-option-label,
.mat-dashboard-urdu .mat-lang-option-sub {
    font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif;
    line-height: 1.9;
}
.mat-dashboard-urdu .mat-identity-name { font-size: 19px; line-height: 1.9; }
.mat-dashboard-urdu .mat-discovery-title { font-size: 23px; line-height: 2; }
.mat-dashboard-urdu .mat-stat:not(:last-child)::after { right: auto; left: 0; }
.mat-dashboard-urdu .mat-completion-value { text-align: left; }
.mat-dashboard-urdu .mat-discovery-button { align-self: flex-end; }
.mat-dashboard-urdu .mat-discovery:hover .mat-discovery-button i:last-child { transform: translateX(-4px); }
.mat-dashboard-urdu .mat-recommended:hover .mat-recommended-arrow { transform: translateX(-4px); }


/* ---------------------------------------------------------
   10. RESPONSIVE OVERRIDES
   --------------------------------------------------------- */
@media (max-width: 900px) {
    .mat-hero-row { grid-template-columns: 1fr; }
    .mat-stats { grid-template-columns: repeat(2, 1fr); }
    .mat-stat:nth-child(2)::after { display: none; }
    .mat-stat:nth-child(3), .mat-stat:nth-child(4) { border-top: 1px solid var(--c-grey-200); }
    .profile-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-section:nth-child(3n) { border-right: 1px solid var(--soft-border); }
    .profile-section:nth-child(2n) { border-right: 0; }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .mat-dashboard { padding: 18px 12px 35px; }
    .mat-language-bar { flex-direction: column; gap: 8px; }
    .mat-language-option { min-width: 68px; padding: 0 9px; font-size: 10.5px; }
    .mat-identity { flex-wrap: wrap; padding: 14px; }
    .mat-identity-actions { width: 100%; margin-top: 4px; }
    .mat-identity-actions .mat-identity-btn { flex: 1; }
    .mat-discovery { min-height: 200px; padding: 24px 22px; border-radius: 18px; }
    .mat-discovery-title { font-size: 20px; }
    .mat-discovery-description { font-size: 12px; margin: 10px 0 18px; }
    .mat-recommended { padding: 20px 18px; }
    .mat-recommended-title { font-size: 15px; }
    .mat-stat { min-height: 70px; padding: 12px 14px; }
    .mat-stat-number { font-size: 16px; }
    .mat-stat-label { font-size: 10px; }
    .mat-lang-modal-card { padding: 28px 22px 24px; }
    .mat-lang-modal-title { font-size: 19px; }
    .mat-lang-options { grid-template-columns: 1fr; }

    .profile-view { padding: 15px; }
    .profile-page-header { margin-bottom: 12px; }
    .profile-heading { margin-bottom: 12px; }
    .profile-breadcrumb { justify-content: flex-start; }
    .profile-summary { align-items: flex-start; flex-direction: column; padding: 16px; gap: 12px; }
    .profile-main-grid { grid-template-columns: 1fr; }
    .profile-section, .profile-section:nth-child(2n), .profile-section:nth-child(3n) { border-right: 0; }
    .info-grid, .info-grid.three { grid-template-columns: 1fr 1fr; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .partner-grid .wide { grid-column: span 2; }
    .partner-grid .full { grid-column: 1 / -1; }



    .contact-private-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
    .contact-private-action { width: 100%; justify-content: stretch; }
    .contact-private-action form,
    .contact-private-action .contact-private-btn,
    .contact-private-action .contact-private-status { width: 100%; justify-content: center; }

    .profile-action-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
    .profile-action-buttons { width: 100%; }
    .profile-action-buttons .btn, .profile-action-buttons a { flex: 1; min-width: 0; padding: 0 8px; }
    .profile-interest-status { width: 100%; min-width: 0; justify-content: stretch; }
    .profile-status-content { width: 100%; }
    .profile-status-match, .profile-status-pending, .profile-status-incoming,
    .profile-status-declined, .profile-status-new { width: 100%; }
    .profile-gender-warning { width: 100%; }
}

@media (max-width: 650px) {
    .mat-stat-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
    .mat-identity-name { font-size: 16px; }
    .mat-identity-meta { font-size: 10.5px; gap: 6px; }
    .mat-discovery { padding: 22px 18px; }
    .mat-discovery-title { font-size: 18px; }
}

@media (max-width: 480px) {
    .profile-view { padding: 10px; }
    .profile-heading h5 { font-size: 18px; }
    .profile-avatar { width: 50px; height: 50px; flex-basis: 50px; font-size: 21px; }
    .profile-summary-name { font-size: 18px; }
    .profile-section { padding: 15px; }
    .info-grid, .info-grid.three, .partner-grid { grid-template-columns: 1fr; }
    .partner-grid .wide, .partner-grid .full { grid-column: auto; }
    .profile-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .profile-action-buttons a:last-child { grid-column: 1 / -1; }
    .profile-status-content { align-items: flex-start; }
    .profile-status-actions { flex-wrap: wrap; justify-content: flex-end; }
}


/* =========================================================
   11. PROFILE FORM
   ========================================================= */
#profile-form {
    --primary: #2563EB; --primary-dark: #1D4ED8; --secondary: #06B6D4;
    --purple: #7C3AED;  --success: #10B981;
    --ink: #172033;     --text: #334155;    --muted: #64748B;
    --canvas: #F4F7FB;  --card: #FFFFFF;    --input: #F8FAFC;
    --border: #CBD5E1;  --danger: #EF4444;

    width: 100%; box-sizing: border-box;
    padding: 30px; border-radius: 20px; color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 5% 5%, rgba(37,99,235,.06), transparent 28%),
        radial-gradient(circle at 95% 10%, rgba(6,182,212,.06), transparent 25%),
        var(--canvas);
}
#profile-form *,
#profile-form *::before,
#profile-form *::after { box-sizing: border-box; }
#profile-form h1, #profile-form h2, #profile-form h3 { font-family: 'Inter', sans-serif; font-style: normal; }

/* Banner */
#profile-form .ff-banner {
    position: relative; overflow: hidden;
    padding: 30px 34px; margin-bottom: 24px;
    color: #fff; border-radius: 18px;
    background: linear-gradient(135deg, #172554 0%, #1E40AF 45%, #0891B2 100%);
    box-shadow: 0 18px 45px rgba(30,64,175,.20);
    animation: profileBannerIn .6s ease both;
}
#profile-form .ff-banner::before {
    content: ""; position: absolute; width: 260px; height: 260px;
    right: -80px; top: -130px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
#profile-form .ff-banner::after {
    content: ""; position: absolute; width: 180px; height: 180px;
    right: 140px; bottom: -130px; border-radius: 50%;
    background: rgba(6,182,212,.22); filter: blur(5px);
}
#profile-form .ff-banner h1, #profile-form .ff-banner p { position: relative; z-index: 1; }
#profile-form .ff-banner h1 { margin: 0 0 7px; font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; }
#profile-form .ff-banner p  { margin: 0; max-width: 680px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82); }

/* Cards */
#profile-form .card {
    position: relative; overflow: visible !important;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 16px !important;
    background: var(--card);
    box-shadow: 0 5px 18px rgba(15,23,42,.045), 0 20px 45px rgba(15,23,42,.035);
    z-index: 1;
}
#profile-form .card + .card { margin-top: 20px; }
#profile-form .card:has(.dropdown-menu.show) { z-index: 1000 !important; }
#profile-form .card-body { padding: 24px 22px 18px; overflow: visible !important; }

/* Card header */
#profile-form .ff-card-head {
    display: flex; align-items: center; gap: 13px;
    min-height: 70px; padding: 15px 22px; position: relative;
    background: linear-gradient(180deg, #fff 0%, #FBFCFE 100%);
    border-bottom: 1px solid #EEF2F7;
    border-top-left-radius: 15px; border-top-right-radius: 15px;
}
#profile-form .ff-card-head::after {
    content: ""; position: absolute; left: 0; bottom: -1px;
    width: 70px; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}
#profile-form .ff-icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 7px 18px rgba(37,99,235,.18);
}
#profile-form .ff-icon svg { width: 19px; height: 19px; }
#profile-form .ff-card-head h2 {
    margin: 0; color: #172033; font-size: 16px;
    line-height: 1.3; font-weight: 700; letter-spacing: -.2px;
}
#profile-form .ff-card-head .section-note { display: block; margin-top: 3px; color: #94A3B8; font-size: 11px; font-weight: 500; }

/* Grid */
#profile-form .row { margin-left: -9px; margin-right: -9px; }
#profile-form .row > [class*="col-"] { padding-left: 9px; padding-right: 9px; margin-bottom: 18px; }
.row-tight > [class*="col-"] { margin-bottom: 0 !important; }

/* Labels */
#profile-form label {
    display: block; margin-bottom: 7px; color: #334155;
    font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .1px;
}
#profile-form .form-check-label { display: inline-block; margin-bottom: 0; }

/* Inputs */
#profile-form .form-control,
#profile-form select.form-control,
#profile-form textarea.form-control {
    width: 100%; min-height: 32px; height: 32px; padding: 5px 10px;
    color: #1E293B; background: var(--input);
    border: 1px solid var(--border); border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 500; line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#profile-form textarea.form-control { height: auto; min-height: 75px; resize: vertical; }
#profile-form .form-control::placeholder { color: #A8B3C2; font-weight: 400; }
#profile-form .form-control:focus { background: #fff; border-color: #60A5FA; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }

/* Validation */
#profile-form .form-control.is-valid,
#profile-form .form-control.is-valid:focus { border-color: var(--border); background-color: var(--input); background-image: none; }
#profile-form .form-control.is-valid:focus { border-color: #60A5FA; background-color: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
#profile-form .form-control.is-invalid { border-color: #FCA5A5; background-color: #FEFAFA; background-image: none; }
#profile-form .form-control.is-invalid:focus { border-color: var(--danger); background-color: #fff; box-shadow: 0 0 0 3px rgba(239,68,68,.08); }

/* Select2 (single) */
#profile-form .select2-container { width: 100% !important; font-family: 'Inter', sans-serif; font-size: 12.5px; }
#profile-form .select2-container--default .select2-selection--single {
    height: 32px; padding: 0 10px; background: var(--input);
    border: 1px solid var(--border); border-radius: 9px;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#profile-form .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 1px; color: #1E293B; font-size: 12.5px; font-weight: 500; line-height: 30px; }
#profile-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 30px; right: 6px; }
#profile-form .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #a8b3c2; font-weight: 400; }
#profile-form .select2-container--default.select2-container--open .select2-selection--single { background: #fff; border-color: #60A5FA; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
#profile-form select.select2.is-invalid + .select2-container .select2-selection--single { border-color: #FCA5A5; background: #FEFAFA; }

/* Select2 (multiple) */
#profile-form .select2-container--default .select2-selection--multiple {
    min-height: 32px !important; height: auto !important;
    padding: 3px 6px !important;
    background: var(--input);
    border: 1px solid var(--border); border-radius: 9px !important;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#profile-form .select2-container--default.select2-container--focus .select2-selection--multiple,
#profile-form .select2-container--default.select2-container--open  .select2-selection--multiple { background: #fff; border-color: #60A5FA; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
#profile-form .select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 0 !important; line-height: normal !important; display: block !important; }
#profile-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important; align-items: center !important; gap: 6px;
    margin: 2px 3px 2px 0 !important; padding: 2px 6px !important;
    background: #EFF6FF; border: 1px solid #BFDBFE;
    border-radius: 10px !important; color: #1D4ED8;
    font-size: 10px !important; font-weight: 600;
    line-height: 1 !important; height: 20px !important;
}
#profile-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #1D4ED8; opacity: .6; font-size: 12px; margin-right: 2px; transition: opacity .2s ease; }
#profile-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { opacity: 1; color: #DC2626; }
#profile-form .select2-container--default .select2-selection--multiple .select2-search__field { height: 20px !important; line-height: 20px !important; margin: 0 !important; padding: 0 !important; font-size: 12px; font-weight: 500; color: #1E293B; }
#profile-form select.select2.is-invalid + .select2-container .select2-selection--multiple { border-color: #FCA5A5; background-color: #FEFAFA; box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
#profile-form select.select2.is-valid   + .select2-container .select2-selection--multiple { border-color: var(--border); background-color: var(--input); }

/* Select2 dropdown */
#profile-form .select2-dropdown { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 15px 35px rgba(15,23,42,.12); }
#profile-form .select2-dropdown--below { border-radius: 0 0 10px 10px; }
#profile-form .select2-results__option { padding: 7px 12px; color: #334155; font-size: 12px; font-weight: 500; }
#profile-form .select2-results__option--highlighted { background: #EFF6FF !important; color: #1D4ED8 !important; }
#profile-form .select2-results__option[aria-selected="true"] { background: #DBEAFE; color: #1D4ED8; font-weight: 600; }

/* Input groups */
#profile-form .input-group,
#profile-form .input-group-dropdown,
#profile-form .input-group-sm {
    position: relative;
    display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important;
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
}
#profile-form .input-group > input[type="hidden"] { display: none !important; }
#profile-form .input-group > .form-control,
#profile-form .input-group > select,
#profile-form .input-group > input { min-width: 0 !important; margin: 0 !important; }
#profile-form .input-group > .form-control { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: 32px !important; min-height: 32px !important; }
#profile-form .input-group-prepend,
#profile-form .input-group-append { display: flex !important; align-items: stretch !important; flex: 0 0 auto !important; flex-shrink: 0 !important; width: auto !important; min-width: 0 !important; margin: 0 !important; position: relative; }

#profile-form .input-group-dropdown .dropdown-toggle {
    display: flex !important; align-items: center !important; justify-content: center !important;
    height: 32px !important; min-height: 32px !important; min-width: 100px;
    padding: 4px 10px !important; margin: 0 !important;
    font-size: 12px !important; font-weight: 500 !important; line-height: 22px !important;
    white-space: nowrap !important; flex: 0 0 auto !important;
}
#profile-form .input-group-prepend .dropdown-toggle {
    border-top-left-radius: 9px !important; border-bottom-left-radius: 9px !important;
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}
#profile-form .input-group-prepend + .form-control {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    margin-left: -1px !important;
}
#profile-form .input-group-append .dropdown-toggle {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    border-left: 0 !important;
}
#profile-form .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }

#profile-form .input-group-sm > select[name="height_feet"],
#profile-form .input-group-sm > select[name="height_inch"] { flex: 1 1 50% !important; width: 50% !important; min-width: 0 !important; height: 32px !important; margin: 0 !important; }
#profile-form .input-group-sm > select[name="height_feet"] {
    border-top-left-radius: 9px !important; border-bottom-left-radius: 9px !important;
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
}
#profile-form .input-group-sm > select[name="height_inch"] {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    border-left: 0 !important;
}

#profile-form .input-group-prepend select.form-control {
    width: 125px !important; min-width: 125px !important; flex: 0 0 125px !important;
    padding-right: 28px !important;
    border-top-left-radius: 9px !important; border-bottom-left-radius: 9px !important;
    border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}
#profile-form .input-group-dropdown .dropdown-toggle .ik { margin-left: 4px; font-size: 12px; flex: 0 0 auto; }
#profile-form .input-group-dropdown .dropdown-menu {
    position: absolute !important; z-index: 99999 !important; min-width: 125px;
    margin-top: 4px !important; padding: 5px 0; overflow: visible !important;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 9px;
    box-shadow: 0 10px 25px rgba(15,23,42,.12);
}
#profile-form .input-group-append .dropdown-menu { right: 0 !important; left: auto !important; }
#profile-form .input-group-dropdown .dropdown-item {
    display: block; width: 100%; padding: 7px 12px;
    color: #334155; font-size: 12px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; transition: background .15s ease, color .15s ease;
}
#profile-form .input-group-dropdown .dropdown-item:hover  { background: #EFF6FF; color: #1D4ED8; }
#profile-form .input-group-dropdown .dropdown-item:active { background: #DBEAFE; color: #1D4ED8; }
#profile-form .input-group .btn { flex: 0 0 auto !important; white-space: nowrap !important; margin: 0 !important; }
#profile-form .input-group-prepend:has(.dropdown-menu),
#profile-form .input-group-append:has(.dropdown-menu) { z-index: 1000; }

/* Sibling / photo */
#profile-form .sibling-row { padding: 10px; margin: 0 0 8px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; }
#profile-form .ff-gallery-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 10px; box-shadow: 0 4px 15px rgba(0,0,0,.03); }
#profile-form .file-upload-info.d-none { display: none !important; }
#profile-form .file-upload-default { display: none !important; }

/* Upload dropzone */
.ff-upload-zone { background: #F8FAFC; border: 2px dashed #CBD5E1; border-radius: 14px; padding: 25px 15px; text-align: center; transition: all .3s ease; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ff-upload-zone:hover { border-color: #F58634; background: #fff; }
.ff-dropzone { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ff-dropzone-icon { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: center; color: #F58634; font-size: 22px; margin-bottom: 5px; transition: all .3s ease; }
.ff-upload-zone:hover .ff-dropzone-icon { background: #F58634; color: #fff; border-color: #F58634; transform: scale(1.1); }
.ff-dropzone-text { font-size: 13px; font-weight: 700; color: #334155; }
.ff-dropzone-sub  { font-size: 11px; color: #94A3B8; }

.ff-preview-wrap { position: relative; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px; }
.ff-preview-img  { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; }
.ff-remove-btn-top {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.6); color: #fff;
    border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
    font-size: 20px; line-height: 1; cursor: pointer;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    transition: all .3s ease; z-index: 10;
}
.ff-remove-btn-top:hover { background: #dc2626; border-color: #dc2626; transform: scale(1.1); }
.d-none { display: none !important; }

/* Radio */
#profile-form .form-radio .radio-inline label { display: flex !important; align-items: center !important; }
#profile-form .form-radio .radio-inline .helper { flex-shrink: 0 !important; margin-top: -2px !important; }

/* Submit bar */
#profile-form .ff-submit-bar {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 15px; margin-top: 25px; padding: 18px 20px;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}
#profile-form .ff-submit-bar .ff-hint { margin-right: auto; color: #94A3B8; font-size: 11px; }
#profile-form button[type="submit"] {
    position: relative; overflow: hidden; border: 0;
    padding: 10px 23px; border-radius: 9px; color: #fff;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; line-height: 1.4;
    box-shadow: 0 8px 20px rgba(37,99,235,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}
#profile-form button[type="submit"]::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
#profile-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.28); }
#profile-form button[type="submit"]:hover::before { left: 130%; }
#profile-form button[type="submit"]:active { transform: translateY(0); }

/* Errors */
#profile-form .help-block { display: none; }
#profile-form .invalid-feedback { margin-top: 5px; color: #DC2626; font-size: 10.5px; font-weight: 600; }
#profile-form .alert-danger { margin-bottom: 20px; padding: 12px 15px; color: #991B1B; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; font-size: 12px; }

/* Islamic education joined corners */
#profile-form #islamic_education {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    border-left-width: 1px !important; margin-left: -1px !important;
    flex: 1 1 auto !important; width: auto !important; min-width: 0 !important;
}
#profile-form #islamic_education:disabled,
#profile-form #islamic_education[disabled] { opacity: 1; background: #F8FAFC; color: #94A3B8; }
#profile-form .input-group:has(#islamic_education) .input-group-prepend { flex: 0 0 auto !important; width: 90px !important; min-width: 90px !important; max-width: 90px !important; }
#profile-form .input-group:has(#islamic_education) .input-group-prepend .dropdown-toggle { width: 100% !important; min-width: 90px !important; padding: 4px 8px !important; font-size: 11px !important; }

/* Father / Mother joined */
#profile-form #father_occupation,
#profile-form #mother_occupation {
    border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important;
    border-top-right-radius: 9px !important; border-bottom-right-radius: 9px !important;
    border-left-width: 1px !important; margin-left: -1px !important;
}
#profile-form #father-status-label,
#profile-form #mother-status-label { white-space: nowrap !important; }

/* Final input group fixes */
#profile-form .input-group-dropdown .input-group-prepend .dropdown-toggle { border-radius: 9px 0 0 9px !important; white-space: nowrap !important; flex: 0 0 auto !important; min-width: 125px !important; }
#profile-form .input-group-dropdown .input-group-prepend + .form-control { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; border-radius: 0 9px 9px 0 !important; margin-left: -1px !important; }
#profile-form #residence_size_value { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; border-radius: 9px 0 0 9px !important; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; margin-right: -1px !important; }
#profile-form #residence_size_value + .input-group-append { display: flex !important; flex: 0 0 auto !important; }
#profile-form #residence_size_value + .input-group-append .dropdown-toggle { min-width: 100px !important; border-radius: 0 9px 9px 0 !important; white-space: nowrap !important; }
#profile-form .input-group-sm { display: flex !important; flex-wrap: nowrap !important; width: 100% !important; }
#profile-form .input-group-dropdown > .form-control,
#profile-form .input-group-dropdown > select,
#profile-form .input-group-dropdown > input { min-width: 0 !important; }

/* Keyframes */
@keyframes profileBannerIn  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profileCardIn    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profileDropdownIn{ from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #profile-form .ff-banner,
    #profile-form .card { animation: none !important; transition: none !important; }
    #profile-form button[type="submit"] { transition: none !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile overrides */
@media (max-width: 767.98px) {
    #profile-form .input-group,
    #profile-form .input-group-dropdown,
    #profile-form .input-group-sm { flex-wrap: nowrap !important; width: 100% !important; }
    #profile-form .input-group > .form-control { min-width: 0 !important; flex: 1 1 auto !important; }
    #profile-form .input-group-dropdown .dropdown-toggle { flex: 0 0 auto !important; white-space: nowrap !important; }
    #profile-form .input-group-dropdown .input-group-prepend .dropdown-toggle { min-width: 105px !important; }
    #profile-form #residence_size_value + .input-group-append .dropdown-toggle { min-width: 90px !important; }
}
@media (max-width: 767px) {
    #profile-form { padding: 15px; border-radius: 14px; }
    #profile-form .ff-banner { padding: 23px; }
    #profile-form .ff-banner h1 { font-size: 21px; }
    #profile-form .card-body { padding: 20px 15px 12px; }
    #profile-form .ff-card-head { padding: 14px 16px; }
    #profile-form .row > [class*="col-"] { margin-bottom: 14px; }
    #profile-form .input-group-prepend .dropdown-toggle,
    #profile-form .input-group-dropdown .input-group-prepend select.form-control { min-width: 105px !important; width: 105px !important; flex-basis: 105px !important; }
    #profile-form #residence_size_value + .input-group-append .dropdown-toggle { min-width: 90px; width: 90px; }
    #profile-form .ff-submit-bar { flex-direction: column; align-items: stretch; }
    #profile-form .ff-submit-bar .ff-hint { margin-right: 0; text-align: center; }
    #profile-form button[type="submit"] { width: 100%; }
}

/* =========================================================
   URDU FORM — Input group RTL corner flip
   Uses SHORTHAND border-radius to beat base rules
   ========================================================= */

/* Prepend dropdown — rounded on RIGHT in RTL */
#profile-form.urdu-form .input-group-dropdown .input-group-prepend .dropdown-toggle,
#profile-form.urdu-form .input-group-prepend .dropdown-toggle {
    border-radius: 0 9px 9px 0 !important;
    border-right: 1px solid var(--border) !important;
    border-left: 0 !important;
}

/* Form control AFTER prepend */
#profile-form.urdu-form .input-group-dropdown .input-group-prepend + .form-control,
#profile-form.urdu-form .input-group-prepend + .form-control {
    border-radius: 9px 0 0 9px !important;
    margin-left: 0 !important;
    margin-right: -1px !important;
}

/* Append dropdown — rounded on LEFT in RTL */
#profile-form.urdu-form .input-group-append .dropdown-toggle {
    border-radius: 9px 0 0 9px !important;
    border-left: 1px solid var(--border) !important;
    border-right: 0 !important;
}

/* Height feet — right rounded */
#profile-form.urdu-form .input-group-sm > select[name="height_feet"] {
    border-radius: 0 9px 9px 0 !important;
    border-right: 1px solid var(--border) !important;
    border-left: 0 !important;
}

/* Height inch — left rounded */
#profile-form.urdu-form .input-group-sm > select[name="height_inch"] {
    border-radius: 9px 0 0 9px !important;
    border-left: 1px solid var(--border) !important;
    border-right: 0 !important;
    margin-left: 0 !important;
    margin-right: -1px !important;
}

/* Father / Mother occupation */
#profile-form.urdu-form #father_occupation,
#profile-form.urdu-form #mother_occupation {
    border-radius: 9px 0 0 9px !important;
    margin-left: 0 !important;
    margin-right: -1px !important;
}

/* Islamic education */
#profile-form.urdu-form #islamic_education {
    border-radius: 9px 0 0 9px !important;
    margin-left: 0 !important;
    margin-right: -1px !important;
}

/* Residence size */
#profile-form.urdu-form #residence_size_value {
    border-radius: 0 9px 9px 0 !important;
    margin-left: -1px !important;
    margin-right: 0 !important;
}
#profile-form.urdu-form #residence_size_value + .input-group-append .dropdown-toggle {
    border-radius: 9px 0 0 9px !important;
}


/* =========================================================
   SELECT2 — GENERIC (all pages)
   ========================================================= */
.select2-container { width: 100% !important; font-family: inherit; font-size: 12.5px; }

.select2-container--default .select2-selection--single {
    height: 32px; padding: 0 10px;
    background: var(--c-grey-50);
    border: 1px solid var(--c-grey-400); border-radius: 9px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 1px; color: #1e293b; font-size: 12.5px; font-weight: 500; line-height: 30px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 30px; right: 6px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #a8b3c2; font-weight: 400; }
.select2-container--default.select2-container--open .select2-selection--single { background: #fff; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(64, 84, 178, .09); }
select.select2.is-invalid + .select2-container .select2-selection--single { border-color: #fca5a5; background: #fefafa; }

.select2-container--default .select2-selection--multiple {
    min-height: 32px !important; height: auto !important;
    padding: 3px 6px !important;
    background: var(--c-grey-50);
    border: 1px solid var(--c-grey-400); border-radius: 9px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple { background: #fff; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(64, 84, 178, .09); }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 0 !important; line-height: normal !important; display: block !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important; align-items: center !important; gap: 6px;
    margin: 2px 3px 2px 0 !important; padding: 2px 6px !important;
    background: var(--c-primary-light); border: 1px solid var(--c-primary-border);
    border-radius: 10px !important; color: var(--c-primary);
    font-size: 10px !important; font-weight: 600;
    line-height: 1 !important; height: 20px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--c-primary); opacity: .6; font-size: 12px; margin-right: 2px; transition: opacity .2s ease; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { opacity: 1; color: var(--c-danger); }
.select2-container--default .select2-selection--multiple .select2-search__field { height: 20px !important; line-height: 20px !important; margin: 0 !important; padding: 0 !important; font-size: 12px; font-weight: 500; color: #1e293b; }
select.select2.is-invalid + .select2-container .select2-selection--multiple { border-color: #fca5a5; background-color: #fefafa; box-shadow: 0 0 0 3px rgba(239, 68, 68, .08); }
select.select2.is-valid + .select2-container .select2-selection--multiple { border-color: var(--c-grey-400); background-color: var(--c-grey-50); }

.select2-dropdown { overflow: hidden; background: #fff; border: 1px solid var(--c-grey-400); border-radius: 10px; box-shadow: 0 15px 35px rgba(15, 23, 42, .12); }
.select2-dropdown--below { border-radius: 0 0 10px 10px; }
.select2-results__option { padding: 7px 12px; color: var(--c-grey-800); font-size: 12px; font-weight: 500; }
.select2-results__option--highlighted { background: var(--c-primary-light) !important; color: var(--c-primary) !important; }
.select2-results__option[aria-selected="true"] { background: var(--c-primary-border); color: var(--c-primary); font-weight: 600; }


/* =========================================================
   PRIVACY POLICY — Urdu content
   ========================================================= */
.urdu-content {
    direction: rtl; text-align: right;
    font-family: 'Vazirmatn', 'Vazirmatn RD', 'Segoe UI', sans-serif;
    font-size: 16px; line-height: 2.2;
}
.urdu-content h5 { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 2; }
.urdu-content h6 { font-size: 17px; font-weight: 600; margin-top: 18px; margin-bottom: 10px; line-height: 2; }
.urdu-content p, .urdu-content li { font-size: 16px; line-height: 2.2; }
.urdu-content ul { padding-right: 25px; padding-left: 0; }
.urdu-content hr { margin: 25px 0; }

.urdu-header { direction: rtl !important; text-align: right !important; }
.urdu-header .row {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-end !important;
    margin: 0 !important;
}
.urdu-header .page-header-title {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
}
.urdu-header .page-header-title > i {
    float: none !important; margin: 0 !important; flex-shrink: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
.urdu-header .page-header-title .d-inline { text-align: right !important; direction: rtl !important; }
.urdu-header .page-header-title h5,
.urdu-header .page-header-title span { display: block; font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif; }

.urdu-header .breadcrumb-container { float: none !important; text-align: left !important; width: 100% !important; }
.urdu-header .breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    padding: 0 !important; margin: 0 !important;
    background: transparent !important; list-style: none !important;
}
.urdu-header .breadcrumb-item {
    display: inline-flex !important; align-items: center !important;
    direction: ltr !important; unicode-bidi: isolate !important;
    float: none !important; padding: 0 !important; margin: 0 !important;
}
.urdu-header .breadcrumb-item a,
.urdu-header .breadcrumb-item.active {
    direction: rtl !important; unicode-bidi: isolate !important;
    font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif !important;
    font-size: 13px !important;
}
.urdu-header .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important; padding: 0 10px !important;
    color: #cbd5e1 !important; float: none !important; display: inline-block !important;
}
/* =========================================================
   URDU FORM — Contact block field corners (RTL)
   ========================================================= */

#profile-form.urdu-form #mobile_number,
#profile-form.urdu-form #alternate_mobile_number,
#profile-form.urdu-form #whatsapp_number {
    border-radius: 0 9px 9px 0 !important;
    margin-left: -1px !important;
    margin-right: 0 !important;
}

#profile-form.urdu-form #mobile_number + .input-group-append .dropdown-toggle,
#profile-form.urdu-form #alternate_mobile_number + .input-group-append .dropdown-toggle,
#profile-form.urdu-form #whatsapp_number + .input-group-append .dropdown-toggle {
    border-radius: 9px 0 0 9px !important;
    border-right: 1px solid var(--border) !important;
    border-left: 0 !important;
}
/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.landing-hero {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: #474747;
    border: 1px solid var(--c-primary-border);
    box-shadow: 0 4px 15px rgba(15, 23, 42, .04);
}

.landing-hero h1 {
    margin: 0 0 6px;
    color: var(--c-primary);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -.4px;
}

.landing-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    align-items: start;
}

.landing-card {
    background: #fff;
    border: 1px solid var(--c-grey-200);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    overflow: hidden;
}
.landing-card-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--c-grey-100);
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.landing-card-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 750;
    color: var(--c-grey-900);
}
.landing-card-head p {
    margin: 0;
    font-size: 12px;
    color: var(--c-grey-500);
}
.landing-card-body { padding: 22px; }

.landing-section-title {
    margin: 22px 0 12px;
    padding-bottom: 6px;
    font-size: 12px;
    font-weight: 750;
    color: var(--c-grey-800);
    border-bottom: 1px solid var(--c-grey-100);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.landing-section-title:first-child { margin-top: 0; }

.landing-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.landing-col { min-width: 0; }
.landing-col-wide { grid-column: span 2; }
.landing-col-full { grid-column: 1 / -1; }

.landing-col label {
    display: block;
    margin-bottom: 5px;
    color: var(--c-grey-700);
    font-size: 11px;
    font-weight: 600;
}
.landing-col .form-control {
    height: 34px;
    min-height: 34px;
    font-size: 12.5px;
    border-radius: 8px;
}
.landing-col textarea.form-control {
    height: auto;
    min-height: 60px;
}

.landing-height { display: flex; }
.landing-height select:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}
.landing-height select:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px;
}

.landing-preview-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.landing-preview-card {
    background: #fff;
    border: 1px solid var(--c-grey-200);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    overflow: hidden;
}
.landing-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #16a34a, #25d366);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.landing-preview-head i { font-size: 15px; }

.landing-preview-body {
    padding: 16px;
    min-height: 320px;
    max-height: 520px;
    overflow-y: auto;
    background: #f7f9fb;
}
.landing-preview-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12.5px;
    line-height: 1.7;
    color: #1e293b;
    white-space: normal;
    word-break: break-word;
}
.landing-preview-empty {
    color: #334155;
    font-size: 12.5px;
    text-align: center;
    padding: 40px 10px;
    margin: 0;
}

.landing-preview-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--c-grey-100);
    background: #fff;
}
.landing-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #25d366);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.landing-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, .35);
    color: #fff !important;
}

.landing-cta-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--c-grey-200);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    text-align: center;
}
.landing-cta-card h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 750;
    color: var(--c-grey-900);
}
.landing-cta-card p {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-grey-500);
}
.landing-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #4054b2, #5468d4);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(64, 84, 178, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.landing-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(64, 84, 178, .32);
}
.landing-cta-login {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: var(--c-grey-500);
}
.landing-cta-login a { color: var(--c-primary); font-weight: 600; }

@media (max-width: 992px) {
    .landing-grid { grid-template-columns: 1fr; }
    .landing-preview-col { position: static; }
    .landing-preview-body { min-height: 220px; max-height: 400px; }
    .landing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .landing-row { grid-template-columns: 1fr; }
    .landing-col-wide, .landing-col-full { grid-column: auto; }
    .landing-hero { padding: 20px 18px; }
    .landing-hero h1 { font-size: 20px; }
    .landing-card-body { padding: 16px; }
}

.landing-page .select2-container--default .select2-selection--single {
    height: 34px;
    border-radius: 8px;
}
.landing-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    font-size: 12.5px;
}
.landing-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}
.landing-wrapper {
    min-height: 100vh;
    background: #f4f7fb;
}

.landing-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.landing-action-row .landing-cta-btn,
.landing-action-row .landing-share-btn {
    height: 42px;
    font-size: 12px;
}

.landing-login-btn {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: none !important;
}
.landing-login-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}


/* =========================================================
   REGISTER / LOGIN PAGE — restore theme input borders
   ========================================================= */

.authentication-form .form-control {
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    height: 44px !important;
    border-radius: 8px !important;
}

.authentication-form .form-control:focus {
    border-color: #4054b2 !important;
    box-shadow: 0 0 0 3px rgba(64, 84, 178, .12) !important;
}

/* ============================================
   Shared Auth Card Styles
   Used by: Forgot Password, Reset Password, Verify Email
   ============================================ */

.auth-simple-wrapper {
    font-family: 'Nunito Sans', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-simple-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 40px 35px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.auth-simple-card h4 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-simple-card .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 25px;
}

.auth-simple-card .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 14px;
    text-align: left;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-simple-card .form-control:focus {
    border-color: #4054b2;
    box-shadow: 0 0 0 3px rgba(64, 84, 178, 0.12);
}

.auth-simple-card .btn-primary {
    background: #4054b2;
    border: none;
    height: 44px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
}

.auth-simple-card .form-label {
    text-align: left;
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.auth-simple-card .register {
    font-size: 14px;
    color: #64748b;
    margin-top: 22px;
}

.auth-simple-card .register a {
    color: #4054b2;
    font-weight: 600;
    text-decoration: none;
}

.auth-simple-card .invalid-feedback {
    font-size: 12px;
    color: #b91c1c;
    display: block;
    text-align: left;
    margin-top: 4px;
}

.auth-simple-card .alert-success {
    font-size: 13px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 10px 14px;
    text-align: left;
}



======================
/*Adjusted code for mobile view*/


/* ===== Header ===== */
.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 24px;
}
.landing-logo img { height: 50px; width: auto; display: block; }
.landing-auth-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.landing-auth-buttons .btn {
    white-space: nowrap;
    min-width: 90px;
    padding: 8px 16px;
}

@media (max-width: 575px) {
    .landing-header-inner { padding: 8px 12px; }
    .landing-logo img { height: 34px; }
    .landing-auth-buttons { gap: 6px; }
    .landing-auth-buttons .btn {
        min-width: 0;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===== Mobile: sticky preview + CTA at bottom ===== */
@media (max-width: 992px) {
    .landing-preview-col { position: static; }

    .landing-preview-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, .12);
    }

    .landing-preview-head {
        padding: 8px 14px;
        font-size: 12px;
        cursor: pointer;
    }
    .landing-preview-head::after {
        content: "▾";
        margin-left: auto;
    }

    .landing-preview-body {
        min-height: 0;
        height: 110px;
        max-height: 110px;
        padding: 10px 14px;
    }
    .landing-preview-empty { padding: 16px 10px; }

    .landing-preview-actions {
        position: static;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .landing-action-row { grid-template-columns: 1fr 1.4fr; gap: 8px; }
    .landing-action-row .landing-cta-btn,
    .landing-action-row .landing-share-btn {
        height: 44px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    /* tap the green header to collapse the preview */
    .landing-preview-card.is-collapsed .landing-preview-body { display: none; }
    .landing-preview-card.is-collapsed .landing-preview-head::after { content: "▴"; }

    /* room so the last form fields aren't hidden behind the bar */
    .landing-page { padding-bottom: 240px; }
}

.landing-fixed-header .landing-header-inner {
    box-sizing: border-box;
    max-width: 1280px;       /* matches .landing-page */
    margin: 0 auto;
    padding: 10px 24px !important;
}

@media (max-width: 575px) {
    .landing-fixed-header .landing-header-inner {
        padding: 8px 12px !important;
    }
}

@media (max-width: 992px) {
    .landing-preview-body {
        transition: height .3s ease, max-height .3s ease;
    }

    /* form finished: preview takes more room */
    .landing-preview-card.is-expanded .landing-preview-body {
        height: 45vh;
        max-height: 45vh;
    }

    /* extra scroll room so the user can actually scroll past the form end */
    .landing-page { padding-bottom: calc(45vh + 160px); }
}

.landing-fixed-header .landing-header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}
.landing-fixed-header .landing-logo { flex: 0 1 auto; min-width: 0; }
.landing-fixed-header .landing-auth-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
}
























/*mobile fixes for show.blade*/
/* =========================================================
   MOBILE FIXES — Profile View
   ========================================================= */

/* -------- Tag lists: plain comma-separated text -------- */
.tag-list {
    display: block;
}
.tag-list .value-tag {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    color: #263449;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.tag-list .value-tag:not(:last-child)::after {
    content: ", ";
    color: #94a3b8;
}
.tag-list .info-value.empty {
    display: inline;
}

/* -------- Info grid: label + value on one line -------- */
@media (max-width: 767px) {

    /* Summary banner: stack nicely, keep badges wrapped */
    .profile-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }
    .profile-summary-left {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }
    .profile-avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 22px;
    }
    .profile-summary-name {
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.25;
    }
    .profile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .profile-meta span {
        font-size: 11.5px;
        white-space: nowrap;
    }
    .profile-status {
        align-self: flex-start;
        padding: 5px 10px;
        font-size: 11px;
    }


    .info-label {
        flex: 0 0 auto;
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 10px;
        letter-spacing: .3px;
    }
    .info-label::after {
        content: ":";
        margin-left: 1px;
        color: #cbd5e1;
    }
    .info-value,
    .requirement-value {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12.5px;
    }

    /* Tag-list values stay inline in the same row */
    .info-item .tag-list {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Notes and address: label on its own line, text below */
    .note-box,
    .address-box {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
    .address-box .info-label {
        display: block;
        margin-bottom: 3px;
    }
    .address-box .info-label::after {
        content: "";
        margin: 0;
    }

    /* Full-width / wide items keep one-row layout too */
    .partner-grid .wide,
    .partner-grid .full {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .partner-grid .full {
        flex-direction: column;
        align-items: stretch;
    }

    /* -------- Action buttons: all in one row -------- */
    .profile-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .profile-action-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }
    .profile-action-buttons form {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
    }
    .profile-action-buttons .btn,
    .profile-action-buttons a {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
        height: 34px;
        padding: 0 6px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .profile-action-buttons .btn i,
    .profile-action-buttons a i {
        font-size: 12px;
        margin-right: 3px !important;
    }

    /* Interest status full width below */
    .profile-interest-status {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
    }
}

/* -------- Extra small phones -------- */
@media (max-width: 480px) {
    .profile-view { padding: 10px; }

    /* Override the earlier 2-col / 1-col grid — keep single column but row layout */
    .info-grid,
    .info-grid.three {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .partner-grid .wide,
    .partner-grid .full {
        grid-column: auto;
    }

    /* Keep action buttons in a single row, tighter */
    .profile-action-buttons {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap;
        gap: 4px;
    }
    .profile-action-buttons a:last-child {
        grid-column: auto !important;
    }
    .profile-action-buttons .btn,
    .profile-action-buttons a {
        font-size: 10.5px;
        padding: 0 4px;
        height: 32px;
    }
    .profile-action-buttons .btn i,
    .profile-action-buttons a i {
        font-size: 11px;
    }

    .info-item {
        padding: 7px 9px;
        gap: 6px;
    }
    .info-label { font-size: 9.5px; }
    .info-value,
    .requirement-value,
    .tag-list .value-tag { font-size: 12px; }
}















/* =========================================================
   MOBILE ONLY — Profile view fixes
   Desktop untouched (everything inside media queries)
   ========================================================= */

@media (max-width: 767px) {

    /* ---------- Banner ---------- */
    .profile-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
    }
    .profile-summary-left {
        width: 100%;
        align-items: center;
        gap: 12px;
    }
    .profile-summary-info {
        min-width: 0;
        flex: 1 1 auto;
    }
    .profile-avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 21px;
    }

    .profile-summary-name-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 4px;
    }
    .profile-summary-name-row .profile-summary-name {
        margin: 0;
        font-size: 17px;
        font-weight: 750;
        line-height: 1.2;
        color: var(--text, #1e293b);
    }

    .profile-gender-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .22);
        color: #e2e8f0;
        font-size: 10.5px;
        font-weight: 700;
        white-space: nowrap;
    }
    .profile-gender-chip i { font-size: 11px; }

    .profile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 10px;
    }
    .profile-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11.5px;
        color: #cbd5e1;
        white-space: nowrap;
    }
    .profile-meta span i { font-size: 12px; }


    /* ---------- Info rows — strip the input-box look ---------- */
    .info-item {
        display: flex;
        align-items: baseline;
        gap: 6px;
        padding: 7px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        border-bottom: 1px dashed #eef2f7;
    }
    .info-item:last-child {
        border-bottom: 0;
    }

    .info-label {
        flex: 0 0 auto;
        margin-bottom: 0;
        white-space: nowrap;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: .45px;
    }
    .info-label::after {
        content: ":";
        margin-left: 1px;
        color: #cbd5e1;
    }

    .info-value,
    .requirement-value {
        flex: 1 1 auto;
        min-width: 0;
        color: #1e293b;
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
    }

    /* Tag-list values inline next to label */
    .info-item .tag-list {
        flex: 1 1 auto;
        min-width: 0;
    }
    .tag-list {
        display: block;
    }
    .tag-list .value-tag {
        display: inline;
        background: none;
        border: 0;
        padding: 0;
        margin: 0;
        border-radius: 0;
        color: #263449;
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.35;
    }
    .tag-list .value-tag:not(:last-child)::after {
        content: ", ";
        color: #94a3b8;
    }
    .tag-list .info-value.empty {
        display: inline;
    }

    /* Notes + address stay block (label on top, text below) */
    .note-box,
    .address-box {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
    .address-box .info-label {
        display: block;
        margin-bottom: 3px;
    }
    .address-box .info-label::after {
        content: "";
        margin: 0;
    }

    /* Partner grid wide items inline too */
    .partner-grid .wide {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    .partner-grid .full {
        display: block;
    }


    /* ---------- Action buttons — single row ---------- */
    .profile-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .profile-action-buttons {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }
    .profile-action-buttons form {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        margin: 0;
    }
    .profile-action-buttons .btn,
    .profile-action-buttons a {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
        height: 34px;
        padding: 0 6px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .profile-action-buttons .btn i,
    .profile-action-buttons a i {
        font-size: 12px;
        margin-right: 3px !important;
    }

    .profile-interest-status {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
    }
    .profile-status-content { width: 100%; }
    .profile-status-match,
    .profile-status-pending,
    .profile-status-incoming,
    .profile-status-declined,
    .profile-status-new { width: 100%; }
    .profile-gender-warning { width: 100%; }
}


/* ---------- Extra small phones ---------- */
@media (max-width: 480px) {

    .profile-view { padding: 10px; }

    .profile-summary { padding: 12px; }
    .profile-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 19px;
    }
    .profile-summary-name-row .profile-summary-name { font-size: 16px; }
    .profile-meta span { font-size: 11px; }

    /* Single-column info rows stay in one line */
    .info-grid,
    .info-grid.three {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .partner-grid .wide,
    .partner-grid .full { grid-column: auto; }

    .info-item { padding: 6px 0; gap: 5px; }
    .info-label { font-size: 9.5px; }
    .info-value,
    .requirement-value,
    .tag-list .value-tag { font-size: 12px; }

    /* Keep action buttons single row on small phones */
    .profile-action-buttons {
        flex-wrap: nowrap;
        gap: 4px;
    }
    .profile-action-buttons .btn,
    .profile-action-buttons a {
        font-size: 10.5px;
        padding: 0 4px;
        height: 32px;
    }
    .profile-action-buttons .btn i,
    .profile-action-buttons a i { font-size: 11px; }
}




/*Header buttons*/

/* Browse Profiles button — blue bg, white text */
.header-top .top-menu .nav-link.nav-link-text {
    width: auto;
    min-width: auto;
    padding: 0;
    white-space: nowrap;
    background: #4054b2;
    border-color: #4054b2;
    border-radius: 8px;
    overflow: hidden;
}
.header-top .top-menu .nav-link.nav-link-text a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    white-space: nowrap;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
}
.header-top .top-menu .nav-link.nav-link-text a i {
    color: #fff !important;
    font-size: 14px;
}
.header-top .top-menu .nav-link.nav-link-text a span {
    white-space: nowrap;
    color: #fff;
}
.header-top .top-menu .nav-link.nav-link-text:hover,
.header-top .top-menu .nav-link.nav-link-text:active {
    background: #33449a;
    border-color: #33449a;
}
.header-top .top-menu .nav-link.nav-link-text:hover a,
.header-top .top-menu .nav-link.nav-link-text:active a {
    color: #fff !important;
}




/* ---------------------------------------------------------
   10. FILTER PANEL — mobile collapsible
   --------------------------------------------------------- */

/* Mobile-only toggle button */
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--c-grey-200);
    border-radius: 12px;
    color: var(--c-grey-800);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.filter-toggle:active {
    background: var(--c-grey-50);
}
.filter-toggle:focus {
    outline: none;
    border-color: var(--c-primary);
}

.filter-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.filter-toggle-left i {
    font-size: 15px;
    color: var(--c-primary);
}

.filter-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--c-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.filter-toggle-chevron {
    font-size: 14px;
    color: var(--c-grey-500);
    transition: transform .22s ease;
}
.filter-toggle[aria-expanded="true"] .filter-toggle-chevron {
    transform: rotate(180deg);
}

/* Desktop: hide the toggle, always show the panel */
@media (min-width: 992px) {
    .filter-toggle {
        display: none !important;
    }
}

/* Mobile: nicer spacing inside the collapsed panel */
@media (max-width: 991px) {
    .filter-form {
        padding: 14px;
        background: #fff;
        border: 1px solid var(--c-grey-200);
        border-radius: 12px;
    }
    .filter-form .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    .filter-form .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    .filter-form label {
        font-size: 11px;
        font-weight: 650;
        color: var(--c-grey-700);
    }
    .filter-actions {
        gap: 6px;
    }
    .filter-actions .btn {
        flex: 1;
        height: 38px;
        font-size: 12.5px;
        border-radius: 9px;
    }

    /* Select2 full width inside narrow columns */
    .filter-form .select2-container {
        width: 100% !important;
    }
}





/* =========================================================
   LISTING CARDS + INTEREST NAV + MOBILE LISTINGS
   Consolidated — replaces all previous blocks
   ========================================================= */

/* ---------------------------------------------------------
   1. GENERIC LIST CONTAINER
   --------------------------------------------------------- */

.list {
    --lc-primary:        #4054b2;
    --lc-primary-light:  #eef1ff;
    --lc-primary-border: rgba(64, 84, 178, .20);
    --lc-success:        #159a7c;
    --lc-success-light:  #ecfdf3;
    --lc-success-border: rgba(21, 154, 124, .22);
    --lc-warning:        #e58a18;
    --lc-warning-light:  #fff5e8;
    --lc-warning-border: rgba(229, 138, 24, .22);
    --lc-danger:         #d92d20;
    --lc-danger-light:   #fef3f2;
    --lc-danger-border:  #fee4e2;
    --lc-grey-50:        #f8fafc;
    --lc-grey-100:       #f2f4f7;
    --lc-grey-200:       #eaecf0;
    --lc-grey-300:       #e4e7ec;
    --lc-grey-400:       #cbd5e1;
    --lc-grey-500:       #98a2b3;
    --lc-grey-600:       #667085;
    --lc-grey-900:       #172033;

    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 12px;
}

/* ---------------------------------------------------------
   2. LIST ROW
   --------------------------------------------------------- */

.list-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--lc-grey-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .03);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .1s ease;
}
.list-row:hover {
    border-color: var(--lc-grey-300);
    box-shadow: 0 2px 6px rgba(16, 24, 40, .06);
    text-decoration: none;
    color: inherit;
}
.list-row:active {
    background-color: var(--lc-grey-100) !important;
}

/* ---------------------------------------------------------
   3. AVATAR
   --------------------------------------------------------- */

.list-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lc-primary-light);
    color: var(--lc-primary);
    font-size: 15px;
    font-weight: 700;
    user-select: none;
}

/* ---------------------------------------------------------
   4. BODY
   --------------------------------------------------------- */

.list-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list-row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

/* ---------------------------------------------------------
   5. TEXT STYLES
   --------------------------------------------------------- */

.list-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lc-grey-900);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.list-subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lc-primary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.list-detail {
    font-size: 12px;
    font-weight: 400;
    color: var(--lc-grey-600);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    min-width: 0;
}

/* ---------------------------------------------------------
   6. RIGHT-SIDE SLOTS
   --------------------------------------------------------- */

.list-line-1-right,
.list-line-2-right {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ---------------------------------------------------------
   7. BADGES
   --------------------------------------------------------- */

.list-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.list-badge.badge-primary { background: var(--lc-primary-light); color: var(--lc-primary); }
.list-badge.badge-success { background: var(--lc-success-light); color: var(--lc-success); }
.list-badge.badge-warning { background: var(--lc-warning-light); color: var(--lc-warning); }
.list-badge.badge-danger  { background: var(--lc-danger-light);  color: var(--lc-danger); }
.list-badge.badge-grey    { background: var(--lc-grey-100);     color: var(--lc-grey-600); }

/* ---------------------------------------------------------
   8. DATE
   --------------------------------------------------------- */

.list-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--lc-grey-500);
    white-space: nowrap;
}

/* ---------------------------------------------------------
   9. BUTTONS
   --------------------------------------------------------- */

.list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.list-btn.btn-primary {
    background: var(--lc-primary-light);
    color: var(--lc-primary);
    border-color: var(--lc-primary-border);
}
.list-btn.btn-primary:hover { background: var(--lc-primary); color: #fff; }

.list-btn.btn-success {
    background: var(--lc-success-light);
    color: var(--lc-success);
    border-color: var(--lc-success-border);
}
.list-btn.btn-success:hover { background: var(--lc-success); color: #fff; }

.list-btn.btn-danger {
    background: var(--lc-danger-light);
    color: var(--lc-danger);
    border-color: var(--lc-danger-border);
}
.list-btn.btn-danger:hover { background: var(--lc-danger); color: #fff; }

.list-btn.btn-outline {
    background: #fff;
    color: var(--lc-grey-600);
    border-color: var(--lc-grey-300);
}
.list-btn.btn-outline:hover { background: var(--lc-grey-50); color: var(--lc-grey-900); }

/* ---------------------------------------------------------
   10. ICON BUTTON (bookmark)
   --------------------------------------------------------- */

.list-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--lc-grey-200);
    border-radius: 50%;
    color: var(--lc-grey-400);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}
.list-icon-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.list-icon-btn:hover {
    color: var(--lc-warning);
    border-color: var(--lc-warning-border);
}
.list-icon-btn.is-on {
    color: var(--lc-warning);
    border-color: var(--lc-warning-border);
}
.list-icon-btn.is-on svg { fill: currentColor; }

/* ---------------------------------------------------------
   11. INLINE FORMS INSIDE ROWS
   --------------------------------------------------------- */

.list-row form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   12. ACTION FOOTER (moved buttons in list-card)
   --------------------------------------------------------- */

.list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--lc-grey-200);
    width: 100%;
}

.list-actions form {
    display: flex;
    flex: 1;
}

.list-actions .list-btn {
    width: 100%;
    justify-content: center;
    height: 32px;
    font-size: 11.5px;
}

/* ---------------------------------------------------------
   13. RESPONSIVE — CARDS vs TABLE
   Mobile (≤991px): show cards, hide DataTable
   Desktop (≥992px): hide cards, show DataTable
   --------------------------------------------------------- */

@media (max-width: 991px) {
    .list      { display: flex; }
    .dt-responsive { display: none !important; }
}

@media (min-width: 992px) {
    .list      { display: none !important; }
    .dt-responsive { display: block !important; }
}

/* ---------------------------------------------------------
   14. INTEREST NAV — icon tabs
   --------------------------------------------------------- */

.interest-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;

    padding: 10px 12px 0;
    margin: 0;
    list-style: none;

    background: #fff;
    border-bottom: 1px solid #eaecf0;
}

.interest-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.interest-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;
    padding: 8px 4px 10px;

    border: 0 !important;
    border-radius: 12px;

    background: transparent;
    color: #667085 !important;

    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
    text-decoration: none !important;

    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}

.interest-nav .nav-link:hover {
    background: #f8fafc;
    color: #172033 !important;
}

.interest-nav .nav-link.active {
    background: #eef1ff;
    color: #4054b2 !important;
}

.interest-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.interest-nav-icon-wrap i {
    font-size: 16px;
    line-height: 1;
}

.interest-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: #ef4444;
    color: #fff;

    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.interest-nav-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Small phones */
@media (max-width: 575px) {
    .interest-nav {
        padding: 8px 6px 0;
        gap: 4px;
    }
    .interest-nav .nav-link {
        padding: 7px 2px 9px;
        border-radius: 10px;
    }
    .interest-nav-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .interest-nav-icon-wrap i {
        font-size: 15px;
    }
    .interest-nav-label {
        font-size: 10px;
    }
    .interest-nav-badge {
        font-size: 9px;
        height: 15px;
        min-width: 15px;
    }
}

@media (max-width: 359px) {
    .interest-nav-label { font-size: 9.5px; }
    .interest-nav-icon-wrap i { font-size: 14px; }
}

/* ---------------------------------------------------------
   15. INTERESTS PAGE — mobile full-width list
   --------------------------------------------------------- */

@media (max-width: 991px) {

    /* Neutralize inner padding on interests page so rows go edge-to-edge */
    .mi-dt-wrap {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mi-dt-wrap .tab-content,
    .mi-dt-wrap .tab-pane {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mi-dt-wrap .list {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Each interest = flat row with divider (no nested card look) */
    .mi-dt-wrap .list-row {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 12px 8px !important;

        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e6e9ef !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .mi-dt-wrap .list-row:hover {
        background: #f8fafc !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .mi-dt-wrap .list-row:last-child {
        border-bottom: 0 !important;
    }

    .mi-dt-wrap .list-row .list-body {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


/*contact from*/

.contact-info-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef1ff, #fff);
    color: #4054b2;
    font-size: 26px;
}


/* ---------------------------------------------------------
   LISTING PAGE MOBILE: collapse gap between stacked card-body sections filter panel and profile card
   --------------------------------------------------------- */
@media (max-width: 991px) {

    /* Any card-body followed by another card-body — remove the top padding
       on the second one and its bottom padding on the first one */
    .card-body + .card-body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Also trim bottom padding on the first card-body when stacked */
    .card-body:has(+ .card-body) {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* And make sure the outer .card.p-3 doesn't add its own gap */
    .card.p-3 > .card-body:first-child {
        padding-top: 8px !important;
    }
    .card.p-3 > .card-body:last-child {
        padding-bottom: 8px !important;
    }

    /* Reduce the filter panel's own bottom margin */
    .filter-form {
        margin-bottom: 6px !important;
    }

    /* Filter toggle — small gap below only */
    .filter-toggle {
        margin-bottom: 8px !important;
    }
}


/* ---------------------------------------------------------
   FILTER PANEL — soft background to distinguish from cards
   --------------------------------------------------------- */
.filter-form {
    background: var(--c-grey-50, #f8fafc);
    border: 1px solid var(--c-grey-200, #eaecf0);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* Mobile: tighter padding + spacing */
@media (max-width: 991px) {
    .filter-form {
        padding: 12px 12px;
        margin-bottom: 8px;
    }

    /* Filter toggle button — match the same look */
    .filter-toggle {
        background: var(--c-grey-50, #f8fafc);
        border-color: var(--c-grey-200, #eaecf0);
    }
}


.profile-owner-share-text { display: none; }
@media (min-width: 576px) { .profile-owner-share-text { display: block; } }