:root {
    --navy: #001f3f;
    --navy-deep: #00152a;
    --navy-ink: #000d1a;
    --blue: #0d47a1;
    --blue-hover: #0a3a86;
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --gold-light: #ffa500;
    --gold-soft: #fff5bf;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #dce4ee;
    --text: #172033;
    --muted: #64748b;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #087443;
    --success-bg: #ecfdf3;
    --warning: #995c00;
    --warning-bg: #fff7e6;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    --shadow-strong: 0 30px 80px rgba(0, 13, 26, 0.28);
    --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.members-page {
    position: relative;
    --pointer-x: 50vw;
    --pointer-y: 50vh;
    min-height: 100vh;
    margin: 0;
    direction: rtl;
    font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(120deg, rgba(255, 215, 0, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(0, 31, 63, 0.06), transparent 36%),
        linear-gradient(135deg, rgba(19, 39, 67, 0.045) 25%, transparent 25%) 0 0 / 28px 28px,
        var(--bg);
    letter-spacing: 0;
    overflow-x: hidden;
}

body.members-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(19, 39, 67, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(19, 39, 67, 0.04) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

body.members-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(255, 215, 0, 0.13), transparent 42%),
        radial-gradient(760px circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(13, 71, 161, 0.12), transparent 48%);
    opacity: 0.85;
    transition: opacity var(--transition);
}

body.members-page > * {
    position: relative;
    z-index: 1;
}

body.photo-modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.members-login-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(255, 215, 0, 0.16), transparent 24%),
        radial-gradient(circle at 12% 80%, rgba(13, 71, 161, 0.24), transparent 28%),
        linear-gradient(160deg, var(--navy), var(--navy-ink) 62%, #001529);
}

.login-shell {
    width: min(100%, 460px);
}

.login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: rgba(0, 21, 42, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.11), transparent 32%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.login-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.14), transparent 34%),
        linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.login-card-header-hero {
    flex-direction: column;
    gap: 14px;
    padding: 36px 24px 26px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.14), transparent 55%),
        linear-gradient(180deg, var(--navy-deep), var(--navy));
    overflow: hidden;
}

.login-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(120px, 26vw, 148px);
    height: clamp(120px, 26vw, 148px);
    isolation: isolate;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 13, 26, 0.55))
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.22));
    transition: filter .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.login-logo:hover {
    transform: translateY(-3px);
}

.login-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 14px 28px rgba(0, 13, 26, 0.65))
            drop-shadow(0 0 28px rgba(255, 215, 0, 0.38));
}

.login-logo-halo {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0.14) 35%, transparent 65%);
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
    animation: login-halo-breathe 4.5s ease-in-out infinite;
}

.login-logo-ring { display: none; }

@keyframes login-halo-breathe {
    0%, 100% { opacity: .7;  transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .login-logo,
    .login-logo img,
    .login-logo-halo { animation: none; transition: none; }
}

.login-title-block {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.login-title-block .system-kicker {
    margin: 0;
    color: rgba(255, 215, 0, 0.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-title-block h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 13, 26, 0.6);
}

.login-title-divider {
    display: block;
    width: 60px;
    height: 2px;
    margin: 4px 0 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.95), transparent);
}

.login-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
}


.login-card-header::after,
.join-topbar::after {
    content: "";
    position: absolute;
    inset-inline: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.75), transparent);
}

.member-emblem {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid rgba(255, 215, 0, 0.92);
    border-radius: 8px;
    color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 215, 0, 0.07));
    box-shadow: inset 0 0 18px rgba(255, 215, 0, 0.12);
    font-weight: 900;
    font-size: 24px;
}

.system-kicker,
.login-card-header p,
.join-brand p,
.join-heading p,
.admin-heading p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.login-card-header .system-kicker,
.join-brand p {
    color: rgba(255, 255, 255, 0.78);
}

.login-card-header h1,
.join-brand h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}

.login-card-body {
    position: relative;
    padding: 26px 24px 22px;
    color: rgba(255, 255, 255, 0.9);
}

.login-card-footer {
    position: relative;
    padding: 14px 20px 18px;
    color: rgba(255, 215, 0, 0.68);
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(255, 215, 0, 0.16);
    background: rgba(0, 13, 26, 0.42);
}

.member-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.field > span {
    color: #263244;
    font-size: 14px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff, #fbfdff);
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.field input,
.field select {
    min-height: 46px;
    padding: 10px 12px;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
    padding: 12px;
    line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12), 0 10px 25px rgba(13, 71, 161, 0.08);
    transform: translateY(-1px);
}

.secret-field {
    position: relative;
    display: grid;
}

.secret-field input {
    padding-inline-end: 76px;
}

.secret-field button {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    min-width: 58px;
    min-height: 32px;
    padding: 5px 10px;
    color: var(--gold);
    background: rgba(0, 31, 63, 0.72);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    transform: translateY(-50%);
}

.secret-field button:hover {
    background: rgba(255, 215, 0, 0.13);
    border-color: rgba(255, 215, 0, 0.55);
}

.members-login-page .field > span {
    color: rgba(255, 255, 255, 0.88);
}

.members-login-page .field input {
    color: #fff;
    background: rgba(0, 13, 26, 0.62);
    border-color: rgba(255, 215, 0, 0.22);
}

.members-login-page .field input:focus {
    border-color: rgba(255, 215, 0, 0.76);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.13), 0 16px 32px rgba(0, 0, 0, 0.18);
}

.members-login-page .login-options {
    color: rgba(255, 255, 255, 0.7);
}

.members-login-page .muted-link {
    color: var(--gold);
}

.members-login-page .member-separator {
    color: rgba(255, 255, 255, 0.52);
}

.members-login-page .member-separator::before,
.members-login-page .member-separator::after {
    background: rgba(255, 215, 0, 0.2);
}

.members-login-page .btn-primary {
    color: #00152a;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: rgba(255, 215, 0, 0.82);
    box-shadow: 0 16px 34px rgba(255, 215, 0, 0.16);
}

.members-login-page .btn-primary:hover {
    background: linear-gradient(135deg, #ffe45e, var(--gold));
}

.members-login-page .btn-gold {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.34);
}

.members-login-page .btn-gold:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.58);
}

.field input[type="file"] {
    padding: 9px 10px;
    background: var(--surface-muted);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--danger);
    background: #fffafa;
}

.field-error,
.required-star {
    color: var(--danger);
}

.field-error {
    font-size: 12px;
    font-weight: 700;
}

.required-star {
    margin-inline-start: 4px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.check-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.check-line input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
    border: 2px solid #64748b;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.check-line input:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.check-line input:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.check-line input:focus-visible {
    outline: 3px solid rgba(13, 71, 161, 0.22);
    outline-offset: 2px;
}

.muted-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.muted-link:hover,
.topbar-link:hover {
    text-decoration: underline;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(115%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transition: transform 460ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 71, 161, 0.16);
}

.btn:hover::before {
    transform: translateX(-115%);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.btn:focus-visible,
.topbar-link:focus-visible,
.topbar-button:focus-visible,
.step-tab:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.55);
    outline-offset: 2px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-hover);
}

.btn-secondary {
    color: var(--navy);
    background: #fff;
    border-color: #c7d3e1;
}

.btn-secondary:hover {
    background: #f2f6fb;
}

.btn-gold {
    color: #18212f;
    background: var(--gold);
    border-color: #e4c100;
}

.btn-gold:hover {
    background: #eac700;
}

.btn-warning {
    color: #fff;
    background: #b7791f;
}

.btn-danger {
    color: #fff;
    background: var(--danger);
}

.btn-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.member-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.member-separator::before,
.member-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.member-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.member-alert.success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #a7f3d0;
}

.member-alert.danger {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #fecaca;
}

.join-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 84px;
    padding: 16px clamp(18px, 5vw, 56px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 30%),
        linear-gradient(180deg, var(--navy-deep), var(--navy));
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 12px 36px rgba(0, 13, 26, 0.22);
}

.join-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.join-brand .member-emblem {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.brand-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    isolation: isolate;
    transition: transform .3s ease;
}

.brand-logo::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.28), transparent 65%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 13, 26, 0.45))
            drop-shadow(0 0 8px rgba(255, 215, 0, 0.18));
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.topbar-link,
.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.topbar-link:hover,
.topbar-button:hover {
    background: rgba(255, 215, 0, 0.16);
    border-color: rgba(255, 215, 0, 0.46);
    transform: translateY(-1px);
}

.topbar-button {
    font: inherit;
}

.join-shell,
.portal-shell,
.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 48px;
}

.join-card,
.admin-panel {
    background: transparent;
    border: 0;
}

.join-heading,
.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(220, 228, 238, 0.9);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.join-heading h2,
.admin-heading h2,
.detail-header h2,
.portal-hero h2 {
    margin: 0;
    color: var(--navy);
    font-size: 26px;
    line-height: 1.3;
    font-weight: 900;
}

.steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.step-tab {
    flex: 1 0 150px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.step-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border-color: var(--blue);
    box-shadow: 0 16px 34px rgba(13, 71, 161, 0.26);
}

.step-tab.has-error {
    border-color: var(--danger);
    box-shadow: inset 0 -3px 0 var(--danger);
}

