.photo-upload-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.form-photo-preview {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbe7f6;
    background: #f8fafc;
}

.form-photo-placeholder {
    display: grid;
    place-items: center;
    color: #64748b;
}

.form-photo-placeholder svg {
    width: 36px;
    height: 36px;
}

.photo-field {
    margin: 0;
}

.photo-crop-dialog {
    width: min(720px, 94vw);
    max-height: 92vh;
    overflow: auto;
}

.crop-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.crop-dialog-head h3 {
    margin: 0 0 4px;
}

.crop-dialog-head .icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dbe7f6;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.crop-dialog-head .icon-btn svg {
    width: 20px;
    height: 20px;
}

.crop-canvas-wrap {
    width: min(480px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 2px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fafc;
}

.crop-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

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

.crop-controls label {
    display: grid;
    gap: 8px;
    color: #0b2347;
    font-weight: 700;
}

.crop-controls input[type="range"] {
    width: 100%;
    accent-color: #1456a0;
}

.digital-card-page {
    min-height: 100vh;
    padding: 24px 16px 48px;
    background: #edf2f7;
}

.digital-card-shell {
    --card-primary: #0b2347;
    --card-secondary: #1456a0;
    --card-accent: #d4af37;
    width: min(920px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .13);
}

.profile-cover {
    position: relative;
    min-height: 176px;
    padding: 24px;
    background: var(--card-primary);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-cover.has-company-cover {
    background-size: cover;
    background-position: center;
}

.profile-cover.has-company-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 31, 51, .66);
}

.profile-cover > * {
    position: relative;
    z-index: 1;
}

.profile-company {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.company-logo-mini {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--card-primary);
    font-size: 18px;
    font-weight: 900;
    overflow: hidden;
}

