/* =========================================================
   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-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: 26px 18px 50px; }
.mat-dashboard * { box-sizing: border-box; }

.mat-language-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 22px; }
.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: 220px; padding: 30px 34px; 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: 24px; line-height: 1.22; font-weight: 750; letter-spacing: -.4px; }
.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: column; justify-content: space-between; gap: 16px;
    padding: 24px 22px; background: var(--c-grey-50);
    border: 1px solid var(--c-grey-200); border-radius: 20px;
    text-decoration: none !important; color: inherit; transition: all .22s ease;
}
.mat-recommended:hover { background: #fff; border-color: var(--c-primary-border); box-shadow: 0 12px 28px rgba(64,84,178,.10); transform: translateY(-3px); }
.mat-recommended-icon {
    width: 52px; height: 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; }
.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; 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-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 0; margin: 0; list-style: none;
    border-bottom: 1px solid var(--c-grey-200); position: relative;
}
.mi-tabs .nav-item { margin: 0; }
.mi-tabs .nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 18px;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; color: var(--c-grey-600) !important;
    font-size: 13.5px; font-weight: 650; text-decoration: none !important; white-space: nowrap;
}
.mi-tabs .nav-link:hover { color: var(--c-grey-900) !important; }
.mi-tabs .nav-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
    height: 3px; border-radius: 3px 3px 0 0; background: transparent; pointer-events: none;
}
.mi-tabs .nav-link.active { color: var(--c-grey-900) !important; }
.mi-tabs .nav-link.active#received-tab::after    { background: var(--c-primary); }
.mi-tabs .nav-link.active#sent-tab::after        { background: var(--c-grey-700); }
.mi-tabs .nav-link.active#accepted-tab::after    { background: var(--c-success); }
.mi-tabs .nav-link.active#shortlisted-tab::after { background: var(--c-warning); }
.mi-tabs .nav-link.active#recommended-tab::after { background: var(--c-info); }

.mi-tabs .nav-link .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; }
.mi-tabs .nav-link#received-tab .mi-count    { background: var(--c-primary-light); color: var(--c-primary); }
.mi-tabs .nav-link#sent-tab .mi-count        { background: var(--c-grey-100); color: var(--c-grey-700); }
.mi-tabs .nav-link#accepted-tab .mi-count    { background: var(--c-success-light); color: var(--c-success); }
.mi-tabs .nav-link#shortlisted-tab .mi-count { background: var(--c-warning-light); color: var(--c-warning-dark); }
.mi-tabs .nav-link#recommended-tab .mi-count { background: var(--c-info-light); color: var(--c-info); }
.mi-tabs .nav-link.active#received-tab .mi-count    { background: var(--c-primary); color: #fff; }
.mi-tabs .nav-link.active#sent-tab .mi-count        { background: var(--c-grey-700); color: #fff; }
.mi-tabs .nav-link.active#accepted-tab .mi-count    { background: var(--c-success); color: #fff; }
.mi-tabs .nav-link.active#shortlisted-tab .mi-count { background: var(--c-warning); color: #fff; }
.mi-tabs .nav-link.active#recommended-tab .mi-count { background: var(--c-info); color: #fff; }

.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; }

    .mi-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .mi-tabs::-webkit-scrollbar { display: none; }
    .mi-tabs .nav-link { height: 42px; padding: 0 14px; font-size: 12.5px; }
    .mi-tabs .nav-link::after { left: 8px; right: 8px; }

    .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: var(--c-grey-400);
    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; order: -1; }
    .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;
}

@media (max-width: 575px) {
    .landing-action-row { grid-template-columns: 1fr; }
}
/* =========================================================
   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;
}