.step-progress {
    height: 7px;
    overflow: hidden;
    margin: 0 0 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(220, 228, 238, 0.85);
    border-radius: 8px;
}

.step-progress span {
    display: block;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #ffb300, var(--blue));
    border-radius: inherit;
    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.join-form,
.portal-hero,
.info-card,
.events-card,
.notes-card,
.table-wrap,
.admin-filters,
.secret-box {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.join-form {
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow-strong);
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: panelIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-panel {
    display: grid;
    min-height: 300px;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
    color: var(--navy);
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent 28%),
        linear-gradient(315deg, rgba(13, 71, 161, 0.08), transparent 32%);
    border: 1px solid rgba(220, 228, 238, 0.8);
    border-radius: 8px;
}

.welcome-mark {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 3px solid var(--gold);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 215, 0, 0.14), transparent 40%),
        var(--navy);
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.welcome-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(120px, 26vw, 150px);
    height: clamp(120px, 26vw, 150px);
    margin-bottom: 6px;
    isolation: isolate;
}

.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(13, 71, 161, 0.2))
            drop-shadow(0 0 22px rgba(255, 215, 0, 0.18));
}

.welcome-logo-halo {
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.1) 35%, transparent 65%);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.welcome-panel h3 {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 900;
}

.welcome-panel p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-wide,
.photo-field,
.notes-card,
.events-card {
    grid-column: 1 / -1;
}

.photo-field {
    justify-items: center;
    text-align: center;
}

.photo-field > span {
    width: 100%;
    text-align: right;
}

.photo-picker {
    position: relative;
    display: grid;
    width: 154px;
    height: 154px;
    place-items: center;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 45%),
        var(--surface-muted);
    border: 2px dashed rgba(13, 71, 161, 0.28);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.photo-picker:hover,
.photo-picker:focus-within {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

.photo-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.photo-picker:focus-within {
    outline: 3px solid rgba(255, 215, 0, 0.5);
    outline-offset: 4px;
}

.photo-picker img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: var(--navy);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.photo-trigger:focus-visible {
    outline: 0;
}

.photo-plus {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #00152a;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.24);
}

.photo-label {
    margin-top: -34px;
    color: var(--muted);
    font-size: 12px;
}

.photo-picker.has-image .photo-plus {
    display: none;
}

.photo-picker.has-image .photo-label {
    display: none;
}

.photo-picker.has-image .photo-trigger {
    background: transparent;
    cursor: zoom-in;
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.photo-modal[hidden] {
    display: none;
}

.photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 13, 26, 0.72);
    border: 0;
    backdrop-filter: blur(10px);
}

.photo-modal-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(255, 215, 0, 0.34);
    border-radius: 8px;
    box-shadow: var(--shadow-strong);
}

.photo-modal-close {
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: rgba(0, 21, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.photo-modal-close:hover {
    background: var(--danger);
}

.photo-modal-image {
    display: grid;
    place-items: center;
    min-height: 280px;
    max-height: min(68vh, 560px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 46%),
        #edf2f7;
    border-radius: 8px;
}

.photo-modal-image img {
    display: block;
    width: 100%;
    max-height: min(68vh, 560px);
    object-fit: contain;
}

.photo-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.photo-action {
    min-height: 34px;
    padding: 7px 14px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.22);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.photo-action:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.48);
    background: rgba(13, 71, 161, 0.08);
}

.photo-action-danger {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.24);
}

.photo-action-danger:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.gender-field {
    align-content: start;
}

.gender-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gender-option {
    position: relative;
    min-height: 48px;
}

.gender-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 48px;
    color: var(--navy);
    background: linear-gradient(180deg, #fff, #fbfdff);
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.gender-option span:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.34);
}

.gender-option input:focus-visible + span {
    outline: 3px solid rgba(255, 215, 0, 0.46);
    outline-offset: 2px;
}

.gender-option input:checked + span {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent 45%),
        linear-gradient(135deg, var(--blue), var(--navy));
    border-color: rgba(255, 215, 0, 0.62);
    box-shadow: 0 16px 34px rgba(13, 71, 161, 0.22);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.members-js .form-actions [data-step-submit] {
    display: none;
}

.portal-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
}

.portal-photo {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: var(--gold);
    background: var(--navy);
    border: 3px solid var(--gold);
    border-radius: 8px;
    font-size: 34px;
    font-weight: 900;
}

.portal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.status-pill.pending {
    color: var(--warning);
    background: var(--warning-bg);
}

.status-pill.active {
    color: var(--success);
    background: var(--success-bg);
}

.status-pill.disabled {
    color: #5b6472;
    background: #eef2f7;
}

.status-pill.rejected {
    color: var(--danger);
    background: var(--danger-bg);
}

.status-pill.approved {
    color: var(--success);
    background: var(--success-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
    padding: 18px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.22);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
}

.info-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.info-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.info-card dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-card dt {
    color: var(--muted);
    font-weight: 800;
}

.info-card dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
    font-weight: 700;
}

.admin-heading {
    align-items: center;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
}

.members-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #fff;
}

.members-table th,
.members-table td {
    padding: 13px 12px;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
}