.company-logo-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.language-switcher a {
    min-width: 36px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.language-switcher a.active {
    background: #fff;
    color: var(--card-primary);
}

.profile-main {
    position: relative;
    padding: 0 28px 30px;
}

.profile-identity {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: end;
    margin-top: -70px;
}

.profile-photo,
.profile-photo-fallback {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    background: #e9eef5;
}

.profile-photo {
    object-fit: cover;
}

.profile-photo-fallback {
    display: grid;
    place-items: center;
    color: var(--card-primary);
    font-size: 48px;
    font-weight: 900;
}

.identity-copy {
    padding-top: 82px;
}

.identity-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.role-badge,
.verification-badge,
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.role-badge {
    background: #e0f2fe;
    color: #075985;
}

.verification-badge {
    background: #fef3c7;
    color: #854d0e;
}

.verification-badge svg,
.role-badge svg,
.feature-chip svg {
    width: 14px;
    height: 14px;
}
.verified-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.verified-name h1{margin:0}
.verified-name .verification-badge{width:24px;height:24px;min-width:24px;padding:0;border-radius:50%;display:inline-grid;place-items:center;box-shadow:0 3px 10px rgba(15,35,65,.16);transform:translateY(1px)}
.verified-name .verification-badge svg{width:16px;height:16px;stroke-width:2.8}
.verified-name .verification-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.verification-badge.tier-blue{background:#e8f2ff;color:#1463c5;border-color:#87b9f3}
.verification-badge.tier-gold{background:#fff7d6;color:#9a6500;border-color:#ddb548}
.verification-badge.tier-silver,.verification-badge.tier-gray{background:#f1f3f5;color:#59636e;border-color:#b9c0c8}
.verification-badge.tier-platinum{background:#ecf8f7;color:#176f72;border-color:#76b9bc}
.verification-badge.tier-partner{background:#f1eaff;color:#6c3bb4;border-color:#b69ae2}

.identity-copy h1 {
    margin: 0;
    color: #101828;
    font-size: 30px;
    line-height: 1.25;
}

.profile-title {
    margin: 7px 0 0;
    color: #344054;
    font-size: 17px;
    font-weight: 700;
}

.profile-department {
    margin: 5px 0 0;
    color: #667085;
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(var(--actions, 5), minmax(0, 1fr));
    gap: 8px;
    padding: 22px 0;
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.quick-action {
    min-height: 66px;
    padding: 9px 6px;
    border: 0;
    border-radius: 8px;
    background: #f4f7fb;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.quick-action:hover {
    background: var(--card-primary);
    color: #fff;
}

.quick-action svg {
    width: 21px;
    height: 21px;
}

.profile-bio {
    color: #475467;
    line-height: 1.9;
    margin: 22px 0 0;
}

.profile-section {
    padding: 24px 0 0;
}

.profile-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: #101828;
    font-size: 18px;
}

.profile-section h2 svg {
    width: 20px;
    height: 20px;
    color: var(--card-secondary);
}

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

.contact-link,
.bank-row {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    color: #101828;
    text-decoration: none;
}

.contact-link:hover {
    border-color: var(--card-secondary);
    background: #f8fafc;
}

.contact-icon,
.social-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #edf4ff;
    color: var(--card-secondary);
}

.contact-icon svg,
.social-link svg {
    width: 19px;
    height: 19px;
}

.contact-label {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 750;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid #dbe7f6;
    background: #fff;
}

.social-link:hover {
    background: var(--card-primary);
    color: #fff;
}

.bank-panel {
    border: 1px solid #e0d19b;
    border-radius: 8px;
    background: #fffcf2;
    padding: 16px;
}

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

.bank-item span {
    display: block;
    color: #7c6a2b;
    font-size: 12px;
    margin-bottom: 3px;
}

.bank-item strong {
    display: block;
    color: #292413;
    overflow-wrap: anywhere;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-chip {
    background: #f2f4f7;
    color: #344054;
}

.qr-section {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-top: 24px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}

.qr-section img {
    width: 150px;
    height: 150px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.qr-section h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.qr-section p {
    margin: 0;
    color: #d0d5dd;
    line-height: 1.7;
}

.card-footer-brand {
    padding: 18px 28px;
    border-top: 1px solid #e5e7eb;
    color: #667085;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.card-platform-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.card-platform-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.template-executive .profile-cover {
    background: #16324f;
    border-bottom: 5px solid #2f80ed;
}

.template-vip_gold {
    --card-primary: #171717;
    --card-secondary: #8a6a0a;
    --card-accent: #d4af37;
}

.template-vip_gold .profile-cover {
    background: #171717;
    border-bottom: 5px solid #d4af37;
}

.template-vip_gold .quick-action:hover,
.template-vip_gold .social-link:hover {
    background: #171717;
    color: #f5d568;
}

.template-midnight {
    --card-primary: #111827;
    --card-secondary: #0f766e;
    --card-accent: #2dd4bf;
}

.template-midnight .profile-cover {
    background: #111827;
    border-bottom: 5px solid #2dd4bf;
}

.template-minimal {
    --card-primary: #ffffff;
    --card-secondary: #111827;
    --card-accent: #16a34a;
}

.template-minimal .profile-cover {
    min-height: 130px;
    background: #fff;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.template-minimal .profile-company,
.template-minimal .language-switcher a {
    color: #111827;
}

.template-minimal .language-switcher a {
    border-color: #cbd5e1;
}

.template-minimal .language-switcher a.active {
    background: #111827;
    color: #fff;
}

.role-section {
    padding: 34px 0 0;
}

.role-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.team-card {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.team-card-photo,
.team-card-fallback {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf2f7;
}

.team-card-fallback {
    display: grid;
    place-items: center;
    color: #0b2347;
    font-weight: 900;
    font-size: 22px;
}

.onboarding-panel {
    margin-top: 18px;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.onboarding-step {
    min-height: 126px;
    padding: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    text-decoration: none;
}

.onboarding-step svg {
    width: 22px;
    height: 22px;
    color: #1456a0;
}

.onboarding-step strong,
.onboarding-step span {
    display: block;
}

.table-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.table-person > img,
.table-person > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #edf2f7;
}

.table-person > span {
    display: grid;
    place-items: center;
    color: #0b2347;
    font-weight: 900;
}

.onboarding-step strong {
    margin: 9px 0 5px;
}

.onboarding-step span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .digital-card-page {
        padding: 0;
    }

    .digital-card-shell {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-cover {
        min-height: 152px;
        padding: 18px;
    }

    .profile-main {
        padding: 0 18px 24px;
    }

    .profile-identity {
        grid-template-columns: 106px 1fr;
        gap: 14px;
        margin-top: -52px;
    }

    .profile-photo,
    .profile-photo-fallback {
        width: 106px;
        height: 106px;
        border-width: 4px;
        font-size: 34px;
    }

    .identity-copy {
        padding-top: 60px;
    }

    .identity-copy h1 {
        font-size: 23px;
    }

    .quick-actions {
        grid-template-columns: repeat(var(--actions, 5), 74px);
        overflow-x: auto;
        padding-bottom: 14px;
    }

    .contact-grid,
    .bank-grid,
    .qr-section,
    .onboarding-steps {
        grid-template-columns: 1fr;
    }

    .qr-section {
        text-align: center;
        justify-items: center;
    }

    .photo-upload-row {
        grid-template-columns: 82px 1fr;
    }

    .form-photo-preview {
        width: 82px;
        height: 82px;
    }

    .crop-controls {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 58px 1fr;
    }

    .team-card .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}
/* Professional Android/iOS PWA fallback. */
.pwa-install-dialog{width:min(440px,calc(100% - 28px));border:0;border-radius:24px;padding:26px;color:#102a43;background:#fff;box-shadow:0 28px 90px rgba(3,15,31,.36);font-family:var(--yb-font-family,Cairo,Tajawal,Arial,sans-serif)}
.pwa-install-dialog::backdrop{background:rgba(3,15,31,.68);backdrop-filter:blur(3px)}
.pwa-install-dialog h2{margin:0 0 10px;font-size:23px}.pwa-install-dialog p{margin:0;color:#52677f;line-height:1.8}.pwa-install-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.pwa-install-actions .btn{flex:1;justify-content:center;min-width:150px}
@media(max-width:480px){.pwa-install-dialog{padding:22px 18px;border-radius:20px}.pwa-install-actions{display:grid}.pwa-install-actions .btn{width:100%}}
/* The standard PWA button is exposed only after Chrome confirms installability. */
[data-install-app]{display:inline-flex!important}[data-install-app].installed{opacity:.65;pointer-events:none}
