/* Tombol ikon profil (user) + foto profil. Gaya mengikuti .top-profile yang sudah ada. */
.profile-btn {
    display: grid;
    place-items: center;
    position: relative;
    width: 38px;
    height: 38px;
    flex: none;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    overflow: hidden;
    transition: transform var(--t) var(--ease),background var(--t) var(--ease),color var(--t) var(--ease);
}

.profile-btn:hover {
    transform: translate(-1px,-1px);
    background: var(--blue);
    color: #fff;
}

.profile-btn .icon {
    width: 17px;
}

[data-profile-link] .profile-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-profile {
    position: relative;
    overflow: hidden;
}

.product-topbar .profile-btn,
.top-inner .profile-btn {
    width: 37px;
    height: 37px;
}

/* di header yang memakai tombol teks (landing / product) foto profil jadi bulatan kecil di dalam tombol */
.account-link[data-profile-link] .profile-avatar,
.marketing-login[data-profile-link] .profile-avatar {
    position: static;
    width: 22px;
    height: 22px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    flex: none;
}

/* Header profile: compact square control; uploaded avatar fills the control. */
.header-actions .marketing-login[data-profile-link] {
    display: grid;
    place-items: center;
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 13px;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.header-actions .marketing-login[data-profile-link]:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(36,91,255,.14);
}
.header-actions .marketing-login[data-profile-link] > .profile-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
}
.header-actions .marketing-login[data-profile-link] > .icon { width: 20px; height: 20px; }