.members-table th {
    color: #fff;
    background: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.members-table tr:hover td {
    background: #fbfdff;
}

.members-table.compact {
    min-width: 720px;
}

.members-table.compact th,
.members-table.compact td {
    font-size: 13px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.table-actions form {
    margin: 0;
}

.empty-cell {
    color: var(--muted);
    text-align: center !important;
    font-weight: 800;
}

.secret-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    margin: 0 0 16px;
    border-color: #f0d46d;
    background: #fffbdf;
}

.secret-box span {
    display: block;
    color: #6b5b00;
    font-size: 13px;
    font-weight: 900;
}

.secret-box strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-size: 24px;
    direction: ltr;
    text-align: right;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.detail-photo {
    width: 86px;
    height: 86px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.detail-actions form {
    margin: 0;
}

.notes-card,
.events-card {
    margin-top: 16px;
}

.notes-box {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 960px) {
    .info-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-filters .btn {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .members-login-page {
        padding: 14px;
    }

    .login-card-header,
    .login-card-body {
        padding-inline: 18px;
    }

    .join-topbar {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .join-brand .member-emblem {
        width: 40px;
        height: 40px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        padding: 2px;
    }

    .welcome-logo {
        width: 116px;
        height: 116px;
    }

    .join-brand h1,
    .login-card-header h1 {
        font-size: 19px;
    }

    .join-shell,
    .portal-shell,
    .admin-shell {
        width: min(100% - 20px, 1180px);
        margin-top: 18px;
    }

    .join-heading,
    .admin-heading,
    .detail-header,
    .portal-hero,
    .secret-box {
        align-items: stretch;
        flex-direction: column;
    }

    .join-heading h2,
    .admin-heading h2,
    .detail-header h2,
    .portal-hero h2 {
        font-size: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .detail-identity {
        align-items: flex-start;
    }

    .detail-actions {
        justify-content: stretch;
    }

    .detail-actions .btn,
    .detail-actions form {
        width: 100%;
    }

    .info-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .table-actions {
        flex-direction: column;
    }

    .table-actions .btn,
    .table-actions form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-emblem {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .portal-photo {
        width: 76px;
        height: 76px;
    }
}

/* ═══ لوحة الفرد (داشبورد) ═══════════════════════════════════ */
.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.portal-hero-info {
    min-width: 0;
    flex: 1;
}

.members-login-page .forgot-note {
    margin-bottom: 16px;
    padding: 14px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(0, 13, 26, 0.46);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.8;
}

.members-login-page .forgot-note p {
    margin: 0 0 6px;
}

.members-login-page .forgot-note p:last-child {
    margin-bottom: 0;
    color: rgba(255, 215, 0, 0.78);
    font-size: 13px;
}

.dashboard-section {
    margin: 22px 0 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dashboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.dashboard-count {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(13, 71, 161, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.38);
    border-radius: 999px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.dashboard-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 22px 18px;
    color: var(--navy);
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.14), transparent 46%),
        linear-gradient(180deg, #fff, #f5f8fc);
    border: 1px solid rgba(13, 71, 161, 0.18);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 18px 36px rgba(13, 71, 161, 0.18);
}

.dashboard-card.locked {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    background:
        linear-gradient(180deg, #f8f9fc, #eef2f7);
    border-color: #dce4ee;
    box-shadow: none;
}

.dashboard-icon {
    font-size: 30px;
    line-height: 1;
}

.dashboard-label {
    font-size: 18px;
    font-weight: 900;
}

.dashboard-cta {
    color: var(--blue);
    font-weight: 800;
    font-size: 14px;
}

.dashboard-cta.muted {
    color: var(--muted);
}

.dashboard-locked {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.dashboard-locked-title {
    color: var(--muted);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
}

.dashboard-locked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.member-alert.warning {
    color: var(--warning);
    background: var(--warning-bg);
    border: 1px solid #fde68a;
}

/* ═══ صفحة تعديل البروفايل ═══════════════════════════════════ */
.profile-card {
    margin-bottom: 18px;
    padding: 22px;
}

.profile-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.profile-hint {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}

.profile-photo-preview {
    display: grid;
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: var(--gold);
    background: var(--navy);
    border: 3px solid var(--gold);
    border-radius: 50%;
    font-size: 40px;
    font-weight: 900;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    display: grid;
    gap: 10px;
}

.profile-photo-actions .btn {
    display: inline-flex;
    cursor: pointer;
    justify-self: start;
}

.profile-request-shell .profile-photo-actions .btn-secondary {
    color: #173B70;
    background: #FFFFFF;
    border: 2px solid #9AAAC0;
    box-shadow: 0 8px 18px rgba(23, 59, 112, 0.08);
}

.profile-request-shell .profile-photo-actions .btn-secondary:hover {
    color: #0F2E5B;
    background: #F4F8FF;
    border-color: #2F73BE;
}

.profile-request-shell .check-line {
    min-height: 34px;
    color: #172033;
    font-size: 14px;
}

/* ═══ أقسام العضو (صفحة الأدمن) ═══════════════════════════════ */
.sections-card {
    padding: 22px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.section-toggle {
    position: relative;
    display: block;
    cursor: pointer;
}

.section-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.section-toggle-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--navy);
    background: linear-gradient(180deg, #fff, #fbfdff);
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    font-weight: 800;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.section-toggle:hover .section-toggle-body {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.34);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.section-toggle input:checked + .section-toggle-body {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border-color: rgba(255, 215, 0, 0.62);
    box-shadow: 0 14px 28px rgba(13, 71, 161, 0.24);
}

.section-toggle input:focus-visible + .section-toggle-body {
    outline: 3px solid rgba(255, 215, 0, 0.55);
    outline-offset: 2px;
}

.section-toggle-icon {
    font-size: 22px;
}

.admin-sections-panel {
    margin: 0 0 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(220, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.admin-sections-panel h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
}

.admin-sections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--navy);
    background: #f8fafc;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    font-size: 14px;
}

.admin-section-pill.mandatory {
    background: linear-gradient(135deg, #fef7e6 0%, #fff6cc 100%);
    border-color: #e6c260;
    color: #7a5a00;
}

.admin-section-pill .mandatory-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #8a5a00;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.mandatory-sections-block {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(255, 247, 230, 0.55);
    border: 1px dashed #e6c260;
    border-radius: 10px;
}

.mandatory-sections-block .profile-hint {
    margin: 0 0 10px;
    color: #7a5a00;
    font-weight: 700;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* ═══ قائمة طلبات استبدال الرمز (الأدمن) ═════════════════════ */
.reset-queue {
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(255, 247, 230, 0.88);
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.reset-queue h3 {
    margin: 0 0 12px;
    color: #8a5a00;
    font-size: 17px;
    font-weight: 900;
}

/* ═══ بوابة الأفراد الجديدة ═══════════════════════════════════ */
body.member-dark-page {
    color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent 28%),
        linear-gradient(160deg, #00152a 0%, #001f3f 46%, #000b16 100%);
}

body.member-dark-page::after {
    display: none;
}

body.member-dark-page::before {
    opacity: 0.34;
    background:
        linear-gradient(rgba(255, 215, 0, 0.06) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
}

.member-dashboard-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 22px;
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 42px;
}

.portal-sidebar,
.member-hero-card,
.member-dark-page .dashboard-section,
.member-dark-page .info-card,
.profile-readonly-header {
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent 42%),
        rgba(0, 21, 42, 0.88);
    border: 1px solid rgba(255, 215, 0, 0.32);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 10, 22, 0.34);
    backdrop-filter: blur(14px);
}

.portal-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    display: grid;
    gap: 22px;
    min-height: calc(100vh - 48px);
    padding: 22px;
}

/* القواعد التالية مخصّصة للـ portal-sidebar القديم فقط.
   تم حصرها داخل .portal-sidebar لمنع التعارض مع .sidebar-brand في base.html. */
.portal-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.portal-sidebar .sidebar-brand p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.portal-sidebar .sidebar-brand h1 {
    margin: 0;
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
}

.portal-sidebar .portal-nav {
    display: grid;
    gap: 10px;
}

.portal-sidebar .portal-nav a,
.portal-sidebar .portal-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.portal-sidebar .portal-nav a:hover,
.portal-sidebar .portal-nav button:hover {
    color: #00152a;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.portal-sidebar .portal-nav form {
    margin: 0;
}

.portal-sidebar .portal-nav button {
    font: inherit;
    text-align: right;
}

.portal-sidebar .sidebar-stats {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.portal-sidebar .sidebar-stats div {
    display: grid;
    gap: 3px;
    padding: 12px;
    background: rgba(0, 13, 26, 0.46);
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 8px;
}

.portal-sidebar .sidebar-stats span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-stats strong {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}

.portal-main {
    min-width: 0;
}

.member-hero-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: 20px;
}

.member-hero-copy {
    min-width: 0;
}

.member-hero-copy .system-kicker,
.member-dark-page .system-kicker {
    color: rgba(255, 215, 0, 0.86);
}

.member-hero-copy h2 {
    margin: 0;
    color: var(--gold);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 900;
}

.member-hero-copy h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
}

.member-dark-page .portal-meta {
    color: rgba(255, 255, 255, 0.72);
}

.member-dark-page .dashboard-title,
.member-dark-page .info-card h3,
.member-dark-page .profile-card h3 {
    color: var(--gold);
}

.member-dark-page .dashboard-count {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.member-dark-page .dashboard-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.14), transparent 44%),
        rgba(0, 31, 63, 0.86);
    border-color: rgba(255, 215, 0, 0.28);
}

.member-dark-page .dashboard-card:hover {
    border-color: rgba(255, 215, 0, 0.82);
    box-shadow: 0 20px 40px rgba(0, 10, 22, 0.32);
}

.member-dark-page .dashboard-cta {
    color: var(--gold);
}

.profile-dashboard-text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
    font-weight: 700;
}

.profile-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-details {
    display: inline-block;
    margin-inline-start: 8px;
}

.inline-details summary {
    cursor: pointer;
    font-weight: 900;
}

.inline-details p {
    margin: 8px 0 0;
    font-weight: 700;
}

.member-dark-topbar {
    border-bottom-color: rgba(255, 215, 0, 0.74);
}

.member-dark-page .info-card dt {
    color: rgba(255, 255, 255, 0.58);
}

.member-dark-page .info-card dd,
.member-dark-page .notes-box {
    color: rgba(255, 255, 255, 0.9);
}

.member-dark-page .info-card dl div {
    border-bottom-color: rgba(255, 215, 0, 0.12);
}

.member-dark-page .profile-hint {
    color: rgba(255, 255, 255, 0.66);
}

.member-dark-page .field > span,
.member-dark-page .check-line {
    color: rgba(255, 255, 255, 0.88);
}

.profile-readonly-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.profile-readonly-header h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.profile-readonly-header .btn {
    margin-inline-start: auto;
}

.profile-request-shell,
.profile-readonly-shell {
    max-width: 1120px;
}

/* ═══ البروفايل الشخصي المطوّر — محصور بصفحة العرض فقط ═══════ */
.profile-page .profile-readonly-shell {
    width: min(1260px, calc(100% - 32px));
    max-width: none;
    margin: clamp(18px, 2.5vw, 34px) auto 52px;
}

.profile-page .profile-hero-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(278px, 0.42fr);
    gap: clamp(18px, 3vw, 34px);
    overflow: hidden;
    padding: clamp(26px, 3.6vw, 44px);
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.18), transparent 34%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.055), transparent 42%),
        linear-gradient(180deg, rgba(0, 31, 63, 0.98), rgba(0, 13, 26, 0.94));
    border: 1px solid rgba(255, 215, 0, 0.38);
    border-radius: 8px;
    box-shadow: 0 32px 80px rgba(0, 10, 22, 0.44);
    backdrop-filter: blur(16px);
}

.profile-page .profile-hero-panel::before {
    content: "";
    position: absolute;
    inset-inline: 22px;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.9), rgba(255, 255, 255, 0.48), rgba(255, 215, 0, 0.9), transparent);
    opacity: 0.78;
}

.profile-page .profile-hero-panel::after {
    content: "HIKMA";
    position: absolute;
    inset-inline-start: clamp(18px, 4vw, 56px);
    bottom: -20px;
    z-index: -1;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(72px, 12vw, 168px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
}

.profile-page .profile-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: clamp(16px, 2.4vw, 26px);
}

.profile-page .profile-avatar {
    position: relative;
    display: grid;
    width: clamp(96px, 10vw, 132px);
    height: clamp(96px, 10vw, 132px);
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: var(--gold);
    background:
        linear-gradient(145deg, rgba(255, 215, 0, 0.14), transparent 44%),
        #00152a;
    border: 3px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 10, 22, 0.42), 0 0 0 7px rgba(255, 215, 0, 0.08);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 900;
}

.profile-page .profile-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.22), transparent 62%);
    filter: blur(12px);
    transform: scale(1.38);
}

.profile-page .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page .profile-identity {
    min-width: 0;
}

.profile-page .profile-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-page .profile-kicker {
    margin: 0;
    color: rgba(255, 215, 0, 0.86);
    font-size: 13px;
    font-weight: 900;
}

.profile-page .profile-hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.profile-page .profile-identity h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.4vw, 50px);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.profile-page .profile-membership-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 800;
}

.profile-page .profile-membership-line strong {
    color: var(--gold);
    font-size: 17px;
    letter-spacing: 0;
}

.profile-page .profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-page .profile-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.profile-page .profile-status-active,
.profile-page .profile-status-approved {
    color: #d6fbe7;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.32);
}

.profile-page .profile-status-pending,
.profile-page .profile-status-neutral {
    color: #ffeaa3;
    background: rgba(255, 215, 0, 0.11);
    border-color: rgba(255, 215, 0, 0.28);
}

.profile-page .profile-status-disabled,
.profile-page .profile-status-rejected {
    color: #ffd6d6;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-page .profile-hero-side {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
}

.profile-page .profile-number-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(0, 13, 26, 0.42);
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 8px;
}

.profile-page .profile-number-card span {
    font-size: 13px;
    font-weight: 900;
}

.profile-page .profile-number-card strong {
    color: var(--gold);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.profile-page .profile-completion-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
}

.profile-page .profile-completion-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-page .profile-completion-card span {
    font-size: 13px;
    font-weight: 900;
}

.profile-page .profile-completion-card strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.profile-page .profile-completion-card meter {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-page .profile-completion-card meter::-webkit-meter-bar {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 999px;
}

.profile-page .profile-completion-card meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, var(--gold), #f3bd30);
    border-radius: 999px;
}

.profile-page .profile-completion-card meter::-moz-meter-bar {
    background: linear-gradient(90deg, var(--gold), #f3bd30);
    border-radius: 999px;
}

.profile-page .profile-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.profile-page .profile-header-actions .btn,
.profile-page .profile-logout-form {
    width: 100%;
}

.profile-page .profile-header-actions .btn {
    min-height: 46px;
}

.profile-page .profile-action-primary {
    color: #00152a;
    border-color: rgba(255, 215, 0, 0.88);
    background: linear-gradient(135deg, var(--gold), #f3bd30);
    box-shadow: 0 14px 28px rgba(255, 215, 0, 0.16);
}

.profile-page .profile-action-secondary {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.profile-page .profile-action-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 215, 0, 0.34);
}

.profile-page .profile-executive-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.profile-page .profile-summary-card {
    position: relative;
    display: grid;
    min-height: 104px;
    gap: 7px;
    padding: 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.09), transparent 46%),
        rgba(0, 21, 42, 0.76);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 10, 22, 0.24);
}

.profile-page .profile-summary-code {
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
    color: rgba(255, 215, 0, 0.14);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.profile-page .profile-summary-label {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
    font-weight: 900;
}

.profile-page .profile-summary-card strong {
    position: relative;
    z-index: 1;
    align-self: end;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.profile-page .profile-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px;
    background: rgba(0, 13, 26, 0.34);
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.profile-page .profile-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 170px;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.profile-page .profile-section-nav a:hover {
    color: #00152a;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.profile-page .profile-section-nav span {
    color: inherit;
    opacity: 0.68;
    font-size: 12px;
}

.profile-page .profile-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.profile-page .profile-section-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent 42%),
        rgba(0, 21, 42, 0.88);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 10, 22, 0.3);
    backdrop-filter: blur(14px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    scroll-margin-top: 18px;
}

.profile-page .profile-section-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.52);
    box-shadow: 0 28px 64px rgba(0, 10, 22, 0.38);
}

.profile-page .profile-section-card::before {
    content: "";
    position: absolute;
    inset-inline: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.72), transparent);
}

.profile-page .profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.13);
}

.profile-page .profile-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 900;
}

.profile-page .profile-section-code {
    margin-inline-start: auto;
    color: rgba(255, 215, 0, 0.18);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.profile-page .profile-section-header p {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 900;
}

.profile-page .profile-section-header h2 {
    margin: 0;
    color: var(--gold);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.3;
    font-weight: 900;
}

.profile-page .profile-field-list {
    display: grid;
    margin: 0;
    padding: 4px 20px 20px;
}

.profile-page .profile-field {
    display: grid;
    grid-template-columns: minmax(142px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 56px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: background var(--transition), border-color var(--transition);
}

.profile-page .profile-field:hover {
    background: rgba(255, 255, 255, 0.025);
    border-bottom-color: rgba(255, 215, 0, 0.18);
}

.profile-page .profile-field:last-child {
    border-bottom: 0;
}

.profile-page .profile-field dt {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    font-weight: 900;
}

.profile-page .profile-field-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
}

.profile-page .profile-field dd {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.profile-page .profile-field.is-important dd {
    color: #fff;
}

.profile-page .profile-value-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 12px;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 8px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.profile-page .profile-empty-value {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .profile-page .profile-hero-panel {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-hero-side {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-page .profile-executive-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .profile-page .profile-sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .profile-page .profile-readonly-shell {
        width: min(100% - 20px, 1260px);
        margin-top: 18px;
    }

    .profile-page .profile-hero-panel {
        padding: 20px;
    }

    .profile-page .profile-hero-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-page .profile-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-page .profile-hero-side {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-membership-line,
    .profile-page .profile-badges {
        width: 100%;
    }

    .profile-page .profile-header-actions .btn {
        white-space: normal;
        text-align: center;
    }

    .profile-page .profile-executive-summary {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-section-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-page .profile-section-nav a {
        justify-content: flex-start;
    }

    .profile-page .profile-section-header {
        padding-inline: 16px;
    }

    .profile-page .profile-field-list {
        padding-inline: 16px;
    }

    .profile-page .profile-field {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .profile-page .profile-field dd {
        width: 100%;
    }
}

/* ═══ طلبات تعديل البروفايل في الأدمن ═══════════════════════ */
.admin-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #fff;
    background: var(--danger);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.profile-request-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-request-counts span {
    padding: 7px 10px;
    color: var(--navy);
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.34);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.profile-request-admin-section {
    margin-bottom: 20px;
}

.profile-request-admin-section h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.profile-comparison-table .changed-row td {
    background: #fffaf0;
}

.profile-comparison-table .changed-row td:first-child {
    color: #8a5a00;
    font-weight: 900;
}

.muted-cell {
    color: var(--muted);
    font-weight: 800;
}

.requested-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.requested-photo-preview div {
    display: grid;
    gap: 8px;
    width: 170px;
}

.requested-photo-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.requested-photo-preview img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border: 2px solid var(--gold);
    border-radius: 8px;
}

.admin-decision-actions {
    display: grid;
    gap: 14px;
}

.admin-decision-actions form {
    margin: 0;
}

@media (max-width: 980px) {
    .member-dashboard-shell {
        grid-template-columns: 1fr;
        width: min(100% - 22px, 1180px);
    }

    .portal-sidebar {
        position: relative;
        top: auto;
        min-height: 0;
    }

    .sidebar-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .member-hero-card,
    .profile-readonly-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-readonly-header .btn {
        width: 100%;
        margin-inline-start: 0;
    }

    .sidebar-stats {
        grid-template-columns: 1fr;
    }

    .profile-dashboard-actions .btn,
    .admin-heading-actions,
    .admin-heading-actions .btn {
        width: 100%;
    }

    .profile-request-counts {
        width: 100%;
    }

    .profile-request-counts span {
        flex: 1 1 120px;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .profile-photo-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hikma Institutional Members Refresh — v6.12.10 */
:root {
    --hik-bg: #F8FAFC;
    --hik-surface: #FFFFFF;
    --hik-surface-soft: #F1F5F9;
    --hik-navy-950: #061A2F;
    --hik-navy-900: #0B1F3A;
    --hik-navy-800: #102A43;
    --hik-blue-700: #0F4C81;
    --hik-gold-600: #D4A017;
    --hik-gold-500: #C99700;
    --hik-gold-400: #F0B90B;
    --hik-gold-soft: #FFF7D6;
    --hik-text: #0F172A;
    --hik-text-muted: #64748B;
    --hik-border: #E5E7EB;
    --hik-success: #16A34A;
    --hik-danger: #DC2626;
    --hik-warning: #D97706;
    --hik-radius-lg: 24px;
    --hik-radius-md: 16px;
    --hik-radius-sm: 10px;
    --hik-shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
    --hik-shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
    --navy: var(--hik-navy-900);
    --navy-deep: var(--hik-navy-950);
    --blue: var(--hik-blue-700);
    --blue-hover: #0C3F6E;
    --gold: var(--hik-gold-600);
    --gold-dark: var(--hik-gold-500);
    --gold-light: var(--hik-gold-400);
    --gold-soft: var(--hik-gold-soft);
    --bg: var(--hik-bg);
    --surface: var(--hik-surface);
    --surface-muted: var(--hik-surface-soft);
    --border: var(--hik-border);
    --text: var(--hik-text);
    --muted: var(--hik-text-muted);
    --shadow: var(--hik-shadow-card);
    --shadow-strong: var(--hik-shadow-soft);
}

body.members-page {
    color: var(--hik-text);
    background:
        radial-gradient(950px circle at 82% 0%, rgba(94, 234, 212, 0.16), transparent 42%),
        radial-gradient(720px circle at 12% 92%, rgba(212, 160, 23, 0.13), transparent 38%),
        linear-gradient(135deg, #FFFFFF 0%, #EAF8FA 42%, #F8FAFC 70%, #FFF8E1 100%);
}

body.members-page::before {
    opacity: 0.38;
    background:
        linear-gradient(rgba(15, 76, 129, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(15, 76, 129, 0.04) 1px, transparent 1px) 0 0 / 64px 64px;
}

body.members-page::after {
    display: none;
}

.members-login-page {
    background:
        radial-gradient(900px circle at 84% 8%, rgba(94, 234, 212, 0.28), transparent 40%),
        radial-gradient(760px circle at 10% 90%, rgba(212, 160, 23, 0.16), transparent 42%),
        linear-gradient(135deg, #FFFFFF 0%, #E6F8FA 46%, #F7FAFC 76%, #FFF4D0 100%);
}

.login-shell {
    width: min(100%, 472px);
}

.login-card {
    overflow: hidden;
    background: var(--hik-surface);
    border: 1px solid rgba(15, 76, 129, 0.10);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
}

.login-card::before {
    display: none;
}

.login-card-header,
.login-card-header-hero {
    padding: 34px 28px 26px;
    background:
        linear-gradient(135deg, rgba(212, 160, 23, 0.14), transparent 46%),
        linear-gradient(180deg, var(--hik-navy-950), var(--hik-navy-900));
}

.login-logo {
    width: 108px;
    height: 108px;
}

.login-logo img {
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.login-logo-halo {
    background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 62%);
    filter: blur(14px);
}

.login-title-block h1 {
    max-width: 360px;
    font-size: clamp(20px, 4.6vw, 25px);
    line-height: 1.45;
}

.login-card-body {
    padding: 28px;
    color: var(--hik-text);
}

.login-card-footer {
    color: var(--hik-text-muted);
    background: #F8FAFC;
    border-top-color: var(--hik-border);
}

.members-login-page .field > span,
.field > span {
    color: var(--hik-text);
}

.members-login-page .field input,
.field input,
.field select,
.field textarea {
    color: var(--hik-text);
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
}

.members-login-page .field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--hik-blue-700);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.10);
    transform: none;
}

.secret-field button {
    color: var(--hik-navy-900);
    background: var(--hik-gold-soft);
    border-color: rgba(212, 160, 23, 0.28);
}

.members-login-page .login-options,
.members-login-page .member-separator {
    color: var(--hik-text-muted);
}

.members-login-page .muted-link,
.muted-link {
    color: var(--hik-blue-700);
}

.members-login-page .btn-primary,
.btn-primary,
.btn-gold {
    color: var(--hik-navy-950);
    background: linear-gradient(135deg, var(--hik-gold-400), var(--hik-gold-600));
    border-color: rgba(212, 160, 23, 0.18);
    box-shadow: 0 10px 22px rgba(212, 160, 23, 0.18);
}

.members-login-page .btn-gold,
.btn-secondary {
    color: var(--hik-blue-700);
    background: #FFFFFF;
    border-color: #CBD5E1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--hik-shadow-card);
}

.join-topbar {
    background: linear-gradient(180deg, var(--hik-navy-950), var(--hik-navy-900));
    border-bottom: 3px solid var(--hik-gold-600);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.join-shell,
.portal-shell,
.admin-shell {
    width: min(1240px, calc(100% - 32px));
}

.join-heading,
.admin-heading,
.detail-header,
.portal-hero,
.join-form,
.portal-hero,
.info-card,
.events-card,
.notes-card,
.table-wrap,
.admin-filters,
.secret-box,
.admin-sections-panel,
.reset-queue {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--hik-border);
    border-radius: var(--hik-radius-md);
    box-shadow: var(--hik-shadow-card);
}

.join-heading h2,
.admin-heading h2,
.detail-header h2,
.portal-hero h2,
.info-card h3,
.profile-card h3,
.admin-sections-panel h3,
.reset-queue h3 {
    color: var(--hik-navy-900);
}

.step-tab {
    border-radius: 12px;
    box-shadow: none;
}

.step-tab.active {
    background: linear-gradient(135deg, var(--hik-blue-700), var(--hik-navy-900));
    border-color: var(--hik-blue-700);
    box-shadow: var(--hik-shadow-card);
}

.step-progress {
    border-radius: 999px;
}

.step-progress span {
    background: linear-gradient(90deg, var(--hik-gold-600), var(--hik-blue-700));
}

.welcome-panel,
.dashboard-section,
.dashboard-card {
    border-radius: var(--hik-radius-md);
}

.photo-picker,
.profile-photo-preview,
.portal-photo,
.detail-photo {
    border-color: var(--hik-gold-600);
    background: var(--hik-navy-900);
    box-shadow: var(--hik-shadow-card);
}

.members-table th {
    background: var(--hik-navy-900);
}

.members-table td {
    color: var(--hik-text);
}

.table-wrap {
    overflow-x: auto;
}

.admin-filters {
    grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr) auto;
}

.secret-box {
    border-color: rgba(212, 160, 23, 0.30);
    background: var(--hik-gold-soft);
}

.status-pill {
    border-radius: 999px;
}

body.member-dark-page {
    color: var(--hik-text);
    background:
        radial-gradient(900px circle at 12% 0%, rgba(15, 76, 129, 0.055), transparent 42%),
        linear-gradient(180deg, #FFFFFF, var(--hik-bg));
}

body.member-dark-page::before,
body.member-dark-page::after {
    display: none;
}

.member-dark-page .main-content {
    color: var(--hik-text);
}

.member-dark-page .dashboard-section,
.member-dark-page .info-card,
.profile-readonly-header,
.profile-page .profile-hero-panel,
.profile-page .profile-summary-card,
.profile-page .profile-section-card,
.profile-page .profile-section-nav {
    background: var(--hik-surface);
    border: 1px solid var(--hik-border);
    border-radius: var(--hik-radius-lg);
    box-shadow: var(--hik-shadow-card);
    color: var(--hik-text);
    backdrop-filter: none;
}

.profile-page .profile-hero-panel {
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.06), transparent 44%),
        var(--hik-surface);
}

.profile-page .profile-hero-panel::before {
    inset-inline: auto 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--hik-gold-400), var(--hik-gold-600));
}

.profile-page .profile-hero-panel::after {
    display: none;
}

.profile-page .profile-avatar {
    border-radius: 18px;
    border-color: var(--hik-gold-600);
    background: var(--hik-navy-900);
    box-shadow: var(--hik-shadow-card);
}

.profile-page .profile-kicker,
.member-dark-page .system-kicker,
.profile-page .profile-section-header h2,
.profile-page .profile-number-card strong,
.profile-page .profile-membership-line strong,
.profile-page .profile-value-chip {
    color: var(--hik-gold-600);
}

.profile-page .profile-identity h1,
.profile-page .profile-completion-card strong,
.profile-readonly-header h2,
.member-dark-page .dashboard-title,
.member-dark-page .info-card h3,
.member-dark-page .profile-card h3 {
    color: var(--hik-navy-900);
}

.profile-page .profile-membership-line,
.profile-page .profile-summary-label,
.profile-page .profile-section-header p,
.profile-page .profile-field dt,
.member-dark-page .info-card dt,
.member-dark-page .profile-hint {
    color: var(--hik-text-muted);
}

.profile-page .profile-summary-card strong,
.profile-page .profile-field dd,
.member-dark-page .info-card dd,
.member-dark-page .notes-box {
    color: var(--hik-text);
}

.profile-page .profile-number-card,
.profile-page .profile-completion-card,
.profile-page .profile-section-nav a,
.profile-page .profile-empty-value {
    background: var(--hik-surface-soft);
    border-color: var(--hik-border);
    color: var(--hik-text);
}

.profile-page .profile-section-header,
.profile-page .profile-field,
.member-dark-page .info-card dl div {
    border-color: var(--hik-border);
}

.profile-page .profile-section-icon {
    background: var(--hik-gold-soft);
    border-color: rgba(212, 160, 23, 0.28);
    color: var(--hik-gold-600);
}

.profile-page .profile-section-code,
.profile-page .profile-summary-code {
    color: rgba(15, 76, 129, 0.08);
}

.profile-page .profile-section-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hik-shadow-soft);
}

.profile-page .profile-action-secondary {
    color: var(--hik-blue-700);
    background: #FFFFFF;
    border-color: #CBD5E1;
}

.member-alert {
    border-radius: 12px;
}

.member-alert.danger {
    color: #991B1B;
    background: #FEF2F2;
    border-color: #FECACA;
}

.member-alert.success {
    color: #166534;
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.member-alert.warning {
    color: #92400E;
    background: #FFFBEB;
    border-color: #FDE68A;
}

@media (max-width: 960px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .members-login-page {
        padding: 14px;
    }

    .login-card {
        border-radius: 20px;
    }

    .join-shell,
    .portal-shell,
    .admin-shell,
    .profile-page .profile-readonly-shell {
        width: min(100% - 20px, 1240px);
    }

    .join-heading,
    .admin-heading,
    .detail-header,
    .portal-hero,
    .secret-box,
    .profile-readonly-header {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-page .profile-hero-panel,
    .profile-page .profile-section-card,
    .profile-page .profile-summary-card {
        border-radius: 18px;
    }
}

/* Hawiety-inspired members/profile skin */
:root {
    --haw-bg-gray: #EEF2F4;
    --haw-blue: #2F73BE;
    --haw-blue-strong: #2459B8;
    --haw-blue-soft: #D9EEF6;
    --haw-gold: #F2C94C;
    --haw-card: #FFFFFF;
    --haw-border: #D8DEE6;
    --haw-text: #253247;
    --haw-muted: #748294;
}

body.members-page,
body.member-dark-page,
.members-login-page {
    color: var(--haw-text);
    background:
        radial-gradient(760px circle at 12% 16%, rgba(114, 220, 228, 0.25), transparent 46%),
        radial-gradient(860px circle at 88% 18%, rgba(166, 223, 231, 0.28), transparent 44%),
        radial-gradient(780px circle at 50% 100%, rgba(242, 201, 76, 0.18), transparent 50%),
        linear-gradient(180deg, #DDF6F8 0%, var(--haw-bg-gray) 52%, #EFE8D2 100%);
}

body.members-page::before,
body.member-dark-page::before {
    display: block;
    opacity: 0.55;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.48), transparent 34%),
        radial-gradient(ellipse at 70% 38%, rgba(255, 255, 255, 0.34), transparent 38%),
        linear-gradient(120deg, rgba(70, 125, 150, 0.08), transparent 32%);
    -webkit-mask-image: none;
    mask-image: none;
}

.join-topbar,
.login-card-header,
.login-card-header-hero,
.profile-readonly-header,
.profile-edit-header,
.profile-page .profile-hero-panel,
.admin-heading,
.detail-header {
    background: linear-gradient(180deg, var(--haw-blue), var(--haw-blue-strong));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(36, 89, 184, 0.22);
    color: #FFFFFF;
}

.join-brand h1,
.join-brand p,
.login-title-block h1,
.login-subtitle,
.login-title-block .system-kicker,
.profile-readonly-header h2,
.profile-readonly-header .system-kicker,
.profile-readonly-header .profile-hint,
.profile-page .profile-identity h1,
.profile-page .profile-membership-line,
.profile-page .profile-kicker,
.profile-page .profile-hero-tag,
.profile-page .profile-number-card span,
.profile-page .profile-completion-card span,
.admin-heading h2,
.admin-heading .system-kicker,
.detail-header h2,
.detail-header .system-kicker,
.detail-header .portal-meta {
    color: #FFFFFF;
}

.login-title-divider,
.login-card-header::after,
.join-topbar::after {
    background: linear-gradient(90deg, transparent, var(--haw-gold), transparent);
}

.login-title-block .system-kicker,
.profile-page .profile-kicker,
.profile-page .profile-membership-line strong,
.profile-page .profile-number-card strong,
.profile-page .profile-completion-card strong,
.admin-heading .system-kicker,
.detail-header .system-kicker,
.profile-readonly-header .system-kicker {
    color: var(--haw-gold);
}

.login-card,
.join-heading,
.join-form,
.info-card,
.profile-card,
.table-wrap,
.admin-filters,
.secret-box,
.admin-sections-panel,
.reset-queue,
.profile-page .profile-summary-card,
.profile-page .profile-section-card,
.profile-page .profile-section-nav {
    background: var(--haw-card);
    border: 1px solid var(--haw-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(37, 50, 71, 0.12);
}

.login-card {
    border-radius: 6px;
}

.login-card-footer {
    background: #F4F5F7;
}

.field input,
.field select,
.field textarea,
.members-login-page .field input {
    border-radius: 4px;
    border-color: #C7D0DA;
    background: #FFFFFF;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.members-login-page .field input:focus {
    border-color: var(--haw-blue);
    box-shadow: 0 0 0 3px rgba(47, 115, 190, 0.14);
}

.btn-primary,
.members-login-page .btn-primary {
    background: linear-gradient(180deg, var(--haw-blue), var(--haw-blue-strong));
    color: #FFFFFF;
    border-radius: 4px;
}

.btn-gold,
.members-login-page .btn-gold {
    background: linear-gradient(180deg, var(--haw-gold), #D7A52C);
    color: #173B70;
    border-radius: 4px;
}

.btn-secondary {
    color: #244A82;
    background: #FFFFFF;
    border-color: #C7D0DA;
    border-radius: 4px;
}

.step-tab,
.photo-picker,
.profile-photo-preview,
.portal-photo,
.detail-photo,
.status-pill,
.admin-section-pill,
.section-toggle-body {
    border-radius: 4px;
}

.step-tab.active {
    background: linear-gradient(180deg, var(--haw-blue), var(--haw-blue-strong));
}

.profile-page .profile-readonly-shell {
    width: min(1180px, calc(100% - 32px));
    margin-top: 22px;
}

.profile-page .profile-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 14px;
    overflow: visible;
}

.profile-page .profile-hero-panel::before,
.profile-page .profile-hero-panel::after,
.profile-page .profile-section-card::before {
    display: none;
}

.profile-page .profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background: #FFFFFF;
    color: var(--haw-blue-strong);
    box-shadow: 0 4px 12px rgba(37, 50, 71, 0.22);
}

.profile-page .profile-title-row {
    margin-bottom: 4px;
}

.profile-page .profile-identity h1 {
    font-size: clamp(22px, 2.8vw, 34px);
}

.profile-page .profile-hero-tag,
.profile-page .profile-status-chip {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    border-radius: 4px;
}

.profile-page .profile-number-card,
.profile-page .profile-completion-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}

.profile-page .profile-header-actions .btn {
    border-radius: 4px;
}

.profile-page .profile-executive-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-page .profile-summary-card {
    min-height: 86px;
    padding: 14px;
}

.profile-page .profile-summary-label,
.profile-page .profile-section-header p,
.profile-page .profile-field dt {
    color: var(--haw-muted);
}

.profile-page .profile-summary-card strong,
.profile-page .profile-field dd {
    color: var(--haw-text);
}

.profile-page .profile-section-nav {
    padding: 8px;
}

.profile-page .profile-section-nav a {
    background: #F4F5F7;
    border-color: #E1E5EA;
    color: #244A82;
    border-radius: 4px;
}

.profile-page .profile-section-nav a:hover {
    background: var(--haw-blue);
    border-color: var(--haw-blue);
    color: #FFFFFF;
}

.profile-page .profile-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-page .profile-section-header {
    padding: 16px 18px 12px;
    border-bottom-color: #EEF1F4;
}

.profile-page .profile-section-header h2,
.info-card h3,
.profile-card h3,
.admin-sections-panel h3,
.reset-queue h3 {
    color: #244A82;
}

.profile-page .profile-section-icon {
    background: var(--haw-blue-soft);
    color: #244A82;
    border-color: #B7DBEA;
    border-radius: 4px;
}

.profile-page .profile-field-list {
    padding: 2px 18px 16px;
}

.profile-page .profile-field {
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
    min-height: 48px;
    padding: 9px 0;
    border-bottom-color: #EEF1F4;
}

.profile-page .profile-value-chip,
.profile-page .profile-empty-value {
    border-radius: 4px;
}

.profile-page .profile-value-chip {
    color: #244A82;
    background: #EDF6FB;
    border-color: #CDE8F3;
}

.profile-page .profile-empty-value {
    background: #F5F6F8;
    border-color: #E2E6EC;
    color: var(--haw-muted);
}

.profile-request-shell .profile-card,
.profile-request-shell .info-card {
    border-radius: 4px;
}

.members-table th {
    background: linear-gradient(180deg, var(--haw-blue), var(--haw-blue-strong));
    color: var(--haw-gold);
}

@media (max-width: 980px) {
    .profile-page .profile-hero-panel,
    .profile-page .profile-sections-grid {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-executive-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .profile-page .profile-executive-summary {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-field {
        grid-template-columns: 1fr;
    }
}

/* Hikma profile polish — digital identity without changing member logic */
.login-card,
.join-form,
.join-heading,
.admin-heading,
.dashboard-section,
.info-card,
.profile-card,
.profile-readonly-header,
.profile-page .profile-hero-panel,
.profile-page .profile-summary-card,
.profile-page .profile-section-card,
.profile-page .profile-section-nav,
.profile-page .profile-number-card,
.profile-page .profile-completion-card {
    border-width: 1px;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition);
}

.btn,
.topbar-link,
.topbar-button,
.step-tab,
.dashboard-card,
.photo-picker,
.profile-photo-preview,
.gender-option span,
.section-toggle-body {
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition);
}

.btn {
    border-color: rgba(13, 71, 161, 0.16);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.58);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12), 0 0 18px rgba(255, 215, 0, 0.12);
}

.btn-primary:hover,
.btn-gold:hover {
    border-color: rgba(255, 215, 0, 0.74);
    box-shadow: 0 14px 30px rgba(13, 71, 161, 0.16), 0 0 20px rgba(255, 215, 0, 0.15);
}

.info-card,
.profile-card,
.dashboard-section,
.join-heading,
.admin-heading {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.info-card:hover,
.profile-card:hover,
.dashboard-card:hover,
.step-tab:hover,
.photo-picker:hover,
.section-toggle:hover .section-toggle-body {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.46);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.login-logo,
.welcome-logo,
.brand-logo {
    isolation: isolate;
}

.login-logo::after,
.welcome-logo::after,
.brand-logo::after {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.26), transparent 68%);
    filter: blur(12px);
    pointer-events: none;
}

.login-title-block .system-kicker,
.join-brand p,
.profile-page .profile-kicker {
    color: rgba(255, 215, 0, 0.92);
}

.profile-page .profile-readonly-shell {
    width: min(1280px, calc(100% - 32px));
}

.profile-page .profile-hero-panel {
    overflow: hidden;
    border-radius: 12px;
    border-color: rgba(255, 215, 0, 0.42);
    background:
        radial-gradient(440px circle at 18% 10%, rgba(255, 215, 0, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 42%),
        linear-gradient(180deg, #001f3f, #000d1a);
    box-shadow: 0 26px 70px rgba(0, 10, 22, 0.38);
}

.profile-page .profile-hero-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.62);
    box-shadow: 0 32px 84px rgba(0, 10, 22, 0.44), 0 0 26px rgba(255, 215, 0, 0.12);
}

.profile-page .profile-hero-panel::before {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.95), rgba(255, 255, 255, 0.55), rgba(255, 215, 0, 0.95), transparent);
}

.profile-page .profile-avatar {
    border-radius: 50%;
    border-color: rgba(255, 215, 0, 0.92);
    box-shadow:
        0 18px 42px rgba(0, 10, 22, 0.36),
        0 0 0 7px rgba(255, 215, 0, 0.10),
        0 0 26px rgba(255, 215, 0, 0.16);
}

.profile-page .profile-avatar img {
    border-radius: 50%;
}

.profile-page .profile-identity h1 {
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 10, 22, 0.34);
}

.profile-page .profile-membership-line strong,
.profile-page .profile-number-card strong,
.profile-page .profile-section-header h2,
.profile-page .profile-value-chip {
    color: var(--gold);
}

.profile-page .profile-status-chip,
.profile-page .profile-hero-tag,
.profile-page .profile-number-card,
.profile-page .profile-completion-card,
.profile-page .profile-summary-card,
.profile-page .profile-section-nav a {
    border-radius: 8px;
}

.profile-page .profile-number-card,
.profile-page .profile-completion-card {
    background: rgba(0, 13, 26, 0.48);
    border-color: rgba(255, 215, 0, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.profile-page .profile-number-card:hover,
.profile-page .profile-completion-card:hover,
.profile-page .profile-summary-card:hover,
.profile-page .profile-section-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.52);
    box-shadow: 0 12px 28px rgba(0, 10, 22, 0.20), 0 0 16px rgba(255, 215, 0, 0.10);
}

.profile-page .profile-summary-card,
.profile-page .profile-section-card {
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent 44%),
        rgba(0, 21, 42, 0.84);
    border-color: rgba(255, 215, 0, 0.24);
}

.profile-page .profile-section-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.54);
    box-shadow: 0 26px 58px rgba(0, 10, 22, 0.32);
}

.profile-page .profile-section-icon {
    border-radius: 8px;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.10);
    border-color: rgba(255, 215, 0, 0.24);
}

.profile-page .profile-field {
    border-bottom-color: rgba(255, 215, 0, 0.12);
}

.profile-page .profile-field:hover {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 215, 0, 0.22);
}

.profile-page .profile-field dt,
.profile-page .profile-section-header p,
.profile-page .profile-summary-label {
    color: rgba(255, 255, 255, 0.64);
}

.profile-page .profile-field dd,
.profile-page .profile-summary-card strong {
    color: rgba(255, 255, 255, 0.92);
}

.profile-page .profile-value-chip {
    background: rgba(255, 215, 0, 0.10);
    border-color: rgba(255, 215, 0, 0.28);
    border-radius: 8px;
}

.profile-page .profile-empty-value {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.14);
}

.profile-request-shell .profile-card,
.profile-request-shell .info-card,
.profile-request-shell .profile-readonly-header {
    border-radius: 12px;
}

.profile-request-shell .profile-edit-header {
    background:
        radial-gradient(360px circle at 12% 0%, rgba(255, 215, 0, 0.14), transparent 60%),
        linear-gradient(180deg, #001f3f, #00152a);
    border-color: rgba(255, 215, 0, 0.34);
}

.profile-photo-preview {
    box-shadow: 0 14px 30px rgba(0, 13, 26, 0.18), 0 0 0 5px rgba(255, 215, 0, 0.08);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(13, 71, 161, 0.34);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.profile-request-shell .field > span {
    color: #132743;
    font-weight: 900;
}

.profile-request-shell .field input,
.profile-request-shell .field select,
.profile-request-shell .field textarea {
    color: #0F172A;
    border: 2px solid #C7D0DA;
    background: #FFFFFF;
}

.profile-request-shell .field input::placeholder,
.profile-request-shell .field textarea::placeholder {
    color: #64748B;
    opacity: 1;
}

.profile-request-shell .field input:focus,
.profile-request-shell .field select:focus,
.profile-request-shell .field textarea:focus {
    border-color: #2F73BE;
    box-shadow: 0 0 0 4px rgba(47, 115, 190, 0.14);
}

.member-dark-page.profile-request-shell .check-line,
.member-dark-page .profile-request-shell .check-line {
    color: #172033;
}

.member-dark-page.profile-request-shell .check-line input,
.member-dark-page .profile-request-shell .check-line input {
    border-color: #64748B;
    background: #FFFFFF;
}

.member-dark-page.profile-request-shell .check-line input:checked,
.member-dark-page .profile-request-shell .check-line input:checked {
    background: #2F73BE;
    border-color: #2F73BE;
}

@media (max-width: 980px) {
    .profile-page .profile-hero-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .profile-page .profile-readonly-shell {
        width: min(100% - 20px, 1280px);
    }

    .profile-page .profile-hero-main {
        align-items: center;
        text-align: center;
    }

    .profile-page .profile-title-row,
    .profile-page .profile-membership-line,
    .profile-page .profile-badges {
        justify-content: center;
    }

    .profile-header-actions,
    .profile-edit-header {
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-logo::after,
    .welcome-logo::after,
    .brand-logo::after {
        animation: none !important;
    }

    .login-card,
    .join-form,
    .join-heading,
    .admin-heading,
    .dashboard-section,
    .info-card,
    .profile-card,
    .profile-page .profile-hero-panel,
    .profile-page .profile-summary-card,
    .profile-page .profile-section-card,
    .btn,
    .dashboard-card,
    .step-tab {
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   Hawiety-style Profile Page (read-only, modern interactive)
   ═══════════════════════════════════════════════════════════ */

.hawiety-profile-page {
    background:
        radial-gradient(900px circle at 80% -10%, rgba(36, 89, 184, 0.18), transparent 55%),
        radial-gradient(700px circle at 5% 100%, rgba(243, 196, 74, 0.10), transparent 55%),
        linear-gradient(180deg, #eaf2fb 0%, #d6e4f3 100%);
    color: #0a2647;
}

.hawiety-profile-page .hp-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 18px auto 60px;
}

/* Hide legacy hero on this page (we replaced it) */
.hawiety-profile-page .profile-hero-panel,
.hawiety-profile-page .profile-executive-summary,
.hawiety-profile-page .profile-section-nav,
.hawiety-profile-page .profile-sections-grid {
    display: none !important;
}

/* ─── Header ─── */
.hp-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2647 0%, #144272 50%, #205295 100%);
    color: #fff;
    border-radius: 18px;
    padding: 22px clamp(18px, 3vw, 32px);
    box-shadow: 0 18px 44px rgba(10, 38, 71, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hp-header::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(243, 196, 74, 0.85), rgba(255, 255, 255, 0.55), rgba(243, 196, 74, 0.85), transparent);
}

.hp-header-glow {
    position: absolute;
    top: -120px;
    inset-inline-end: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(243, 196, 74, 0.18), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

.hp-header-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 18px;
    align-items: center;
}

.hp-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 14px 8px 8px;
    backdrop-filter: blur(8px);
}

.hp-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: end;
}

.hp-user-name {
    font-weight: 900;
    color: #fff;
    font-size: 0.98rem;
}

.hp-user-id {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    margin-top: 3px;
    direction: ltr;
}

.hp-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #0a2647;
    font-size: 1.4rem;
}

.hp-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    justify-self: end;
    flex-wrap: wrap;
}

.hp-system-name {
    color: var(--gold, #FFD700);
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hp-bc-sep {
    opacity: 0.5;
}

.hp-current {
    color: rgba(255, 255, 255, 0.92);
}

/* ─── Action bar ─── */
.hp-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(10, 38, 71, 0.08), 0 0 0 1px rgba(36, 89, 184, 0.08) inset;
    justify-content: flex-end;
}

.hp-action-form {
    margin: 0;
}

.hp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 220ms var(--ease-smooth, ease), box-shadow 220ms var(--ease-smooth, ease), background 220ms var(--ease-smooth, ease);
}

.hp-action-primary {
    color: #fff;
    background: linear-gradient(135deg, #144272, #205295);
    box-shadow: 0 6px 16px rgba(20, 66, 114, 0.32);
    border-color: rgba(243, 196, 74, 0.4);
}

.hp-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 66, 114, 0.4), 0 0 12px rgba(243, 196, 74, 0.32);
}

.hp-action-secondary {
    color: #144272;
    background: #f3f6fb;
    border-color: rgba(20, 66, 114, 0.2);
}

.hp-action-secondary:hover {
    transform: translateY(-2px);
    background: #e8eef7;
    border-color: rgba(20, 66, 114, 0.4);
}

/* ─── Body grid ─── */
.hp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 18px;
    align-items: start;
}

/* ─── Sections ─── */
.hp-sections {
    display: grid;
    gap: 18px;
}

.hp-section {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 22px clamp(18px, 2.4vw, 28px) 24px;
    box-shadow: 0 10px 32px rgba(10, 38, 71, 0.06), 0 0 0 1px rgba(36, 89, 184, 0.08);
    transition: transform 240ms var(--ease-smooth, ease), box-shadow 240ms var(--ease-smooth, ease);
}

.hp-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(10, 38, 71, 0.10), 0 0 0 1px rgba(36, 89, 184, 0.15);
}

.hp-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0a2647;
    font-size: 1.18rem;
    font-weight: 900;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(36, 89, 184, 0.24);
    text-align: end;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.hp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3c44a, #d8a52d);
    box-shadow: 0 0 0 4px rgba(243, 196, 74, 0.18), 0 4px 10px rgba(216, 165, 45, 0.32);
    flex: 0 0 auto;
}

/* Field grid */
.hp-fields {
    display: grid;
    gap: 14px 16px;
    margin-bottom: 14px;
}

.hp-fields:last-child {
    margin-bottom: 0;
}

.hp-grid-1 { grid-template-columns: 1fr; }
.hp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hp-field-label {
    color: #1f3a5f;
    font-weight: 800;
    font-size: 0.86rem;
    text-align: end;
}

.hp-field-label small {
    color: #6b87a8;
    font-weight: 700;
    font-size: 0.72rem;
    margin-inline-start: 4px;
}

.hp-field-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f1f5fb;
    border: 1px solid rgba(36, 89, 184, 0.14);
    color: #0a2647;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: end;
    overflow-wrap: anywhere;
    transition: background 220ms var(--ease-smooth, ease), border-color 220ms var(--ease-smooth, ease), transform 220ms var(--ease-smooth, ease);
}

.hp-field-box:hover {
    background: #e9f0f8;
    border-color: rgba(36, 89, 184, 0.3);
}

.hp-field-box.is-empty {
    color: #94a8c2;
    font-weight: 600;
    font-style: italic;
    background: #f7f9fc;
    border-style: dashed;
}

/* ─── Side card ─── */
.hp-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--topbar-height, 64px) + 18px);
    align-self: start;
}

.hp-avatar-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 10px 32px rgba(10, 38, 71, 0.08), 0 0 0 1px rgba(36, 89, 184, 0.08) inset;
}

.hp-avatar {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px dashed rgba(36, 89, 184, 0.22);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(10, 38, 71, 0.12);
    transition: transform 320ms var(--ease-smooth, ease), box-shadow 320ms var(--ease-smooth, ease);
}

.hp-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(10, 38, 71, 0.18);
}

.hp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-avatar-plus {
    font-size: 3.4rem;
    color: rgba(36, 89, 184, 0.34);
    font-weight: 900;
    line-height: 1;
}

.hp-completion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(243, 196, 74, 0.18), rgba(243, 196, 74, 0.06));
    border: 1px solid rgba(243, 196, 74, 0.42);
    color: #0a2647;
    font-size: 0.86rem;
    font-weight: 800;
}

.hp-completion-pill strong {
    color: #b8860b;
    font-size: 1rem;
    font-weight: 900;
}

.hp-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(10, 38, 71, 0.06), 0 0 0 1px rgba(36, 89, 184, 0.08) inset;
}

.hp-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(36, 89, 184, 0.08);
    font-size: 0.9rem;
}

.hp-info-row:last-child {
    border-bottom: 0;
}

.hp-info-label {
    color: #5a7596;
    font-weight: 700;
}

.hp-info-val {
    color: #0a2647;
    font-weight: 900;
    text-align: end;
    overflow-wrap: anywhere;
}

.hp-info-row-tayari {
    align-items: flex-start;
}

.hp-info-tayari {
    max-width: 64%;
    white-space: normal;
    line-height: 1.65;
}

@media (max-width: 520px) {
    .hp-info-row-tayari {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hp-info-tayari {
        max-width: 100%;
        text-align: start;
    }
}

.hp-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    color: #0a2647;
    background: rgba(243, 196, 74, 0.18);
    border: 1px solid rgba(243, 196, 74, 0.5);
}

.hp-status-active {
    color: #0a6b3a;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.42);
}

.hp-status-pending {
    color: #8a6300;
    background: rgba(243, 196, 74, 0.18);
    border-color: rgba(243, 196, 74, 0.5);
}

.hp-status-disabled,
.hp-status-rejected {
    color: #a32e2e;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.42);
}

.hp-links-card {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    display: grid;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(10, 38, 71, 0.06), 0 0 0 1px rgba(36, 89, 184, 0.08) inset;
}

.hp-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #0a2647;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: end;
    flex-direction: row-reverse;
    justify-content: flex-start;
    transition: transform 200ms var(--ease-smooth, ease), background 200ms var(--ease-smooth, ease), border-color 200ms var(--ease-smooth, ease);
    width: 100%;
    font-family: inherit;
}

.hp-link-item:hover {
    transform: translateX(-3px);
    background: #f1f5fb;
    border-color: rgba(36, 89, 184, 0.18);
}

.hp-link-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(243, 196, 74, 0.18);
    color: #b8860b;
    font-size: 1rem;
    flex: 0 0 auto;
}

.hp-link-danger {
    color: #a32e2e;
}

.hp-link-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.32);
}

.hp-link-danger .hp-link-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #a32e2e;
}

/* ─── Responsive ─── */
@media (max-width: 1080px) {
    .hp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hp-body {
        grid-template-columns: 1fr;
    }

    .hp-side {
        position: static;
        order: -1;
    }

    .hp-header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-breadcrumb {
        justify-self: start;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .hp-grid-4,
    .hp-grid-3,
    .hp-grid-2 {
        grid-template-columns: 1fr;
    }

    .hp-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-action-btn {
        justify-content: center;
        width: 100%;
    }

    .hp-action-form {
        width: 100%;
    }

    .hp-section {
        padding: 18px 16px 20px;
    }

    .hp-user-tag {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-section,
    .hp-action-btn,
    .hp-link-item,
    .hp-avatar,
    .hp-field-box {
        transition-duration: 0.01ms !important;
    }
}

/* Personal photo upload: Hawiety-style avatar card */
.join-form .photo-field {
    align-items: center;
    justify-items: center;
    gap: 10px;
    padding: 8px 0 2px;
}

.join-form .photo-field > span {
    width: auto;
    min-width: 180px;
    padding: 7px 14px;
    color: #173B70;
    background: #FFFFFF;
    border: 1px solid rgba(47, 115, 190, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(37, 50, 71, 0.08);
    text-align: center;
}

.join-form .photo-picker {
    width: 172px;
    height: 172px;
    isolation: isolate;
    color: #173B70;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82) 48%, rgba(217, 238, 246, 0.64)),
        linear-gradient(145deg, rgba(47, 115, 190, 0.10), rgba(242, 201, 76, 0.13));
    border: 3px solid rgba(255, 255, 255, 0.96);
    outline: 2px solid rgba(242, 201, 76, 0.74);
    outline-offset: 3px;
    border-radius: 50%;
    box-shadow:
        0 18px 36px rgba(37, 50, 71, 0.16),
        0 0 0 8px rgba(47, 115, 190, 0.06);
}

.join-form .photo-picker::before {
    content: "";
    position: absolute;
    inset: -9px;
    z-index: -1;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(47, 115, 190, 0.18), rgba(242, 201, 76, 0.22));
}

.join-form .photo-picker:hover,
.join-form .photo-picker:focus-within {
    transform: translateY(-2px);
    outline-color: rgba(242, 201, 76, 0.92);
    box-shadow:
        0 22px 42px rgba(37, 50, 71, 0.18),
        0 0 0 9px rgba(47, 115, 190, 0.08);
}

.join-form .photo-trigger {
    gap: 4px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.05));
}

.join-form .photo-plus {
    width: 58px;
    height: 58px;
    color: #173B70;
    background:
        linear-gradient(135deg, #FFFFFF, #F8FAFC);
    border: 1px solid rgba(47, 115, 190, 0.18);
    box-shadow:
        0 10px 22px rgba(37, 50, 71, 0.13),
        0 0 0 7px rgba(242, 201, 76, 0.16);
    font-size: 36px;
}

.join-form .photo-label {
    margin-top: 6px;
    color: #173B70;
    font-size: 14px;
    font-weight: 900;
}

.join-form .photo-hint {
    color: #748294;
    font-size: 12px;
    font-weight: 700;
}

.join-form .photo-picker.has-image {
    outline-color: rgba(47, 115, 190, 0.46);
    background: #FFFFFF;
}

.join-form .photo-picker.has-image img {
    border: 4px solid #FFFFFF;
    border-radius: 50%;
}

.join-form .photo-picker.has-image .photo-hint {
    display: none;
}

.join-form .photo-picker.has-image .photo-trigger {
    background: linear-gradient(180deg, transparent 58%, rgba(0, 13, 26, 0.24));
}

@media (max-width: 720px) {
    .join-form .photo-picker {
        width: 150px;
        height: 150px;
    }

    .join-form .photo-plus {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .join-form .photo-field > span {
        min-width: 150px;
    }
}
